[OpenSIPS-Users] force socket to destination ip

Donato Zito donato.zito at n4com.it
Wed Apr 4 07:17:34 EDT 2018


Dear Bogdan,

  Thanks for your response.

I suppose that record route is implicit using topology hiding module: is 
that correct?

Greetings,

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

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

Il 28/03/2018 18:58, Bogdan-Andrei Iancu ha scritto:
> Hi Donato,
>
> The socket you force for a request will be persistent for the whole 
> transaction (replies also). Even more, if you use record_route() for 
> the dialog, the socket will be persistent for the whole dialog (for 
> all sequential requests).
> But again, the important is to force the socket during the *initial* 
> request.
>
> Best regards,
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>    http://www.opensips-solutions.com
> OpenSIPS Summit 2018
>    http://www.opensips.org/events/Summit-2018Amsterdam
> On 03/15/2018 11:13 AM, Donato Zito wrote:
>>
>> 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
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

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


More information about the Users mailing list