Fixed MSN option and handling

This commit is contained in:
Andreas Eversberg 2021-03-28 12:52:58 +02:00
parent 234f18cb43
commit eb9b40c260
2 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,7 @@ void setup_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)
while (m) {
if (!strcmp(callerid, m->msn))
break;
m = m->next;
}
/* not found, so we use first MSN */
if (!m) {
@ -1597,6 +1598,7 @@ void setup_req(call_t *call, osmo_cc_msg_t *msg)
while (m) {
if (!strcmp(dialing, m->msn))
break;
m = m->next;
}
/* not found, so we use first MSN */
if (!m) {

View File

@ -204,7 +204,7 @@ static int handle_options(int short_option, int argi, char **argv)
case '0':
ptp = 1;
break;
case 'm':
case 'M':
isdn_add_msn(isdn_ep, argv[argi]);
break;
case '1':