From: Chris Rienzo Date: Tue, 22 Apr 2014 12:50:25 +0000 (-0400) Subject: mod_rayo: relax recent caller ID restrictions a bit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df68285d0879bc6c4e54f296864c45d2e93279b;p=thirdparty%2Ffreeswitch.git mod_rayo: relax recent caller ID restrictions a bit --- diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index d7731c50b6..cd357c5b13 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -2418,25 +2418,6 @@ static int is_valid_sip_uri(char *uri) return 1; } -/** - * @return 1 if tel URI is valid - */ -static int is_valid_tel_uri(char *uri) -{ - if (!zstr(uri)) { - /* alphanumeric only for now */ - int i; - int len = strlen(uri); - for (i = 0; i < len; i++) { - if (!isalnum(uri[i])) { - return 0; - } - } - return 1; - } - return 0; -} - #define RAYO_URI_SCHEME_UNKNOWN 0 #define RAYO_URI_SCHEME_TEL 1 #define RAYO_URI_SCHEME_SIP 2 @@ -2512,7 +2493,7 @@ static int parse_dial_from(switch_memory_pool_t *pool, const char *from, char ** l_uri += 4; *uri = l_uri; } - if (is_valid_tel_uri(l_uri)) { + if (!zstr(l_uri)) { return RAYO_URI_SCHEME_TEL; } }