for each [1] statement seems to be what I need [1] https://www.opensips.org/Documentation/Script-Statements-3-2#toc4 -- best regards, Alexey https://alexeyka.zantsev.com/