mncc: In case of a disconnect.ind inform the other leg

In case the call got disconnected propagate it to the other leg
of the call.
This commit is contained in:
Holger Hans Peter Freyther 2016-03-26 06:20:54 +01:00
parent d3d8348c62
commit 71fbe870d8
1 changed files with 5 additions and 0 deletions

View File

@ -401,6 +401,7 @@ static void check_disc_ind(struct mncc_connection *conn, char *buf, int rc)
{
struct gsm_mncc *data;
struct mncc_call_leg *leg;
struct call_leg *other_leg;
leg = find_leg(conn, buf, rc, &data);
if (!leg)
@ -411,6 +412,10 @@ static void check_disc_ind(struct mncc_connection *conn, char *buf, int rc)
leg->base.in_release = true;
start_cmd_timer(leg, MNCC_REL_CNF);
mncc_send(leg->conn, MNCC_REL_REQ, leg->callref);
other_leg = call_leg_other(&leg->base);
if (other_leg)
other_leg->release_call(other_leg);
}
static void check_rel_ind(struct mncc_connection *conn, char *buf, int rc)