Matt Jordan informed me that it was more appropriate to use an
astman_send_ack here instead of making an event response. I've also
used this opportunity to update UPGRADE.txt to mention this change
in behavior.
(issue AST-969)
Reported by: John Bigelow
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@371889
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
the DBDel action does.
- The IAX2 PeerStatus event now sends a 'Port' header. In Asterisk 10, this was
erroneously being sent as a 'Post' header.
+ - The SIP SIPqualifypeer action now receives an appropriate response when it
+ is completed successfully. It also no longer sends extra blank lines afterwards.
CCSS:
- Macro is deprecated. Use cc_callback_sub instead of cc_callback_macro
struct sip_peer *peer;
int load_realtime;
- const char *id = astman_get_header(m,"ActionID");
- char idText[256] = "";
-
- if (!ast_strlen_zero(id)) {
- snprintf(idText, sizeof(idText), "ActionID: %s\r\n", id);
- }
-
-
if (argc < 4)
return CLI_SHOWUSAGE;
}
if (type != 0) {
- astman_append(s,
- "Event: SIPqualifypeerComplete\r\n"
- "%s"
- "\r\n",
- idText);
+ astman_send_ack(s, m, "Qualify Peer successful");
}
return CLI_SUCCESS;