[SR-Users] send LUA logs via HEP to Homer server

Abdul Basit basit.engg at gmail.com
Wed Jan 17 21:49:35 CET 2018


Hi Daniel.

Thank you for your reply. I am using kamailio 5.1 master

So far I managed to work in LUA script like

        sr.modf("hlog", sr.pv.get("$ci"), "Message text goes here")


I will check KSR usage as well.


--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 17 January 2018 at 19:21, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> Hello,
>
> if you use release 5.1.x or branches 5.1 or master, then you can do:
>
> KSR.siptrace.hlog("log message here");
>
> Not much documentation about it, but the prototype is listed at:
>
>   - http://kamailio.org/docs/tutorials/devel/kamailio-kemi-frame
> work/modules/#siptrace
> Documentation for the behaviour of the corresponding kamailio.cfg function
> is in the siptrace readme.
>
> Cheers,
> Daniel
>
>
> On 16.01.18 17:55, Abdul Basit wrote:
>
> Hi K-team,
>
> I am processing incoming INVITE events in my lua script.
> To print the logs with kamailio syslog, i am using
>
>  sr.log("info", "-- Collecting data from kamailio -- ")
>
> I am searching for a way to send selective logs for an incoming call from
> lua script through HEP3 towards Homer server.
>
> How can I make it work? What utility or library is helpful.
>
> *PS:* captagent is configured on the same server for SIP traces.
>
> --
> regards,
>
> abdul basit
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180118/84ec9abc/attachment-0001.html>


More information about the sr-users mailing list