annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * In this module we implement our handling of call control messages
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * from OsmoMSC relayed to us via themwi-mncc.
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #include <sys/types.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #include <sys/socket.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #include <netinet/in.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include <stdio.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 #include <stdint.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 #include <stdlib.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 #include <string.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 #include <strings.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 #include <syslog.h>
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 #include "../include/mncc.h"
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 #include "../include/gsm48_const.h"
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 #include "call.h"
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 extern struct call *find_call_by_mncc_callref();
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
83
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
21 static struct gsm_mncc_cause default_cause = {
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
22 .coding = GSM48_CAUSE_CODING_GSM,
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
23 .location = GSM48_CAUSE_LOC_PRN_S_LU,
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
24 .value = GSM48_CC_CAUSE_NORMAL_UNSPEC,
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
25 };
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
26
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 handle_alerting(call, msg)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 struct gsm_mncc *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 {
65
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
32 if (call->mncc_state != MNCC_STATE_STARTED) {
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
33 syslog(LOG_ERR, "MNCC_ALERT_IND in wrong MNCC state 0x%x",
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
34 call->mncc_state);
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
35 return;
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
36 }
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
37 call->mncc_state = MNCC_STATE_ALERTING;
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
38 call->overall_state = OVERALL_STATE_ALERTING;
7c0309df59f8 sip-in: handling of ALERTING state
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
39 signal_invite_ringing(call);
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 handle_answer(call, msg)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 struct gsm_mncc *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 {
66
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
47 if (call->mncc_state != MNCC_STATE_STARTED &&
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
48 call->mncc_state != MNCC_STATE_ALERTING) {
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
49 syslog(LOG_ERR, "MNCC_SETUP_CNF in wrong MNCC state 0x%x",
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
50 call->mncc_state);
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
51 return;
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
52 }
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
53 call->mncc_state = MNCC_STATE_ANSWERED;
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
54 call->overall_state = OVERALL_STATE_ANSWERED;
86
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
55 /* right now we require MNCC_RTP_CREATE to have come first */
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
56 if (!call->gsm_payload_msg_type) {
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
57 call->overall_state = OVERALL_STATE_TEARDOWN;
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
58 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
59 GSM48_CC_CAUSE_PROTO_ERR);
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
60 disconnect_tmgw(call);
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
61 strcpy(call->invite_fail, "502 Internal protocol error");
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
62 signal_invite_error(call);
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
63 return;
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
64 }
f332ccc240f1 sip-in: preparations toward TMGW connect-through
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
65 /* TODO: send MDCX to themwi-mgw */
66
5beb51de1bae sip-in: got as far as propagating GSM CC CONNECT to INVITE 200
Mychaela Falconia <falcon@freecalypso.org>
parents: 65
diff changeset
66 signal_invite_200(call);
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
67 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 handle_disconnect_ind(call, msg)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
71 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
72 struct gsm_mncc *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
73 {
83
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
74 struct gsm_mncc_cause *cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
75
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
76 /* release back to MNCC */
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
77 msg->msg_type = MNCC_REL_REQ;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
78 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
79 call->mncc_state = MNCC_STATE_RELEASE;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
80 /* signal disconnect to SIP */
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
81 call->overall_state = OVERALL_STATE_TEARDOWN;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
82 if (msg->fields & MNCC_F_CAUSE)
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
83 cause = &msg->cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
84 else
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
85 cause = &default_cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
86 disconnect_sip(call, cause);
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
87 disconnect_tmgw(call);
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
88 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
89
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
90 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
91 handle_final_release(call, msg)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
92 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
93 struct gsm_mncc *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
94 {
83
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
95 struct gsm_mncc_cause *cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
96
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
97 /* MNCC call leg is gone */
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
98 call->mncc_state = MNCC_STATE_NO_EXIST;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
99 /* signal disconnect to SIP */
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
100 call->overall_state = OVERALL_STATE_TEARDOWN;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
101 if (msg->fields & MNCC_F_CAUSE)
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
102 cause = &msg->cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
103 else
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
104 cause = &default_cause;
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
105 disconnect_sip(call, cause);
3e3fbf44f9d7 sip-in: disconnect and call clearing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 66
diff changeset
106 disconnect_tmgw(call);
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
107 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
108
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
109 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
110 handle_signaling_msg(msg, msglen)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
111 struct gsm_mncc *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
112 unsigned msglen;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
113 {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
114 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
115
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
116 if (msglen != sizeof(struct gsm_mncc)) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
117 syslog(LOG_CRIT,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
118 "FATAL: Rx MNCC message type 0x%x has wrong length",
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
119 msg->msg_type);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
120 exit(1);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
121 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
122 call = find_call_by_mncc_callref(msg->callref);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
123 if (!call) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
124 syslog(LOG_CRIT,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
125 "error: Rx MNCC message type 0x%x has invalid callref 0x%x",
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
126 msg->msg_type, msg->callref);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
127 exit(1);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
128 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
129 switch (msg->msg_type) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
130 case MNCC_SETUP_CNF:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
131 handle_answer(call, msg);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
132 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
133 case MNCC_ALERT_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
134 handle_alerting(call, msg);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
135 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
136 case MNCC_DISC_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
137 handle_disconnect_ind(call, msg);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
138 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
139 case MNCC_REL_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
140 case MNCC_REL_CNF:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
141 case MNCC_REJ_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
142 handle_final_release(call, msg);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
143 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
144 case MNCC_START_DTMF_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
145 msg->msg_type = MNCC_START_DTMF_REJ;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
146 mncc_set_cause(msg, GSM48_CAUSE_LOC_PRN_S_LU,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
147 GSM48_CC_CAUSE_SERV_OPT_UNIMPL);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
148 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
149 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
150 case MNCC_STOP_DTMF_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
151 msg->msg_type = MNCC_STOP_DTMF_RSP;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
152 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
153 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
154 case MNCC_MODIFY_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
155 msg->msg_type = MNCC_MODIFY_REJ;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
156 mncc_set_cause(msg, GSM48_CAUSE_LOC_PRN_S_LU,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
157 GSM48_CC_CAUSE_SERV_OPT_UNIMPL);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
158 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
159 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
160 case MNCC_HOLD_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
161 msg->msg_type = MNCC_HOLD_REJ;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
162 mncc_set_cause(msg, GSM48_CAUSE_LOC_PRN_S_LU,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
163 GSM48_CC_CAUSE_SERV_OPT_UNIMPL);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
164 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
165 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
166 case MNCC_RETRIEVE_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
167 msg->msg_type = MNCC_RETRIEVE_REJ;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
168 mncc_set_cause(msg, GSM48_CAUSE_LOC_PRN_S_LU,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
169 GSM48_CC_CAUSE_SERV_OPT_UNIMPL);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
170 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc));
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
171 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
172 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
173 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
174
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
175 static void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
176 handle_rtp_create(msg, msglen)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
177 struct gsm_mncc_rtp *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
178 unsigned msglen;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
179 {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
180 struct call *call;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
181
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
182 if (msglen != sizeof(struct gsm_mncc_rtp)) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
183 syslog(LOG_CRIT,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
184 "FATAL: Rx MNCC message type 0x%x has wrong length",
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
185 msg->msg_type);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
186 exit(1);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
187 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
188 call = find_call_by_mncc_callref(msg->callref);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
189 if (!call) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
190 syslog(LOG_CRIT,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
191 "error: Rx MNCC message type 0x%x has invalid callref 0x%x",
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
192 msg->msg_type, msg->callref);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
193 exit(1);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
194 }
84
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
195 /* save Osmocom network RTP information */
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
196 bcopy(&msg->addr, &call->gsm_rtp_osmo, sizeof(struct sockaddr_storage));
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
197 call->gsm_payload_type = msg->payload_type;
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
198 call->gsm_payload_msg_type = msg->payload_msg_type;
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
199 /* respond with MNCC_RTP_CONNECT */
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
200 msg->msg_type = MNCC_RTP_CONNECT;
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
201 bcopy(&call->gsm_rtp_tmgw, &msg->addr, sizeof(struct sockaddr_storage));
f82157ac7303 sip-in: handle MNCC_RTP_CREATE
Mychaela Falconia <falcon@freecalypso.org>
parents: 83
diff changeset
202 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc_rtp));
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
203 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
204
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
205 void
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
206 msg_from_mncc(msg, msglen)
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
207 union mncc_msg *msg;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
208 unsigned msglen;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
209 {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
210 switch (msg->msg_type) {
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
211 case MNCC_SETUP_CNF:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
212 case MNCC_CALL_CONF_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
213 case MNCC_ALERT_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
214 case MNCC_NOTIFY_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
215 case MNCC_DISC_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
216 case MNCC_FACILITY_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
217 case MNCC_START_DTMF_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
218 case MNCC_STOP_DTMF_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
219 case MNCC_MODIFY_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
220 case MNCC_HOLD_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
221 case MNCC_RETRIEVE_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
222 case MNCC_USERINFO_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
223 case MNCC_REL_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
224 case MNCC_REL_CNF:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
225 case MNCC_REJ_IND:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
226 handle_signaling_msg(msg, msglen);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
227 return;
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
228 case MNCC_RTP_CREATE:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
229 handle_rtp_create(msg, msglen);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
230 return;
85
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
231 case MNCC_RTP_CONNECT:
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
232 syslog(LOG_ERR, "MNCC_RTP_CONNECT error from OsmoMSC");
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
233 return;
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
234 case MNCC_RTP_FREE:
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
235 syslog(LOG_ERR, "MNCC_RTP_FREE bogon from OsmoMSC");
70c3c8ebee33 sip-in: handle MNCC RTP bogons from OsmoMSC
Mychaela Falconia <falcon@freecalypso.org>
parents: 84
diff changeset
236 return;
63
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
237 default:
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
238 syslog(LOG_CRIT,
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
239 "FATAL: received unexpected MNCC message type 0x%x",
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
240 msg->msg_type);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
241 exit(1);
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
242 }
e5aee661e3b2 sip-in: beginning to handle incoming MNCC messages from themwi-mncc
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
243 }