From 1eab82ba2d63ec02bf6642258e787206528a2303 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 22 Apr 2014 08:50:25 -0400 Subject: [PATCH] mod_rayo: relax recent caller ID restrictions a bit --- src/mod/event_handlers/mod_rayo/mod_rayo.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index 2a61bfd72b..2414f943cc 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -2423,25 +2423,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 @@ -2517,7 +2498,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; } }