Thanks Mr. Tilghman! Here's a summary incase anyone else is looking for the way to do this:
Problem: Need to use non standard port for IAX2 server listening behind a firewall. In this case, we were required to use UDP port 80 to listen on. Solution: edit iax2.h file and change line 73 as follows: #define IAX_DEFAULT_PORTNO 80 /* 4569 */ in /usr/src/asterisk make clean ; make install in iax.conf, in the register record, append the port number of the peer: register => user:[EMAIL PROTECTED]:4569 Walker On Tue, Dec 16, 2003 at 07:55:13PM -0600, Tilghman Lesher wrote: > 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:[EMAIL PROTECTED]:4569 > > -Tilghman -- ******** DataCrest, Inc. -- Technically Superior ****************** Walker Haddock http://www.datacrest.com DataCrest, Inc. e-mail: [EMAIL PROTECTED] 1634A Montgomery Hwy. phone: 1-888-941-3282, 1-205-335-8589 Birmingham, AL 35216 fax: 1-205-823-7838 *********************************************************************** _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
