mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user