Hello, avps are lasting for the duration of the transaction. In route withindlg you handle already another transaction than the initial invite, so the avp is gone. Try to use $dlg_var(...) for this case -- check also if there is no $dlg(...) var that returns the state of the dialog and you can reuse.
Cheers, Daniel On 16/02/15 18:08, Igor Potjevlesch wrote: > > Hello, > > > > I'm looking for a way to track a call by using basic AVP like this: > > Into a route that treats INVITE: > > $avp(s:state)="call_start"; > > > > Then, if I test this AVP into WITHINDLG route: > > if($avp(s:state)!="call_start") ; the test fails. > > > > Did I miss something? > > > > The goal is to update this AVP during the life of the transaction. > > > > Regards, > > > > Igor. > > > > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users