changeset 203:e89619893c1e

sip-out: require minimum of 7 digits for E.164 numbers
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 04 Apr 2023 21:09:50 -0800
parents f3164f732b84
children de7c64c4d6fd
files sip-out/call_setup.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sip-out/call_setup.c	Sun Apr 02 18:05:30 2023 -0800
+++ b/sip-out/call_setup.c	Tue Apr 04 21:09:50 2023 -0800
@@ -85,7 +85,7 @@
 	refresh_out_routes_db();
 	if (msg->called.type == GSM48_TON_INTERNATIONAL) {
 		rc = grok_number_string(msg->called.number, 0);
-		if (rc < 2 || rc > MAX_E164_NUMBER) {
+		if (rc < 7 || rc > MAX_E164_NUMBER) {
 inv_nr_format:		reject_mo_call(mncc, msg->callref,
 					GSM48_CAUSE_LOC_PRN_S_LU,
 					GSM48_CC_CAUSE_INV_NR_FORMAT);