[Home]

Summary:ASTERISK-23608: ControlPlayback fails to play files with names containing certain non-alpha characters
Reporter:Jonathan White (londonnet)Labels:
Date Opened:2014-04-09 17:44:40Date Closed:2017-08-28 07:37:33
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_controlplayback
Versions:SVN 11.7.0 12.1.1 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-25654 Playback: Add the ability to play remote URIs
Environment:Centos 6.5Attachments:
Description:ControlPlayback can not replay complicated file names

For example it can replay
1005
but it can not replay
1005-2014-04-08_23:58:17

Playback can replay
1005-2014-04-08_23:58:17

I suspect this is related to how the variables are parsed and parameters set
Comments:By: Rusty Newton (rnewton) 2014-04-14 13:13:38.998-0500

Confirmed, it appears to fail on file-names with a colon. Hyphens alone don't seem to cause a problem. I didn't test any other characters. Here is what we see on the console when it appears to play, but we get no audio at all.

{noformat}
   -- Executing [100@from-internal:3] ControlPlayback("SIP/6002-00000000", "/tmp/demo:congrats:colons,500") in new stack
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: app_controlplayback.c:249 controlplayback_exec: Forward key = #, Rewind key = *
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:5408 set_format: Set channel SIP/6002-00000000 to write format gsm
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: res_rtp_asterisk.c:2825 ast_rtp_write: Ooh, format changed from unknown to ulaw
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: res_rtp_asterisk.c:2862 ast_rtp_write: Created smoother: format: ulaw ms: 20 len: 160
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:3467 ast_settimeout_full: Scheduling timer at (50 requested / 50 actual) timer ticks per second
   -- <SIP/6002-00000000> Playing '/tmp/demo:congrats:colons.gsm' (language 'en')
   -- ControlPlayback seek to offset 0 from end
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:3467 ast_settimeout_full: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:3467 ast_settimeout_full: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:3467 ast_settimeout_full: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: channel.c:5408 set_format: Set channel SIP/6002-00000000 to write format ulaw
[Apr 14 13:12:01] DEBUG[19318][C-00000000]: pbx.c:4871 pbx_extension_helper: Launching 'Wait'
   -- Executing [100@from-internal:4] Wait("SIP/6002-00000000", "5") in new stack
{noformat}

By: Friendly Automation (friendly-automation) 2017-08-28 07:37:34.146-0500

Change 6300 merged by Jenkins2:
main/app: Only look to end of file if ':end' is specified, and not just ':'

[https://gerrit.asterisk.org/6300|https://gerrit.asterisk.org/6300]