Summary: | ASTERISK-17995: Asterisk crash with signal 8, Arithmetic exception in Dial application by Limit option with warning frequency equals to zero | ||
Reporter: | nicolasom (nicolasom) | Labels: | |
Date Opened: | 2011-06-10 12:45:38 | Date Closed: | 2011-06-13 14:59:02 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Applications/app_dial Channels/General |
Versions: | 1.8.1 1.8.2 1.8.3 1.8.4 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ( 0) backtrace.txt ( 1) issue-17995.patch | |
Description: | In function ast_channel_bridge, when play warning is less than timelimit and warning frequency is equals to zero, then throw a division by zero exception and Asterisk crash. The problem is in line 7108 in main/channel.c (for version 1.8.4.2): {{long warns_passed = (config->play_warning - time_left_ms)}} {color:red}{{/ config->warning_freq}}{color}{{;}} To reproduce: Dial(SIP/XXX@YYY,40,gHL(90000:60000)) In the call, when the remaining time is less than 60 seconds, press 1 key. I am spaniard, sorry for my english. | ||
Comments: | By: nicolasom (nicolasom) 2011-06-10 12:48:09.759-0500 backtrace file By: nicolasom (nicolasom) 2011-06-10 15:20:20.377-0500 I propose this simple patch By: Leif Madsen (lmadsen) 2011-06-13 14:56:45.436-0500 Thanks for the patch! Committed in 323213 and 323214 (1.8, trunk) |