Simple! first: return the iax.h to it's original state because it's a config 
issue, not a
code one.

In the internal server, you need to put in the relevant section a host 
directive with the
name or IP of the external server AND a register under the [general] section of 
the
iax.conf

In the external server, in the definition you need to put host=dynamic.
Then hoy need to  dial with the definition section name

***internal:
*iax.conf
[general]
register => user:[EMAIL PROTECTED]
[iax-external]
host=external-hostname

*extensions.conf
 ... Dial (IAX2/iax-external/phonenumber)

***external:
*iax.conf
[iax-internal]
host=dynamic

*extensions.conf
... Dial (IAX2/iax-internal/phonenumber)

This also addresses the problem of someone having two iax2/udp streams, one of 
each call,
even with trunking enabled.


> From: Mustafa N. Deeb <mailto:[EMAIL PROTECTED]>  
> 
> To: 'Asterisk Users Mailing List - <mailto:[email protected]>
> Non-Commercial Discussion' 
> 
> Sent: Monday, February 07, 2005 9:45 AM
> 
> Subject: [Asterisk-Users] 
> 
>  
> 
> Hi, 
> 
> I have successfully configured an IAX trunk between 2 asterisks, calls can
> go through both ways without any problems, NAT in the middle of course
> (iptables)
> 
> Now , leave them for a while ,   and make a call from the external server ,
> it doesnt go through, 
> 
> Dial from the internal one, everything works fine again..
>  
> 
> Now , it is clearly  a problem in the NAT engine, although IAX shouldnt
> have this problem    
> 
> is there something I can do to prevent asterisk from tearing down the trunk
> while it is not used
> 
> or , modify the iptables so that  to allow the incoming UDP connections
> 
> Cheers


=====
Miguel Ruiz Velasco

Version: OpenKeyServer v1.2
Comment: Extracted from belgium.keyserver.net
Signature: 0x59831109


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to