Module: sip-router
Branch: master
Commit: 6156d2572e06fa661ef23face24c38203485d81a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6156d25…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Feb 26 19:52:10 2014 +0100
parser/parse_addr_spec: allow comma in tag parameter
- some user agents uses it and it was in older versions
---
parser/parse_addr_spec.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/parser/parse_addr_spec.c b/parser/parse_addr_spec.c
index 179c907..9a8e3b3 100644
--- a/parser/parse_addr_spec.c
+++ b/parser/parse_addr_spec.c
@@ -480,9 +480,12 @@ semicolon_add_param:
goto error;
}
break;
- }
- else
- {
+ } else {
+ if(status==S_PARA_VALUE && param->type==TAG_PARAM) {
+ /* if comma is not separator, allow it as part of value
+ * - some user agents use it */
+ break;
+ }
LOG( L_ERR, "ERROR parse_to_param : "
"invalid character ',' in status %d: <<%.*s>>\n",
status, (int)(tmp-buffer), ZSW(buffer));