comparison mncc/call_setup.c @ 167:2ebad02adbe5

themwi-mncc: route outbound calls to themwi-sip-out
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2022 18:08:34 -0800
parents 660126bd5f59
children 59a166c50d0e
comparison
equal deleted inserted replaced
166:8adcd220c6cf 167:2ebad02adbe5
174 GSM48_CC_CAUSE_INCOMPAT_DEST); 174 GSM48_CC_CAUSE_INCOMPAT_DEST);
175 call->gc_flag = 1; 175 call->gc_flag = 1;
176 return; 176 return;
177 } 177 }
178 /* actually route the call */ 178 /* actually route the call */
179 if (is_local) { 179 if (is_local)
180 internal_switch_mo_setup(call, msg); 180 internal_switch_mo_setup(call, msg);
181 return; 181 else
182 } 182 outbound_mo_setup(call, msg);
183 /* outbound calls remain to be implemented */
184 syslog(LOG_ERR, "rejecting MO call 0x%x: outbound not implemented",
185 msg->callref);
186 reject_mo_call(msg->callref, GSM48_CAUSE_LOC_PRN_S_LU,
187 GSM48_CC_CAUSE_NO_ROUTE);
188 call->gc_flag = 1;
189 } 183 }
190 184
191 static void 185 static void
192 reject_mt_call(conn, callref, cause_loc, cause_val) 186 reject_mt_call(conn, callref, cause_loc, cause_val)
193 struct socket_conn *conn; 187 struct socket_conn *conn;