Hello, You might look into that before, but you've created a transaction for the SIP message? And you also used a named onreply_route that you set with t_on_reply(..)?
Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.com > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Dienstag, 8. August 2023 16:47 > To: [email protected] > Subject: [SR-Users] Unable to get avp value in response > > I am trying to set a value to an avp on the request route, but when I try to > read > the avp on the reply route I always get nil. > > On the route I have this: > > KSR.xlog.xinfo("invite_request: ********** Setting avp test\n") > KSR.pv.seti("$avp(test)", 1) > KSR.xlog.xinfo("invite_request: **** " .. > tostring(KSR.pv.get("$avp(test)")).."\n") > > > On the reply route I have this: > > KSR.xlog.xinfo("response_invite: **** " .. > tostring(KSR.pv.get("$avp(test)")).."\n") > > In the logs I see on the INVITE: > > Aug 8 13:49:15 test /usr/sbin/kamailio[1927947]: INFO: > [a0748d39-3f17-4080-b5ed-0a6b7019cb95 INVITE 1]invite_request: > ********** Setting avp test > Aug 8 13:49:15 test /usr/sbin/kamailio[1927947]: INFO: > [a0748d39-3f17-4080-b5ed-0a6b7019cb95 INVITE 1]invite_request: **** 1 > ... > ... > Aug 8 13:49:15 test /usr/sbin/kamailio[1927968]: INFO: > [a0748d39-3f17-4080-b5ed-0a6b7019cb95 INVITE 2]response_invite: **** > nil > > Do avp not cover the transaction? > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe > send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
