summaryrefslogtreecommitdiffstats
path: root/src/app.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-23 17:41:23 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-23 17:41:23 +0100
commit4f8cafa5b089ba0cab33afc7752fa54bd8e57d36 (patch)
tree027d5c792a2bd6512a4b3bb172cb02178bdaa082 /src/app.c
parentbc4fed27e12a08e094d8193680236f0a73796bbf (diff)
call: Continue up to the point of call routing
We accept the call on MNCC and ask the core to select/create the second leg of the call.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 6ab584d..6ec60ed 100644
--- a/src/app.c
+++ b/src/app.c
@@ -55,3 +55,20 @@ void app_setup(struct app_config *cfg)
{
cfg->mncc.conn.on_disconnect = app_mncc_disconnected;
}
+
+static void route_to_sip(struct call *call, const char *source, const char *dest)
+{
+ LOGP(DAPP, LOGL_ERROR, "Can not route call(%u) to SIP yet\n", call->id);
+ call_leg_release(call->initial);
+}
+
+void app_route_call(struct call *call, const char *source, const char *dest)
+{
+ if (call->initial->type == CALL_TYPE_MNCC)
+ route_to_sip(call, source, dest);
+ else {
+ LOGP(DAPP, LOGL_ERROR, "Can not route call(%u) to MNCC yet\n",
+ call->id);
+ call_leg_release(call->initial);
+ }
+}