On your "alternative" asterisk instance, instantiate it with: asterisk ... -C /etc/asterisk2/asterisk.conf
and in that directory your /etc/asterisk2/sip.conf would contain a different "bindport = xxxx" value. Then in your extensions.conf file, you can just "Redirect" your calls to the primary instance of Asterisk once you've mangled the calls to your liking. Using port redirection has risks of its own having to do with NAT connection tracking getting confused... or not rewriting the headers correctly when replying. -Philip Cleve Jansen wrote: > Philip, > > Could you please outline or explain further how this could be achieved. > > Thanks > > -----Original Message----- > From: Philip Prindeville [mailto:philipp_s...@redfish-solutions.com] > Sent: Monday, 7 September 2009 2:31 PM > To: da...@kerr.net; AstLinux Users Mailing List > Subject: Re: [Astlinux-users] iptables/arno question > > You could run two different instances of Asterisk with two different > sets of config files. > > > David Kerr wrote: > >> I'm wondering if there are any experts out there that can help me. >> Asterisk is listening on port 5060 for SIP messages. I would like to >> be able to listen on another port /*as well*/ as 5060. Asterisk >> itself can only listen on the one port, so I can't change the >> bindport= statement in sip.conf as that would cause it to stop >> listening on 5060. >> >> Is there a way using the Arno firewall or iptables in Astlinux to >> listen on inbound requests on a port that I specify and have those >> requests remapped to port 5060 /*on the same box/network interface*/ >> (ie, this is not NAT forwarding to another box inside my network). >> >> Thanks, >> David. >> ------------------------------------------------------------------------ >> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.