summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-10-11 22:40:14 +0200
committerPatrick McHardy <kaber@trash.net>2010-10-14 08:11:59 +0200
commitd6d3253a5c5a9e1b51a9f957d8cec8a782db3745 (patch)
treed1194960fb30b23239464ad9a173f2bb05b7e9f4 /example
parentb0cb45c93cac6c2d6cebc4344b4ed5b63a0758cd (diff)
events
Diffstat (limited to 'example')
-rw-r--r--example/ss.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/example/ss.c b/example/ss.c
index f45e9f6..eac9391 100644
--- a/example/ss.c
+++ b/example/ss.c
@@ -29,18 +29,25 @@ static void mnss_release_ind(struct dect_handle *dh, struct dect_ss_endpoint *ss
static void dect_invoke_ss(struct dect_handle *dh, const struct dect_ipui *ipui)
{
struct dect_ss_endpoint *sse;
- struct dect_ie_feature_activate feature_activate;
+ struct dect_ie_events_notification events_notification;
struct dect_mnss_param param = {
- .feature_activate = &feature_activate,
+ .events_notification = &events_notification,
};
sse = dect_ss_endpoint_alloc(dh, ipui);
if (sse == NULL)
return;
- feature_activate.feature = DECT_FEATURE_INDICATION_OF_SUBSCRIBER_NUMBER;
+ events_notification.num = 2;
+ events_notification.events[0].type = DECT_EVENT_MISSED_CALL;
+ events_notification.events[0].subtype = DECT_EVENT_MISSED_CALL_VOICE;
+ events_notification.events[0].multiplicity = 10;
- dect_mnss_setup_req(dh, sse, &param);
+ events_notification.events[1].type = DECT_EVENT_MESSAGE_WAITING;
+ events_notification.events[1].subtype = DECT_EVENT_MESSAGE_WAITING_VOICE;
+ events_notification.events[1].multiplicity = 10;
+
+ dect_mnss_facility_req(dh, sse, &param);
}
static struct dect_ss_ops ss_ops = {