I tried to get ruid by using this feature. http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1752184.
I use source code from git repo from June 7th. Have added modparam("registrar", "xavp_cfg", "ulrcd") in the config.
In route[REGISTRAR], i try to print it's value by using this code in kamailio config :
pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "registrasi $xavp(ulrcd=>ruid)");
both codes give me : registrasi <null>.
How to obtain that value? I think i missed something.
Hello,
On 6/10/13 11:37 AM, Iwan Budi Kusnanto wrote:
I tried to get ruid by using this feature. http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1752184.
I use source code from git repo from June 7th. Have added modparam("registrar", "xavp_cfg", "ulrcd") in the config.
In route[REGISTRAR], i try to print it's value by using this code in kamailio config :
pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "registrasi $xavp(ulrcd=>ruid)");
both codes give me : registrasi <null>.
How to obtain that value? I think i missed something.
have you printed the variable after save()?
If yes, set debug=3 in config and set the log messages for handling a REGISTER request.
Cheers, Daniel
On Mon, Jun 10, 2013 at 5:20 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 6/10/13 11:37 AM, Iwan Budi Kusnanto wrote:
I tried to get ruid by using this feature. http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1752184.
I use source code from git repo from June 7th. Have added modparam("registrar", "xavp_cfg", "ulrcd") in the config.
In route[REGISTRAR], i try to print it's value by using this code in kamailio config :
pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "registrasi $xavp(ulrcd=>ruid)");
both codes give me : registrasi <null>.
How to obtain that value? I think i missed something.
Hi Daniel,
Thanks for your quick answer and sorry for my late reply,
have you printed the variable after save()?
Yes, this is complete config for route[REGISTRAR]
route[REGISTRAR] { if (is_method("REGISTER")) { if (!save("location")) { sl_reply_error(); } pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "ruid_value $xavp(ulrcd=>ruid)"); exit; } }
If yes, set debug=3 in config and set the log messages for handling a REGISTER request.
And this is kamailio log for that registration. http://paste.ee/p/elMqL
Cheers, Daniel
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 6/11/13 3:36 PM, Iwan Budi Kusnanto wrote:
On Mon, Jun 10, 2013 at 5:20 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 6/10/13 11:37 AM, Iwan Budi Kusnanto wrote:
I tried to get ruid by using this feature. http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1752184.
I use source code from git repo from June 7th. Have added modparam("registrar", "xavp_cfg", "ulrcd") in the config.
In route[REGISTRAR], i try to print it's value by using this code in kamailio config :
pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "registrasi $xavp(ulrcd=>ruid)");
both codes give me : registrasi <null>.
How to obtain that value? I think i missed something.
Hi Daniel,
Thanks for your quick answer and sorry for my late reply,
have you printed the variable after save()?
Yes, this is complete config for route[REGISTRAR]
route[REGISTRAR] { if (is_method("REGISTER")) { if (!save("location")) { sl_reply_error(); } pv_printf("$var(ruidd)", "$xavp(ulrcd=>ruid)"); xlog("L_ERR", "registrasi $var(ruidd)");
xlog("L_ERR", "ruid_value $xavp(ulrcd=>ruid)"); exit; }
}
If yes, set debug=3 in config and set the log messages for handling a REGISTER request.
And this is kamailio log for that registration. http://paste.ee/p/elMqL
can you check the module parameter setting the xavp base name?
I tested and worked. The readme had an incorrect parameter name in the example related to this parameter -- just in case you just copy&pasted from there.
Cheers, Daniel
On Wed, Jun 12, 2013 at 2:27 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
can you check the module parameter setting the xavp base name?
I tested and worked. The readme had an incorrect parameter name in the example related to this parameter -- just in case you just copy&pasted from there.
yes, i just copy&pasted from the doc/readme. It is working now.
Thanks
Cheers, Daniel
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013