[asterisk-bugs] [Asterisk 0011402]: Interdigit timeout is half time of the defined time

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Nov 29 18:22:21 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11402 
====================================================================== 
Reported By:                eferro
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11402
Category:                   Channels/chan_mgcp
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 89965 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-28-2007 12:37 CST
Last Modified:              11-29-2007 18:22 CST
====================================================================== 
Summary:                    Interdigit timeout is half time of the defined time
Description: 
The interdigit timeout at mgcp_ss function of channels/chan_mgcp.c is not
the defined time (at the same file). Is just the half part because the
loop_pause is substract twice for each loop pass.

It very easy to test it because if you change the timeout, allways get a
time out interdigit at twice faster than the second specified.

I test it in 1.4.14, 1.4 branch and trunk, and with the same result.


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

---------------------------------------------------------------------- 
 putnopvut - 11-29-07 18:22  
---------------------------------------------------------------------- 
While I will admit that I'm not very familiar with the MGCP code, this
patch seems a bit off. It doesn't make sense to subtract the loop_pause
from timeout and then immediately set timeout equal to loop_pause. Perhaps
removing the first subtraction operation and leaving the if statement the
same as it was is the proper fix? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-29-07 18:22  putnopvut      Note Added: 0074575                          
======================================================================




More information about the asterisk-bugs mailing list