FreeCalypso > hg > themwi-system-sw
comparison sip-in/invite_init.c @ 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 | 4b685a5d9bd4 |
children | e980fe9c186c |
comparison
equal
deleted
inserted
replaced
247:c6a3fb913c53 | 248:257da5474e77 |
---|---|
67 if (uri_user[0] == '+') { | 67 if (uri_user[0] == '+') { |
68 if (grok_number_string(uri_user+1, 0) != 11 || | 68 if (grok_number_string(uri_user+1, 0) != 11 || |
69 uri_user[1] != '1') | 69 uri_user[1] != '1') |
70 goto not_nanp; | 70 goto not_nanp; |
71 called_nanp = uri_user + 2; | 71 called_nanp = uri_user + 2; |
72 } else switch (grok_number_string(uri_user)) { | 72 } else switch (grok_number_string(uri_user, 0)) { |
73 case 10: | 73 case 10: |
74 called_nanp = uri_user; | 74 called_nanp = uri_user; |
75 break; | 75 break; |
76 case 11: | 76 case 11: |
77 if (uri_user[0] != '1') | 77 if (uri_user[0] != '1') |