]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Switch transferdigittimeout to be configured as seconds instead of milliseconds.
authorMark Michelson <mmichelson@digium.com>
Tue, 17 Sep 2013 16:09:46 +0000 (16:09 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 17 Sep 2013 16:09:46 +0000 (16:09 +0000)
This was an unintentional consequence of the update of features.conf to use the
config framework in Asterisk 12. Thanks to Marco Signorini on the Asterisk
developers list for pointing out the problem.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399237 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/features_config.h
main/bridge_basic.c
main/features_config.c

index 08349695160ddf5b90f2a12aa591e8736a868c2d..593d228ffe3fec02d5163e2b9f92ab2f4aff67b2 100644 (file)
@@ -69,7 +69,7 @@ struct ast_features_xfer_config {
                /*! DTMF sequence used to swap which party the transferer is talking to */
                AST_STRING_FIELD(atxferswap);
        );
-       /*! Milliseconds allowed between digit presses when dialing transfer destination */
+       /*! Seconds allowed between digit presses when dialing transfer destination */
        unsigned int transferdigittimeout;
        /*! Milliseconds to wait for the transfer target to answer a transferred call */
        unsigned int atxfernoanswertimeout;
index aaa77caea5ef45f81e343b65dfde83ed0457cd09..7cac8d7334acac9021912a0b7f7444fe1026199a 100644 (file)
@@ -2866,7 +2866,7 @@ static int grab_transfer(struct ast_channel *chan, char *exten, size_t exten_len
                ast_channel_unlock(chan);
                return -1;
        }
-       digit_timeout = xfer_cfg->transferdigittimeout;
+       digit_timeout = xfer_cfg->transferdigittimeout * 1000;
        ast_channel_unlock(chan);
 
        /* Play the simple "transfer" prompt out and wait */
index 68b7dde08823d4c7f11666c5f2752105ac008396..c3f3191a2ff272941c140050c60c4f0dd9127143 100644 (file)
@@ -42,8 +42,8 @@
                                <configOption name="recordingfailsound">
                                        <synopsis>Sound to play when automon or automixmon is attempted but fails to start</synopsis>
                                </configOption>
-                               <configOption name="transferdigittimeout" default="3000">
-                                       <synopsis>Milliseconds allowed between digit presses when dialing a transfer destination</synopsis>
+                               <configOption name="transferdigittimeout" default="3">
+                                       <synopsis>Seconds allowed between digit presses when dialing a transfer destination</synopsis>
                                </configOption>
                                <configOption name="atxfernoanswertimeout" default="15000">
                                        <synopsis>Milliseconds to wait for attended transfer destination to answer</synopsis>