[SR-Users] Syntax issue?
Daniel-Constantin Mierla
miconda at gmail.com
Mon Feb 16 18:26:32 CET 2015
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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150216/43c8be0b/attachment.html>
More information about the sr-users
mailing list