Hi,
If I use uac_replace_from() to alter the User part of the From URI:
uac_replace_from("sip:$xavp(call=>src)@$fd");
it overwrites the domain concealment that is otherwise imparted by topoh, i.e. restores the original From domain.
However, uac_replace_from() does not appear to offer the option to provide a replacement user part only, so I have to specify the domain. As far as I know, there is no means of accessing the modifications topoh has made, as this is transparent from the point of view of the config.
Any way around this problem?
Thanks,
I should add that yes, I can just force the domain to be equal to mask_ip in uac_replace_from(). It's just that in this case I would have to go through the trouble of making mask_ip a dynamic #subst parameter to make that work.
I guess that's what I'll have to do.
On 11/12/2014 08:55 PM, Alex Balashov wrote:
Hi,
If I use uac_replace_from() to alter the User part of the From URI:
uac_replace_from("sip:$xavp(call=>src)@$fd");
it overwrites the domain concealment that is otherwise imparted by topoh, i.e. restores the original From domain.
However, uac_replace_from() does not appear to offer the option to provide a replacement user part only, so I have to specify the domain. As far as I know, there is no means of accessing the modifications topoh has made, as this is transparent from the point of view of the config.
Any way around this problem?
Thanks,
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?
Cheers, Daniel
On 13/11/14 02:57, Alex Balashov wrote:
I should add that yes, I can just force the domain to be equal to mask_ip in uac_replace_from(). It's just that in this case I would have to go through the trouble of making mask_ip a dynamic #subst parameter to make that work.
I guess that's what I'll have to do.
On 11/12/2014 08:55 PM, Alex Balashov wrote:
Hi,
If I use uac_replace_from() to alter the User part of the From URI:
uac_replace_from("sip:$xavp(call=>src)@$fd");
it overwrites the domain concealment that is otherwise imparted by topoh, i.e. restores the original From domain.
However, uac_replace_from() does not appear to offer the option to provide a replacement user part only, so I have to specify the domain. As far as I know, there is no means of accessing the modifications topoh has made, as this is transparent from the point of view of the config.
Any way around this problem?
Thanks,
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