[Asterisk-code-review] res pjsip: Add to list of valid characters for from user. (asterisk[13])

Benjamin Keith Ford asteriskteam at digium.com
Wed Nov 1 11:18:40 CDT 2017


Benjamin Keith Ford has uploaded this change for review. ( https://gerrit.asterisk.org/6949


Change subject: res_pjsip: Add to list of valid characters for from_user.
......................................................................

res_pjsip: Add to list of valid characters for from_user.

Fixes a regression where '+' was unable to be used in the from_user
field of an endpoint. While there are more characters that can be
added to the list of valid characters, this is the only change to
be made for now.

ASTERISK-27387

Change-Id: Id80c10a644508365c87b3182e99ea49da11b0281
---
M res/res_pjsip/pjsip_configuration.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/49/6949/1

diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c
index 629e85b..fa74409 100644
--- a/res/res_pjsip/pjsip_configuration.c
+++ b/res/res_pjsip/pjsip_configuration.c
@@ -1142,7 +1142,7 @@
 {
 	struct ast_sip_endpoint *endpoint = obj;
 	/* Valid non-alphanumeric characters for URI */
-	char *valid_uri_marks = "-_.!~*`()";
+	char *valid_uri_marks = "-_.!~*'()+";
 	const char *val;
 
 	for (val = var->value; *val; val++) {

-- 
To view, visit https://gerrit.asterisk.org/6949
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id80c10a644508365c87b3182e99ea49da11b0281
Gerrit-Change-Number: 6949
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171101/bb60c886/attachment.html>


More information about the asterisk-code-review mailing list