FreeCalypso > hg > themwi-system-sw
comparison sip-in/mncc_handle.c @ 87:9e9034ef476c
sip-in: send CONNECT ACK to GSM upon SIP ACK after 200
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 20 Sep 2022 23:20:50 -0800 |
parents | f332ccc240f1 |
children | 423610bb2c9e |
comparison
equal
deleted
inserted
replaced
86:f332ccc240f1 | 87:9e9034ef476c |
---|---|
21 static struct gsm_mncc_cause default_cause = { | 21 static struct gsm_mncc_cause default_cause = { |
22 .coding = GSM48_CAUSE_CODING_GSM, | 22 .coding = GSM48_CAUSE_CODING_GSM, |
23 .location = GSM48_CAUSE_LOC_PRN_S_LU, | 23 .location = GSM48_CAUSE_LOC_PRN_S_LU, |
24 .value = GSM48_CC_CAUSE_NORMAL_UNSPEC, | 24 .value = GSM48_CC_CAUSE_NORMAL_UNSPEC, |
25 }; | 25 }; |
26 | |
27 void | |
28 send_mncc_connect_ack(call) | |
29 struct call *call; | |
30 { | |
31 struct gsm_mncc ack; | |
32 | |
33 bzero(&ack, sizeof(struct gsm_mncc)); | |
34 ack.msg_type = MNCC_SETUP_COMPL_REQ; | |
35 ack.callref = call->mncc_callref; | |
36 send_mncc_to_gsm(&ack, sizeof(struct gsm_mncc)); | |
37 call->mncc_state = MNCC_STATE_CONNECTED; | |
38 call->overall_state = OVERALL_STATE_CONNECTED; | |
39 } | |
26 | 40 |
27 static void | 41 static void |
28 handle_alerting(call, msg) | 42 handle_alerting(call, msg) |
29 struct call *call; | 43 struct call *call; |
30 struct gsm_mncc *msg; | 44 struct gsm_mncc *msg; |