[Home]

Summary:ASTERISK-05459: [patch] filename cannot contain a dot
Reporter:Stéphane HENRY (stef)Labels:
Date Opened:2005-11-04 14:02:04.000-0600Date Closed:2008-01-15 15:54:02.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_mixmonitor
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 5607.patch
( 1) 5607.txt
Description:The filename cannot contain dots, example : a uniqueid.

Try this :
exten => 4,1,Answer
exten => 4,n,MixMonitor(/tmp/test.123.gsm)
exten => 4,n,Saydigits(1)
exten => 4,n,Hangup



****** ADDITIONAL INFORMATION ******

CLI output :
Nov  4 14:58:12 WARNING[25962]: file.c:978 ast_writefile: No such format '123.gsm'
Nov  4 14:58:12 ERROR[25962]: app_mixmonitor.c:163 mixmonitor_thread: Cannot open/tmp/test.123.gsm
Comments:By: Stéphane HENRY (stef) 2005-11-04 14:16:56.000-0600

the solution is to replace strchr by strrchr function :


       if ((ext = strrchr(mixmonitor->filename, '.'))) {
               *(ext++) = '\0';
       } else {
               ext = "raw";
       }

By: Clod Patry (junky) 2005-11-04 14:40:27.000-0600

+1 for me, since Record do the same thing.
patch build on Revision: 1.10.

By: Mark Spencer (markster) 2005-11-06 00:22:39.000-0600

Fixed in CVS head, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:54:02.000-0600

Repository: asterisk
Revision: 6973

U   trunk/apps/app_mixmonitor.c

------------------------------------------------------------------------
r6973 | markster | 2008-01-15 15:54:02 -0600 (Tue, 15 Jan 2008) | 2 lines

Allow mixmon names to have dots (bug ASTERISK-5459)

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

http://svn.digium.com/view/asterisk?view=rev&revision=6973