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: 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 <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) 
<agalya_ramachand...@comcast.com<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 
<users@lists.opensips.org<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

Attachment: opensips.cfg
Description: opensips.cfg

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to