Hello,

yes, it is safe to use $var(x) to pass values between the block calling t_continue() and the route executed by t_continue().

Cheers,
Daniel

On 25/05/15 10:52, DanB wrote:
Hey Daniel,

Thanks for coming back to me.

Yes, called t_continue and for now I have used $var() to pass information back to the route with transaction info recovered.
Will that be OK to leave it like that? Is $var() safe to use between event_route[evapi:message-received] and route called by t_continue()? I am just speaking about these two interactions since after t_continue, I will process the vars into $avp().

You can find the .cfg we are using it as part of our test build here:

https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio-cgrates.cfg#L62
https://github.com/cgrates/cgrates/blob/master/data/tutorials/kamevapi/kamailio/etc/kamailio/kamailio.cfg#L191


Ta,
DanB


_______________________________________________
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