From d6d3253a5c5a9e1b51a9f957d8cec8a782db3745 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 11 Oct 2010 22:40:14 +0200 Subject: events --- example/ss.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'example') 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, ¶m); + 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, ¶m); } static struct dect_ss_ops ss_ops = { -- cgit v1.2.3