Changing port 5060 by peer

Can different SIP peers be configured to use ports other than UDP port 5060 ? For example, configure a peer to use 5060, another to use 5062, a third to use 5064 etc.

Thanks,

Skip

The port on the peer can be different for each one, and this has to be done if you co-host Asterisk and a soft phone (not necessarily a good idea).

Of the top of my head, I don’t think you can vary the port number on Asterisk, as I think it uses one socket for all SIP traffice.

[quote]The port on the peer can be different for each one, and this has to be done if you co-host Asterisk and a soft phone (not necessarily a good idea).

Of the top of my head, I don’t think you can vary the port number on Asterisk, as I think it uses one socket for all SIP traffice.[/quote]

Aren’t these conflicting statements??

There are two port numbers for a SIP dialogue, one for each user agent. Asterisk can cope with every remote user agent binding to a different port number (on that remote agent), but, as far as I know, can only bind to one port number on the machine on which it, Asterisk, is running.

The first one is set in the individual section in sip.conf, or by the incoming register request. The second is set in the general section of sip.conf.

This is pretty much what I thought. Thank you very much for the info!