changeset 248:257da5474e77

sip-in: fix bug in incoming number validation for non-plus
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 14 Aug 2023 22:56:20 -0800
parents c6a3fb913c53
children e980fe9c186c
files sip-in/invite_init.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sip-in/invite_init.c	Mon Aug 14 22:39:28 2023 -0800
+++ b/sip-in/invite_init.c	Mon Aug 14 22:56:20 2023 -0800
@@ -69,7 +69,7 @@
 		    uri_user[1] != '1')
 			goto not_nanp;
 		called_nanp = uri_user + 2;
-	} else switch (grok_number_string(uri_user)) {
+	} else switch (grok_number_string(uri_user, 0)) {
 	case 10:
 		called_nanp = uri_user;
 		break;