Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c (17052 => 17053)
--- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c 2010-03-19 21:51:02 UTC (rev 17052)
+++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c 2010-03-19 23:23:04 UTC (rev 17053)
@@ -691,11 +691,12 @@
e164 format without the +
NANP only (so 11 digits starting with 1)
*/
- if (!cb_struct->lookup_number || (strlen(cb_struct->lookup_number) != 11 && *cb_struct->lookup_number != '1')) {
+ if (!cb_struct->lookup_number || (strlen(cb_struct->lookup_number) != 11 && *cb_struct->lookup_number != '1') ||
+ !switch_is_number(cb_struct->lookup_number)) {
/* dest doesn't appear to be NANP number */
return SWITCH_STATUS_GENERR;
}
- if (!cb_struct->cid || (strlen(cb_struct->cid) != 11 && *cb_struct->cid != '1')) {
+ if (!cb_struct->cid || (strlen(cb_struct->cid) != 11 && *cb_struct->cid != '1') || !switch_is_number(cb_struct->cid)) {
/* cid not NANP */
return SWITCH_STATUS_GENERR;
}