I tested and found that avp variables are lost after relaying the request. My call scenario is like following
  1. Call is made
  2. Callee has call forwarding so appropriate avp values are loaded.
  3. avp for source and destination number are stored for multi-leg accounting
  4. request is relayed
  5. request comes again to openser
  6. avp variable is lost this time

On Tue, Jun 17, 2008 at 5:14 PM, Ruchir <ruchir.lists@gmail.com> wrote:
I'll try to use avps and let you know.


On Tue, Jun 17, 2008 at 5:03 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,


On 06/17/08 14:11, Ruchir wrote:
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.

the AVPs are not lost when relaying with TM functions. AVPs should be used for this kind of operations.

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.

Cheers,
Daniel



------------------------------------------------------------------------


_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
 

--
http://www.asipto.com