When an 'ExtensionStatus' event was raised it included the status as a
numerical value, but did not include a text description of the status.
Added a 'StatusText' field to the event which is a string representation
of the extension status. Also added this to the 'Extension State' command
response.
(closes issue ASTERISK-23154)
Reported by: Jonathan Rose
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406647
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
"Exten: %s\r\n"
"Context: %s\r\n"
"Hint: %s\r\n"
- "Status: %d\r\n\r\n",
- exten, context, hint, status);
+ "Status: %d\r\n"
+ "StatusText: %s\r\n\r\n",
+ exten, context, hint, status,
+ ast_extension_state2str(status));
return 0;
}
"Exten: %s\r\n"
"Context: %s\r\n"
"Hint: %s\r\n"
- "Status: %d\r\n",
+ "Status: %d\r\n"
+ "StatusText: %s\r\n",
exten,
context,
hint,
- info->exten_state);
+ info->exten_state,
+ ast_extension_state2str(info->exten_state));
break;
case AST_HINT_UPDATE_PRESENCE:
/*** DOCUMENTATION