]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_queue.c: Remove dead 'updatecdr' code.
authorSean Bright <sean.bright@gmail.com>
Tue, 23 Mar 2021 20:15:45 +0000 (16:15 -0400)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 25 Mar 2021 13:38:51 +0000 (08:38 -0500)
Also removed the sample documentation, and some oddly-placed
documentation about the timeout argument to the Queue() application
itself. There is a large section on the timeout behavior below.

ASTERISK-26614 #close

Change-Id: I8f84e8304b50305b7c4cba2d9787a5d77c3a6217

apps/app_queue.c
configs/samples/queues.conf.sample

index 153fe6b0c3770500a1195d64a823ffc791475de5..d3e04713b65b6e5d44bf4bf1a10a5fb35ec5a79c 100644 (file)
@@ -1483,9 +1483,6 @@ static int realtime_rules;
 /*! \brief Subscription to device state change messages */
 static struct stasis_subscription *device_state_sub;
 
-/*! \brief queues.conf [general] option */
-static int update_cdr;
-
 /*! \brief queues.conf [general] option */
 static int negative_penalty_invalid;
 
@@ -9206,7 +9203,6 @@ static void queue_reset_global_params(void)
        queue_persistent_members = 0;
        autofill_default = 0;
        montype_default = 0;
-       update_cdr = 0;
        shared_lastcall = 0;
        negative_penalty_invalid = 0;
        log_membername_as_agent = 0;
@@ -9226,9 +9222,6 @@ static void queue_set_global_params(struct ast_config *cfg)
                if (!strcasecmp(general_val, "mixmonitor"))
                        montype_default = 1;
        }
-       if ((general_val = ast_variable_retrieve(cfg, "general", "updatecdr"))) {
-               update_cdr = ast_true(general_val);
-       }
        if ((general_val = ast_variable_retrieve(cfg, "general", "shared_lastcall"))) {
                shared_lastcall = ast_true(general_val);
        }
index 69e59753874ca219f169912b8d63a016f87cf3da..a58f77c933aba4c3ece28647bf04329604983215 100644 (file)
@@ -41,19 +41,6 @@ persistentmembers = yes
 ;
 monitor-type = MixMonitor
 ;
-; UpdateCDR behavior.
-;    This option is implemented to mimic chan_agents behavior of populating
-;    CDR dstchannel field of a call with an agent name, which you can set
-;    at the login time with AddQueueMember membername parameter.
-;
-; updatecdr = no
-
-;
-; Note that a timeout to fail out of a queue may be passed as part of
-; an application call from extensions.conf:
-; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout])
-; example: Queue(dave,t,,,45)
-
 ; shared_lastcall will make the lastcall and calls received be the same in
 ; members logged in more than one queue.  This is useful to make the queue
 ; respect the wrapuptime of another queue for a shared member.