[asterisk-users] two sip listening ports for single asterisk

Mike mikef1007 at gmail.com
Thu Nov 20 00:02:40 CST 2008


I tried using this iptables sample, and did not see duplicate packets
on '--to-ports' port

Has some verified this is working for them?

I listened on both ports with tcpdump command.

thanks,

On Tue, Nov 18, 2008 at 9:35 PM, Matthew J. Roth <mroth at imminc.com> wrote:
> Rizwan Hisham wrote:
>> Is it possible to make single asterisk server listen on two different
>> ports?
>
>
> Rizwan,
>
> There is no way to make a single instance of Asterisk listen on multiple
> ports.  However, you can use an iptables REDIRECT to achieve the same
> functionality.
>
> To redirect a single port with iptables:
>
>  iptables -t nat -A PREROUTING -i eth0 -p udp --dport 5062 -j REDIRECT
> --to-ports 5060
>
> This example redirects UPD port 5062 to port 5060, which effectively
> allows Asterisk to listen on both of them.  Remember to save the rule so
> that it survives a reboot.
>
> Regards,
>
> Matthew Roth
> InterMedia Marketing Solutions
> Software Engineer and Systems Developer
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list