IAX Tunnel

Hi ,

I configured connectivity between 2 asterisk servers. they are working fine. but, how do i make sure they are using IAX2 Tunnel? Below is my iax.conf file. Is there a debug command to see the tunnel status. Also, how to avoid username/password displayed on debug log file.

[eoffice]
type=friend
secret=abc321
user=eoffice
host=10.10.10.100
context=eoffice-soffice
trunk=yes
disallow=all
allow=gsm
allow=ulaw
allow=alaw

Does trunk=yes means that it is a IAX2 Tunnel? Please suggest.

Thanks
Sekhar.

keep in mind iax2 is not a tunnel. it’s a way to trunk a call from one server to another.

trunk=yes makes it use ‘trunk mode’. What this does is send the data of many calls in one set of packets (without setting up a separate iax2 dialog for each call). This saves bandwidth if you have more than 4 concurrant calls but requires a timing source.

Hi IronHelix,

Thanks for your response on this :smile:

So, how do i make sure that the call is really using trunk mode?

Also, as you mentioned. I got below timing error, i dont have zaptel on this box. how do i fix it?

Sep 17 20:32:14 WARNING[26686]: chan_iax2.c:8490 build_user: Unable to support trunking on user ‘eoffice’ without zaptel timing

thanks
Sekhar.

install zaptel. trunk mode requires a non-broken timing source on both sides.

Hi IronHelix,

Great… The timing error gone.

Sep 18 17:03:15 NOTICE[3726]: cdr.c:1191 do_reload: CDR simple logging enabled.
Sep 18 17:03:15 NOTICE[3726]: indications.c:505 ast_unregister_indication_country: Removed default indication country 'us’
Sep 18 17:03:15 ERROR[3726]: pbx_dundi.c:4574 set_config: Unable to load config dundi.conf
Sep 18 17:03:15 NOTICE[3726]: chan_iax2.c:8746 set_config: Ignoring bindport on reload

I will test the trunk now & update you. Thanks a lot for the help.