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.
zecke/mt-mncc-call
Holger Hans Peter Freyther 7 years ago
parent d3d8348c62
commit 71fbe870d8
  1. 5
      src/mncc.c

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

Loading…
Cancel
Save