[OpenSIPS-Users] How to store some Sip-header value in variable ?
Răzvan Crainea
razvan at opensips.org
Thu Dec 22 03:58:44 EST 2016
Hi, Kirill!
You can use the attr_avp [1] in the registrar module to attach the value
to the contact. You could do something like:
modparam("registrar", "attr_avp", "$avp(attr)")
...
if (is_method("REGISTER")) {
$avp(attr) = $hdr(CUSTOM_HEADER);
save("location");
exit;
}
After that, you will be able to see the attribute in the MI commands output.
[1] http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id293909
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 12/22/2016 09:43 AM, Denis wrote:
> Hello
> http://www.opensips.org/Documentation/Script-CoreVar-2-2
> 3.91
> --
> С уважением, Денис.
> Best regards, Denis
> 22.12.2016, 10:28, "Kirill Galinurov" <k.galinurov at gmail.com>:
>> Hi All. I need to store some additional info about user from custom
>> sip header in Register request. How i can do it? Can i get this info
>> later from ul_dump or ul_show_contact command ?
>> ,
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161222/02b2bf6f/attachment.html>
More information about the Users
mailing list