[Serusers] scope & database operations for avp_write
Daniel-Constantin Mierla
daniel at voice-system.ro
Fri Nov 11 11:52:16 CET 2005
On 11/08/05 21:06, Ramin Nikaeen wrote:
>
> Valued Colleagues,
>
> Can anyone tell me what is the scope of avp_write?!
>
> Is it global / per-transaction / per-message?!
>
per-message
>
> I would like to have something similar to it with global scope so that
> I can
>
> set the string “callfwd” once by executing:
>
> avp_write("sip:211 at 10.1.10.22:5060", "s:callfwd");
>
> and then keep using it for each SIP message processing using:
>
> avp_pushto("$ruri", "s:callfwd");
>
> Also, do the avp_write and avp_pushto involve Database access operations?!
>
no
>
> i.e. Does avp_write store the string in database and avp_pushto looks
> it up
>
> form the database or is the information stored in memory?!
>
no
>
> I want to avoid database access to ensure improved performance.
>
only avp_db_*() involve database operations.
Daniel
>
> Thanks
>
> ramin
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list