[SR-Users] Query on force_send_socket

David Villasmil david.villasmil.work at gmail.com
Fri Apr 3 11:08:38 CEST 2020


Unless it’s a reply, in which case the socket should already be
established, right?

On Fri, 3 Apr 2020 at 10:06, Alex Balashov <abalashov at evaristesys.com>
wrote:

> On Fri, Apr 03, 2020 at 12:09:43PM +0530, Amarnath K wrote:
>
> > Hi All,
> >
> > I'm using Kamailio version 5.1.9.
> > In cfg file have routing to send out SIP messages from Kamailio stack. In
> > this routing logic added
> >
> > force_send_socket("tcp:192.168.40.10:5060");
> > forward()
> >
> > I'm expecting the send port should be from 5060, but it always pick
> > random port to send out message.
> > my requirement is to send SIP messages from 5060 port instead of picking
> > random port.
>
> TCP doesn't work like that. Port 5060 is already bound to a listen()ing
> socket; any new TCP sockets for outbound connections initiated would
> have to bind to a different local port.
>
> -- Alex
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200403/e41d71e9/attachment.html>


More information about the sr-users mailing list