res_pjsip_logger.c: Fix 'OPTIONS' tab completion.

Fixes #843
This commit is contained in:
Sean Bright
2024-08-19 14:12:47 -04:00
parent c5fbf5dcae
commit ab9c476dd2

View File

@@ -615,7 +615,7 @@ static char *pjsip_set_logger(struct ast_cli_entry *e, int cmd, struct ast_cli_a
{ {
static const char * const method_choices[] = { static const char * const method_choices[] = {
"INVITE", "CANCEL", "ACK", "INVITE", "CANCEL", "ACK",
"BYE", "REGISTER", "OPTION", "BYE", "REGISTER", "OPTIONS",
"SUBSCRIBE", "NOTIFY", "PUBLISH", "SUBSCRIBE", "NOTIFY", "PUBLISH",
"INFO", "MESSAGE", "INFO", "MESSAGE",
NULL NULL
@@ -632,7 +632,7 @@ static char *pjsip_set_logger(struct ast_cli_entry *e, int cmd, struct ast_cli_a
" globally or enables logging for an individual\n" " globally or enables logging for an individual\n"
" host or particular SIP method(s).\n" " host or particular SIP method(s).\n"
" Messages can be filtered by SIP request methods\n" " Messages can be filtered by SIP request methods\n"
" INVITE, CANCEL, ACK, BYE, REGISTER, OPTION\n" " INVITE, CANCEL, ACK, BYE, REGISTER, OPTIONS,\n"
" SUBSCRIBE, NOTIFY, PUBLISH, INFO, and MESSAGE\n"; " SUBSCRIBE, NOTIFY, PUBLISH, INFO, and MESSAGE\n";
return NULL; return NULL;
} else if (cmd == CLI_GENERATE) { } else if (cmd == CLI_GENERATE) {