Re: [OpenSIPS-Users] How to store some Sip-header value in variable ?

2016-12-22 Thread Răzvan Crainea

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" :
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 
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


Re: [OpenSIPS-Users] How to store some Sip-header value in variable ?

2016-12-21 Thread Denis
Hello http://www.opensips.org/Documentation/Script-CoreVar-2-23.91 -- С уважением, Денис.Best regards, Denis 22.12.2016, 10:28, "Kirill Galinurov" :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 listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users

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


[OpenSIPS-Users] How to store some Sip-header value in variable ?

2016-12-21 Thread Kirill Galinurov
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
http://lists.opensips.org/cgi-bin/mailman/listinfo/users