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
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-framework/modules/#si...
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 List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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@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:
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@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