[asterisk-bugs] [Asterisk 0010794]: WaitMusicOnHold() waits three times longer than it should.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Sep 21 14:03:27 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10794 
====================================================================== 
Reported By:                bcnit
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10794
Category:                   Applications/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-21-2007 13:21 CDT
Last Modified:              09-21-2007 14:03 CDT
====================================================================== 
Summary:                    WaitMusicOnHold() waits three times longer than it
should.
Description: 

extensions.conf:

exten => 20,1,Answer
exten => 20,n,NoOp(${EPOCH})
exten => 20,n,Wait(10)
exten => 20,n,NoOp(${EPOCH})
exten => 20,n,WaitMusicOnHold(10)
exten => 20,n,NoOp(${EPOCH})
exten => 20,n,Hangup



Verbose output:

    -- Executing [20 at vitell-in:1] Answer("SIP/vitell402-0a1203e8", "") in
new stack
    -- Executing [20 at vitell-in:2] NoOp("SIP/vitell402-0a1203e8",
"1190399508") in new stack
    -- Executing [20 at vitell-in:3] Wait("SIP/vitell402-0a1203e8", "10") in
new stack
    -- Executing [20 at vitell-in:4] NoOp("SIP/vitell402-0a1203e8",
"1190399518") in new stack
    -- Executing [20 at vitell-in:5]
WaitMusicOnHold("SIP/vitell402-0a1203e8", "10") in new stack
    -- Started music on hold, class 'default', on SIP/vitell402-0a1203e8
    -- Stopped music on hold on SIP/vitell402-0a1203e8
    -- Executing [20 at vitell-in:6] NoOp("SIP/vitell402-0a1203e8",
"1190399547") in new stack
    -- Executing [20 at vitell-in:7] Hangup("SIP/vitell402-0a1203e8", "") in
new stack
  == Spawn extension (vitell-in, 20, 7) exited non-zero on
'SIP/vitell402-0a1203e8'



As you can see, Wait() works pefectly, WaitMusicOnHold() waits longer!!
This is repeatable and it always waits three times longer than the delay
parameter - WaitMusicOnHold(20) waits a minute.

====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 09-21-07 14:03  
---------------------------------------------------------------------- 
I have to wonder about your environment, because I just tried this, and it
waits exactly 10 seconds, which is correct:

exten => 8103,1,Set(time1=${EPOCH})
exten => 8103,n,WaitMusicOnHold(10)
exten => 8103,n,Set(time2=${EPOCH})
exten => 8103,n,Set(diff=$[${time2}-${time1}])

    -- Executing [8103 at digium:1] Set("SIP/103-08232310",
"time1=1190402281") in new stack
    -- Executing [8103 at digium:2] WaitMusicOnHold("SIP/103-08232310", "10")
in new stack
    -- Started music on hold, class 'default', on SIP/103-08232310
    -- Stopped music on hold on SIP/103-08232310
    -- Executing [8103 at digium:3] Set("SIP/103-08232310",
"time2=1190402291") in new stack
    -- Executing [8103 at digium:4] Set("SIP/103-08232310", "diff=10") in new
stack
  == Auto fallthrough, channel 'SIP/103-08232310' status is 'UNKNOWN' 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-21-07 14:03  Corydon76      Note Added: 0070929                          
======================================================================




More information about the asterisk-bugs mailing list