[Asterisk-Users] Multiple IAX "register" lines?

Rich Adamson radamson at routers.com
Fri Mar 26 06:00:44 MST 2004


Gus,

> There is nothing to it really register lines are pretty simple..
> 
> register => user1:pass1 at server1.domain1.tld
> register => user2:pass2 at server2.domain2.tld
> 
>  From the cli "iax2 show registry" only shows the first entry..
> 
> These are for inbound services not outbound, I didn't think it was 
> nesesary to "register" for outbound calls because the call is being 
> initiated from inside..

If the iax destination site is static, you don't even need the registration
process. Simply set up a type=user (for inbound iax calls) with some
appropriate security parameters (host, secret, context). The associated
extensions.conf entry might look something like:
  exten => _9.,1,Dial(IAX2/userid:mysecret at 1.2.3.4/${EXTEN:1})
which will connect with type=user just fine. Have several of these in 
production.

Of coarse, if you don't have access/cooperation to the remote iax2 servers,
or if any site is using dynamic IP addresses, then your stuck with
resolving the original registration problem. (Does a "iax2 debug" show
anything useful?)

Rich





More information about the asterisk-users mailing list