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) < [email protected]> 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=ffffffffffffffff* > > *Mar 22 13:59:20 ma-siplb-as-a-001 /usr/local/sbin/opensips[869]: > DBG:core:parse_via_param: found param type 232, <branch> = > <z9hG4bKu3ffxvd3kydewefyywffkn3tc>; 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:* [email protected] [mailto: > [email protected]] *On Behalf Of *Daniel Zanutti > *Sent:* Tuesday, March 22, 2016 12:22 PM > > *To:* OpenSIPS users mailling list <[email protected]> > *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) < > [email protected]> 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:* [email protected] [mailto: > [email protected]] *On Behalf Of *Daniel Zanutti > *Sent:* Monday, March 21, 2016 2:24 PM > *To:* OpenSIPS users mailling list <[email protected]> > *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 > [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 > >
opensips.cfg
Description: Binary data
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
