[Asterisk-Users] IAX2 using non standard port

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Dec 16 18:55:13 MST 2003


On Tuesday 16 December 2003 18:56, Walker Haddock wrote:
> I am working on a project where we must connect to the * server
> behind a firewall.  They can only open up port 80 udp.
>
> I have managed to get IAX working fine by specifying the port=80 in
> the iax.conf file.  However I would like to get IAX2 working.
>
> There was a recommendation in the list 13 SEP 2003:
> http://lists.digium.com/pipermail/asterisk-users/2003-September/02056
>0.html
>
> I tried to change the IAX_DEFAULT_PORTNO in iax2.h to 80, but then
> the internal server also tried to talk to the external server on port
> 80.  Looks like IAX_DEFAULT_PORTNO sets both the origin and
> destination port numbers.
>
> So, if I want the internal IAX2 service to listen on port 80 and I
> want to register with the external IAX2 server using the standard
> port, is there another change I need to make to the IAX2 code?

You should be able to specify the port number in the register line:

register => user:password at host:4569

-Tilghman




More information about the asterisk-users mailing list