]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_logger.c: Fix 'OPTIONS' tab completion.
authorSean Bright <sean@seanbright.com>
Mon, 19 Aug 2024 18:12:47 +0000 (14:12 -0400)
committerSean Bright <sean@seanbright.com>
Tue, 20 Aug 2024 13:35:07 +0000 (13:35 +0000)
Fixes #843

res/res_pjsip_logger.c

index 7605f78ca61bd96d9a6fa83a76b32fd2d85b2bed..6a5e2bd408a9b957c27c5367f3abbec3821ce3e2 100644 (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[] = {
                "INVITE", "CANCEL", "ACK",
-               "BYE", "REGISTER", "OPTION",
+               "BYE", "REGISTER", "OPTIONS",
                "SUBSCRIBE", "NOTIFY", "PUBLISH",
                "INFO", "MESSAGE",
                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"
                        "       host or particular SIP method(s).\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";
                return NULL;
        } else if (cmd == CLI_GENERATE) {