Anusha Kannappan | Hi Sherif,
Even if we change the harcoded time from 9 to 6 in the script, it will be over written by the following procedure that is being called for calculating the duration of cng tone detection. It is making use of the 'The leg tonedetect command which enables or disables the detection of specific tones during a call'.
proc start_cng_detection {} { global CALL_ID global MIN_CNG_DETECTION_TIME
#Start CNG detection # Returns the minimum time (in seconds) required to detect the CNG tone set MIN_CNG_DETECTION_TIME [leg tonedetect leg_incoming enable cng] set MIN_CNG_DETECTION_TIME [string trim $MIN_CNG_DETECTION_TIME]
puts "\[Call $CALL_ID\] Start CNG detection" }
Also the required minimum time is computed by Number Cycles times the minimum time required for that specific tone. In our script it is not set which is taking the default value of 1 cycle.
Thanks, Anusha |
| Please sign in to flag this as inappropriate. |