[SR-Users] obtaining htable array index

Asgaroth 00asgaroth00 at gmail.com
Tue Feb 28 17:41:50 CET 2012


Thanks Alex, I'll go and do some reading up on avp's :)

On 28/02/12 16:25, Alex Balashov wrote:
> I would just throw a serialised string into the hash table as a scalar 
> entry, the components of which are separated by some delimiter, e.g.
>
>    REGISTER-1;INVITE-2;3
>
> Then, I'd deserialise it by iterating through it with the {s.select} 
> transform and throw it into an AVP array, e.g.
>
>    $(avp(s:route_set)[$avp(s:route_set_idx]) = ...
>
>    $avp(s:route_set_idx) = $avp(s:route_set_idx) + 1;
>
> Then, I'd just iterate through it using serial forking.
>




More information about the sr-users mailing list