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@domain.com" but I want to save it in the location table as "sip:bob@domain.com". AFAIK there is no way to do it, am I wrong?
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@domain.com" but I want to save it in the location table as "sip:bob@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@domain.com"
save(location);
or:
lookup(location);
It is there from v1.1 or so.
Cheers, Daniel
2010/10/21 Daniel-Constantin Mierla miconda@gmail.com:
http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2537705 modparam("registrar", "aor_avp", "$avp(aor)")
$avp(aor) = "sip:bob@domain.com"
save(location);
Opsss, I was expecting a module function for this purpose and missed it! Thanks a lot.
On 10/21/10 10:37 PM, Iñaki Baz Castillo wrote:
2010/10/21 Daniel-Constantin Mierlamiconda@gmail.com:
http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2537705 modparam("registrar", "aor_avp", "$avp(aor)")
$avp(aor) = "sip:bob@domain.com"
save(location);
Opsss, I was expecting a module function for this purpose and missed it! Thanks a lot.
Had plans for it to move it at parameter since cfg functions accept more than 2 params (i guess that was 1.3) to be nicer, but no much demand for it so I keep forgetting it.
Cheers, Daniel