I tested and found that avp variables are lost after relaying the request. My call scenario is like following<br><ol><li>Call is made</li><li>Callee has call forwarding so appropriate avp values are loaded.</li><li>avp for source and destination number are stored for multi-leg accounting</li>
<li>request is relayed</li><li>request comes again to openser</li><li>avp variable is lost this time<br></li></ol><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 5:14 PM, Ruchir <<a href="mailto:ruchir.lists@gmail.com">ruchir.lists@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'll try to use avps and let you know.<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">
On Tue, Jun 17, 2008 at 5:03 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div><br>
<br>
On 06/17/08 14:11, Ruchir wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was thinking of using script variable to hold the source leg information for multi-leg accounting as avp variables will be lost when request is relayed(I'm pushing uri and relaying request in case of call forwarding). Is it safe way or will it create any issues when simultaneous calls are going on.<br>
</blockquote>
<br></div>
the AVPs are not lost when relaying with TM functions. AVPs should be used for this kind of operations.<br>
<br>
Script variables are stored in private memory and are persistent per process. The accounting event may happen in a different process than the one that processed the request. Using script variables is not safe.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
------------------------------------------------------------------------<div><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><font color="#888888">
<br>
-- <br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>