On 7/8/10 12:57 PM, IƱaki Baz Castillo wrote:
2010/7/8 Alex Balashovabalashov@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_soc...
But be caredull with in-dialog requests as by default they would use the "default" source port ;)
if invite is received on one socket and forwarded using a different socket, then it should get 2 record-route headers so the within-dialog requests are using same sockets without anything else in config than loose_route and relay. Do you get it different?
Cheers, Daniel