Connection between two Asterisk servers using IAX


I needed a trunk connection between two asterisk servers via IAX. I went through a number of tutorial on the web but none of them worked for me. But still i was interested to use IAX trunk for my asterisk servers, as I’m using low bandwidth on one of my asterisk location.

However currently i was using SIP trunk between my two servers which was pretty reliable but not appeared appropriate in bandwidth case, as it generate a new header on every call which put effects on bandwidth but IAX trunk is much better for the dual Asterisk servers in such case.

And hance an expert developer for Asterisk “file — Joshua Colp (Who is really a very helpfull and life saver)” guided me and finally I successfully setup the IAX connection between my two asterisk servers which works really awesome and there is no more voice or bandwidth issues.

Here i’d like to share my settings for the IAX trunk at both ends:

ServerA ——–
;iax.conf
[ServerB]
type=peer
host=ServerB.my-domain.com
username=ServerA
secret=ServerA-pass
disallow=all
allow=ulaw

[ServerB]
type=user
secret=ServerB-pass
disallow=all
allow=ulaw

Dial(IAX2/ServerB/${EXTEN}@context)

ServerB ——–
;iax.conf

[ServerA]
type=peer
host=ServerA.my-domain.com
username=ServerB
secret=ServerBpass
disallow=all
allow=ulaw

[ServerA]
type=user
secret=ServerA-pass
disallow=all
allow=ulaw

Dial(IAX2/ServerA/${EXTEN}@context)

Tags: , , , , ,

Related posts