[SR-Users] Script @Startup
Nicolas Breuer
Nicolas.Breuer at belcenter.biz
Sun Oct 28 19:22:58 CET 2018
Hello Joel,
What the define will change the $sel is not available in event route ?
De : sr-users <sr-users-bounces at lists.kamailio.org> De la part de Joel Serrano
Envoyé : dimanche 28 octobre 2018 16:58
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Objet : Re: [SR-Users] Script @Startup
Did Daniel’s suggestion of trying with #!define not work?
Might not be as nice but another option would be using jsonrpc?
On Sun, Oct 28, 2018 at 02:08 Nicolas Breuer <Nicolas.Breuer at belcenter.biz<mailto:Nicolas.Breuer at belcenter.biz>> wrote:
Hello Daniel,
Any updates on this ?
Need to get the IP-Address of the Kamailio server in the event route.
Thanks
De : Nicolas Breuer
Envoyé : samedi 20 octobre 2018 16:13
À : miconda at gmail.com<mailto:miconda at gmail.com>; Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Objet : RE: [SR-Users] Script @Startup
Hello Daniel,
Let me know if you found a solution to access the $sel into the event route.
I put the IP address of the server into a system variable and I need to access it into the event route 😊
Again thanks for your feedback.
De : Daniel-Constantin Mierla <miconda at gmail.com<mailto:miconda at gmail.com>>
Envoyé : vendredi 19 octobre 2018 11:56
À : Nicolas Breuer <Nicolas.Breuer at belcenter.biz<mailto:Nicolas.Breuer at belcenter.biz>>; Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Objet : Re: [SR-Users] Script @Startup
I pushed a commit for a safety check to avoid the crash, but the value won't be available for $sel(...) in that event route. I will look to see if there is any solution for it, not being the author of that part of code.
Meanwhile, try by replacing the $sel(...) with a #!define / #!subst token or its actual value.
Cheers,
Daniel
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20181028/4ce6acf8/attachment.html>
More information about the sr-users
mailing list