[sr-dev] [kamailio/kamailio] token parser (#648)

Dmitri Savolainen notifications at github.com
Mon May 30 22:22:06 CEST 2016


i try script:
```
$var(some_string) = 'a=foo1;b=foo2;c=foo3,4,5;d=3';
$var(c_value) = $(var(some_string){param.value,c,;});
xlog("L_INFO", "'c' param from '$var(some_string)' is '$var(c_value)'");
```
in log:
>  'c' param from 'a=foo1;b=foo2;c=foo3,4,5;d=3' is 'foo3'

 Has this  behaviour any reason? or it's possible to delete comma from stop list (and use separator parameter for comma-delimited list)?
```
diff --git a/parser/parse_param.c b/parser/parse_param.c
index b9e0fbc..e7784c8 100644
--- a/parser/parse_param.c
+++ b/parser/parse_param.c
@@ -355,7 +355,6 @@ static inline int parse_token_param(str* _s, str* _r, char separator)
                case '\t':
                case '\r':
                case '\n':
-               case ',':
                             /* So if you find
                              * any of them
                              * stop iterating
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/648
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160530/3aafc4be/attachment.html>


More information about the sr-dev mailing list