Добрый день! Прошу сильно не пинать за несведущесть в вопросе - я в IP-телефонии новичок, но очень надо сделать. Есть наша рабочая АТС Panasonic, с нее я взял линию с номером 127. Использую шлюз Grandstream GXW4108. На астериске завел пользователя, транк и маршруты. На входящей маршрутизации сделал переадресацию на номер 101. Из астериски на внешнюю атс звонки проходят, а с Panasonic'а при звонке на 127 номер - гудки идут, но на шлюзе никакой индикации, а cli выдает:
-- Executing [127@from-internal:1] Set("SIP/127-0000000a", "__RINGTIMER=15") in new stack
-- Executing [127@from-internal:2] Macro("SIP/127-0000000a", "exten-vm,novm,127,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/127-0000000a", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/127-0000000a", "TOUCH_MONITOR=1476772386.10") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/127-0000000a", "AMPUSER=127") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/127-0000000a", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/127-0000000a", "1?Set(REALCALLERIDNUM=127)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/127-0000000a", "AMPUSER=127") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/127-0000000a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/127-0000000a", "AMPUSERCIDNAME=gs1") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/127-0000000a", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/127-0000000a", "AMPUSERCID=127") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/127-0000000a", "__DIAL_OPTIONS=tr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/127-0000000a", "CALLERID(all)="gs1" <127>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/127-0000000a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/127-0000000a", "0?Set(GROUP(concurrency_limit)=127)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/127-0000000a", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/127-0000000a", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] Set("SIP/127-0000000a", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("SIP/127-0000000a", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/127-0000000a", "CALLERID(number)=127") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/127-0000000a", "CALLERID(name)=gs1") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/127-0000000a", "CDR(cnum)=127") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/127-0000000a", "CDR(cnam)=gs1") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/127-0000000a", "CHANNEL(language)=ru") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/127-0000000a", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/127-0000000a", "__EXTTOCALL=127") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/127-0000000a", "__PICKUPMARK=127") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/127-0000000a", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] Gosub("SIP/127-0000000a", "sub-record-check,s,1(exten,127,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/127-0000000a", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/127-0000000a", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/127-0000000a", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/127-0000000a", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/127-0000000a", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/127-0000000a", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/127-0000000a", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/127-0000000a", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/127-0000000a", "NOW=1476772386") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/127-0000000a", "__DAY=18") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/127-0000000a", "__MONTH=10") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/127-0000000a", "__YEAR=2016") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/127-0000000a", "__TIMESTR=20161018-093306") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/127-0000000a", "__FROMEXTEN=127") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/127-0000000a", "__CALLFILENAME=exten-127-127-20161018-093306-1476772386.10") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/127-0000000a", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/127-0000000a", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/127-0000000a", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/127-0000000a", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/127-0000000a", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/127-0000000a", "0?record,1(exten,127,127)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/127-0000000a", "") in new stack
-- Executing [s@macro-exten-vm:7] Macro("SIP/127-0000000a", "dial-one,,tr,127") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/127-0000000a", "DEXTEN=127") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/127-0000000a", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/127-0000000a", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/127-0000000a", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/127-0000000a", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/127-0000000a", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/127-0000000a", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/127-0000000a", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/127-0000000a", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("SIP/127-0000000a", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("SIP/127-0000000a", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("SIP/127-0000000a", "0?continue") in new stack
-- Executing [s@macro-dial-one:18] ExecIf("SIP/127-0000000a", "0?Set(DIALSTATUS=BUSY)") in new stack
-- Executing [s@macro-dial-one:19] GotoIf("SIP/127-0000000a", "0?cwinusebusy") in new stack
-- Executing [s@macro-dial-one:20] Set("SIP/127-0000000a", "DEXTEN=") in new stack
-- Executing [s@macro-dial-one:21] Set("SIP/127-0000000a", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-dial-one:22] Goto("SIP/127-0000000a", "nodial") in new stack
-- Goto (macro-dial-one,s,48)
-- Executing [s@macro-dial-one:48] ExecIf("SIP/127-0000000a", "0?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [s@macro-dial-one:49] NoOp("SIP/127-0000000a", "Returned from dial-one with nothing to call and DIALSTATUS: BUSY") in new stack
-- Executing [s@macro-dial-one:50] MacroExit("SIP/127-0000000a", "") in new stack
-- Executing [s@macro-exten-vm:8] Set("SIP/127-0000000a", "SV_DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:9] GosubIf("SIP/127-0000000a", "0?docfu,1()") in new stack
-- Executing [s@macro-exten-vm:10] GosubIf("SIP/127-0000000a", "0?docfb,1()") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/127-0000000a", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:12] ExecIf("SIP/127-0000000a", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:13] GotoIf("SIP/127-0000000a", "1?s-BUSY,1") in new stack
-- Goto (macro-exten-vm,s-BUSY,1)
-- Executing [s-BUSY@macro-exten-vm:1] GotoIf("SIP/127-0000000a", "0?exit,1") in new stack
-- Executing [s-BUSY@macro-exten-vm:2] PlayTones("SIP/127-0000000a", "busy") in new stack
-- Executing [s-BUSY@macro-exten-vm:3] Busy("SIP/127-0000000a", "20") in new stack
== Spawn extension (macro-exten-vm, s-BUSY, 3) exited non-zero on 'SIP/127-0000000a' in macro 'exten-vm'
== Spawn extension (from-internal, 127, 2) exited non-zero on 'SIP/127-0000000a'
-- Executing [h@from-internal:1] Hangup("SIP/127-0000000a", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/127-0000000a'
Если что-то еще надо указать - напишите, скопипастю. Заранее благодарен за любую помощь
когда "очень надо сделать" нанимают внешнего консультанта. По вашему логу сложно сказать в чем проблема.
обратите внимание на вот эту строчку
uting [s@macro-dial-one:11] GotoIf("SIP/127-0000000a", "1?next1:cwinusebusy") in new stack
посмотрите у себя в диалплане какое там условие с 11м приоритетом. Похоже гдето считает, что у вас занято(или DND включено)
Задан: 2016-10-18 10:49:57 +0400
Просмотрен: 317 раз
Обновлен: Oct 19 '16
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.
посмотрел диалплан, на 11-м приоритете такая строка exten => s,n,GotoIf($["${EXTHASCW}"="" | "${DB(CFB/${DEXTEN})}"!="" | "${DB(CFU/${DEXTEN})}"!=""]?next1:cwinusebusy) DND проверил - нет включенных
rex512 ( 2016-10-20 17:31:18 +0400 )редактировать