[OpenSIPS-Users] Query about avp in siptrace module

Ramachandran, Agalya (Contractor) Agalya_Ramachandran at comcast.com
Tue Mar 22 16:07:31 CET 2016


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-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Daniel Zanutti
Sent: Monday, March 21, 2016 2:24 PM
To: OpenSIPS users mailling list <users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160322/3346ecb2/attachment.htm>


More information about the Users mailing list