[asterisk-bugs] [Asterisk 0012502]: SayNumber() hangs up channel when asked to say a number >= 1, 000, 000, 000.

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Apr 23 09:33:49 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12502 
====================================================================== 
Reported By:                bcnit
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12502
Category:                   Applications/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta7.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-23-2008 08:40 CDT
Last Modified:              04-23-2008 09:33 CDT
====================================================================== 
Summary:                    SayNumber() hangs up channel when asked to say a
number >= 1,000,000,000.
Description: 
With a dialplan of:

-------------------------
exten => 21,1,Answer(500)
exten => 21,2,SayNumber(999999999)
exten => 21,3,SayNumber(1000000000)
exten => 21,4,NoOp(We never see this)

exten => h,1,NoOp(Hung up)
-------------------------

Asterisk hangs up when it tries to run priority 3 as follows:

-------------------------
-- Executing [21 at default:1] Answer("SIP/200-087ab0d8", "500") in new
stack
-- Executing [21 at default:2] SayNumber("SIP/200-087ab0d8", "999999999") in
new stack
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/hundred.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/90.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/million.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/hundred.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/90.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/thousand.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/hundred.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/90.gsm' (language 'en')
-- <SIP/200-087ab0d8> Playing 'digits/9.gsm' (language 'en')
-- Executing [21 at default:3] SayNumber("SIP/200-087ab0d8", "1000000000") in
new stack
== Spawn extension (default, 21, 3) exited non-zero on 'SIP/200-087ab0d8'
-- Executing [h at default:1] NoOp("SIP/200-087ab0d8", "Hung up") in new
stack
-------------------------

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

---------------------------------------------------------------------- 
 bcnit - 04-23-08 09:33  
---------------------------------------------------------------------- 
OK. I understand that, but.....

Since 1,000,000,000 is a valid number, surely Asterisk shouldn't do
something as drastic as dropping the channel if it can't say it.

After all, 'SayNumber(fred)' doesn't generate an error:

---------------------
-- Executing [21 at default:1] Answer("SIP/200-09366bc0", "500") in new
stack
-- Executing [21 at default:2] SayNumber("SIP/200-09366bc0", "fred") in new
stack
-- <SIP/200-09366bc0> Playing 'digits/0.gsm' (language 'en')
-- Executing [21 at default:3] NoOp("SIP/200-09366bc0", "We never see this")
in new stack
-- Auto fallthrough, channel 'SIP/200-09366bc0' status is 'UNKNOWN'
-- Executing [h at default:1] NoOp("SIP/200-09366bc0", "Hung up") in new
stack
---------------------

If it can't say the number, fair enough, but please don't hang up!! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-23-08 09:33  bcnit          Note Added: 0085883                          
======================================================================




More information about the asterisk-bugs mailing list