Added info elements 'notification indication' and 'notify'.

This commit is contained in:
MelwareDE 2005-08-19 16:16:19 +00:00
parent dafa5e1fe0
commit b5f91be828
1 changed files with 23 additions and 0 deletions

View File

@ -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);