[Home]

Summary:ASTERISK-10886: app_controlplayback used with option o (restart playback at position) craches Asterisk
Reporter:Johan Wilfer (johan)Labels:
Date Opened:2007-11-26 07:37:23.000-0600Date Closed:2007-11-26 08:29:04.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_controlplayback
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:This line craches Asterisk, always.
ControlPlayback(ss-noservice,100,3,1,4,5,0,o1000)

ControlPlayback(ss-noservice,100,3,1,4,5,0) works always.

The o-flag seems to break Asterisk.

From core show application ControlPlayback
Options:
 o(#) - Start at # ms from the beginning of the file.
Comments:By: Joshua C. Colp (jcolp) 2007-11-26 08:28:18.000-0600

This is because you are using it incorrectly, the correct way would be to do o(1000) not o1000. I am fixing the crash though.

By: Digium Subversion (svnbot) 2007-11-26 08:29:04.000-0600

Repository: asterisk
Revision: 89570

U   trunk/apps/app_controlplayback.c

------------------------------------------------------------------------
r89570 | file | 2007-11-26 08:29:02 -0600 (Mon, 26 Nov 2007) | 4 lines

Don't crash if the 'o' option of ControlPlayback is used without any value.
(closes issue ASTERISK-10886)
Reported by: johan

------------------------------------------------------------------------