<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR>thx guys , i think i discovered the problem , it seems that i had to put the host=192.168.0.x in iax.conf and not host=dynamic ,,otherwise had to register the clients <BR>
<BLOCKQUOTE>
<HR>
From: the.love.4all@hotmail.com<BR>To: asterisk-users@lists.digium.com<BR>Date: Tue, 26 Feb 2008 15:03:25 +0200<BR>Subject: [asterisk-users] iax trunking problem<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<BR>i have 2 asterisk servers one on CentOS and one on Fedora , i configured IAX trunking between the 2 servers so that i dial -<BR>say from a sip extension 2000 on fedora server to a sip extension 3000 on CentOS server the call seems to be established but <BR>hangup automatically after very short time and here is the iax2 set debug command result on centos server and also my <BR>iax.conf and extension.conf and sip.conf files :<BR>**********************************************************************************************<BR>;the iax2 debug output <BR>Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW <BR> Timestamp: 00004ms SCall: 00001 DCall: 00000 [192.168.0.25:4569]<BR> VERSION : 2<BR> CALLED NUMBER : 3000<BR> CODEC_PREFS : ()<BR> CALLING NUMBER : 2000<BR> CALLING PRESNTN : 0<BR> CALLING TYPEOFN : 0<BR> CALLING TRANSIT : 0<BR> CALLING NAME : Gres<BR> LANGUAGE : en<BR> CALLED CONTEXT : centos-context<BR> USERNAME : iax1Centos<BR> FORMAT : 4<BR> CAPABILITY : 65535<BR> ADSICPE : 2<BR> DATE TIME : 2008-02-26 01:50:30<BR>Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ<BR> Timestamp: 00010ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR> AUTHMETHODS : 3<BR> CHALLENGE : 667712244<BR> USERNAME : iax1Centos<BR>Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP<BR> Timestamp: 00100ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR> MD5 RESULT : 8cbf698b6ea75a404e8ae981fdec0a16<BR> -- Accepting AUTHENTICATED call from 192.168.0.25:<BR> > requested format = ulaw,<BR> > requested prefs = (),<BR> > actual format = ulaw,<BR> > host prefs = (),<BR> > priority = mine<BR> -- Executing [3000@centos-context:1] Set('IAX2/iax1Centos-1', 'TIMEOUT(absolute)=10000') in new stack<BR> -- Channel will hangup at 2008-02-26 19:01:22 UTC.<BR> -- Executing [3000@centos-context:2] Dial('IAX2/iax1Centos-1', 'sip/3000/20') in new stack<BR>Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACCEPT <BR> Timestamp: 00117ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR> FORMAT : 4<BR>[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 <BR>to destination)<BR> == Everyone is busy/congested at this time (1:0/0/1)<BR> -- Executing [3000@centos-context:3] VoiceMail('IAX2/iax1Centos-1', '<A href="mailto:u3000@default">u3000@default</A>') in new stack<BR>[Feb 26 18:14:42] WARNING[4581]: app_voicemail.c:2850 leave_voicemail: No entry in voicemail config file for '3000'<BR> == Auto fallthrough, channel 'IAX2/iax1Centos-1' status is 'CHANUNAVAIL'<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK <BR> Timestamp: 00117ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 002 Type: CONTROL Subclass: ANSWER <BR> Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 002 Type: CONTROL Subclass: CONGSTN<BR> Timestamp: 00123ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: VOICE Subclass: 4<BR> Timestamp: 00354ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 003 Type: IAX Subclass: ACK <BR> Timestamp: 00354ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: IAX Subclass: ACK <BR> Timestamp: 00120ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 004 Type: IAX Subclass: ACK <BR> Timestamp: 00123ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 004 Type: IAX Subclass: HANGUP <BR> Timestamp: 00457ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR> CAUSE CODE : 16<BR>Tx-Frame Retry[-01] -- OSeqno: 004 ISeqno: 004 Type: IAX Subclass: ACK <BR> Timestamp: 00457ms SCall: 00001 DCall: 00001 [192.168.0.25:4569]<BR> -- Hungup 'IAX2/iax1Centos-1'<BR>CentOS*CLI> <BR>*****************************************************************************************<BR>;CentOS server iax.conf<BR>[general]<BR>bindport=4569<BR>bindaddr=192.168.0.22 ; this is Centos server address <BR>[iax1Centos]<BR>type=friend<BR>secret=volga<BR>username=iax1Centos<BR>context=centos-context<BR>host=dynamic<BR>trunk=yes<BR>--------------------<BR>;Centos server extension.conf<BR>[centos-context]<BR>exten =>3000,1,Set(TIMEOUT(absolute)=10000) <BR>exten =>3000,2,dial(sip/3000/20)<BR>exten =>3000,3,voicemail(<A href="mailto:u3000@default">u3000@default</A>)<BR>exten=> _2XXX,1,Answer()<BR>exten=> _2XXX,2,Dial(IAX2/iax1Fedora:volga@192.168.0.25/${EXTEN}@fedora-context)<BR>exten=> _2XXX,3,Hangup()<BR>0------------------------------------------<BR>; centos sip.conf <BR>[general]<BR>port=5060<BR>bindaddr=0.0.0.0<BR>[3000]<BR>type=friend<BR>secret=3000<BR>qualify=yes<BR>call-limit=1 ;limit No of calls this exten can originat in same time<BR>;canreinvite=yes ;can bypass asteris control in future calles<BR>host=dynamic<BR>context=centos-context<BR>mailbox=3000<BR>disallow=all<BR>allow=ulaw<BR>allow=alaw<BR>allow=gsm<BR>-------------------------------------------------<BR><BR>;fedora server iax.conf<BR>[general]<BR>bindport=4569<BR>bindaddr=192.168.0.25 ;this is fedora server address <BR>[iax1Fedora]<BR>type=friend<BR>secret=volga<BR>username=iax1Fedora<BR>context=fedora-context<BR>host=dynamic<BR>trunk=yes<BR>-----------------------------------------------<BR>;fedora server extension.conf<BR>[fedora-context]<BR>exten =>2000,1,Set(TIMEOUT(absolute)=144) <BR>exten =>2000,2,dial(sip/2000/20)<BR>exten =>2000,3,voicemail(<A href="mailto:u2000@default">u2000@default</A>) <BR>exten=> _3XXX,1,Answer()<BR>exten=> _3XXX,2,Dial(IAX2/iax1Centos:volga@192.168.0.22/${EXTEN}@centos-context)<BR>exten=> _3XXX,3,Hangup()<BR>-----------------------------------------------<BR>;fedora sip.conf <BR>[general]<BR>port=5060<BR>bindaddr=0.0.0.0<BR>allow=all<BR>videosupport=yes ;to support video calles on all sip video cabable terminals<BR>[2000]<BR>type=friend<BR>secret=2000<BR>host=dynamic<BR>context=fedora-context<BR>mailbox=2000<BR>disallow=all<BR>allow=ulaw<BR>allow=alaw<BR>allow=gsm<BR><BR>
<HR>
Express yourself instantly with MSN Messenger! <A href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target=_blank>MSN Messenger</A> </BLOCKQUOTE><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>