diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-27 16:43:45 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-27 17:05:48 +0200 |
commit | 00a43e20ab4e16ac3822d204d98f7d8e2f11b7c2 (patch) | |
tree | 45fcf441f7e78b91df7aef65126c5578511b0e29 /src/mncc.c | |
parent | 916348b7dcbd3f5fb4b672c3e18f6dd092cea146 (diff) |
mncc: On timeout release the other leg as well
In case we don't receive the response we had expected let us
take down the other part of the call as well.
Diffstat (limited to 'src/mncc.c')
-rw-r--r-- | src/mncc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,9 +42,14 @@ static void close_connection(struct mncc_connection *conn); static void cmd_timeout(void *data) { struct mncc_call_leg *leg = data; + struct call_leg *other_leg; LOGP(DMNCC, LOGL_ERROR, "cmd(0x%x) never arrived for leg(%u)\n", leg->rsp_wanted, leg->callref); + + other_leg = call_leg_other(&leg->base); + if (other_leg) + other_leg->release_call(other_leg); call_leg_release(&leg->base); } |