[SR-Users] How to force snd_port?

Iñaki Baz Castillo ibc at aliax.net
Thu Jul 8 12:57:34 CEST 2010


2010/7/8 Alex Balashov <abalashov at evaristesys.com>:
> On 07/08/2010 06:18 AM, Victor Pascual Avila wrote:
>
>> How could I force my sip-router to send from a given port number?
>
> Given that sip-router listens on the address of the interface (IP:port) that
> you want to send from, which is a requirement, you can use
> force_send_socket():
>
> http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_socket

But be caredull with in-dialog requests as by default they would use
the "default" source port ;)

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list