Asterisk

IP телефония и SIP-номера

Asterisk

Сообщение localhost2005 » 27 авг 2009, 11:02

Ну как всегда не без проблем
Есть FreeBSD 7.0 + Asterisk 1.4.25 + Asterisk GUI
Проблема.
Транк SIP поднимаеться,
а при звонке не происходит соединение с sip.comtube.ru
на работоспособность не грешу так как подключены sipnet.ru и nonoh.net

nonoh.net - работает

-- Executing [874951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a139000", "trunkdial-failover-0.3|SIP/localhost2005/74951000000||localhost2005|201638") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a139000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a139000", "0?1-setgbobname|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a139000", "CALLERID(num)=") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a139000", "0?1-dial|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a139000", "CALLERID(all)=localhost2005") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a139000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a139000", "SIP/localhost2005/74951000000") in new stack
-- Called localhost2005/74951000000
-- SIP/localhost2005-29324000 is making progress passing it to SIP/6000-2a139000
-- SIP/localhost2005-29324000 answered SIP/6000-2a139000
[Aug 27 11:04:00] WARNING[23681]: chan_sip.c:13295 handle_response: Host '194.120.0.198' does not implement 'UPDATE'

sipnet.ru - работает

-- Executing [974951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a11a000", "trunkdial-failover-0.3|SIP/3241382/74951000000||3241382|localhost2005") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a11a000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0?1-setgbobname|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a11a000", "CALLERID(num)=") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a11a000", "0?1-dial|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a11a000", "CALLERID(all)=3241382") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a11a000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a11a000", "SIP/3241382/74951000000") in new stack
-- Called 3241382/74951000000
-- SIP/3241382-2a146000 is ringing
-- SIP/3241382-2a146000 is making progress passing it to SIP/6000-2a11a000
-- SIP/3241382-2a146000 answered SIP/6000-2a11a000
== Spawn extension (macro-trunkdial-failover-0.3, 1-dial, 1) exited non-zero on 'SIP/6000-2a11a000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan_MY, 974951000000, 1) exited non-zero on 'SIP/6000-2a11a000'

comtube.ru - НЕ работает
== Parsing '/usr/local/etc/asterisk/asterisk.conf': Found
== Parsing '/usr/local/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.25 currently running on ns (pid = 23681)
Verbosity is at least 9
-- Executing [874951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a11a000", "trunkdial-failover-0.3|SIP/201638/74951000000||201638|201638") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a11a000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0?1-setgbobname|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a11a000", "CALLERID(num)=") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a11a000", "0?1-dial|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a11a000", "CALLERID(all)=") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a11a000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a11a000", "SIP/201638/74951000000") in new stack
-- Called 201638/74951000000
-- Got SIP response 415 "Unsupported Media Type" back from 62.117.120.98
== Everyone is busy/congested at this time (1:0/0/1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Dial
-- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0 > 0 ?1-CHANUNAVAIL|1:1-out|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-out,1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Gotoif
-- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/6000-2a11a000", "") in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/6000-2a11a000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan_MY, 874951000000, 1) exited non-zero on 'SIP/6000-2a11a000'
localhost2005
 
Сообщения: 4
Зарегистрирован: 26 авг 2009, 18:10

Re: Asterisk

Сообщение alg » 27 авг 2009, 13:51

Данная ошибка может проявляться в том случае, если стороны не могут договориться о кодеках при передаче голоса. Также (но это редко бывает), когда одна из сторон пытается передавать видео, а вторая сторона такой возможности не поддерживает. Убедитесь, что с кодеками все в порядке и никаких экзотических кодеков не используется.
У любой аварии есть фамилия, имя и отчество.
Аватара пользователя
alg
Why so serious?
 
Сообщения: 649
Зарегистрирован: 31 июл 2009, 13:11
Откуда: Москва

Re: Asterisk

Сообщение localhost2005 » 27 авг 2009, 15:31

Продолжение борьбы со звонками
через несколько часов ошибка пропала

появилась новая
SIP/2.0 513 Message too big - сервер не в состоянии обработать запрос из-за большой длины сообщения
Звонок на 74951000000 через правило 84951000000

-- Got SIP response 489 "Unknown event package" back from 212.53.40.40
-- Executing [84951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a164000", "trunkdial-failover-0.3|SIP/201638/$7{EXTEN:1}||201638|201638") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a164000", "0?1-fmsetcid|1") in new stack
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a164000", "0?1-setgbobname|1") in new stack
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a164000", "CALLERID(num)=") in new stack
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a164000", "0?1-dial|1") in new stack
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a164000", "CALLERID(all)=") in new stack
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a164000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 15:28:12] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a164000", "SIP/201638/$7{EXTEN:1}") in new stack
-- Called 201638/$7{EXTEN:1}
[Aug 27 15:28:42] WARNING[23681]: chan_sip.c:12708 handle_response_invite: Re-invite to non-existing call leg on other UA. SIP dialog '3c2c53c646de11f61266dbc24fec8f8e@sip.comtube.ru'. Giving up.
-- SIP/201638-29422000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
[Aug 27 15:28:42] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Dial
-- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a164000", "0 > 0 ?1-CONGESTION|1:1-out|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-out,1)
[Aug 27 15:28:42] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Gotoif
-- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/6000-2a164000", "") in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/6000-2a164000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan_MY, 84951000000, 1) exited non-zero on 'SIP/6000-2a164000'
-- Got SIP response 513 "Message too big" back from 62.117.120.98
localhost2005
 
Сообщения: 4
Зарегистрирован: 26 авг 2009, 18:10

Re: Asterisk

Сообщение localhost2005 » 27 авг 2009, 17:49

При использовании Ваш номер, для звонка с телефонной сети: +7 (495) 956-88-50 доб. XXXXXX
Происходит следуещее
раза 4 говорят введите номер из 6 цифр, после 4 происходит переадресация к абоненту
localhost2005
 
Сообщения: 4
Зарегистрирован: 26 авг 2009, 18:10

Re: Asterisk

Сообщение sd » 27 авг 2009, 21:11

Это происходит из-за того, что не детектируются DTMF сигналы. Возможно, по причине искажения. Вы откуда звоните?
Аватара пользователя
sd
 
Сообщения: 5184
Зарегистрирован: 31 июл 2009, 13:11

Re: Asterisk

Сообщение localhost2005 » 31 авг 2009, 16:14

С пердыдущими вопросами разобрались. Спасибо
теперь другая проблема имеем два аккаунта XXXXX1 и XXXXX2
при наборе
+7 (495) 956-88-50 доб. XXXXX1 соединение в логах пишет XXXXX2
вчем косяк

-- Executing [s@DID_XXXXX2:1] Goto("SIP/XXXXX2-29f55000", "default|6003|1") in new stack
-- Goto (default,6003,1)
-- Executing [6003@default:1] Macro("SIP/XXXXX2-29f55000", "stdexten|6003|SIP/6003&IAX2/6003&H323/6003") in new stack
-- Executing [s@macro-stdexten:1] Dial("SIP/XXXXX2-29f55000", "SIP/6003&IAX2/6003&H323/6003|20") in new stack
[Aug 31 16:26:01] WARNING[82475]: app_dial.c:1272 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Aug 31 16:26:01] WARNING[82475]: app_dial.c:1272 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
[Aug 31 16:26:01] WARNING[82475]: chan_h323.c:1667 create_addr: No such host: 6003
[Aug 31 16:26:01] WARNING[82475]: app_dial.c:1272 dial_exec_full: Unable to create channel of type 'H323' (cause 27 - Destination out of order)
== Everyone is busy/congested at this time (3:0/0/3)
-- Executing [s@macro-stdexten:2] Goto("SIP/XXXXX2-29f55000", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-stdexten,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-stdexten:1] Goto("SIP/XXXXX2-29f55000", "s-NOANSWER|1") in new stack
-- Goto (macro-stdexten,s-NOANSWER,1)
-- Executing [s-NOANSWER@macro-stdexten:1] VoiceMail("SIP/XXXXX2-29f55000", "6003|u") in new stack
-- <SIP/XXXXX2-29f55000> Playing 'vm-theperson' (language 'ru')
-- <SIP/XXXXX2-29f55000> Playing 'digits/6' (language 'ru')
-- <SIP/XXXXX2-29f55000> Playing 'digits/0' (language 'ru')
-- <SIP/XXXXX2-29f55000> Playing 'digits/0' (language 'ru')
-- <SIP/XXXXX2-29f55000> Playing 'digits/3' (language 'ru')
-- <SIP/XXXXX2-29f55000> Playing 'vm-isunavail' (language 'ru')
== Spawn extension (macro-stdexten, s-NOANSWER, 1) exited non-zero on 'SIP/XXXXX2-29f55000' in macro 'stdexten'
== Spawn extension (default, 6003, 1) exited non-zero on 'SIP/XXXXX2-29f55000'
localhost2005
 
Сообщения: 4
Зарегистрирован: 26 авг 2009, 18:10


Вернуться в IP-телефония

Просмотр страницы «Кто сейчас на форуме COMTUBE»

Сейчас этот форум просматривают: Majestic-12 [Bot] и гости: 2