[OpenSIPS-Users] Multiple sockets and force_send_socket

microx acmicrox at gmail.com
Thu Sep 24 08:42:09 CEST 2015


Hi all,

In my testing environment, I have one SIP outbound proxy and one internal
SIP server. The SIP outbound proxy listens tls:172.16.1.1:5061,
udp:172.16.1.1:5060, and udp:10.1.1.1:5060 while the SIP server listens on
udp:10.1.1.2:5060. For the SIP outbound proxy, tls:172.16.1.1:5061 and
udp:172.16.1.1:5060 are used for receiving SIP messages from outside clients
and udp:10.1.1.1:5060 is used for communicating with the internal SIP
server. 

When receiving an INVITE from a caller, the SIP outbound proxy uses
force_send_socket(udp:10.1.1.1:5060) to relay the INVITE to the SIP server.
The SIP server send the INVITE to udp:10.1.1.1:5060 to make SIP outbound
proxy send to the callee. The SIP outbound proxy calls
force_send_socket(172.16.1.1) to send the INVITE to the callee. In OpenSIPS
1.9, the force_send_socket function will use udp:172.16.1.1:5060 if the
callee registers via UDP and use tls:172.16.1.1:5061 if the callee registers
via TLS. However, in OpenSIPS 1.11.5, the force_send_socket will use
udp:172.16.1.1:5060 even when the callee register via TLS.

How could I config OpenSIPS such that it can use the right socket to send
INVITEs to callees based on the UDP or TLS the callee register via? Thanks
for any comment.

Best regards,
Chen-Che 





--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Multiple-sockets-and-force-send-socket-tp7599170.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list