FreeCalypso > hg > themwi-system-sw
comparison sip-in/mncc_handle.c @ 86:f332ccc240f1
sip-in: preparations toward TMGW connect-through
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 20 Sep 2022 23:14:50 -0800 |
parents | 70c3c8ebee33 |
children | 9e9034ef476c |
comparison
equal
deleted
inserted
replaced
85:70c3c8ebee33 | 86:f332ccc240f1 |
---|---|
50 call->mncc_state); | 50 call->mncc_state); |
51 return; | 51 return; |
52 } | 52 } |
53 call->mncc_state = MNCC_STATE_ANSWERED; | 53 call->mncc_state = MNCC_STATE_ANSWERED; |
54 call->overall_state = OVERALL_STATE_ANSWERED; | 54 call->overall_state = OVERALL_STATE_ANSWERED; |
55 /* right now we require MNCC_RTP_CREATE to have come first */ | |
56 if (!call->gsm_payload_msg_type) { | |
57 call->overall_state = OVERALL_STATE_TEARDOWN; | |
58 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU, | |
59 GSM48_CC_CAUSE_PROTO_ERR); | |
60 disconnect_tmgw(call); | |
61 strcpy(call->invite_fail, "502 Internal protocol error"); | |
62 signal_invite_error(call); | |
63 return; | |
64 } | |
65 /* TODO: send MDCX to themwi-mgw */ | |
55 signal_invite_200(call); | 66 signal_invite_200(call); |
56 } | 67 } |
57 | 68 |
58 static void | 69 static void |
59 handle_disconnect_ind(call, msg) | 70 handle_disconnect_ind(call, msg) |