[SR-Users] UAC remote registrations caller id

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 13 12:05:27 CEST 2013


Hello,

On 7/31/13 7:00 AM, Isaac McDonald wrote:
> Hello,
>
> I'm using the UAC module to perform remote registrations. When an 
> incoming call comes in from one of the remote registrations I'm using 
> the following to route the call to the correct user:
>
> if(uac_reg_lookup("$rU", "$ru")) {
>         lookup("location");
>         route(RELAY);
>     }
>
> This works fine for routing the call to the local user but the "from 
> domain" still contains the IP address of the remote registrar. This 
> results in the caller ID being displayed along with the registrars IP 
> address.
>
> I've been reading the documentation on the UAC module and it looks 
> like I should be using "uac_restore_from()" somewhere in the config to 
> restore the original "from domain". My thought was to do something 
> like this but it's not replacing the from domain:
>
> if(uac_reg_lookup("$rU", "$ru")) {
>         uac_restore_from();
>         lookup("location");
>         route(RELAY);
>     }
>
> I've got the following modparams set for UAC and RR:
>
> modparam("rr", "append_fromtag", 1)
> modparam("uac","restore_mode","auto")
>
> I'm not sure if using uac_restore_from() is the way to accomplish this 
> or if I should be going about this differently.
uac_restore_from() has to be used for the case when you used before 
uac_replace_from(...) -- so you have to use the former to update the 
 From header to the value you want.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list