diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-12-20 21:32:13 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-12-20 21:32:13 +0000 |
commit | b172d369c4057cddad18c0d6b1100233c07ebbd7 (patch) | |
tree | 0665c20e48161773916473a951bac27315d26d2b /res/res_pjsip_registrar.c | |
parent | a0c288bb23164c6ff91019172980c8aff6fd8c8d (diff) |
res_pjsip: Add PJSIP CLI commands
Implements the following cli commands:
pjsip list aors
pjsip list auths
pjsip list channels
pjsip list contacts
pjsip list endpoints
pjsip show aor(s)
pjsip show auth(s)
pjsip show channels
pjsip show endpoint(s)
Also...
Minor modifications made to the AMI command implementations to facilitate
reuse.
New function ast_variable_list_sort added to config.c and config.h to implement
variable list sorting.
(issue ASTERISK-22610)
patches:
pjsip_cli_v2.patch uploaded by george.joseph (License 6322)
........
Merged revisions 404480 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_registrar.c')
-rw-r--r-- | res/res_pjsip_registrar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/res/res_pjsip_registrar.c b/res/res_pjsip_registrar.c index 9771bdc98..89e8cd141 100644 --- a/res/res_pjsip_registrar.c +++ b/res/res_pjsip_registrar.c @@ -590,11 +590,9 @@ static pj_bool_t registrar_on_rx_request(struct pjsip_rx_data *rdata) /* function pointer to callback needs to be within the module in order to avoid problems with an undefined symbol */ -static int sip_contact_to_str(const struct ast_sip_aor *aor, - const struct ast_sip_contact *contact, - int last, void *arg) +static int sip_contact_to_str(void *acp, void *arg, int flags) { - return ast_sip_contact_to_str(aor, contact, last, arg); + return ast_sip_contact_to_str(acp, arg, flags); } static int ami_registrations_aor(void *obj, void *arg, int flags) |