You can obtain the destination set IP from $dd, or $(du{uri.host}). However, 
you can't just modify the To URI like that. 

You will need to do it in a way that doesn't break standards-based 
proscriptions about what a proxy can do, otherwise endpoint A can look at the 
modified header received in responses from endpoint B and say, "I didn't send 
that!"

Kamailio provides such a mechanism. In brief, it conceals the in-flight 
alterations to the To URI from endpoint A:

https://kamailio.org/docs/modules/5.8.x/modules/uac.html#uac.f.uac_replace_to

-- Alex

On 11 Mar 2024, at 12:43, marek via sr-users <[email protected]> 
wrote:
> 
> 
> hi,
> 
> i have kamailio acting as SBC
> 
> i need hide topology like this
> 
> ds_select_dst(DSP_GRP_TRUNK, "6");
> 
> $tu = $(tu{re.subst,/PRIVATE_IP/IP_OF_CURRENT_SELECTED_DISPATCHER/g});
> 
> 
> what is best way for IP extraction  from $du?
> 
> thanks
> 
> Marek
> 
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to