[SR-Users] Parse multiple URI

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 1 12:01:37 CET 2021


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210301/12fac35c/attachment.htm>


More information about the sr-users mailing list