vanohaker Posted December 4, 2017 Posted December 4, 2017 (edited) Здравствуйте специалисты. Если честно не люблю писать на форумах, а предпочитаю решать проблемы сам но сил не осталось. :) Вот суть проблемы. Есть шлюз Goip1 Есть Asterisk 13.18.2 + freepbx 13 на centos 6, между ними локалка, ната нет. При звонке получаю в логах 503, а в телефоне "набранный вами номер не доступен". Не ругайте что в настройках каша, я первый раз настраиваю с регистрацией шлюза на сервере. Просто не понимаю как правильно настроить входящую связь. Ткните пальцем. Спасибо. На шлюзе настройки выглядят так. Спойлер Транк Спойлер Екстеншн 1011 есть. Пароль такой же как и на goip. Лог при звонке. Спойлер == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 > 0x7f8d6c3d2070 -- Strict RTP learning after remote address set to: 172.17.0.56:10000 -- Executing [1011@from-internal:1] Set("SIP/GoIP1-00000027", "__RINGTIMER=15") in new stack -- Executing [1011@from-internal:2] Macro("SIP/GoIP1-00000027", "exten-vm,novm,1011,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/GoIP1-00000027", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/GoIP1-00000027", "TOUCH_MONITOR=1512374434.39") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/GoIP1-00000027", "AMPUSER=+79377200549") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("SIP/GoIP1-00000027", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("SIP/GoIP1-00000027", "1?Set(REALCALLERIDNUM=+79377200549)") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/GoIP1-00000027", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/GoIP1-00000027", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/GoIP1-00000027", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/GoIP1-00000027", "1?report") in new stack -- Goto (macro-user-callerid,s,14) -- Executing [s@macro-user-callerid:14] NoOp("SIP/GoIP1-00000027", "Macro Depth is 2") in new stack -- Executing [s@macro-user-callerid:15] GotoIf("SIP/GoIP1-00000027", "1?report2:macroerror") in new stack -- Goto (macro-user-callerid,s,16) -- Executing [s@macro-user-callerid:16] GotoIf("SIP/GoIP1-00000027", "0?continue") in new stack -- Executing [s@macro-user-callerid:17] Set("SIP/GoIP1-00000027", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:18] GotoIf("SIP/GoIP1-00000027", "1?continue") in new stack -- Goto (macro-user-callerid,s,34) -- Executing [s@macro-user-callerid:34] Set("SIP/GoIP1-00000027", "CALLERID(number)=+79377200549") in new stack -- Executing [s@macro-user-callerid:35] Set("SIP/GoIP1-00000027", "CALLERID(name)=+79377200549") in new stack -- Executing [s@macro-user-callerid:36] GotoIf("SIP/GoIP1-00000027", "0?cnum") in new stack -- Executing [s@macro-user-callerid:37] Set("SIP/GoIP1-00000027", "CDR(cnam)=+79377200549") in new stack -- Executing [s@macro-user-callerid:38] Set("SIP/GoIP1-00000027", "CDR(cnum)=+79377200549") in new stack -- Executing [s@macro-user-callerid:39] Set("SIP/GoIP1-00000027", "CHANNEL(language)=ru") in new stack -- Executing [s@macro-exten-vm:2] Set("SIP/GoIP1-00000027", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("SIP/GoIP1-00000027", "__EXTTOCALL=1011") in new stack -- Executing [s@macro-exten-vm:4] Set("SIP/GoIP1-00000027", "__PICKUPMARK=1011") in new stack -- Executing [s@macro-exten-vm:5] Set("SIP/GoIP1-00000027", "RT=") in new stack -- Executing [s@macro-exten-vm:6] Gosub("SIP/GoIP1-00000027", "sub-record-check,s,1(exten,1011,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/GoIP1-00000027", "0?initialized") in new stack -- Executing [s@sub-record-check:2] Set("SIP/GoIP1-00000027", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:3] Set("SIP/GoIP1-00000027", "NOW=1512374434") in new stack -- Executing [s@sub-record-check:4] Set("SIP/GoIP1-00000027", "__DAY=04") in new stack -- Executing [s@sub-record-check:5] Set("SIP/GoIP1-00000027", "__MONTH=12") in new stack -- Executing [s@sub-record-check:6] Set("SIP/GoIP1-00000027", "__YEAR=2017") in new stack -- Executing [s@sub-record-check:7] Set("SIP/GoIP1-00000027", "__TIMESTR=20171204-110034") in new stack -- Executing [s@sub-record-check:8] Set("SIP/GoIP1-00000027", "__FROMEXTEN=+79377200549") in new stack -- Executing [s@sub-record-check:9] Set("SIP/GoIP1-00000027", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:10] NoOp("SIP/GoIP1-00000027", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/GoIP1-00000027", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/GoIP1-00000027", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/GoIP1-00000027", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/GoIP1-00000027", "5?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/GoIP1-00000027", "1?sub-record-check,exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] NoOp("SIP/GoIP1-00000027", "Exten Recording Check between +79377200549 and 1011") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/GoIP1-00000027", "CALLTYPE=internal") in new stack -- Executing [exten@sub-record-check:3] ExecIf("SIP/GoIP1-00000027", "0?Set(CALLTYPE=)") in new stack -- Executing [exten@sub-record-check:4] Set("SIP/GoIP1-00000027", "CALLEE=dontcare") in new stack -- Executing [exten@sub-record-check:5] ExecIf("SIP/GoIP1-00000027", "0?Set(CALLEE=dontcare)") in new stack -- Executing [exten@sub-record-check:6] GotoIf("SIP/GoIP1-00000027", "0?callee") in new stack -- Executing [exten@sub-record-check:7] GotoIf("SIP/GoIP1-00000027", "1?caller") in new stack -- Goto (sub-record-check,exten,13) -- Executing [exten@sub-record-check:13] Set("SIP/GoIP1-00000027", "RECMODE=") in new stack -- Executing [exten@sub-record-check:14] ExecIf("SIP/GoIP1-00000027", "1?Set(RECMODE=dontcare)") in new stack -- Executing [exten@sub-record-check:15] ExecIf("SIP/GoIP1-00000027", "1?Set(RECMODE=dontcare)") in new stack -- Executing [exten@sub-record-check:16] Gosub("SIP/GoIP1-00000027", "recordcheck,1(dontcare,internal,1011)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/GoIP1-00000027", "Starting recording check against dontcare") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/GoIP1-00000027", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [recordcheck@sub-record-check:3] Return("SIP/GoIP1-00000027", "") in new stack -- Executing [exten@sub-record-check:17] Return("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-exten-vm:7] GotoIf("SIP/GoIP1-00000027", "1?macrodial") in new stack -- Goto (macro-exten-vm,s,13) -- Executing [s@macro-exten-vm:13] GosubIf("SIP/GoIP1-00000027", "0?clrheader,1()") in new stack -- Executing [s@macro-exten-vm:14] Macro("SIP/GoIP1-00000027", "dial-one,,Ttr,1011") in new stack -- Executing [s@macro-dial-one:1] Set("SIP/GoIP1-00000027", "DEXTEN=1011") in new stack -- Executing [s@macro-dial-one:2] ExecIf("SIP/GoIP1-00000027", "0?Set(EXTTOCALL=1011)") in new stack -- Executing [s@macro-dial-one:3] Set("SIP/GoIP1-00000027", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:4] GosubIf("SIP/GoIP1-00000027", "0?screen,1()") in new stack -- Executing [s@macro-dial-one:5] GosubIf("SIP/GoIP1-00000027", "0?cf,1()") in new stack -- Executing [s@macro-dial-one:6] GotoIf("SIP/GoIP1-00000027", "1?skip1") in new stack -- Goto (macro-dial-one,s,9) -- Executing [s@macro-dial-one:9] GotoIf("SIP/GoIP1-00000027", "0?nodial") in new stack -- Executing [s@macro-dial-one:10] GotoIf("SIP/GoIP1-00000027", "0?continue") in new stack -- Executing [s@macro-dial-one:11] Set("SIP/GoIP1-00000027", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:12] GotoIf("SIP/GoIP1-00000027", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] GotoIf("SIP/GoIP1-00000027", "0?next3:continue") in new stack -- Goto (macro-dial-one,s,26) -- Executing [s@macro-dial-one:26] GotoIf("SIP/GoIP1-00000027", "0?nodial") in new stack -- Executing [s@macro-dial-one:27] GosubIf("SIP/GoIP1-00000027", "1?dstring,1():dlocal,1()") in new stack -- Executing [dstring@macro-dial-one:1] Set("SIP/GoIP1-00000027", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("SIP/GoIP1-00000027", "DEVICES=1011") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/GoIP1-00000027", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/GoIP1-00000027", "0?Set(DEVICES=011)") in new stack -- Executing [dstring@macro-dial-one:5] Set("SIP/GoIP1-00000027", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("SIP/GoIP1-00000027", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("SIP/GoIP1-00000027", "THISDIAL=SIP/1011") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/GoIP1-00000027", "1?zap2dahdi,1()") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/GoIP1-00000027", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/GoIP1-00000027", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/GoIP1-00000027", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/GoIP1-00000027", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/GoIP1-00000027", "THISPART2=SIP/1011") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/GoIP1-00000027", "0?Set(THISPART2=DAHDI/1011)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/GoIP1-00000027", "NEWDIAL=SIP/1011&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/GoIP1-00000027", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/GoIP1-00000027", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/GoIP1-00000027", "THISDIAL=SIP/1011") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/GoIP1-00000027", "") in new stack -- Executing [dstring@macro-dial-one:9] GotoIf("SIP/GoIP1-00000027", "1?docheck") in new stack -- Goto (macro-dial-one,dstring,14) -- Executing [dstring@macro-dial-one:14] GotoIf("SIP/GoIP1-00000027", "0?skipset") in new stack -- Executing [dstring@macro-dial-one:15] Set("SIP/GoIP1-00000027", "DSTRING=SIP/1011&") in new stack -- Executing [dstring@macro-dial-one:16] Set("SIP/GoIP1-00000027", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:17] GotoIf("SIP/GoIP1-00000027", "0?begin") in new stack -- Executing [dstring@macro-dial-one:18] ExecIf("SIP/GoIP1-00000027", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:19] Set("SIP/GoIP1-00000027", "DSTRING=SIP/1011") in new stack -- Executing [dstring@macro-dial-one:20] Return("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-dial-one:28] GotoIf("SIP/GoIP1-00000027", "0?nodial") in new stack -- Executing [s@macro-dial-one:29] GotoIf("SIP/GoIP1-00000027", "0?skiptrace") in new stack -- Executing [s@macro-dial-one:30] GosubIf("SIP/GoIP1-00000027", "1?ctset,1():ctclear,1()") in new stack -- Executing [ctset@macro-dial-one:1] Set("SIP/GoIP1-00000027", "DB(CALLTRACE/1011)=+79377200549") in new stack -- Executing [ctset@macro-dial-one:2] Return("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-dial-one:31] Set("SIP/GoIP1-00000027", "D_OPTIONS=Ttr") in new stack -- Executing [s@macro-dial-one:32] NoOp("SIP/GoIP1-00000027", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack -- Executing [s@macro-dial-one:33] ExecIf("SIP/GoIP1-00000027", "0?Set(ALERT_INFO=)") in new stack -- Executing [s@macro-dial-one:34] ExecIf("SIP/GoIP1-00000027", "0?Set(ALERT_INFO=)") in new stack -- Executing [s@macro-dial-one:35] ExecIf("SIP/GoIP1-00000027", "0?Set(ALERT_INFO=)") in new stack -- Executing [s@macro-dial-one:36] ExecIf("SIP/GoIP1-00000027", "0?Set(ALERT_INFO=Normal;volume=)") in new stack -- Executing [s@macro-dial-one:37] ExecIf("SIP/GoIP1-00000027", "0?Set(ALERT_INFO=Normal;volume=)") in new stack -- Executing [s@macro-dial-one:38] GosubIf("SIP/GoIP1-00000027", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack -- Executing [s@macro-dial-one:39] ExecIf("SIP/GoIP1-00000027", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [s@macro-dial-one:40] GosubIf("SIP/GoIP1-00000027", "0?qwait,1()") in new stack -- Executing [s@macro-dial-one:41] Set("SIP/GoIP1-00000027", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:42] Set("SIP/GoIP1-00000027", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:43] GotoIf("SIP/GoIP1-00000027", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:44] GotoIf("SIP/GoIP1-00000027", "1?godial") in new stack -- Goto (macro-dial-one,s,49) -- Executing [s@macro-dial-one:49] Macro("SIP/GoIP1-00000027", "dialout-one-predial-hook,") in new stack -- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-dial-one:50] ExecIf("SIP/GoIP1-00000027", "0?Set(D_OPTIONS=trI)") in new stack -- Executing [s@macro-dial-one:51] NoOp("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-dial-one:52] Dial("SIP/GoIP1-00000027", "SIP/1011,,Ttrb(func-apply-sipheaders^s^1)") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- SIP/1011-00000028 Internal Gosub(func-apply-sipheaders,s,1) start -- Executing [s@func-apply-sipheaders:1] NoOp("SIP/1011-00000028", "Applying SIP Headers to channel") in new stack -- Executing [s@func-apply-sipheaders:2] Set("SIP/1011-00000028", "SIPHEADERKEYS=") in new stack -- Executing [s@func-apply-sipheaders:3] While("SIP/1011-00000028", "0") in new stack -- Jumping to priority 7 -- Executing [s@func-apply-sipheaders:8] Return("SIP/1011-00000028", "") in new stack == Spawn extension (from-internal, 1011, 1) exited non-zero on 'SIP/1011-00000028' -- SIP/1011-00000028 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL= -- Called SIP/1011 -- Got SIP response 503 "Service Unavailable" back from 172.17.0.56:5060 -- SIP/1011-00000028 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Executing [s@macro-dial-one:53] ExecIf("SIP/GoIP1-00000027", "0?MacroExit()") in new stack -- Executing [s@macro-dial-one:54] ExecIf("SIP/GoIP1-00000027", "0?Set(DIALSTATUS=)") in new stack -- Executing [s@macro-dial-one:55] GosubIf("SIP/GoIP1-00000027", "0?s-CONGESTION,1()") in new stack -- Executing [s@macro-dial-one:56] MacroExit("SIP/GoIP1-00000027", "") in new stack -- Executing [s@macro-exten-vm:15] Set("SIP/GoIP1-00000027", "SV_DIALSTATUS=CONGESTION") in new stack -- Executing [s@macro-exten-vm:16] GosubIf("SIP/GoIP1-00000027", "0?docfu,1()") in new stack -- Executing [s@macro-exten-vm:17] GosubIf("SIP/GoIP1-00000027", "0?docfb,1()") in new stack -- Executing [s@macro-exten-vm:18] Set("SIP/GoIP1-00000027", "DIALSTATUS=CONGESTION") in new stack -- Executing [s@macro-exten-vm:19] ExecIf("SIP/GoIP1-00000027", "0?MacroExit()") in new stack -- Executing [s@macro-exten-vm:20] GotoIf("SIP/GoIP1-00000027", "1?s-CONGESTION,1") in new stack -- Goto (macro-exten-vm,s-CONGESTION,1) -- Executing [s-CONGESTION@macro-exten-vm:1] GotoIf("SIP/GoIP1-00000027", "0?exit,1") in new stack -- Executing [s-CONGESTION@macro-exten-vm:2] PlayTones("SIP/GoIP1-00000027", "congestion") in new stack -- Executing [s-CONGESTION@macro-exten-vm:3] Congestion("SIP/GoIP1-00000027", "10") in new stack == Spawn extension (macro-exten-vm, s-CONGESTION, 3) exited non-zero on 'SIP/GoIP1-00000027' in macro 'exten-vm' == Spawn extension (from-internal, 1011, 2) exited non-zero on 'SIP/GoIP1-00000027' -- Executing [h@from-internal:1] Macro("SIP/GoIP1-00000027", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/GoIP1-00000027", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall:3] ExecIf("SIP/GoIP1-00000027", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] Hangup("SIP/GoIP1-00000027", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/GoIP1-00000027' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/GoIP1-00000027' Edited December 4, 2017 by vanohaker Вставить ник Quote
mikelog Posted December 4, 2017 Posted December 4, 2017 в гоипе надо настроить правила машрутизации звонков, в доке кетайской есть инфа Вставить ник Quote
vanohaker Posted December 4, 2017 Author Posted December 4, 2017 37 минут назад, mikelog сказал: в гоипе надо настроить правила машрутизации звонков, в доке кетайской есть инфа Спасибо что откликнулись. На сколько я понял вы об этом говорили? Спойлер Вставить ник Quote
vanohaker Posted December 5, 2017 Author Posted December 5, 2017 На сколько я понял в CID Prefix нужно написать цифру которая будет прибавлена к номеру звонящего при входящем. Я написал 99 в CID Prefix у меня получилось вот так Executing [s@sub-record-check:8] Set("SIP/GoIP1-0000000c", "__FROMEXTEN=99+79377200549") in new stack Теперь надо сделать так чтобы при входящем начинающимся на 99 у меня начиналось IVR меню. Я так понимаю это надо настраивать во входящей маршрутизации. Подскажите как правильно написать правило. Вставить ник Quote
Andrei Posted December 7, 2017 Posted December 7, 2017 58 минут назад, vanohaker сказал: Разобрался сам. Убивал бы за такие ответы. Вставить ник Quote
mikelog Posted December 14, 2017 Posted December 14, 2017 В 07.12.2017 в 13:08, Andrei сказал: Убивал бы за такие ответы. у китайцев более чем исцепрывающая инструкция на такую штатную конфигурацию. у меня например при входящем звонке надо было заменять 7ку на 8 раздел Call In CID Prefix 7:-7+8 - это подмена циферки в АОН. А товарищу видимо нужна была часть Forwarding to VoIP Number 4441 Dial Plan 4: у меня так входящие роутились на астериск. Вставить ник Quote
k781 Posted February 27, 2018 Posted February 27, 2018 А ни кто не знает почему с гоипа не ходят смс ? Вставить ник Quote
danila77 Posted July 10, 2018 Posted July 10, 2018 В 14.12.2017 в 13:56, mikelog сказал: у меня например при входящем звонке надо было заменять 7ку на 8 раздел Call In CID Prefix 7:-7+8 - это подмена циферки в АОН. А +7 на 8 поменять знает кто? Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.