[SR-Users] topoh and uac_replace_from()

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 13 05:29:27 CET 2014


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-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 24-27, Berlin - http://www.asipto.com




More information about the sr-users mailing list