[asterisk-users] Multiple Asterisk Sessions on same machine

Edwin Lam edwin.lam at officegeneral.com
Tue Jul 19 18:56:56 CDT 2011


On 7/19/11 11:07 AM, Michael wrote:
>
> We would like Asterisk to listen on port 5060 and on an additional port. From what
> we read online, it's not really possible, so is it possible to install a separate
> instance of Asterisk on the same machine (without using Vmware or such) and set
> the 2nd instance to listen on another port?

all you have to do is setup port forwarding from an
alternate port to 5060. we're doing that on our server.
works like a charm.

e.g.

iptables -t nat -I PREROUTING 1 -i <your-interface> -d <your-ip-addr> \
   -p udp -m udp --dport 6060 -j DNAT --to-destination <your-ip-addr>:5060

this sets up port 6060 to forward to 5060.

-- 
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20




More information about the asterisk-users mailing list