Hello,

using {s.select,...} is probably the option to do script operations. If you need something more advanced, you can add some embedded external interpreters (javascript, lua, python) and do the parsing of the values as you need.

Cheers,
Daniel

On 25.02.21 18:52, Duarte Rocha wrote:
Greetings,

I have a Kamailio proxy where i'm doing some operations over multiple History-Infos and they come in two forms :

    Scenario 1 ->
        History-Info : URI1
        History Info : URI2
       
    Scenario 2 ->
        History-Info : URI1 , URI2.
       
On scenario 1 i iterate between headers using $(hdr(name)[N]). However, i can't seem to find a similar tool to apply on scenario 2.

In the case Kamailio doesn't have it, what would be the best way to iterate the URIS? I was thinking of parsing them using the comma ",", is that safe?

Best Regards,        

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla