From eb9b40c2606508f7a25f095eef5a0f3df970e08f Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 28 Mar 2021 12:52:58 +0200 Subject: Fixed MSN option and handling --- src/isdn/dss1.c | 2 ++ src/isdn/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/isdn/dss1.c b/src/isdn/dss1.c index a662e6a..e56899f 100644 --- a/src/isdn/dss1.c +++ b/src/isdn/dss1.c @@ -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) { diff --git a/src/isdn/main.c b/src/isdn/main.c index 99f5505..8f7ec7e 100644 --- a/src/isdn/main.c +++ b/src/isdn/main.c @@ -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': -- cgit v1.2.3