[AsteriskBrasil] Tronco iax

Marcio Mitsuo Kobayashi marcio em mmkobayashi.com.br
Sexta Junho 27 18:06:50 BRT 2008


Pessoal

Tenho um tronco IAX funcionando perfeitamente e mesmo após a troca de um 
dos lados por asterisk 1.4 funciona perfeitamente, mas dá um tempo e o 
tronco cai, só volta se reiniciar o servidor com a versao 1.4.21.

Alguem já enfrentou algo parecido?


Versões Usadas:
Antigo: asterisk em home, asterisk1.2.4
iax.conf
[general]
bindport = 4569           ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ilbc
allow=ulaw
allow=alaw

[recebe]
type=user
user=recebe
auth=plaintext
context=rec-iax-bru
secret=senha
host=ip-do-outro-srv
qualify=yes
trunk=yes

[liga]
type=peer
host=ip-do-outro-srv
secret=23nad02d
context=default
qualify=yes
trunk=yes


Novo:Debian com asterisk 1.4.21
iax.conf
[general]
bindport = 4569           ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ilbc
allow=ulaw
allow=alaw

[pbx-lis]
type=peer
host=ip-outro-servidor
secret=senha
context=default
qualify=yes
;trunk=yes

[velus-recebe]
type=user
secret=senha
context=rec-iax-lis
trunk=yes
qualify=yes


Log do full no momento que que o tronco cai, retirado do PBX 1.2.4
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Registered extension 
context 'rec-iax-bru'
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Including context 
'lig-ramal' in context 'rec-iax-bru'
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Including context 
'lig-gua' in context 'rec-iax-bru'
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Including context 
'lig-lis' in context 'rec-iax-bru'
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Including switch 
'IAX2/recebe:senha em pbx./rec-iax-lis' in context
Jun 27 15:23:53 VERBOSE[14930] logger.c:     -- Reloading module 
'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
Jun 27 15:23:53 VERBOSE[14930] logger.c:   == Parsing 
'/etc/asterisk/iax.conf': Jun 27 15:23:53 VERBOSE[14930] logger.c:   == 
Parsing '/etc/asterisk/iax.conf
': Found
Jun 27 15:23:53 NOTICE[14930] chan_iax2.c: Ignoring bindport on reload
Jun 27 15:23:53 NOTICE[14930] chan_iax2.c: Ignoring bindaddr on reload
Jun 27 15:23:53 VERBOSE[14930] logger.c:   == Loaded firmware 'iaxy.bin'
Jun 27 15:23:53 VERBOSE[14930] logger.c:   == Parsing 
'/etc/asterisk/iaxprov.conf': Jun 27 15:23:53 VERBOSE[14930] logger.c:   
== Parsing '/etc/asterisk/iaxp
rov.conf': Found
Jun 27 15:23:53 DEBUG[8378] chan_iax2.c: Peer lastms 27, historicms 27, 
maxms 2000
Jun 27 15:24:53 DEBUG[8378] chan_iax2.c: Peer lastms 27, historicms 27, 
maxms 2000
Jun 27 15:25:53 DEBUG[8378] chan_iax2.c: Peer lastms 23, historicms 23, 
maxms 2000
Jun 27 15:26:53 DEBUG[8378] chan_iax2.c: Peer lastms 23, historicms 23, 
maxms 2000
Jun 27 15:27:02 DEBUG[14936] chan_iax2.c: peer: pbx-bru., username: 
recebe, password: xxxxxxxxx, context: (null)
Jun 27 15:27:02 VERBOSE[14936] logger.c:     -- Executing 
Dial('IAX2/recebe:xxxxxxx em pbx-bru/s em rec-iax-lis')
Jun 27 15:27:02 VERBOSE[14936] logger.c:     -- 
Calledrecebe:2xxxxxxx em pbx-bru/s em rec-iax-lis
Jun 27 15:27:03 DEBUG[8378] chan_iax2.c: Ooh, voice format changed to 1024
Jun 27 15:27:03 DEBUG[8378] chan_iax2.c: Created trunk peer for 
'xxx.xxx.xxx.xxx:4569'
Jun 27 15:27:53 DEBUG[8378] chan_iax2.c: Peer lastms 25, historicms 25, 
maxms 2000
Jun 27 15:28:53 DEBUG[8378] chan_iax2.c: Peer lastms 19, historicms 19, 
maxms 2000
Jun 27 15:29:47 VERBOSE[14954] logger.c:   == Spawn extension 
(rec-iax-bru, 5069, 2) exited non-zero on 'IAX2/velus-liga-3'
Jun 27 15:29:47 DEBUG[14954] cdr_addon_mysql.c: cdr_mysql: SQL command 
as follows: INSERT INTO cdr 
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp
,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) 
VALUES ('2008-06-27 15:29:47','\"5081\" 
<5081>','5081','5069','rec-iax-bru', 'IAX2/velu
s-liga-3','','Hangup','',0,0,'FAILED',3,'','1214591387.546')
Jun 27 15:29:47 DEBUG[14954] chan_iax2.c: We're hanging up 
IAX2/velus-liga-3 now...
Jun 27 15:29:53 DEBUG[8378] chan_iax2.c: Peer lastms 33, historicms 33, 
maxms 2000
Jun 27 15:30:53 DEBUG[8378] chan_iax2.c: Peer lastms 33, historicms 33, 
maxms 2000
Jun 27 15:31:18 DEBUG[14968] chan_iax2.c: Expanded trunk 
'xxx.xxx.xxx.xxx:4569' to 6400 bytes
Jun 27 15:31:18 DEBUG[8378] chan_iax2.c: Ooh, voice format changed to 1024
Jun 27 15:31:54 WARNING[8378] chan_iax2.c: Max retries exceeded to host 
xxx.xxx.xxx.xxx on IAX2/liga-4 (type = 6, subclass = 11, ts=270034, 
seqno=84)
Jun 27 15:31:54 DEBUG[14936] chan_iax2.c: We're hanging up IAX2/liga-4 
now...
Jun 27 15:31:54 DEBUG[14936] chan_iax2.c: peer: pbx-bru., username: 
recebe, password: xxxxxxxx, context: (null)
Jun 27 15:31:57 NOTICE[8378] chan_iax2.c: Peer 'velus-liga' is now 
UNREACHABLE! Time: 33
Jun 27 15:31:59 WARNING[14936] chan_iax2.c: Timeout waiting for 
velus-recebe:xxxxxxxx em pbx/rec-iax-lis exten h
Jun 27 15:32:03 WARNING[8378] chan_iax2.c: Max retries exceeded to host 
xxx.xxx.xxx.xxx on IAX2/velus-liga-3 (type = 6, subclass = 2, ts=20005, 
seqno=8)
Jun 27 15:32:03 WARNING[8378] chan_iax2.c: Max retries exceeded to host 
xxx.xxx.xxx.xxx on IAX2/velus-liga-3 (type = 6, subclass = 11, ts=20006, 
seqno=9)










More information about the AsteriskBrasil mailing list