По потоку не приходит номер(dnid)
Сообщений: 28
|
По потоку не приходит номер(dnid)
Добрый день, подскажите пожалуйста как победить проблему: воткнул в Zaptel 2 потока - один от провайдера(Zap/g2) другой от атс(Zap/g1).
[default2]
exten => s,1,Answer()
exten => _X.,1,Answer()
exten => _X.,n,Dial(Zap/g1/${CALLERID(dnid)})
exten => _X.,n,Hangup()
- этот контекст работает и звонки от провайдера доходят до АТС и абонентов. А в другую сторону симметричный контекст работать отказался, после чего я решил вывести все переменный этого звонка - выглядит это следущим образом:
axsel-asterisk*CLI>
-- Executing [s@default:1] NoOp("Zap/2-1", "{DNIS} = ") in new stack
-- Executing [s@default:2] NoOp("Zap/2-1", "{RDNIS} = ") in new stack
-- Executing [s@default:3] NoOp("Zap/2-1", "{DNID} = ") in new stack
-- Executing [s@default:4] NoOp("Zap/2-1", "{TON} = ") in new stack
-- Executing [s@default:5] NoOp("Zap/2-1", "{ANI} = ") in new stack
-- Executing [s@default:6] NoOp("Zap/2-1", "{RGN} = ") in new stack
-- Executing [s@default:7] NoOp("Zap/2-1", "{OCN} = ") in new stack
-- Executing [s@default:8] NoOp("Zap/2-1", "{EXTEN} = s") in new stack
-- Executing [s@default:9] NoOp("Zap/2-1", "{CALLERID} = ") in new stack
-- Executing [s@default:10] NoOp("Zap/2-1", "{CALLERIDTNS} = ") in new stack
-- Executing [s@default:11] NoOp("Zap/2-1", "{CALLERIDTON} = ") in new stack
-- Executing [s@default:12] NoOp("Zap/2-1", "{CALLERIDANI} = ") in new stack
-- Executing [s@default:13] NoOp("Zap/2-1", "{CALLERIDANI2} = ") in new stack
-- Executing [s@default:14] NoOp("Zap/2-1", "{CALLERID(dnid)} = ") in new stack
-- Executing [s@default:15] NoOp("Zap/2-1", "{CALLERID(rdnis)} = ") in new stack
[Jul 11 12:48:09] ERROR[6744]: func_callerid.c:108 callerid_read: Unknown callerid data type 'tns'.
-- Executing [s@default:16] NoOp("Zap/2-1", "{CALLERID(tns)} = ") in new stack
-- Executing [s@default:17] NoOp("Zap/2-1", "{CALLERID(ton)} = 33") in new stack
-- Executing [s@default:18] NoOp("Zap/2-1", "{CALLERID(ani)} = 812357") in new stack
-- Executing [s@default:19] NoOp("Zap/2-1", "{CALLERID(ani2)} = 0") in new stack
-- Executing [s@default:20] NoOp("Zap/2-1", "{CALLERID(DNID)} = ") in new stack
-- Executing [s@default:21] NoOp("Zap/2-1", "{CALLERID(RDNIS)} = ") in new stack
[Jul 11 12:48:09] ERROR[6744]: func_callerid.c:108 callerid_read: Unknown callerid data type 'TNS'.
-- Executing [s@default:22] NoOp("Zap/2-1", "{CALLERID(TNS)} = ") in new stack
-- Executing [s@default:23] NoOp("Zap/2-1", "{CALLERID(TON)} = 33") in new stack
-- Executing [s@default:24] NoOp("Zap/2-1", "{CALLERID(ANI)} = 812357") in new stack
-- Executing [s@default:25] NoOp("Zap/2-1", "{CALLERID(ANI2)} = 0") in new stack
-- Executing [s@default:26] NoOp("Zap/2-1", "{CALLERIDNAME} = ") in new stack
-- Executing [s@default:27] NoOp("Zap/2-1", "{CALLERIDNUM} = ") in new stack
-- Executing [s@default:28] NoOp("Zap/2-1", "{CALLINGPRES} = 0") in new stack
-- Executing [s@default:29] NoOp("Zap/2-1", "{CHANNEL} = Zap/2-1") in new stack
-- Executing [s@default:30] NoOp("Zap/2-1", "{CONTEXT} = default") in new stack
-- Executing [s@default:31] NoOp("Zap/2-1", "{ENUM} =") in new stack
-- Executing [s@default:32] NoOp("Zap/2-1", "{CONTEXT} = default") in new stack
-- Accepting call from '812357' to 's' on channel 0/2, span 1
[Jul 11 12:48:10] WARNING[6744]: pbx.c:3624 __ast_pbx_run: Invalid extension '3', but no rule 'i' in context 'default'
-- Hungup 'Zap/2-1'
axsel-asterisk*CLI>
Правильно ли я понимаю что номер с атс не приходит? Подскажите что можно сделать в такой ситаци? Может что-то поправить на атс(ericsson bp250)?
Заранее спасибо.
|
Откуда: Одесса
Сообщений: 77
|
Re: По потоку не приходит номер(dnid)
Включи:
pri debug span 1
ну или спан 2, смотря куда у тебя включеня АТСка и покажи, что там по D-каналу бегает.
|
Сообщений: 28
|
Re: По потоку не приходит номер(dnid)
axsel-asterisk*CLI>
< Protocol Discriminator: Q.931 (8) len=29
< Call Ref: len= 2 (reference 36/0x24) (Originator)
< Message type: SETUP (5)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
< User information layer 1: A-Law (35)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
< [6c 0c 21 80 38 31 32 33 32 35 35 32 35 32]
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number not screened (0) '8123255252' ]
-- Making new call for cr 36
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
q931.c:3504 q931_receive: call 36 on channel 1 enters state 6 (Call Present)
q931.c:2769 q931_call_proceeding: call 36 on channel 1 enters state 9 (Incoming Call Proceeding)
> Protocol Discriminator: Q.931 (8) len=10
> Call Ref: len= 2 (reference 36/0x24) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: Reserved
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
[Jul 11 14:35:35] ERROR[6744]: func_callerid.c:108 callerid_read: Unknown callerid data type 'tns'.
[Jul 11 14:35:35] ERROR[6744]: func_callerid.c:108 callerid_read: Unknown callerid data type 'TNS'.
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
axsel-asterisk*CLI>
[Jul 11 14:35:45] WARNING[6744]: pbx.c:3636 __ast_pbx_run: Timeout, but no rule 't' in context 'default'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Incoming Call Proceeding, peerstate Outgoing call Proceeding
q931.c:2968 q931_disconnect: call 36 on channel 1 enters state 11 (Disconnect Request)
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 36/0x24) (Terminator)
> Message type: DISCONNECT (69)
> [08 02 81 90]LI>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 36/0x24) (Originator)
< Message type: RELEASE (77)
q931.c:3754 q931_receive: call 36 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 36/0x24) (Terminator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]LI>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
axsel-asterisk*CLI>
Это набирали номер 060 изнутри
|
Откуда: Одесса
Сообщений: 77
|
Re: По потоку не приходит номер(dnid)
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number not screened (0) '8123255252' ]
Т.е. calling номер (Номер А) оно сообщает в SETUPе. А вот called (Номер Б) нету ...
Надобы АТС попросить давать called party number.
|
Сообщений: 28
|
Re: По потоку не приходит номер(dnid)
Спасибо за совет, поковыряюсь в АТС.
Вот только одно мне не понятно - АТС этим портом подключена к провайдеру, и никаких проблем с исходящими звонками нет и не было, может можно как-то по другому получать called party number?
|
Откуда: Одесса
Сообщений: 77
|
Re: По потоку не приходит номер(dnid)
simion:
Вот только одно мне не понятно - АТС этим портом подключена к провайдеру, и никаких проблем с исходящими звонками нет и не было, может можно как-то по другому получать called party number?
Слушай а глянь в сторону overlap, enblock ... Может АТС-ка overlap-ом номер хочет отдать, т.е. SETUP а потом в INFORMATION сообщениях циферки слать будет.
Решения:
- переключить в enblock
- порыть астериск на предмет overlap.
В zapata.conf:
overlap=yes
overlapdial=yes
Правда я на астере overlap включать не пробовал.
Отпиши результаты. Интересно поможет или нет.
|
Сообщений: 28
|
Re: По потоку не приходит номер(dnid)
overlap не помог, на атс настроил что бы выдавала 7 цифр сразу
но теперь какая-то другая проблема - пока не пойму
axsel-asterisk*CLI>
-- Executing [3311010@default:1] Answer("Zap/5-1", "") in new stack
-- Executing [3311010@default:2] Dial("Zap/5-1", "Zap/g2/3311010") in new stack
-- Accepting call from '8123254657' to '3311010' on channel 0/5, span 1
-- Requested transfer capability: 0x00 - SPEECH
-- Called g2/3311010
-- Channel 0/2, span 1 got hangup request, cause 16
[Jul 14 10:13:31] WARNING[12232]: app_dial.c:756 wait_for_answer: Unable to forward voice frame
-- Hungup 'Zap/33-1'
== Spawn extension (default, 5726753, 2) exited non-zero on 'Zap/2-1'
-- Hungup 'Zap/2-1'
-- Channel 0/3, span 1 got hangup request, cause 16
-- Hungup 'Zap/0:3-1'
== Spawn extension (default2, 3255252, 2) exited non-zero on 'Zap/60-1'
-- Hungup 'Zap/60-1'
[Jul 14 10:13:32] WARNING[12232]: chan_zap.c:9954 pri_fixup_principle: Call specified, but not found?
-- Channel 0/4, span 1 got hangup request, cause 16
[Jul 14 10:13:38] WARNING[12232]: app_dial.c:756 wait_for_answer: Unable to forward voice frame
-- Hungup 'Zap/34-1'
== Spawn extension (default, 8911224, 2) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
axsel-asterisk*CLI>
|
Сообщений: 28
|
Re: По потоку не приходит номер(dnid)
Вот логи астериска с включенным дебаго на PRI
< Protocol Discriminator: Q.931 (8) len=39
< Call Ref: len= 2 (reference 36/0x24) (Originator)
< Message type: SETUP (5)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
< User information layer 1: A-Law (35)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
< [6c 0c 21 80 38 31 32 33 32 35 35 32 35 32]
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number not screened (0) '8123255252' ]
< [70 08 81 33 32 35 37 30 30 30]
< Called Number (len=10) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '3257000' ]
-- Making new call for cr 36
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
q931.c:3504 q931_receive: call 36 on channel 1 enters state 6 (Call Present)
q931.c:2769 q931_call_proceeding: call 36 on channel 1 enters state 9 (Incoming Call Proceeding)
> Protocol Discriminator: Q.931 (8) len=10
> Call Ref: len= 2 (reference 36/0x24) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: Reserved
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
-- Executing [3257000@default:1] NoOp("Zap/1-1", "{DNIS} = ") in new stack
-- Executing [3257000@default:2] NoOp("Zap/1-1", "{RDNIS} = ") in new stack
-- Executing [3257000@default:3] NoOp("Zap/1-1", "{DNID} = ") in new stack
-- Executing [3257000@default:4] NoOp("Zap/1-1", "{TON} = ") in new stack
-- Executing [3257000@default:5] NoOp("Zap/1-1", "{ANI} = ") in new stack
-- Executing [3257000@default:6] NoOp("Zap/1-1", "{RGN} = ") in new stack
-- Executing [3257000@default:7] NoOp("Zap/1-1", "{OCN} = ") in new stack
-- Executing [3257000@default:8] NoOp("Zap/1-1", "{EXTEN} = 3257000") in new stack
-- Executing [3257000@default:9] NoOp("Zap/1-1", "{CALLERID} = ") in new stack
-- Executing [3257000@default:10] NoOp("Zap/1-1", "{CALLERIDTNS} = ") in new stack
-- Executing [3257000@default:11] NoOp("Zap/1-1", "{CALLERIDTON} = ") in new stack
-- Executing [3257000@default:12] NoOp("Zap/1-1", "{CALLERIDANI} = ") in new stack
-- Executing [3257000@default:13] NoOp("Zap/1-1", "{CALLERIDANI2} = ") in new stack
-- Executing [3257000@default:14] NoOp("Zap/1-1", "{CALLERID(dnid)} = 3257000") in new stack
-- Executing [3257000@default:15] NoOp("Zap/1-1", "{CALLERID(rdnis)} = ") in new stack
[Jul 14 13:35:41] ERROR[12232]: func_callerid.c:108 callerid_read: Unknown callerid data type 'tns'.
-- Executing [3257000@default:16] NoOp("Zap/1-1", "{CALLERID(tns)} = ") in new stack
-- Executing [3257000@default:17] NoOp("Zap/1-1", "{CALLERID(ton)} = 33") in new stack
-- Executing [3257000@default:18] NoOp("Zap/1-1", "{CALLERID(ani)} = 8123255252") in new stack
-- Executing [3257000@default:19] NoOp("Zap/1-1", "{CALLERID(ani2)} = 0") in new stack
-- Executing [3257000@default:20] NoOp("Zap/1-1", "{CALLERID(DNID)} = 3257000") in new stack
-- Executing [3257000@default:21] NoOp("Zap/1-1", "{CALLERID(RDNIS)} = ") in new stack
[Jul 14 13:35:41] ERROR[12232]: func_callerid.c:108 callerid_read: Unknown callerid data type 'TNS'.
-- Executing [3257000@default:22] NoOp("Zap/1-1", "{CALLERID(TNS)} = ") in new stack
-- Executing [3257000@default:23] NoOp("Zap/1-1", "{CALLERID(TON)} = 33") in new stack
-- Executing [3257000@default:24] NoOp("Zap/1-1", "{CALLERID(ANI)} = 8123255252") in new stack
-- Executing [3257000@default:25] NoOp("Zap/1-1", "{CALLERID(ANI2)} = 0") in new stack
-- Executing [3257000@default:26] NoOp("Zap/1-1", "{CALLERIDNAME} = ") in new stack
-- Executing [3257000@default:27] NoOp("Zap/1-1", "{CALLERIDNUM} = ") in new stack
-- Executing [3257000@default:28] NoOp("Zap/1-1", "{CALLINGPRES} = 0") in new stack
-- Executing [3257000@default:29] NoOp("Zap/1-1", "{CHANNEL} = Zap/1-1") in new stack
-- Executing [3257000@default:30] NoOp("Zap/1-1", "{CONTEXT} = default") in new stack
-- Executing [3257000@default:31] NoOp("Zap/1-1", "{ENUM} =") in new stack
-- Executing [3257000@default:32] NoOp("Zap/1-1", "{CONTEXT} = default") in new stack
-- Executing [3257000@default:33] Answer("Zap/1-1", "") in new stack
q931.c:2902 q931_connect: call 36 on channel 1 enters state 10 (Active)
> Protocol Discriminator: Q.931 (8) len=14
> Call Ref: len= 2 (reference 36/0x24) (Terminator)
> Message type: CONNECT (7)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: Reserved
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
> [1e 02 81 82]LI>
> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
> Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]
-- Executing [3257000@default:34] Dial("Zap/1-1", "Zap/g2/3257000") in new stack
-- Accepting call from '8123255252' to '3257000' on channel 0/1, span 1
-- Requested transfer capability: 0x00 - SPEECH
-- Called g2/3257000
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 36/0x24) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 131/0x83) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 80 90]LI>
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Processing IE 8 (cs0, Cause)
q931.c:3779 q931_receive: call 32899 on channel 3 enters state 12 (Disconnect Indication)
-- Channel 0/3, span 1 got hangup request, cause 16
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request
q931.c:2920 q931_release: call 32899 on channel 3 enters state 19 (Release Request)
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 131/0x83) (Originator)
> Message type: RELEASE (77)
> [08 02 81 90]LI>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'Zap/3-1'
== Spawn extension (default2, 3255252, 2) exited non-zero on 'Zap/57-1'
-- Hungup 'Zap/57-1'
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 131/0x83) (Terminator)
< Message type: RELEASE COMPLETE (90)
q931.c:3719 q931_receive: call 32899 on channel 3 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
axsel-asterisk*CLI>
axsel-asterisk*CLI>
|
Откуда: Одесса
Сообщений: 77
|
Re: По потоку не приходит номер(dnid)
А зачем ${CALLERID(dnid)} ?
Почему в Dial просто ${EXTEN} не написать. И для чего Answer делаешь перед Dial ?
И по убирай NoOp-ы только засоряют. Called num мы уже добились.
Это походу дебаг на транке в сторону миниАТС. И видно, что до атски доходит CONNECT. Потом она даёт Connect ACK и затем именно миниАТС-ка и дропает звонок сообщением DISCONNECT ...
Сделай ещё дебаг в сторону оператора.
|
Сообщений: 28
|
Re: По потоку не приходит номер(dnid)
|
|