New SIP Channel Driver - Add CLI/AMI initiated NOTIFY requests

Added the ability to send unsolicited NOTIFY requests to a particular endpoint
with a configured payload.  Added both CLI and AMI support.  For a given
endpoint, this module will iterate over all its contacts sending the appropriate
NOTIFY request to each.

(closes issue ASTERISK-21436)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2623/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin Harwell
2013-07-01 21:28:32 +00:00
parent 3841520a6e
commit 5456794b66
6 changed files with 725 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ static int on_endpoint(void *obj, void *arg, int flags)
static struct ao2_container *find_endpoints(struct ast_sip_contact *contact)
{
RAII_VAR(struct ao2_container *, endpoints,
ast_res_sip_get_endpoints(), ao2_cleanup);
ast_sip_get_endpoints(), ao2_cleanup);
return ao2_callback(endpoints, OBJ_MULTIPLE, on_endpoint, contact);
}
@@ -736,7 +736,7 @@ static int qualify_and_schedule_permanent_cb(void *obj, void *arg, int flags)
static void qualify_and_schedule_permanent(void)
{
RAII_VAR(struct ao2_container *, endpoints,
ast_res_sip_get_endpoints(), ao2_cleanup);
ast_sip_get_endpoints(), ao2_cleanup);
ao2_callback(endpoints, OBJ_NODATA,
qualify_and_schedule_permanent_cb, NULL);