comparison mtctest/setup.c @ 31:08d7794cdd0a

themwi-test-mtc: fix bug in called number parsing
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 06 Jul 2022 22:38:44 -0800
parents cc0e1c6e33c3
children 5141e21596bb
comparison
equal deleted inserted replaced
30:496f359226ab 31:08d7794cdd0a
50 setup_msg.called.type = GSM48_TON_INTERNATIONAL; 50 setup_msg.called.type = GSM48_TON_INTERNATIONAL;
51 setup_msg.called.plan = GSM48_NPI_ISDN_E164; 51 setup_msg.called.plan = GSM48_NPI_ISDN_E164;
52 setup_msg.fields |= MNCC_F_CALLED; 52 setup_msg.fields |= MNCC_F_CALLED;
53 return; 53 return;
54 } 54 }
55 ndig = grok_number_string(arg); 55 ndig = grok_number_string(arg, 1);
56 switch (ndig) { 56 switch (ndig) {
57 case 4: 57 case 4:
58 dehyphen_number_string(arg, short_num); 58 dehyphen_number_string(arg, short_num);
59 if (read_number_db() < 0) { 59 if (read_number_db() < 0) {
60 fprintf(stderr, "error reading number database\n"); 60 fprintf(stderr, "error reading number database\n");