aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/silent_call.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-08 20:44:42 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-08 20:44:42 +0200
commite019b564eccaf63ca372db6811dfa3dd6c4d9084 (patch)
treee5c1d729eb01e90f38f4a193e63602717595156b /openbsc/src/libmsc/silent_call.c
parentdaaea0c84fee46d9b63b746d5ed2cdf66f990352 (diff)
parenteb48cafac9af84586679a4ce4caeb985ef0b1eb1 (diff)
Merge branch 'zecke/changes/paging-order'
Various paging clean-ups. I couldn't re-produce the assert that was hit by Rhizomatica in the subscriber code. Let's clean things up a bit to avoid some of the potential issues this code had. Always stop paging regardless of where the subscriber is at the time of the cancellation.
Diffstat (limited to 'openbsc/src/libmsc/silent_call.c')
-rw-r--r--openbsc/src/libmsc/silent_call.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbsc/src/libmsc/silent_call.c b/openbsc/src/libmsc/silent_call.c
index 010c2b4d2..e9ece1835 100644
--- a/openbsc/src/libmsc/silent_call.c
+++ b/openbsc/src/libmsc/silent_call.c
@@ -118,11 +118,10 @@ int silent_call_reroute(struct gsm_subscriber_connection *conn, struct msgb *msg
/* initiate a silent call with a given subscriber */
int gsm_silent_call_start(struct gsm_subscriber *subscr, void *data, int type)
{
- int rc;
+ struct subscr_request *req;
- rc = paging_request(subscr->group->net, subscr, type,
- paging_cb_silent, data);
- return rc;
+ req = subscr_request_channel(subscr, type, paging_cb_silent, data);
+ return req != NULL;
}
/* end a silent call with a given subscriber */