diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2021-03-28 12:52:58 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2021-03-28 12:52:58 +0200 |
commit | eb9b40c2606508f7a25f095eef5a0f3df970e08f (patch) | |
tree | 921e73c1f1c6c1303954261e0862f448b3dd788d | |
parent | 234f18cb43f125370a5ab91fd81037389600106b (diff) |
Fixed MSN option and handling
-rw-r--r-- | src/isdn/dss1.c | 2 | ||||
-rw-r--r-- | src/isdn/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
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': |