Доброго времени суток. Проблема в следующем. Установлен Elastix 2.4.0, Asterisk 1.8.20, a2billing 1.9.4. При наборе абонентом номера 999 он направляется в a2b и система просит ввести пин код. Абонент набирает пин код и если пин верный то сообщается баланс и система просит ввести номер абонента. При наборе номера абонента система сообщает что "номер недоступен".
К а2б звонок направляется следующим образом: Есть транк с строкой регистрации "Local/$OUTNUM$@a2billing/n". Есть исход. маршрут который направляет на данный транк вызовы на номер "999".
После корректного пина пытаюсь направить абонента на вызываемый номер следующим образом:
Завел провайдера в а2б, завел транк в а2б( указал существующий в еластиксе транк в строке PROVIDER IP(транк рабочий)), завел тарифы при которых вызов идет через указанный транк.
Консоль CLI говорит следующее:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [999@from-internal:1] Macro("SIP/1001-0000000c", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1001-0000000c", "AMPUSER=1001") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1001-0000000c", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1001-0000000c", "1?Set(REALCALLERIDNUM=1001)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1001-0000000c", "AMPUSER=1001") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1001-0000000c", "AMPUSERCIDNAME=1001") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1001-0000000c", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1001-0000000c", "AMPUSERCID=1001") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1001-0000000c", "CALLERID(all)="1001" <1001>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1001-0000000c", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1001-0000000c", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/1001-0000000c", "CALLERID(number)=1001") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/1001-0000000c", "CALLERID(name)=1001") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/1001-0000000c", "Using CallerID "1001" <1001>") in new stack
-- Executing [999@from-internal:2] NoOp("SIP/1001-0000000c", "Calling Out Route: 9_outside") in new stack
-- Executing [999@from-internal:3] Set("SIP/1001-0000000c", "MOHCLASS=default") in new stack
-- Executing [999@from-internal:4] Set("SIP/1001-0000000c", "_NODEST=") in new stack
-- Executing [999@from-internal:5] Macro("SIP/1001-0000000c", "record-enable,1001,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/1001-0000000c", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/1001-0000000c", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/1001-0000000c", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/1001-0000000c", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/1001-0000000c", "1?MacroExit()") in new stack
-- Executing [999@from-internal:6] Macro("SIP/1001-0000000c", "dialout-trunk,3,999,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-0000000c", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1001-0000000c", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-0000000c", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-0000000c", "DIAL_NUMBER=999") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-0000000c", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-0000000c", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-0000000c", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-0000000c", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-0000000c", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-0000000c", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-0000000c", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1001-0000000c", "0?Set(REALCALLERIDNUM=1001)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1001-0000000c", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/1001-0000000c", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/1001-0000000c", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/1001-0000000c", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1001-0000000c", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1001-0000000c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1001-0000000c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1001-0000000c", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1001-0000000c", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/1001-0000000c", "0?sub-flp-3,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-0000000c", "OUTNUM=999") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-0000000c", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1001-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/1001-0000000c", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1001-0000000c", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1001-0000000c", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-0000000c", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,22)
-- Executing [s@macro-dialout-trunk:22] Set("SIP/1001-0000000c", "pre_num=AMP:Local/") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/1001-0000000c", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:24] Set("SIP/1001-0000000c", "post_num=@a2billing/n") in new stack
-- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/1001-0000000c", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,26)
-- Executing [s@macro-dialout-trunk:26] Set("SIP/1001-0000000c", "the_num=999") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("SIP/1001-0000000c", "Local/999@a2billing/n,300,") in new stack
-- Called Local/999@a2billing/n
-- Executing [999@a2billing:1] NoOp("Local/999@a2billing-00000008;2", "A2Billing Start") in new stack
-- Executing [999@a2billing:2] DeadAGI("Local/999@a2billing-00000008;2", "a2billing.php,1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- Local/999@a2billing-00000008;1 answered SIP/1001-0000000c
-- <Local/999@a2billing-00000008;2> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- <Local/999@a2billing-00000008;2> Playing 'digits/1.gsm' (language 'ru')
-- Playing 'dollar' (escape_digits=#) (sample_offset 0)
-- <Local/999@a2billing-00000008;2> Playing 'prepaid-enter-dest.gsm' (language 'ru')
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
-- <Local/999@a2billing-00000008;2> Playing 'prepaid-enter-dest.gsm' (language 'ru')
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
-- <Local/999@a2billing-00000008;2> Playing 'prepaid-enter-dest.gsm' (language 'ru')
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
-- <Local/999@a2billing-00000008;2>AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing, 999, 2) exited non-zero on 'Local/999@a2billing-00000008;2'
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/1001-0000000c", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/1001-0000000c", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/1001-0000000c", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/1001-0000000c", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("SIP/1001-0000000c", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/1001-0000000c", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("SIP/1001-0000000c", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/1001-0000000c", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("SIP/1001-0000000c", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/1001-0000000c", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/1001-0000000c", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/1001-0000000c", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("SIP/1001-0000000c", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/1001-0000000c>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("SIP/1001-0000000c", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/1001-0000000c' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/1001-0000000c'
== Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/1001-0000000c' in macro 'dialout-trunk'
== Spawn extension (from-internal, 999, 6) exited non-zero on 'SIP/1001-0000000c'
Жду Ваших авторитетных мнений. Спасибо.
настройте авторизацию в a2b и поставте в поле account в extension username карточки.
Задан: 2013-08-24 12:27:53 +0400
Просмотрен: 620 раз
Обновлен: Aug 25 '13
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.
Авторитетно заявляю. Лог - красивый. Автор - лентяй.
zzuz ( 2013-08-24 13:07:15 +0400 )редактировать