Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / Конфигурация и настройка / Обрыв звонка при IAX соединении

Обрыв звонка при IAX соединении

Сообщений: 91

Обрыв звонка при IAX соединении

см. след.
2007-05-19 15:30

Сообщений: 91

Re: Обрыв звонка при IAX соединении

Схема следующая: 2 города, 2 астериска. К обоим по SIP подключены несколько FXS.
Хочу между астерисками поднять IAX2.

1й город.
iax.conf

[perm]
type=friend
host=192.168.161.254
username=perm
secret=utf8
context=default


extensions.conf

exten => 204,2,Dial(IAX2/nv:blah@perm/150@default)

2й город
iax.conf

[nv]
user=nv
type=friend
secret=blah
host=192.168.164.254
context=default

extensions.conf

[default]
exten => 150,1,Answer
exten => 150,2,Background(demo-congrats)

Звонок приходит, слышу пару фраз и звонок обрывается. Вот дебаги:

1й город
May 19 17:43:05 DEBUG[46632]: chan_sip.c:7374 check_user_full: Setting NAT on RTP to 0
May 19 17:43:05 DEBUG[46632]: chan_sip.c:10628 handle_request_invite: Checking SIP call limits for device 400
May 19 17:43:05 DEBUG[46632]: chan_sip.c:6267 build_route: build_route: Contact hop: <sip:192.168.164.118>
-- Executing Answer("SIP/400-08c24000", "") in new stack
-- Executing Dial("SIP/400-08c24000", "IAX2/nv:blah@perm/150@default") in new stack
-- Called nv:blah@perm/150@default
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00004ms SCall: 00001 DCall: 00000 [192.168.161.254:4569]
VERSION : 2
CALLED NUMBER : 150
CODEC_PREFS : (gsm)
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
LANGUAGE : en
CALLED CONTEXT : default
USERNAME : nv
FORMAT : 1538
CAPABILITY : 65283
ADSICPE : 2
DATE TIME : 2007-05-19 17:43:04

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00015ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
AUTHMETHODS : 3
CHALLENGE : 140560937
USERNAME : nv

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP
Timestamp: 00106ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
MD5 RESULT : 4b8d15a7f1a9e0c00c476898ab8a7eb5

May 19 17:43:06 DEBUG[46632]: chan_sip.c:1413 __sip_ack: Stopping retransmission on 'a59e2d46-2763-2753-84ef-0002a4038e86@192.168.164.118' of Response 292: Match Found
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACCEPT
Timestamp: 00116ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
FORMAT : 2

-- Call accepted by 192.168.161.254 (format gsm)
-- Format for call is (gsm)
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00116ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: CONTROL Subclass: ANSWER
Timestamp: 00119ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 003 Type: IAX Subclass: ACK
Timestamp: 00119ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 002 Type: VOICE Subclass: 2
Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
May 19 17:43:06 DEBUG[46632]: chan_iax2.c:6771 socket_read: Ooh, voice format changed to 2
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 004 Type: IAX Subclass: ACK
Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
-- IAX2/perm-1 answered SIP/400-08c24000
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 004 Type: VOICE Subclass: 2
Timestamp: 00191ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 003 Type: IAX Subclass: ACK
Timestamp: 00191ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
May 19 17:43:07 DEBUG[46632]: chan_sip.c:1335 __sip_autodestruct: Auto destroying call '41bf2646-7a58-c13d-8000-0002a4038e86@192.168.164.118'
May 19 17:43:07 DEBUG[46632]: chan_sip.c:1335 __sip_autodestruct: Auto destroying call '41bf2646-3393-a67a-8001-0002a4038e86@192.168.164.118'
Rx-Frame Retry[Yes] -- OSeqno: 004 ISeqno: 003 Type: IAX Subclass: HANGUP
Timestamp: 00161ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
CAUSE CODE : 0

May 19 17:43:08 DEBUG[46632]: chan_iax2.c:7064 socket_read: Immediately destroying 1, having received hangup
Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 005 Type: IAX Subclass: ACK
Timestamp: 00161ms SCall: 00001 DCall: 00001 [192.168.161.254:4569]
May 19 17:43:08 DEBUG[46632]: channel.c:3394 ast_generic_bridge: Didn't get a frame from channel: IAX2/perm-1
May 19 17:43:08 DEBUG[46632]: channel.c:3680 ast_channel_bridge: Bridge stops bridging channels SIP/400-08c24000 and IAX2/perm-1
May 19 17:43:08 DEBUG[46632]: chan_iax2.c:3094 iax2_hangup: We're hanging up IAX2/perm-1 now...
May 19 17:43:08 DEBUG[46632]: chan_iax2.c:3104 iax2_hangup: Really destroying IAX2/perm-1 now...
-- Hungup 'IAX2/perm-1'
May 19 17:43:08 DEBUG[46632]: app_dial.c:1635 dial_exec_full: Exiting with DIALSTATUS=ANSWER.
== Spawn extension (infxo, 204, 2) exited non-zero on 'SIP/400-08c24000'





2й город:
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00004ms SCall: 00001 DCall: 00000 [192.168.164.254:4569]
VERSION : 2
CALLED NUMBER : 150
CODEC_PREFS : (gsm)
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
LANGUAGE : en
CALLED CONTEXT : default
USERNAME : nv
FORMAT : 1538
CAPABILITY : 65283
ADSICPE : 2
DATE TIME : 2007-05-19 17:43:04

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00015ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
AUTHMETHODS : 3
CHALLENGE : 140560937
USERNAME : nv

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP
Timestamp: 00106ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
MD5 RESULT : 4b8d15a7f1a9e0c00c476898ab8a7eb5

-- Accepting AUTHENTICATED call from 192.168.164.254:
> requested format = unknown,
> requested prefs = (gsm),
> actual format = gsm,
> host prefs = (gsm),
> priority = mine
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACCEPT
Timestamp: 00116ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
FORMAT : 2

-- Executing Answer("IAX2/nv-1", "") in new stack
-- Executing BackGround("IAX2/nv-1", "demo-congrats") in new stack
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: CONTROL Subclass: ANSWER
Timestamp: 00119ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
-- Playing 'demo-congrats' (language 'en')
Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 002 Type: VOICE Subclass: 2
Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
May 19 17:41:59 WARNING[1174]: file.c:587 ast_readaudio_callback: Failed to write frame
== Spawn extension (default, 150, 2) exited non-zero on 'IAX2/nv-1'

May 19 17:41:59 DEBUG[1174]: chan_iax2.c:3094 iax2_hangup: We're hanging up IAX2/nv-1 now...
-- Hungup 'IAX2/nv-1'
Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 002 Type: IAX Subclass: HANGUP
Timestamp: 00161ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
CAUSE CODE : 0

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00116ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX Subclass: ACK
Timestamp: 00119ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 004 Type: IAX Subclass: ACK
Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 004 Type: VOICE Subclass: 2
Timestamp: 00191ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
May 19 17:41:59 DEBUG[1174]: chan_iax2.c:6771 socket_read: Ooh, voice format changed to 2
Tx-Frame Retry[-01] -- OSeqno: 004 ISeqno: 003 Type: IAX Subclass: ACK
Timestamp: 00191ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
Tx-Frame Retry[001] -- OSeqno: 004 ISeqno: 003 Type: IAX Subclass: HANGUP
Timestamp: 00161ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]
CAUSE CODE : 0

Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 005 Type: IAX Subclass: ACK
Timestamp: 00161ms SCall: 00001 DCall: 00001 [192.168.164.254:4569]


Причем если такой же звонок пропустить по SIP, то он пройдет. В чем может быть затык?
Буду благодарен любой помощи.
2007-05-19 16:00

Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru