[SR-Users] obtaining htable array index

Alex Balashov abalashov at evaristesys.com
Tue Feb 28 17:25:45 CET 2012


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.

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list