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.
This commit is contained in:
Holger Hans Peter Freyther 2016-03-27 16:43:45 +02:00
parent 916348b7dc
commit 00a43e20ab
1 changed files with 5 additions and 0 deletions

View File

@ -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)