[SR-Users] Register a different URI than the received in the To header
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 21 22:25:24 CEST 2010
On 10/21/10 10:05 PM, Iñaki Baz Castillo wrote:
> Hi, not sure if this question has already taken place in this maillist:
>
> For some exotic reason sometimes the registrar receives a REGISTER
> with "To: sip:alice at domain.com" but I want to save it in the location
> table as "sip:bob at domain.com".
> AFAIK there is no way to do it, am I wrong?
http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2537705
modparam("registrar", "aor_avp", "$avp(aor)")
$avp(aor) = "sip:bob at domain.com"
save(location);
or:
lookup(location);
It is there from v1.1 or so.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-users
mailing list