(evntType == MI_CALLPROC)?"PROCEED":
(evntType == MI_PROGRESS)?"PROGRESS":
(evntType == MI_SETUPACK)?"SETUP ACK":
- (evntType == MI_INFO)?"INFO":"UNKNOWN",
- suId, suInstId, spInstId, ces);
+ (evntType == MI_NOTIFY)?"NOTIFY":
+ (evntType == MI_INFO)?"INFO":"UNKNOWN",
+ suId, suInstId, spInstId, ces);
switch(evntType) {
case MI_CALLPROC:
break;
}
}
-
+ break;
+ case MI_NOTIFY:
+ ftdm_log_chan(ftdmchan, FTDM_LOG_DEBUG, "Processing NOTIFY (suId:%u suInstId:%u spInstId:%u)\n", suId, suInstId, spInstId);
+ /* Do nothing */
break;
default:
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_WARNING, "Unhandled STATUS event\n");
(evntType == MI_CALLPROC)?"PROCEED":
(evntType == MI_PROGRESS)?"PROGRESS":
(evntType == MI_SETUPACK)?"SETUP ACK":
- (evntType == MI_INFO)?"INFO":"UNKNOWN",
+ (evntType == MI_NOTIFY)?"NOTIFY":
+ (evntType == MI_INFO)?"INFO":"UNKNOWN",
suId, suInstId, spInstId, ces);
sngisdn_event = ftdm_malloc(sizeof(*sngisdn_event));
calling_subaddr_string, (j-1), get_code_2_str(type, dcodQ931TypeOfSubaddressTable), type);
}
break;
- case PROT_Q931_IE_REDIRECTION_NUMBER:
case PROT_Q931_IE_NOTIFICATION_IND:
+ {
+ uint8_t desc;
+
+ desc = get_bits(OCTET(3),1,7);
+ *str_len += sprintf(&str[*str_len], "%s (%d)\n",
+ get_code_2_str(desc, dcodQ931NotificationIndTable), desc);
+ }
+ break;
+ case PROT_Q931_IE_REDIRECTION_NUMBER:
case PROT_Q931_IE_DATE_TIME:
case PROT_Q931_IE_INFORMATION_REQUEST:
case PROT_Q931_IE_SIGNAL:
{ -1, "Invalid"},
};
+
+struct code2str dcodQ931NotificationIndTable[] = {
+ { 0x71, "Call Information/event"},
+ { -1, "Invalid"},
+};
#endif /* __FTMOD_SANGOMA_ISDN_TRACE_H__ */