FreeCalypso > hg > themwi-system-sw
diff sip-in/mncc_handle.c @ 153:99fd4ae573ae
sip-in: split mncc_sig_out.c from mncc_handle.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 11 Oct 2022 16:23:44 -0800 |
parents | e499e8db8b82 |
children |
line wrap: on
line diff
--- a/sip-in/mncc_handle.c Tue Oct 11 16:11:21 2022 -0800 +++ b/sip-in/mncc_handle.c Tue Oct 11 16:23:44 2022 -0800 @@ -25,84 +25,6 @@ .value = GSM48_CC_CAUSE_NORMAL_UNSPEC, }; -void -send_mncc_connect_ack(call) - struct call *call; -{ - struct gsm_mncc ack; - - bzero(&ack, sizeof(struct gsm_mncc)); - ack.msg_type = MNCC_SETUP_COMPL_REQ; - ack.callref = call->mncc_callref; - send_mncc_to_gsm(&ack, sizeof(struct gsm_mncc)); - call->mncc_state = MNCC_STATE_CONNECTED; - call->overall_state = OVERALL_STATE_CONNECTED; -} - -void -mncc_dtmf_start_ok(call) - struct call *call; -{ - struct gsm_mncc msg; - - bzero(&msg, sizeof(struct gsm_mncc)); - msg.msg_type = MNCC_START_DTMF_RSP; - msg.callref = call->mncc_callref; - msg.fields |= MNCC_F_KEYPAD; - msg.keypad = call->dtmf_digit; - send_mncc_to_gsm(&msg, sizeof(struct gsm_mncc)); -} - -void -mncc_dtmf_start_err(call) - struct call *call; -{ - struct gsm_mncc msg; - - bzero(&msg, sizeof(struct gsm_mncc)); - msg.msg_type = MNCC_START_DTMF_REJ; - msg.callref = call->mncc_callref; - mncc_set_cause(&msg, GSM48_CAUSE_LOC_PRN_S_LU, - GSM48_CC_CAUSE_PROTO_ERR); - send_mncc_to_gsm(&msg, sizeof(struct gsm_mncc)); -} - -void -mncc_dtmf_stop_ok(call) - struct call *call; -{ - struct gsm_mncc msg; - - bzero(&msg, sizeof(struct gsm_mncc)); - msg.msg_type = MNCC_STOP_DTMF_RSP; - msg.callref = call->mncc_callref; - send_mncc_to_gsm(&msg, sizeof(struct gsm_mncc)); -} - -void -mncc_send_hold_ack(call) - struct call *call; -{ - struct gsm_mncc msg; - - bzero(&msg, sizeof(struct gsm_mncc)); - msg.msg_type = MNCC_HOLD_CNF; - msg.callref = call->mncc_callref; - send_mncc_to_gsm(&msg, sizeof(struct gsm_mncc)); -} - -void -mncc_send_retrieve_ack(call) - struct call *call; -{ - struct gsm_mncc msg; - - bzero(&msg, sizeof(struct gsm_mncc)); - msg.msg_type = MNCC_RETRIEVE_CNF; - msg.callref = call->mncc_callref; - send_mncc_to_gsm(&msg, sizeof(struct gsm_mncc)); -} - static void send_rtp_connect(call) struct call *call;