diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-10 18:21:25 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-10 18:23:28 +0800 |
commit | 7afac583cd24690a855efdcc758c107c1adc25f6 (patch) | |
tree | aec6c0a0b73c341478bbf8848cb135558442421c /openbsc/src/gsm_04_11.c | |
parent | ca5702a5c65931b2bee50f56b49676928f37f2c8 (diff) |
gsm_04_11: Start using the GSM Subscriber class to ask for a channel
The paging message should not be called directly and the GSM Subscriber
can handle multiple requests at the same time... Now a subscr_put_channel
should be called after the message sending. But it is not very clear when
this can be called. The current code works by luck that the SAPI=0 will
be released...
The MT-SMS was tested via the VTY interface and a N900.
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r-- | openbsc/src/gsm_04_11.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 3aa9d09d8..a34691375 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -1186,11 +1186,7 @@ int gsm411_send_sms_subscr(struct gsm_subscriber *subscr, rll_ind_cb, sms); /* if not, we have to start paging */ - rc = paging_request(subscr->net, subscr, RSL_CHANNEED_SDCCH, - paging_cb_send_sms, sms); - if (rc <= 0) - sms_free(sms); - + subscr_get_channel(subscr, RSL_CHANNEED_SDCCH, paging_cb_send_sms, sms); return 0; } |