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])) {


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to