Имеется freepbx - ooh323 - panasonic tde 600.
Транк на пбх.
Код: Выделить всё
OOH323/$OUTNUM$@10.1.8.120
Выход с телефонов за панасоником через 9
Соответственно исход маршрут на пбх
1XXX все ок звонки идут на номера за панасоноком.
98XXXXXXXXXX - то же все ок. В транк кидается 98XXXXXXXXXX и выход в город чере панасоник тип топ.
Вчера вечером прилетел вопрос. Оказывается есть отдельно подключенный в панасоник линия, выход через которую осуществляется через 7. И далее идет 6 знак номер
Нашел на панасонике что в quick dial 7 это набор трех цифр 840. Длаее с телефона за панасоником набираю 7555555 все ок идет гудок. Или так же с телефона за панасоником 840555555 то же самое все ок.
Сделал маршрут на астериске что бы в транк ooh323 кидался номер, то прозвон не проходит.
Прилагаю дебаг рабочего звонка через астериск - панасоник - 98XXXXXXXXXX, c пбх на номера за панасоником и дебаг звонка который не срабатывает через панасоник на 6 знак номер.
Код: Выделить всё
- Executing [s@macro-dialout-trunk:24] Set("SIP/2288-00000a42", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [s@macro-dialout-trunk:25] NoOp("SIP/2288-00000a42", "CRM Finished") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/2288-00000a42", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/2288-00000a42", "1?Set(CONNECTEDLINE(num,i)=98926565XXXX)") in new stack
-- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/2288-00000a42", "1?Set(CONNECTEDLINE(name,i)=CID:2288)") in new stack
-- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/2288-00000a42", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)2288)") in new stack
-- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/2288-00000a42", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,34)
-- Executing [s@macro-dialout-trunk:34] Set("SIP/2288-00000a42", "pre_num=AMP:OOH323/") in new stack
-- Executing [s@macro-dialout-trunk:35] Set("SIP/2288-00000a42", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:36] Set("SIP/2288-00000a42", "post_num=@10.1.8.120") in new stack
-- Executing [s@macro-dialout-trunk:37] GotoIf("SIP/2288-00000a42", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,38)
-- Executing [s@macro-dialout-trunk:38] Set("SIP/2288-00000a42", "the_num=98926565XXXX") in new stack
-- Executing [s@macro-dialout-trunk:39] Dial("SIP/2288-00000a42", "OOH323/98926565XXXX@10.1.8.120,300,T") in new stack
-- Called OOH323/98926565XXXX@10.1.8.120
> 0x31274d0 -- Strict RTP learning after remote address set to: 10.1.8.121:12108
-- OOH323/10.1.8.120-2332 is making progress passing it to SIP/2288-00000a42
> 0x7fdb4004e500 -- Strict RTP switching to RTP target address 10.1.1.86:5062 as source
> 0x7fdb4004e500 -- Strict RTP learning complete - Locking on source address 10.1.1.86:5062
> 0x31274d0 -- Strict RTP switching to RTP target address 10.1.8.121:12108 as source
-- OOH323/10.1.8.120-2332 is ringing
Код: Выделить всё
-- Executing [s@macro-dialout-trunk:34] Set("SIP/2288-00000a45", "pre_num=AMP:OOH323/") in new stack
-- Executing [s@macro-dialout-trunk:35] Set("SIP/2288-00000a45", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:36] Set("SIP/2288-00000a45", "post_num=@10.1.8.120") in new stack
-- Executing [s@macro-dialout-trunk:37] GotoIf("SIP/2288-00000a45", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,38)
-- Executing [s@macro-dialout-trunk:38] Set("SIP/2288-00000a45", "the_num=1728") in new stack
-- Executing [s@macro-dialout-trunk:39] Dial("SIP/2288-00000a45", "OOH323/1728@10.1.8.120,300,T") in new stack
-- Called OOH323/1728@10.1.8.120
> 0x31274d0 -- Strict RTP learning after remote address set to: 10.1.8.121:12128
-- OOH323/10.1.8.120-2335 is ringing
> 0x31274d0 -- Strict RTP switching to RTP target address 10.1.8.121:12128 as source
== Spawn extension (macro-dialout-trunk, s, 39) exited non-zero on 'SIP/2288-00000a45' in macro 'dialout-trunk'
== Spawn extension (from-internal, 1728, 6) exited non-zero on 'SIP/2288-00000a45'
-- Executing [h@from-internal:1] Macro("SIP/2288-00000a45", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2288-00000a45", "1?theend") in new stack
Код: Выделить всё
Executing [s@macro-dialout-trunk:27] ExecIf("SIP/2288-00000a44", "1?Set(CONNECTEDLINE(num,i)=70YYYY)") in new stack
-- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/2288-00000a44", "1?Set(CONNECTEDLINE(name,i)=CID:2288)") in new stack
-- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/2288-00000a44", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)2288)") in new stack
-- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/2288-00000a44", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,34)
-- Executing [s@macro-dialout-trunk:34] Set("SIP/2288-00000a44", "pre_num=AMP:OOH323/") in new stack
-- Executing [s@macro-dialout-trunk:35] Set("SIP/2288-00000a44", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:36] Set("SIP/2288-00000a44", "post_num=@10.1.8.120") in new stack
-- Executing [s@macro-dialout-trunk:37] GotoIf("SIP/2288-00000a44", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,38)
-- Executing [s@macro-dialout-trunk:38] Set("SIP/2288-00000a44", "the_num=70YYYY") in new stack
-- Executing [s@macro-dialout-trunk:39] Dial("SIP/2288-00000a44", "OOH323/70YYYY@10.1.8.120,300,T") in new stack
-- Called OOH323/70YYYY@10.1.8.120
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:40] NoOp("SIP/2288-00000a44", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 27") in new stack
-- Executing [s@macro-dialout-trunk:41] GotoIf("SIP/2288-00000a44", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/2288-00000a44", "RC=27") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/2288-00000a44", "27,1") in new stack
-- Goto (macro-dialout-trunk,27,1)
-- Executing [27@macro-dialout-trunk:1] Goto("SIP/2288-00000a44", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/2288-00000a44", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 27 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] ExecIf("SIP/2288-00000a44", "1?Set(CALLERID(number)=2288)") in new stack
-- Executing [70YYYY@from-internal:7] Macro("SIP/2288-00000a44", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/2288-00000a44", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/2288-00000a44", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/2288-00000a44", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("SIP/2288-00000a44", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
-- <SIP/2288-00000a44> Playing 'all-circuits-busy-now.ulaw' (language 'ru')
> 0x7fdb4004e500 -- Strict RTP switching to RTP target address 10.1.1.86:5062 as source