Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
Hello, On 24/05/15 11:01, DanB wrote: Hey Guys, Was wondering what would be the recommended way to share information between $evapi(msg) received and transaction processors? I have tried $avp() but they do not appear to be available in evapi:message-received route. Trying to avoid here

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread DanB
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

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Alex Balashov
Daniel, On 05/25/2015 06:32 AM, Daniel-Constantin Mierla wrote: yes, it is safe to use $var(x) to pass values between the block calling t_continue() and the route executed by t_continue(). Why is that, when the scope of $var() variables is, as I understand it, maintained only by a given SIP

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Alex Balashov
Oh, I see. I think I misunderstood the thread when I wandered into it and saw your answer, thinking that the question was whether variables set prior to t_suspend() can be used in the route invoked by t_continue(). I should read more carefully. -- Alex On 05/25/2015 06:50 AM,

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
$var(x) keeps the value in the context of the process. t_continue() doesn't delegate route execution to other processes, it is executed in the context of same process. So, yes, it is also the same for rtimer processes. Actually, I can bet more for rtimer case, for evapi, I will need to double

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] Using $avp in evapi:message-received

2015-05-25 Thread DanB
Daniel, Many thanks! 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

[SR-Users] Using $avp in evapi:message-received

2015-05-24 Thread DanB
Hey Guys, Was wondering what would be the recommended way to share information between $evapi(msg) received and transaction processors? I have tried $avp() but they do not appear to be available in evapi:message-received route. Trying to avoid here $sht() so I don't need to do extra