[OpenSIPS-Users] sip_trace on opensips-cp

Binan AL Halabi binanalhalabi at yahoo.com
Sat Aug 25 08:57:34 CEST 2012


add the following instructions to your script:
loadmodule "siptrace.so"
modparam("siptrace", "db_url", "mysql://opensips:fedora13579@localhost/opensips")
modparam("siptrace", "trace_flag", 22)
modparam("siptrace","trace_on",1)
modparam("siptrace", "traced_user_avp", "$avp(traceuser)")
modparam("siptrace", "trace_local_ip", "IP Address of your Server:Port")

put following code in route in opensips script 
if(avp_db_load("$fu","$avp(trace)")) {
     $avp(s:traceuser)=$fu;
     setflag(22);
     sip_trace();
     xlog("L_INFO","User $fu being traced");
}

The $avp(s:trace) will be loaded from usr_references table
so you have to add the user :
opensipsctl avp add –T usr_preferences user at youripaddress trace 0 1

finally start siptrace :
opensipsctl fifo sip_trace on
then make a call from the user you already added.

--- On Fri, 8/24/12, Engineer voip <forvoip4 at gmail.com> wrote:

From: Engineer voip <forvoip4 at gmail.com>
Subject: [OpenSIPS-Users] sip_trace on opensips-cp
To: "OpenSIPS users mailling list" <users at lists.opensips.org>, "users-request" <users-request at lists.opensips.org>
Date: Friday, August 24, 2012, 4:17 PM

Hello All,

I want to get siptrace from opensips 1.8 using OCP but i haven't no
idea to use SIPTRACE

module.

someone have an idea to do that, please?

Best Regards.

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120824/878c1a06/attachment.htm>


More information about the Users mailing list