diff options
Diffstat (limited to 'channels/sip/reqresp_parser.c')
-rw-r--r-- | channels/sip/reqresp_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/sip/reqresp_parser.c b/channels/sip/reqresp_parser.c index 4534bd7f8..aaf1f56c7 100644 --- a/channels/sip/reqresp_parser.c +++ b/channels/sip/reqresp_parser.c @@ -852,7 +852,7 @@ int get_name_and_number(const char *hdr, char **name, char **number) /* number is not option, and must be present at this point */ *number = ast_strdup(tmp_number); - ast_uri_decode(*number); + ast_uri_decode(*number, ast_uri_sip_user); /* name is optional and may not be present at this point */ if (!ast_strlen_zero(tmp_name)) { @@ -2044,8 +2044,8 @@ int sip_uri_cmp(const char *input1, const char *input2) uri1 = ast_strdupa(input1); uri2 = ast_strdupa(input2); - ast_uri_decode(uri1); - ast_uri_decode(uri2); + ast_uri_decode(uri1, ast_uri_sip_user); + ast_uri_decode(uri2, ast_uri_sip_user); uri_scheme1 = strsep(&uri1, ":"); uri_scheme2 = strsep(&uri2, ":"); |