[SR-Users] Access avp between sip transactions
miconda at gmail.com
Thu Mar 9 12:52:32 CET 2017
On 09/03/2017 11:57, Grant Bagdasarian wrote:
> Is it possible to access an avp variable from a different sip transaction?
> On an INVITE is set an avp, but on ReINVITE I would like to access
> this avp again and get the value. Currently the value is null, which
> makes sense.
> Not sure if this is possible and if it violates any rules inside the
> Kamailio engine?
> I guess I could use a htable, but I’m just wondering if there is a
> built-in way for doing this.
you cannot access an avp set for invite during a (later) re-invite,
because the avps are destroyed with the transaction -- so shortly after
200ok for first invite is received, that transaction is destroyed, along
with its avps.
You can use htable as you already said or dialog variables (dialog module).
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-users