[OpenSIPS-Users] sip_trace on opensips-cp
Binan AL Halabi
binanalhalabi at yahoo.com
Sat Aug 25 13:13:10 CEST 2012
so without the condition if(avp_db_load("$fu","$avp(trace)"))
//Binan
--- On Sat, 8/25/12, Engineer voip <forvoip4 at gmail.com> wrote:
From: Engineer voip <forvoip4 at gmail.com>
Subject: Re: [OpenSIPS-Users] sip_trace on opensips-cp
To: "OpenSIPS users mailling list" <users at lists.opensips.org>
Date: Saturday, August 25, 2012, 3:51 AM
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
>
_______________________________________________
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/20120825/4aba582c/attachment-0001.htm>
More information about the Users
mailing list