[OpenSER-Users] Using script variable
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jun 17 13:33:55 CEST 2008
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 at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
--
http://www.asipto.com
More information about the Users
mailing list