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

However currently i was using 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 trunk is much better for the dual 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 connection between my two which works really awesome and there is no more voice or bandwidth issues.

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

ServerA ——–
;.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 ——–
;.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