Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] {
xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wikihttps://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org
________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es Sent: Thursday, January 17, 2019 6:33 PM To: sr-users@lists.kamailio.org Subject: [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] {
xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
I can see how database row it's removed, and event is not fired.
Best regards, Javier Valencia.
El 17/1/19 a las 16:51, Javier Valencia escribió:
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback", "usrloc:contact-expired")
Cheers Yasin CANER
________________________________ From: Javier Valencia jv@voiper.es Sent: Thursday, January 17, 2019 6:51 PM To: YASIN CANER; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió: Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wikihttps://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.orghttp://www.kamailio.org
________________________________ From: sr-users sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Thursday, January 17, 2019 6:33 PM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] {
xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback","usrloc:contact-expired") Cheers Yasin CANER
*From:* Javier Valencia jv@voiper.es *Sent:* Thursday, January 17, 2019 6:51 PM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org http://www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
________________________________ From: Javier Valencia jv@voiper.es Sent: Friday, January 18, 2019 11:07 AM To: YASIN CANER; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió: Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback", "usrloc:contact-expired")
Cheers Yasin CANER
________________________________ From: Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Thursday, January 17, 2019 6:51 PM To: YASIN CANER; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió: Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wikihttps://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.orghttp://www.kamailio.org
________________________________ From: sr-users sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Thursday, January 17, 2019 6:33 PM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] {
xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Hello,
4.4.3 is very old to remember if there was any related issue and moreover it is not the latest in its series, so try first to upgrade to latest 4.4.x version, to ensure that you have all fixes for what was found wrong during maintenance of 4.4.x.
Cheers, Daniel
On 18.01.19 09:20, YASIN CANER wrote:
Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
*From:* Javier Valencia jv@voiper.es *Sent:* Friday, January 18, 2019 11:07 AM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback", "usrloc:contact-expired") Cheers Yasin CANER
*From:* Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:51 PM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org http://www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Yasin and Daniel
I upgrade my testing kamailio to 4.4.7, the last branch on 4.4.x version, but it's still running like 4.4.3, don't run event_route.
Saludos, Javier Valencia.
El 18/1/19 a las 10:01, Daniel-Constantin Mierla escribió:
Hello,
4.4.3 is very old to remember if there was any related issue and moreover it is not the latest in its series, so try first to upgrade to latest 4.4.x version, to ensure that you have all fixes for what was found wrong during maintenance of 4.4.x.
Cheers, Daniel
On 18.01.19 09:20, YASIN CANER wrote:
Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
*From:* Javier Valencia jv@voiper.es *Sent:* Friday, January 18, 2019 11:07 AM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback","usrloc:contact-expired") Cheers Yasin CANER
*From:* Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:51 PM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org http://www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 --www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA --www.asipto.com
Hello,
can you try with latest 5.1.x or 5.2.x to see if it is about something already fixed? Then could be tracked back via commit logs. Or if still an issue, it is easier to troubleshoot from dev team point of view.
Cheers, Daniel
On 18.01.19 11:47, Javier Valencia wrote:
Hi Yasin and Daniel
I upgrade my testing kamailio to 4.4.7, the last branch on 4.4.x version, but it's still running like 4.4.3, don't run event_route.
Saludos, Javier Valencia.
El 18/1/19 a las 10:01, Daniel-Constantin Mierla escribió:
Hello,
4.4.3 is very old to remember if there was any related issue and moreover it is not the latest in its series, so try first to upgrade to latest 4.4.x version, to ensure that you have all fixes for what was found wrong during maintenance of 4.4.x.
Cheers, Daniel
On 18.01.19 09:20, YASIN CANER wrote:
Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
*From:* Javier Valencia jv@voiper.es *Sent:* Friday, January 18, 2019 11:07 AM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback", "usrloc:contact-expired") Cheers Yasin CANER
*From:* Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:51 PM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org http://www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
Hello,
I already tested on 5.2.x and it is working.
Yasin CANER
________________________________ From: Daniel-Constantin Mierla miconda@gmail.com Sent: Friday, January 18, 2019 3:33 PM To: Javier Valencia; Kamailio (SER) - Users Mailing List; YASIN CANER Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
Hello,
can you try with latest 5.1.x or 5.2.x to see if it is about something already fixed? Then could be tracked back via commit logs. Or if still an issue, it is easier to troubleshoot from dev team point of view.
Cheers, Daniel
On 18.01.19 11:47, Javier Valencia wrote:
Hi Yasin and Daniel
I upgrade my testing kamailio to 4.4.7, the last branch on 4.4.x version, but it's still running like 4.4.3, don't run event_route.
Saludos, Javier Valencia.
El 18/1/19 a las 10:01, Daniel-Constantin Mierla escribió:
Hello,
4.4.3 is very old to remember if there was any related issue and moreover it is not the latest in its series, so try first to upgrade to latest 4.4.x version, to ensure that you have all fixes for what was found wrong during maintenance of 4.4.x.
Cheers, Daniel
On 18.01.19 09:20, YASIN CANER wrote: Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
________________________________ From: Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Friday, January 18, 2019 11:07 AM To: YASIN CANER; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió: Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback", "usrloc:contact-expired")
Cheers Yasin CANER
________________________________ From: Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Thursday, January 17, 2019 6:51 PM To: YASIN CANER; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió: Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wikihttps://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.orghttp://www.kamailio.org
________________________________ From: sr-users sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.esmailto:jv@voiper.es Sent: Thursday, January 17, 2019 6:33 PM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] {
xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comhttp://www.asipto.com www.twitter.com/micondahttp://www.twitter.com/miconda -- www.linkedin.com/in/micondahttp://www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.comhttp://www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.comhttp://www.asipto.com
-- Daniel-Constantin Mierla -- www.asipto.comhttp://www.asipto.com www.twitter.com/micondahttp://www.twitter.com/miconda -- www.linkedin.com/in/micondahttp://www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.comhttp://www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.comhttp://www.asipto.com
Hi Daniel
After update my test kamailio to latest 5.2 branch, it's seems to work properly.
Best regards, Javier Valencia.
El 18/1/19 a las 13:33, Daniel-Constantin Mierla escribió:
Hello,
can you try with latest 5.1.x or 5.2.x to see if it is about something already fixed? Then could be tracked back via commit logs. Or if still an issue, it is easier to troubleshoot from dev team point of view.
Cheers, Daniel
On 18.01.19 11:47, Javier Valencia wrote:
Hi Yasin and Daniel
I upgrade my testing kamailio to 4.4.7, the last branch on 4.4.x version, but it's still running like 4.4.3, don't run event_route.
Saludos, Javier Valencia.
El 18/1/19 a las 10:01, Daniel-Constantin Mierla escribió:
Hello,
4.4.3 is very old to remember if there was any related issue and moreover it is not the latest in its series, so try first to upgrade to latest 4.4.x version, to ensure that you have all fixes for what was found wrong during maintenance of 4.4.x.
Cheers, Daniel
On 18.01.19 09:20, YASIN CANER wrote:
Hello,
this option is added after 4.4.x . Sorry that I looked wrong branch. I tested it on new versions and it is working.
Good luck.
*From:* Javier Valencia jv@voiper.es *Sent:* Friday, January 18, 2019 11:07 AM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
No,
It's a hidden feature? I can't see in docs.
I made the changes, but Kamailio (as expected) don't start
ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar>
Best regards, Javier Valencia.
El 18/1/19 a las 6:46, YASIN CANER escribió:
Hello
Could you try to set parameter on your test environment?
modparam("registrar", "event_callback","usrloc:contact-expired") Cheers Yasin CANER
*From:* Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:51 PM *To:* YASIN CANER; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] event_route[usrloc:contact-expired]
Hi Yasin.
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.
The problem it's this event_route it's not called.
Best regards
Javier Valencia
El 17/1/19 a las 16:37, YASIN CANER escribió:
Hello,
could you check debug level is enough to write logs? Probably it is debug=2
https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages
Best Regards
Yasin CANER
tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server. www.kamailio.org http://www.kamailio.org
*From:* sr-users sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org on behalf of Javier Valencia jv@voiper.es mailto:jv@voiper.es *Sent:* Thursday, January 17, 2019 6:33 PM *To:* sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org *Subject:* [SR-Users] event_route[usrloc:contact-expired]
Hi there!
I'm using Kamailio 4.4.3, and I add this code to my Kamailio:
event_route[usrloc:contact-expired] { xlog("L_INFO", "EXPIRED CONTACT START\n"); xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n"); xlog("L_INFO", "EXPIRED CONTACT END\n"); }
I can't see this entries in the log.
I read many times the docs and code, but I don't understand why it's not working.
I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?
Why this event route it's named as usrloc but it's documented in registrar module?
I need to provide more info about?
Thank you very much.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 --www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA --www.asipto.com
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 --www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA --www.asipto.com