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@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 <[email protected]> wrote:
From: Engineer voip <[email protected]>
Subject: [OpenSIPS-Users] sip_trace on opensips-cp
To: "OpenSIPS users mailling list" <[email protected]>, "users-request"
<[email protected]>
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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users