[asterisk-users] iax trunking problem

love U.all
Tue, 26 Feb 2008 13:03:25 -0000

i have 2 asterisk servers one on CentOS and one on Fedora , i configured IAX
trunking between the 2 servers so that i dial -say from a sip extension 2000 on
fedora server to a sip extension 3000 on CentOS server the call seems to be
established but hangup automatically after very short time and here is the iax2
set debug command result on centos server and also my iax.conf and
extension.conf and sip.conf files
:**********************************************************************************************;the
iax2 debug output Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX
Subclass: NEW       Timestamp: 00004ms  SCall: 00001  DCall: 00000
[192.168.0.25:4569]   VERSION         : 2   CALLED NUMBER   : 3000   CODEC_PREFS
: ()   CALLING NUMBER  : 2000   CALLING PRESNTN : 0   CALLING TYPEOFN : 0
CALLING TRANSIT : 0   CALLING NAME    : Gres   LANGUAGE        : en   CALLED
CONTEXT  : centos-context   USERNAME        : iax1Centos   FORMAT          : 4
CAPABILITY      : 65535   ADSICPE         : 2   DATE TIME       : 2008-02-26
01:50:30Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
AUTHREQ   Timestamp: 00010ms  SCall: 00001  DCall: 00001 [192.168.0.25:4569]
AUTHMETHODS     : 3   CHALLENGE       : 667712244   USERNAME        :
iax1CentosRx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass:
AUTHREP   Timestamp: 00100ms  SCall: 00001  DCall: 00001 [192.168.0.25:4569]
MD5 RESULT      : 8cbf698b6ea75a404e8ae981fdec0a16    -- Accepting AUTHENTICATED
call from 192.168.0.25:       > requested format = ulaw,       > requested
prefs = (),       > actual format = ulaw,       > host prefs = (),
> priority = mine    -- Executing [3000 at centos-context:1]
Set('IAX2/iax1Centos-1', 'TIMEOUT(absolute)=10000') in new stack
-- Channel will hangup at 2008-02-26 19:01:22 UTC.    -- Executing [3000 at
centos-context:2] Dial('IAX2/iax1Centos-1', 'sip/3000/20') in
new stackTx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass:
ACCEPT    Timestamp: 00117ms  SCall: 00001  DCall: 00001 [192.168.0.25:4569]
FORMAT          : 4[Feb 26 18:14:42] WARNING[4581]: app_dial.c:1196
dial_exec_full: Unable to create channel of type 'sip' (cause 3 - No
route to destination)  == Everyone is busy/congested at this time (1:0/0/1)
-- Executing [3000 at centos-context:3] VoiceMail('IAX2/iax1Centos-1',
'u3000 at default') in new stack[Feb 26 18:14:42] WARNING[4581]:
app_voicemail.c:2850 leave_voicemail: No entry in voicemail config file for
'3000'  == Auto fallthrough, channel 'IAX2/iax1Centos-1' status
is 'CHANUNAVAIL'Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX
Subclass: ACK       Timestamp: 00117ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: CONTROL
Subclass: ANSWER    Timestamp: 00120ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 002 Type: CONTROL
Subclass: CONGSTN   Timestamp: 00123ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: VOICE
Subclass: 4   Timestamp: 00354ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 003 Type: IAX
Subclass: ACK       Timestamp: 00354ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX
Subclass: ACK       Timestamp: 00120ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 004 Type: IAX
Subclass: ACK       Timestamp: 00123ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 004 Type: IAX
Subclass: HANGUP    Timestamp: 00457ms  SCall: 00001  DCall: 00001
[192.168.0.25:4569]   CAUSE CODE      : 16Tx-Frame Retry[-01] -- OSeqno: 004
ISeqno: 004 Type: IAX     Subclass: ACK       Timestamp: 00457ms  SCall: 00001
DCall: 00001 [192.168.0.25:4569]    -- Hungup
'IAX2/iax1Centos-1'CentOS*CLI>
*****************************************************************************************;CentOS
server iax.conf[general]bindport=4569bindaddr=192.168.0.22 ; this is Centos
server address
[iax1Centos]type=friendsecret=volgausername=iax1Centoscontext=centos-contexthost=dynamictrunk=yes--------------------;Centos
server extension.conf[centos-context]exten
=>3000,1,Set(TIMEOUT(absolute)=10000) exten
=>3000,2,dial(sip/3000/20)exten =>3000,3,voicemail(u3000 at
default)exten=> _2XXX,1,Answer()exten=> _2XXX,2,Dial(IAX2/iax1Fedora:volga
at 192.168.0.25/${EXTEN}@fedora-context)exten=>
_2XXX,3,Hangup()0------------------------------------------; centos sip.conf
[general]port=5060bindaddr=0.0.0.0[3000]type=friendsecret=3000qualify=yescall-limit=1
;limit No of calls this exten can originat in same time;canreinvite=yes  ;can
bypass asteris control in future
calleshost=dynamiccontext=centos-contextmailbox=3000disallow=allallow=ulawallow=alawallow=gsm-------------------------------------------------;fedora
server iax.conf[general]bindport=4569bindaddr=192.168.0.25 ;this is fedora
server address
[iax1Fedora]type=friendsecret=volgausername=iax1Fedoracontext=fedora-contexthost=dynamictrunk=yes-----------------------------------------------;fedora
server extension.conf[fedora-context]exten
=>2000,1,Set(TIMEOUT(absolute)=144) exten =>2000,2,dial(sip/2000/20)exten
=>2000,3,voicemail(u2000 at default) exten=> _3XXX,1,Answer()exten=>
_3XXX,2,Dial(IAX2/iax1Centos:volga at
192.168.0.22/${EXTEN}@centos-context)exten=>
_3XXX,3,Hangup()-----------------------------------------------;fedora sip.conf
[general]port=5060bindaddr=0.0.0.0allow=allvideosupport=yes   ;to support video
calles on all sip video cabable
terminals[2000]type=friendsecret=2000host=dynamiccontext=fedora-contextmailbox=2000disallow=allallow=ulawallow=alawallow=gsm
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...