[Asterisk-Users] difference between dtmf digit 8 and 9

Fabian Müller mueller.fab at gmx.net
Tue Oct 5 10:44:56 MST 2004


Hello,

this is an example extensions.conf.

[default]
exten => 500,1,Answer

exten => 8,1,SetGlobalVar(firstdigit=8)
exten => 8,2,Goto(process,s,1)

exten => 9,1,SetGlobalVar(firstdigit=9)
exten => 9,2,Goto(process,s,1)


I call extension 500 and send dtmf digit 9. This is printed to the
CLI:

    -- Executing Answer("Zap/20-1", "") in new stack
    -- Accepting call from '' to '500' on channel 0/20, span 1
Oct  5 16:42:14 DEBUG[196620]: chan_zap.c:1176 zt_enable_ec: Enabled echo cancellation on channel 20
Oct  5 16:42:18 DEBUG[458769]: chan_zap.c:3955 zt_read: DTMF digit: 9 on Zap/20-1
  == CDR updated on Zap/20-1
    -- Executing SetGlobalVar("Zap/20-1", "firstdigit=9") in new stack
    -- Setting global variable 'firstdigit' to '9'
    -- Executing Goto("Zap/20-1", "process|s|1") in new stack
    -- Goto (process,s,1)


I call extension 500 and send dtmf digit 8. This ist printed to the
CLI: 

    -- Accepting call from '' to '500' on channel 0/21, span 1
Oct  5 16:42:40 DEBUG[196620]: chan_zap.c:1176 zt_enable_ec: Enabled echo cancellation on channel 21
    -- Executing Answer("Zap/21-1", "") in new stack
Oct  5 16:42:43 DEBUG[475153]: chan_zap.c:3955 zt_read: DTMF digit: 8 on Zap/21-1
  == CDR updated on Zap/21-1
    -- Executing SetGlobalVar("Zap/21-1", "firstdigit=8") in new stack
    -- Setting global variable 'firstdigit' to '8'
    -- Executing Goto("Zap/21-1", "process|s|1") in new stack
    -- Goto (process,s,1)

In the first case after sending dtmf digit 9 Asterisk immediately goes
to extension 9 and executes SetGlobalVar and the Goto command.

In the second case after sending dtmf digit 8 Asterisk does not
immediately goes to extension 8. Instead of going immediately to
extension 8 Asterisks waits five seconds and then goes to extension 8
and executes the commands.

Why is there this difference?

Asterisk Version: CVS-HEAD-08/16/04-02:09:57

Regards,

Fabian Müller



More information about the asterisk-users mailing list