Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Daniel, It worked now after replacing the changes in the config file you sent. Thank you so much for helping out me in order to understand the usage and how to use AVP variable. Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel Zanutti Sent: Wednesday, March 23, 2016 2:19 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Try this one, it should work. Siptrace module will only record the packets, if the AVP variable is set. On Wed, Mar 23, 2016 at 11:09 AM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi Daniel, Here is the snippet of the opensips log where I am getting AVP value is NULL. I have added this debug statement in order to ensure that AVP is NULL. Also am attaching the opensips.cfg file. Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_headers: this is the first via Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:receive_msg: After parse_msg... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:receive_msg: preparing to run routing scripts... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:siptrace:sip_trace: **AVP IS NULL**... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:siptrace:sip_trace: nothing to trace... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_headers: flags= Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_via_param: found param type 232, = ; state=16 What is the use of avp variable with respect to siptrace module? It would be great if you help me out on this. Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Daniel Zanutti Sent: Tuesday, March 22, 2016 12:22 PM To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Hi Agalya Could you post you opensips.cfg file and some trace with the AVP = NULL error? On Tue, Mar 22, 2016 at 12:07 PM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi Daniel, I have already set the onreply_avp_mode. modparam("tm", "onreply_avp_mode", 1) Added the below line in route at the very beginning as suggested by you. $avp(traced_user) = "1"; Am calling sip_trace() in ‘route’ and ‘onreply_route’. Still am seeing AVP is NULL in my traces. Can you please clarify me on what am missing out. Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 2:24 PM To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Please take a look at AVP page: http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 'AVPs are persistent per SIP transaction, being available in "route", "branch_route" and "failure_route". To make them available in "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM module (note that in the default "onreply_route", the AVPs of the transaction are not available)' The AVP is persistent at the SIP transaction. Even if not, you are setting it again on every message received. Don't forget to call sip_trace again on reply_route Regards ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Try this one, it should work. Siptrace module will only record the packets, if the AVP variable is set. On Wed, Mar 23, 2016 at 11:09 AM, Ramachandran, Agalya (Contractor) < agalya_ramachand...@comcast.com> wrote: > Hi Daniel, > > > > Here is the snippet of the opensips log where I am getting AVP value is > NULL. I have added this debug statement in order to ensure that AVP is > NULL. > > Also am attaching the opensips.cfg file. > > > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:parse_headers: this is the first via* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:receive_msg: After parse_msg...* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:receive_msg: preparing to run routing scripts...* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:siptrace:sip_trace: **AVP IS NULL**...* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:siptrace:sip_trace: nothing to trace...* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:parse_headers: flags=* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:parse_via_param: found param type 232, = > ; state=16* > > > > What is the use of avp variable with respect to siptrace module? It would > be great if you help me out on this. > > > > Regards, > > Agalya > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Tuesday, March 22, 2016 12:22 PM > > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Hi Agalya > > > > Could you post you opensips.cfg file and some trace with the AVP = NULL > error? > > > > On Tue, Mar 22, 2016 at 12:07 PM, Ramachandran, Agalya (Contractor) < > agalya_ramachand...@comcast.com> wrote: > > Hi Daniel, > > > > I have already set the onreply_avp_mode. > > *modparam("tm", "onreply_avp_mode", 1)* > > > > Added the below line in route at the very beginning as suggested by you. > > *$avp(traced_user) = "1"; * > > > > Am calling *sip_trace()* in ‘route’ and ‘onreply_route’. > > Still am seeing AVP is NULL in my traces. Can you please clarify me on > what am missing out. > > > > Regards, > Agalya > > > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 2:24 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Please take a look at AVP page: > > http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 > > > > 'AVPs are persistent per SIP transaction, being available in "route", > "branch_route" and "failure_route". To make them available in > "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM > module (note that in the default "onreply_route", the AVPs of the > transaction are not available)' > > > > The AVP is persistent at the SIP transaction. Even if not, you are setting > it again on every message received. > > > > Don't forget to call sip_trace again on reply_route > > > > Regards > > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > opensips.cfg Description: Binary data ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Daniel, Here is the snippet of the opensips log where I am getting AVP value is NULL. I have added this debug statement in order to ensure that AVP is NULL. Also am attaching the opensips.cfg file. Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_headers: this is the first via Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:receive_msg: After parse_msg... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:receive_msg: preparing to run routing scripts... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:siptrace:sip_trace: **AVP IS NULL**... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:siptrace:sip_trace: nothing to trace... Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_headers: flags= Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: DBG:core:parse_via_param: found param type 232, = ; state=16 What is the use of avp variable with respect to siptrace module? It would be great if you help me out on this. Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel Zanutti Sent: Tuesday, March 22, 2016 12:22 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Hi Agalya Could you post you opensips.cfg file and some trace with the AVP = NULL error? On Tue, Mar 22, 2016 at 12:07 PM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi Daniel, I have already set the onreply_avp_mode. modparam("tm", "onreply_avp_mode", 1) Added the below line in route at the very beginning as suggested by you. $avp(traced_user) = "1"; Am calling sip_trace() in ‘route’ and ‘onreply_route’. Still am seeing AVP is NULL in my traces. Can you please clarify me on what am missing out. Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 2:24 PM To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Please take a look at AVP page: http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 'AVPs are persistent per SIP transaction, being available in "route", "branch_route" and "failure_route". To make them available in "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM module (note that in the default "onreply_route", the AVPs of the transaction are not available)' The AVP is persistent at the SIP transaction. Even if not, you are setting it again on every message received. Don't forget to call sip_trace again on reply_route Regards ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users opensips.cfg Description: opensips.cfg ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Agalya Could you post you opensips.cfg file and some trace with the AVP = NULL error? On Tue, Mar 22, 2016 at 12:07 PM, Ramachandran, Agalya (Contractor) < agalya_ramachand...@comcast.com> wrote: > Hi Daniel, > > > > I have already set the onreply_avp_mode. > > *modparam("tm", "onreply_avp_mode", 1)* > > > > Added the below line in route at the very beginning as suggested by you. > > *$avp(traced_user) = "1"; * > > > > Am calling *sip_trace()* in ‘route’ and ‘onreply_route’. > > Still am seeing AVP is NULL in my traces. Can you please clarify me on > what am missing out. > > > > Regards, > Agalya > > > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 2:24 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Please take a look at AVP page: > > http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 > > > > 'AVPs are persistent per SIP transaction, being available in "route", > "branch_route" and "failure_route". To make them available in > "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM > module (note that in the default "onreply_route", the AVPs of the > transaction are not available)' > > > > The AVP is persistent at the SIP transaction. Even if not, you are setting > it again on every message received. > > > > Don't forget to call sip_trace again on reply_route > > > > Regards > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Daniel, I have already set the onreply_avp_mode. modparam("tm", "onreply_avp_mode", 1) Added the below line in route at the very beginning as suggested by you. $avp(traced_user) = "1"; Am calling sip_trace() in ‘route’ and ‘onreply_route’. Still am seeing AVP is NULL in my traces. Can you please clarify me on what am missing out. Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 2:24 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Please take a look at AVP page: http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 'AVPs are persistent per SIP transaction, being available in "route", "branch_route" and "failure_route". To make them available in "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM module (note that in the default "onreply_route", the AVPs of the transaction are not available)' The AVP is persistent at the SIP transaction. Even if not, you are setting it again on every message received. Don't forget to call sip_trace again on reply_route Regards ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Please take a look at AVP page: http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id248034 'AVPs are persistent per SIP transaction, being available in "route", "branch_route" and "failure_route". To make them available in "onreply_route" armed via TM module, set "onreply_avp_mode" parameter of TM module (note that in the default "onreply_route", the AVPs of the transaction are not available)' The AVP is persistent at the SIP transaction. Even if not, you are setting it again on every message received. Don't forget to call sip_trace again on reply_route Regards On Mon, Mar 21, 2016 at 3:04 PM, Ramachandran, Agalya (Contractor) < agalya_ramachand...@comcast.com> wrote: > Hi Daniel, > > > > No I have not used the below line in my config file. I just asked do we > need this as well? > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)") * > > > > Am using sip_trace() function call in route and onreply_route logic. > > > > My config for siptrace module: > > modparam("siptrace", "db_url","mysql://opensips:opensipsrw@localhost > /opensips") > > modparam("siptrace", "duplicate_uri", "sip:remoteip***") > > modparam("siptrace", "duplicate_with_hep", 1) > > modparam("siptrace", "trace_to_database", 0) > > modparam("siptrace", "trace_flag", 22) > > modparam("siptrace", "trace_on", 1) > > modparam("siptrace", "hep_version", 2) > > > > route{ > > > > $avp(traced_user) = "1"; > > sip_trace(); > > …… > > } > > So I have added the line you mentioned in my opensips.cfg file. Will this > itself work not returning AVP as NULL? > > > > Regards, > > Agalya > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 1:55 PM > > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Hi Agalya > > > > So every time when we use ‘siptrace’ module we need to give some value for > *$avp(traced_user) > right?* > > *The simple answer is YES.* > > > > When you defined this: > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the > config file?* > > > > You are telling siptrace module to trace calls that have this AVP with > some kind of value. This value will also be written to the table if you > storing the siptrace. > > > > Also you need to call trace_dialog() or sip_trace(), depends on your > scenario. > > > > > > > > > > > > On Mon, Mar 21, 2016 at 2:36 PM, Ramachandran, Agalya (Contractor) < > agalya_ramachand...@comcast.com> wrote: > > Hi Daniel, > > > > I got your point. So every time when we use ‘siptrace’ module we need to > give some value for *$avp(traced_user) right? *Else AVP value will be > NULL. > > Am I understanding it right? > > Just adding the line *$avp(traced_user) = "1";* in config file will > solve the issue? Or we need to include > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the > config file?* > > Regards, > Agalya > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 1:20 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Correcting: > > *$avp(traced_user) = "1";* > > > > On Mon, Mar 21, 2016 at 2:19 PM, Daniel Zanutti > wrote: > > Hi > > > > AVP is a kind of variable on Opensips. > > > > When you configured the siptrace module to use the AVP, you must ensure > that the AVP has some kind of value before routing the package, otherwise > it will be NULL. Just add this on first line of main route: > > *$avp(traced_user) = 1;* > > > > > > > > > > > > On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) < > agalya_ramachand...@comcast.com> wrote: > > Hi All, > > > > Anyone can help me out for the below issues and questions I have? > > > > Regards, > > Agalya > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Daniel, No I have not used the below line in my config file. I just asked do we need this as well? modparam("siptrace", "traced_user_avp", "$avp(traced_user)") Am using sip_trace() function call in route and onreply_route logic. My config for siptrace module: modparam("siptrace", "db_url","mysql://opensips:opensipsrw@localhost/opensips") modparam("siptrace", "duplicate_uri", "sip:remoteip***") modparam("siptrace", "duplicate_with_hep", 1) modparam("siptrace", "trace_to_database", 0) modparam("siptrace", "trace_flag", 22) modparam("siptrace", "trace_on", 1) modparam("siptrace", "hep_version", 2) route{ $avp(traced_user) = "1"; sip_trace(); …… } So I have added the line you mentioned in my opensips.cfg file. Will this itself work not returning AVP as NULL? Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 1:55 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Hi Agalya So every time when we use ‘siptrace’ module we need to give some value for $avp(traced_user) right? The simple answer is YES. When you defined this: modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the config file? You are telling siptrace module to trace calls that have this AVP with some kind of value. This value will also be written to the table if you storing the siptrace. Also you need to call trace_dialog() or sip_trace(), depends on your scenario. On Mon, Mar 21, 2016 at 2:36 PM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi Daniel, I got your point. So every time when we use ‘siptrace’ module we need to give some value for $avp(traced_user) right? Else AVP value will be NULL. Am I understanding it right? Just adding the line $avp(traced_user) = "1"; in config file will solve the issue? Or we need to include modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the config file? Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 1:20 PM To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Correcting: $avp(traced_user) = "1"; On Mon, Mar 21, 2016 at 2:19 PM, Daniel Zanutti mailto:daniel.zanu...@gmail.com>> wrote: Hi AVP is a kind of variable on Opensips. When you configured the siptrace module to use the AVP, you must ensure that the AVP has some kind of value before routing the package, otherwise it will be NULL. Just add this on first line of main route: $avp(traced_user) = 1; On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi All, Anyone can help me out for the below issues and questions I have? Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Ramachandran, Agalya (Contractor) Sent: Thursday, March 17, 2016 10:28 AM To: users@lists.opensips.org<mailto:users@lists.opensips.org> Subject: [OpenSIPS-Users] Query about avp in siptrace module Hi, Am Agalya and we are using opensips for our project and using “siptrace” module to trace and duplicate the sip packets to another server. When trying to do so, am getting the below error. Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: trace on req in Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: nothing to trace... I thought adding “traced_user_avp” parameter might solve the issue. I have added the below line and tested the same. But I didn’t get through the error and was still seeing the same error. modparam("siptrace", "traced_user_avp", "$avp(traced_user)") As a workaround, I commented the below lines in “siptrace.c” file in function trace_onreq_in(), and it worked for me. Packets are sent to another server. Following the same I have commented the same line of code wherever it is failing for me. By adding some debugging statements I found AVP is NULL and (!flag_trace_is_set(msg)) returns 1. /*if( (avp==NULL) && !flag_trace_is_set(msg)) { LM_DBG("nothing to trace...\n");
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Agalya So every time when we use ‘siptrace’ module we need to give some value for *$avp(traced_user) right?* *The simple answer is YES.* When you defined this: *modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the config file?* You are telling siptrace module to trace calls that have this AVP with some kind of value. This value will also be written to the table if you storing the siptrace. Also you need to call trace_dialog() or sip_trace(), depends on your scenario. On Mon, Mar 21, 2016 at 2:36 PM, Ramachandran, Agalya (Contractor) < agalya_ramachand...@comcast.com> wrote: > Hi Daniel, > > > > I got your point. So every time when we use ‘siptrace’ module we need to > give some value for *$avp(traced_user) right? *Else AVP value will be > NULL. > > Am I understanding it right? > > Just adding the line *$avp(traced_user) = "1";* in config file will > solve the issue? Or we need to include > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the > config file?* > > Regards, > Agalya > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 1:20 PM > *To:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] Query about avp in siptrace module > > > > Correcting: > > *$avp(traced_user) = "1";* > > > > On Mon, Mar 21, 2016 at 2:19 PM, Daniel Zanutti > wrote: > > Hi > > > > AVP is a kind of variable on Opensips. > > > > When you configured the siptrace module to use the AVP, you must ensure > that the AVP has some kind of value before routing the package, otherwise > it will be NULL. Just add this on first line of main route: > > *$avp(traced_user) = 1;* > > > > > > > > > > > > On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) < > agalya_ramachand...@comcast.com> wrote: > > Hi All, > > > > Anyone can help me out for the below issues and questions I have? > > > > Regards, > > Agalya > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Ramachandran, Agalya > (Contractor) > *Sent:* Thursday, March 17, 2016 10:28 AM > *To:* users@lists.opensips.org > *Subject:* [OpenSIPS-Users] Query about avp in siptrace module > > > > Hi, > > > > Am Agalya and we are using opensips for our project and using “*siptrace” > *module to trace and duplicate the sip packets to another server. > > When trying to do so, am getting the below error. > > > > Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: > DBG:siptrace:trace_onreq_in: trace on req in > > Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: > DBG:siptrace:trace_onreq_in: nothing to trace... > > > > I thought adding *“traced_user_avp”* parameter might solve the issue. I > have added the below line and tested the same. > > But I didn’t get through the error and was still seeing the same error. > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)")* > > > > As a workaround, I commented the below lines in *“siptrace.c”* file in > function *trace_onreq_in()*, and it worked for me. > > Packets are sent to another server. Following the same I have commented > the same line of code wherever it is failing for me. > > By adding some debugging statements I found *AVP is NULL and > (!flag_trace_is_set(msg)) returns 1.* > > /*if( (avp==NULL) && !flag_trace_is_set(msg)) > > { > > LM_DBG("nothing to trace...\n"); > > return; > > }*/ > > > > Query : What is avp? And when avp is returned NULL? > > What should I do in order to avoid that error without > commenting the code? > > Why is “traced_user_avp” parameter is used in config file? > > > > It would be great if you help me to come out of this issue. Also am > curious what causes this error message. > > > > Regards, > > Agalya > > > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi Daniel, I got your point. So every time when we use ‘siptrace’ module we need to give some value for $avp(traced_user) right? Else AVP value will be NULL. Am I understanding it right? Just adding the line $avp(traced_user) = "1"; in config file will solve the issue? Or we need to include modparam("siptrace", "traced_user_avp", "$avp(traced_user)") also in the config file? Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel Zanutti Sent: Monday, March 21, 2016 1:20 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Query about avp in siptrace module Correcting: $avp(traced_user) = "1"; On Mon, Mar 21, 2016 at 2:19 PM, Daniel Zanutti mailto:daniel.zanu...@gmail.com>> wrote: Hi AVP is a kind of variable on Opensips. When you configured the siptrace module to use the AVP, you must ensure that the AVP has some kind of value before routing the package, otherwise it will be NULL. Just add this on first line of main route: $avp(traced_user) = 1; On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) mailto:agalya_ramachand...@comcast.com>> wrote: Hi All, Anyone can help me out for the below issues and questions I have? Regards, Agalya From: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> [mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>] On Behalf Of Ramachandran, Agalya (Contractor) Sent: Thursday, March 17, 2016 10:28 AM To: users@lists.opensips.org<mailto:users@lists.opensips.org> Subject: [OpenSIPS-Users] Query about avp in siptrace module Hi, Am Agalya and we are using opensips for our project and using “siptrace” module to trace and duplicate the sip packets to another server. When trying to do so, am getting the below error. Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: trace on req in Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: nothing to trace... I thought adding “traced_user_avp” parameter might solve the issue. I have added the below line and tested the same. But I didn’t get through the error and was still seeing the same error. modparam("siptrace", "traced_user_avp", "$avp(traced_user)") As a workaround, I commented the below lines in “siptrace.c” file in function trace_onreq_in(), and it worked for me. Packets are sent to another server. Following the same I have commented the same line of code wherever it is failing for me. By adding some debugging statements I found AVP is NULL and (!flag_trace_is_set(msg)) returns 1. /*if( (avp==NULL) && !flag_trace_is_set(msg)) { LM_DBG("nothing to trace...\n"); return; }*/ Query : What is avp? And when avp is returned NULL? What should I do in order to avoid that error without commenting the code? Why is “traced_user_avp” parameter is used in config file? It would be great if you help me to come out of this issue. Also am curious what causes this error message. Regards, Agalya ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Correcting: *$avp(traced_user) = "1";* On Mon, Mar 21, 2016 at 2:19 PM, Daniel Zanutti wrote: > Hi > > AVP is a kind of variable on Opensips. > > When you configured the siptrace module to use the AVP, you must ensure > that the AVP has some kind of value before routing the package, otherwise > it will be NULL. Just add this on first line of main route: > *$avp(traced_user) = 1;* > > > > > > On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) < > agalya_ramachand...@comcast.com> wrote: > >> Hi All, >> >> >> >> Anyone can help me out for the below issues and questions I have? >> >> >> >> Regards, >> >> Agalya >> >> >> >> *From:* users-boun...@lists.opensips.org [mailto: >> users-boun...@lists.opensips.org] *On Behalf Of *Ramachandran, Agalya >> (Contractor) >> *Sent:* Thursday, March 17, 2016 10:28 AM >> *To:* users@lists.opensips.org >> *Subject:* [OpenSIPS-Users] Query about avp in siptrace module >> >> >> >> Hi, >> >> >> >> Am Agalya and we are using opensips for our project and using “*siptrace” >> *module to trace and duplicate the sip packets to another server. >> >> When trying to do so, am getting the below error. >> >> >> >> Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: >> DBG:siptrace:trace_onreq_in: trace on req in >> >> Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: >> DBG:siptrace:trace_onreq_in: nothing to trace... >> >> >> >> I thought adding *“traced_user_avp”* parameter might solve the issue. I >> have added the below line and tested the same. >> >> But I didn’t get through the error and was still seeing the same error. >> >> *modparam("siptrace", "traced_user_avp", "$avp(traced_user)")* >> >> >> >> As a workaround, I commented the below lines in *“siptrace.c”* file in >> function *trace_onreq_in()*, and it worked for me. >> >> Packets are sent to another server. Following the same I have commented >> the same line of code wherever it is failing for me. >> >> By adding some debugging statements I found *AVP is NULL and >> (!flag_trace_is_set(msg)) returns 1.* >> >> /*if( (avp==NULL) && !flag_trace_is_set(msg)) >> >> { >> >> LM_DBG("nothing to trace...\n"); >> >> return; >> >> }*/ >> >> >> >> Query : What is avp? And when avp is returned NULL? >> >> What should I do in order to avoid that error without >> commenting the code? >> >> Why is “traced_user_avp” parameter is used in config >> file? >> >> >> >> It would be great if you help me to come out of this issue. Also am >> curious what causes this error message. >> >> >> >> Regards, >> >> Agalya >> >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi AVP is a kind of variable on Opensips. When you configured the siptrace module to use the AVP, you must ensure that the AVP has some kind of value before routing the package, otherwise it will be NULL. Just add this on first line of main route: *$avp(traced_user) = 1;* On Mon, Mar 21, 2016 at 12:46 PM, Ramachandran, Agalya (Contractor) < agalya_ramachand...@comcast.com> wrote: > Hi All, > > > > Anyone can help me out for the below issues and questions I have? > > > > Regards, > > Agalya > > > > *From:* users-boun...@lists.opensips.org [mailto: > users-boun...@lists.opensips.org] *On Behalf Of *Ramachandran, Agalya > (Contractor) > *Sent:* Thursday, March 17, 2016 10:28 AM > *To:* users@lists.opensips.org > *Subject:* [OpenSIPS-Users] Query about avp in siptrace module > > > > Hi, > > > > Am Agalya and we are using opensips for our project and using “*siptrace” > *module to trace and duplicate the sip packets to another server. > > When trying to do so, am getting the below error. > > > > Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: > DBG:siptrace:trace_onreq_in: trace on req in > > Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: > DBG:siptrace:trace_onreq_in: nothing to trace... > > > > I thought adding *“traced_user_avp”* parameter might solve the issue. I > have added the below line and tested the same. > > But I didn’t get through the error and was still seeing the same error. > > *modparam("siptrace", "traced_user_avp", "$avp(traced_user)")* > > > > As a workaround, I commented the below lines in *“siptrace.c”* file in > function *trace_onreq_in()*, and it worked for me. > > Packets are sent to another server. Following the same I have commented > the same line of code wherever it is failing for me. > > By adding some debugging statements I found *AVP is NULL and > (!flag_trace_is_set(msg)) returns 1.* > > /*if( (avp==NULL) && !flag_trace_is_set(msg)) > > { > > LM_DBG("nothing to trace...\n"); > > return; > > }*/ > > > > Query : What is avp? And when avp is returned NULL? > > What should I do in order to avoid that error without > commenting the code? > > Why is “traced_user_avp” parameter is used in config file? > > > > It would be great if you help me to come out of this issue. Also am > curious what causes this error message. > > > > Regards, > > Agalya > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Query about avp in siptrace module
Hi All, Anyone can help me out for the below issues and questions I have? Regards, Agalya From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Ramachandran, Agalya (Contractor) Sent: Thursday, March 17, 2016 10:28 AM To: users@lists.opensips.org Subject: [OpenSIPS-Users] Query about avp in siptrace module Hi, Am Agalya and we are using opensips for our project and using "siptrace" module to trace and duplicate the sip packets to another server. When trying to do so, am getting the below error. Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: trace on req in Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: nothing to trace... I thought adding "traced_user_avp" parameter might solve the issue. I have added the below line and tested the same. But I didn't get through the error and was still seeing the same error. modparam("siptrace", "traced_user_avp", "$avp(traced_user)") As a workaround, I commented the below lines in "siptrace.c" file in function trace_onreq_in(), and it worked for me. Packets are sent to another server. Following the same I have commented the same line of code wherever it is failing for me. By adding some debugging statements I found AVP is NULL and (!flag_trace_is_set(msg)) returns 1. /*if( (avp==NULL) && !flag_trace_is_set(msg)) { LM_DBG("nothing to trace...\n"); return; }*/ Query : What is avp? And when avp is returned NULL? What should I do in order to avoid that error without commenting the code? Why is "traced_user_avp" parameter is used in config file? It would be great if you help me to come out of this issue. Also am curious what causes this error message. Regards, Agalya ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users