[SR-Users] Script @Startup

Joel Serrano joel at textplus.com
Sun Oct 28 16:58:22 CET 2018


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>
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; Kamailio (SER) - Users Mailing List <
> 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>
> *Envoyé :* vendredi 19 octobre 2018 11:56
> *À :* Nicolas Breuer <Nicolas.Breuer at belcenter.biz>; Kamailio (SER) -
> Users Mailing List <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
> 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/b3333802/attachment.html>


More information about the sr-users mailing list