[OpenSIPS-Users] duplicate information in sip_trace table
Binan AL Halabi
binanalhalabi at yahoo.com
Wed Oct 10 12:44:29 CEST 2012
Hi,
Do it like this:
if (is_avp_set("$avp(trace_id)"){
# Do tracing
}
or like this :
If (!avp_check("$avp(trace_id)","re/^$/")){
# Do tracing
}
where "/^$/" regex pattern for empty string.
// Binan
________________________________
Från: Dragomir Haralambiev <goup2010 at gmail.com>
Till: OpenSIPS users mailling list <users at lists.opensips.org>
Skickat: tisdag, 9 oktober 2012 22:55
Ämne: [OpenSIPS-Users] duplicate information in sip_trace table
Hello ,
I see duplicate information in sip_trace table (Opensips: 1.8.1):
one line with traced_user=empty;
other traced_user=$avp(trace_id).
How to setup Opensips to remove traced_user=empty ?
Here is part of opensips.cfg:
modparam("siptrace", "db_url", "mysql://user:password@localhost/opensips")
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "enable_ack_trace", 1)
modparam("siptrace", "traced_user_avp", "$avp(trace_id)")
......
if (is_method("INVITE")) {
..... receive $avp(trace_id) from radius_send_auth .......
if ( $avp(trace_id) ) {
xlog("L_ERR", "Trace ON. Trace_id=$avp(trace_id)\n");
sip_trace();
}
.....
}
Best regards,
PlayMen
_______________________________________________
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/20121010/b2354fb8/attachment.htm>
More information about the Users
mailing list