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.galinu...@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@lists.opensips.org <mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to