[OpenSIPS-Users] sip_trace on opensips-cp

Engineer voip forvoip4 at gmail.com
Sat Aug 25 12:51:15 CEST 2012


Hi,
Thank you for the response but it seems this solution is for to do
siptrace of a spefiy user that we mut create in usr_preferences table.

but i want to have siptrace of all the users do the calls by my opensips!

have you an idea to do that?

2012/8/25, Binan AL Halabi <binanalhalabi at yahoo.com>:
> 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
>



More information about the Users mailing list