Daniel,
On 11/12/2014 11:29 PM, Daniel-Constantin Mierla wrote:
Topoh should not affect From header -- it updates Via,
Record-Route,
Route, Contact and R-URI.
Thus not sure what is the issue you try to address. Can you elaborate
with examples?
Yeah, you're right. I didn't realise that it doesn't update From--I
assumed it does. So, when I left my uac_replace_from() call in there, I
assumed that it was undoing what topoh was changing, whereas this is
not, in fact, the case.
In any case, the goal was full topology concealment in SIP headers,
including the From header. The solution, in my case, is:
#!subst "/TOPOLOGY_HIDING_HOST/172.30.110.4/"
...
modparam("topoh", "mask_ip", "TOPOLOGY_HIDING_HOST")
...
#!ifdef WITH_TOPOLOGY_HIDING
uac_replace_from("sip:$xavp(call=>src)@TOPOLOGY_HIDING_HOST");
#!else
uac_replace_from("sip:$xavp(call=>src)@$fd");
#!endif
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web:
http://www.evaristesys.com/,
http://www.alexbalashov.com/