[asterisk-commits] file: trunk r427257 - /trunk/res/res_pjsip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 4 16:31:20 CST 2014


Author: file
Date: Tue Nov  4 16:31:16 2014
New Revision: 427257

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=427257
Log:
res_pjsip: Allow + at the beginning of a phone number when user_eq_phone is enabled.

Modified:
    trunk/res/res_pjsip.c

Modified: trunk/res/res_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip.c?view=diff&rev=427257&r1=427256&r2=427257
==============================================================================
--- trunk/res/res_pjsip.c (original)
+++ trunk/res/res_pjsip.c Tue Nov  4 16:31:16 2014
@@ -2150,6 +2150,10 @@
 		return;
 	}
 
+	if (pj_strbuf(&sip_uri->user)[0] == '+') {
+		i = 1;
+	}
+
 	/* Test URI user against allowed characters in AST_DIGIT_ANY */
 	for (; i < pj_strlen(&sip_uri->user); i++) {
 		if (!strchr(AST_DIGIT_ANYNUM, pj_strbuf(&sip_uri->user)[i])) {




More information about the asterisk-commits mailing list