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:
parent
916348b7dc
commit
00a43e20ab
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue