[OpenSIPS-Users] force socket to destination ip

Donato Zito donato.zito at n4com.it
Thu Mar 15 05:13:27 EDT 2018


Dear all,

     I need to send message forcing a specific socket versus an ip 
destination.

Actually I use servarl IP on my production installation, but I want to 
force a specifical ip address versus an ip destination.

Using topologt hiding is enough to add in invite route something like this?

*if( $rd == "1.1.1.1" )*

*    force_send_socket("udp:2.2.2.2:5060")*

The socket will be used even on next dialog messages without forcing 
anymore?

Is there a better solution?

Thanks in advance for your response,

-- 
Donato Zito | CTO
--------------------
N4COM S.R.L.

Tel: +39 0909148000
Cel: +39 3471388322
Fax: +39 0909148970
mail : donato.zito at n4com.it

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180315/2a8f680d/attachment.html>


More information about the Users mailing list