Sasmita, You need to be using $socket_out. [1]
By default, OpenSIPS will use the receiving socket as the sending socket. This means if you receive the message on TLS and do not change $socket_out then the message will be sent out the TLS socket. Additionally, unless you are using B2BUA or maybe topology_hiding you will likely need to “remember” this protocol transition by adding a double Record-Route [2] to the message. You may also need to change any “transport” params that exist in the Request-URI and possibly the Contact header. [1] https://www.opensips.org/Documentation/Script-CoreVar-3-2#toc86 [2] https://opensips.org/docs/modules/3.2.x/rr.html Ben Newlin From: Users <users-boun...@lists.opensips.org> on behalf of Sasmita Panda <spa...@3clogic.com> Date: Wednesday, July 24, 2024 at 1:54 AM To: OpenSIPS users mailling list <users@lists.opensips.org> Subject: [OpenSIPS-Users] I need some info while setiing sethostport on opensips config . EXTERNAL EMAIL - Please use caution with links and attachments ________________________________ Hi All , I am using openisp version : 3.2 I have an opensips config on which I was listening on UDP port only and hence using sethostport to route calls to a particular destination . like below . if(is_from_gw() || ($rp=~"5505")) { sethostport("freeswitch-test.xyz.com:6080<http://freeswitch-test.xyz.com:6080>"); route(inbound); exit; } Now I have to accept a call on TLS and send that to some other destination on UDP . I have enabled the tls module and also the dependent modules like tls_openssl, tls_mgm . socket=udp:192.168.0.y:5060 socket=tls:192.168.0.y:5061 socket=tcp:192.168.0.y:5060 if(is_from_gw() || ($rp=~"5505")) { sethostport("freeswitch-test.xyz.com:6080<http://freeswitch-test.xyz.com:6080>"); route(inbound); exit; } This above configuration is not working . I am getting "477 Send Failed " Thanks & Regards Sasmita Panda Senior Network Testing and Software Engineer 3CLogic , ph:07827611765
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users