From b5f91be828024d74b538b06c93b7239aa9cd613a Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Fri, 19 Aug 2005 16:16:19 +0000 Subject: [PATCH] Added info elements 'notification indication' and 'notify'. --- chan_capi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/chan_capi.c b/chan_capi.c index 3587c6f..455f644 100644 --- a/chan_capi.c +++ b/chan_capi.c @@ -1972,6 +1972,25 @@ static void capi_handle_info_indication(_cmsg *CMSG, unsigned int PLCI, unsigned i->name, INFO_IND_INFOELEMENT(CMSG)[1], INFO_IND_INFOELEMENT(CMSG)[2]); handle_progress_indicator(CMSG, PLCI, i); break; + case 0x0027: { /* Notification Indicator */ + char *desc = "?"; + if (INFO_IND_INFOELEMENT(CMSG)[0] > 0) { + switch (INFO_IND_INFOELEMENT(CMSG)[1]) { + case 0: + desc = "User suspended"; + break; + case 1: + desc = "User resumed"; + break; + case 2: + desc = "Bearer service changed"; + break; + } + } + cc_ast_verbose(3, 1, VERBOSE_PREFIX_3 "%s: info element NOTIFICATION INDICATOR '%s'\n", + i->name, desc); + break; + } case 0x0028: /* DSP */ cc_ast_verbose(3, 1, VERBOSE_PREFIX_3 "%s: info element DSP\n", i->name); @@ -2084,6 +2103,10 @@ static void capi_handle_info_indication(_cmsg *CMSG, unsigned int PLCI, unsigned cc_ast_verbose(3, 1, VERBOSE_PREFIX_3 "%s: info element RELEASE COMPLETE\n", i->name); break; + case 0x806e: /* NOTIFY */ + cc_ast_verbose(3, 1, VERBOSE_PREFIX_3 "%s: info element NOTIFY\n", + i->name); + break; case 0x807b: /* INFORMATION */ cc_ast_verbose(3, 1, VERBOSE_PREFIX_3 "%s: info element INFORMATION\n", i->name);