Re: [asterisk-users] Executing Script after MixMonitor is called
I use this form for convert wav to mp3 and it's working: exten => s,n(record),MixMonitor(${MIXMON_DIR}${CALLFILENAME}.${MIXMON_FORMAT},,/usr/bin/lame --preset voice -v -B 64 -a /var/spool/asterisk/monitor/${CALLFILENAME}.${MIXMON_FORMAT} /var/spool/asterisk/monitor/${CALLFILENAME}.mp3) you can see that all are explicits paths, otherwise it will not work. bye Il 05/07/2013 15:45, Gopalakrishnan N scrisse: I tried with the ^ symbol but still there is no success. And regards to the path, actually my file is in path /root, is that to be in /usr/sbin or somewhere? Basically am able to see the application executed in the CLI, like the below, Executing [4090@test:1] Set("SIP/4092-003b", "START_TIME=2013-07-05_14:43:11") in new stack -- Executing [4090@test:2] Set("SIP/4092-003b", "MIXMONITOR_FILENAME=4090-2013-07-05_14:43:11-OUT") in new stack -- Executing [4090@test:3] MixMonitor("SIP/4092-003b", "IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav,b,/root/flac.sh 4090-2013-07-05_14:43:11-OUT") in new stack -- Executing [4090@test:4] Set("SIP/4092-003b", "CDR(userfield)=/var/spool/asterisk/monitor/IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav") in new stack -- Executing [4090@test:5] Dial("SIP/4092-003b", "SIP/4090,30") in new stack == Using SIP RTP CoS mark 5 == Begin MixMonitor Recording SIP/4092-003b -- Called SIP/4090 -- SIP/4090-003c is ringing -- SIP/4090-003c answered SIP/4092-003b -- fixed jitterbuffer created on channel SIP/4090-003c -- fixed jitterbuffer created on channel SIP/4092-003b -- Executing [h@test:1] MYSQL("SIP/4092-003b", "Connect connid localhost root Iopex1063 Logs") in new stack -- Executing [h@test:2] MYSQL("SIP/4092-003b", "Query resultid 1 insert into call_log(accountcode,start,end,src,dst,uniqueid,userfield,hangupcause) values("4092","2013-07-05 14:43:11",now(),30993091,4090,1373049791.59,"/var/spool/asterisk/monitor/IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav",16)") in new stack -- Executing [h@test:3] MYSQL("SIP/4092-003b", "Disconnect 1") in new stack -- fixed jitterbuffer destroyed on channel SIP/4090-003c == Spawn extension (test, 4090, 5) exited non-zero on 'SIP/4092-003b' -- fixed jitterbuffer destroyed on channel SIP/4092-003b == MixMonitor close filestream == Executing [/root/flac.sh 4090-2013-07-05_14:43:11-OUT] == End MixMonitor Recording SIP/4092-003b But the file is not converted, I suspect it could be a path issue. Regards On Fri, Jul 5, 2013 at 10:59 AM, Satish Barotwrote: On Fri, Jul 5, 2013 at 1:45 AM, Gopalakrishnan N wrote: exten => _4X.,1,Set(START_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)}) exten => _4X.,n,Set(MIXMONITOR_FILENAME=${EXTEN}-${START_TIME}-OUT) ;exten => _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,m,/root/flac.sh ${MIXMONITOR_FILENAME}.wav) exten => _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,b,/root/flac.sh ${MIXMONITOR_FILENAME}.wav) exten => _4X.,n,Set(CDR(userfield)=IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}) exten => _4X.,n,Dial(SIP/${EXTEN},30)
Re: [asterisk-users] Executing Script after MixMonitor is called
I tried with the ^ symbol but still there is no success. And regards to the path, actually my file is in path /root, is that to be in /usr/sbin or somewhere? Basically am able to see the application executed in the CLI, like the below, Executing [4090@test:1] Set("SIP/4092-003b", "START_TIME=2013-07-05_14:43:11") in new stack -- Executing [4090@test:2] Set("SIP/4092-003b", "MIXMONITOR_FILENAME=4090-2013-07-05_14:43:11-OUT") in new stack -- Executing [4090@test:3] MixMonitor("SIP/4092-003b", "IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav,b,/root/flac.sh 4090-2013-07-05_14:43:11-OUT") in new stack -- Executing [4090@test:4] Set("SIP/4092-003b", "CDR(userfield)=/var/spool/asterisk/monitor/IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav") in new stack -- Executing [4090@test:5] Dial("SIP/4092-003b", "SIP/4090,30") in new stack == Using SIP RTP CoS mark 5 == Begin MixMonitor Recording SIP/4092-003b -- Called SIP/4090 -- SIP/4090-003c is ringing -- SIP/4090-003c answered SIP/4092-003b -- fixed jitterbuffer created on channel SIP/4090-003c -- fixed jitterbuffer created on channel SIP/4092-003b -- Executing [h@test:1] MYSQL("SIP/4092-003b", "Connect connid localhost root Iopex1063 Logs") in new stack -- Executing [h@test:2] MYSQL("SIP/4092-003b", "Query resultid 1 insert into call_log(accountcode,start,end,src,dst,uniqueid,userfield,hangupcause) values("4092","2013-07-05 14:43:11",now(),30993091,4090,1373049791.59,"/var/spool/asterisk/monitor/IND_PRI/4092/OUT/2013-07/05/4090-2013-07-05_14:43:11-OUT.wav",16)") in new stack -- Executing [h@test:3] MYSQL("SIP/4092-003b", "Disconnect 1") in new stack -- fixed jitterbuffer destroyed on channel SIP/4090-003c == Spawn extension (test, 4090, 5) exited non-zero on 'SIP/4092-003b' -- fixed jitterbuffer destroyed on channel SIP/4092-003b == MixMonitor close filestream == *Executing [/root/flac.sh 4090-2013-07-05_14:43:11-OUT]* == End MixMonitor Recording SIP/4092-003b But the file is not converted, I suspect it could be a path issue. Regards On Fri, Jul 5, 2013 at 10:59 AM, Satish Barot wrote: > On Fri, Jul 5, 2013 at 1:45 AM, Gopalakrishnan N < > gopalakrishnan...@gmail.com> wrote: > >> exten => _4X.,1,Set(START_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)}) >> exten => _4X.,n,Set(MIXMONITOR_FILENAME=${EXTEN}-${START_TIME}-OUT) >> ;exten => >> _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,m,/root/flac.sh >> ${MIXMONITOR_FILENAME}.wav) >> exten => >> _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,b,/root/flac.sh >> ${MIXMONITOR_FILENAME}.wav) >> exten => >> _4X.,n,Set(CDR(userfield)=IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}) >> exten => _4X.,n,Dial(SIP/${EXTEN},30) >> exten => _4X.,n,Hangup >> >> Regards >> On 4 Jul 2013 11:18, "Satish Barot" wrote: >> >>> On Thu, Jul 4, 2013 at 1:30 AM, Gopalakrishnan N < >>> gopalakrishnan...@gmail.com> wrote: >>> I tried with hangup cause but my script is not executed... also I tried the same script with mix monitor itself no sucess. The script what I have is, am converting wav file to flac format.. On 11 Jun 2013 11:17, "Satish Barot" wrote: > And yes if you want to use System application in your dialplan then > have System in your h extension > > System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav > /PathToMp3FileToBE Stored/filename.mp3) > > > > On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot < > satish4aster...@gmail.com> wrote: > >> Hi Gopamkrishnan, >> >> Check the 'command' argument for Mixmonitor. Mixmonitor itself has a >> facility to execute a command when recording is over. >> >> *In my case, 'wav2mp3' is a script which gets executed and converts >> recorded wav audio file to mp3. I pass ${FILENAME} as an argument to my >> script.* >> >> *You should have something like >> *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) >> in your dialplan. >> >> >> Hope this helps. >> >> --Satish Barot >> >> >> Ahmedabad, India >> >> >> On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < >> gopalakrishnan...@gmail.com> wrote: >> >>> Hi Satish, >>> >>> I tried with sox, without any parameter, just sox filename.wav to >>> filename.mp3, in linux shell prompt... the file is been converted... >>> >>> Now If i want to run that command using dialplan, >>> >>> MixMonitor(filename.wav,m) >>> Monitor_Exec(sox filename.wav filename.mp3) >>> >>> Or to use System command? >>> >>> Reg
Re: [asterisk-users] Executing Script after MixMonitor is called
On Fri, Jul 5, 2013 at 1:45 AM, Gopalakrishnan N < gopalakrishnan...@gmail.com> wrote: > exten => _4X.,1,Set(START_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)}) > exten => _4X.,n,Set(MIXMONITOR_FILENAME=${EXTEN}-${START_TIME}-OUT) > ;exten => > _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,m,/root/flac.sh > ${MIXMONITOR_FILENAME}.wav) > exten => > _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,b,/root/flac.sh > ${MIXMONITOR_FILENAME}.wav) > exten => > _4X.,n,Set(CDR(userfield)=IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}) > exten => _4X.,n,Dial(SIP/${EXTEN},30) > exten => _4X.,n,Hangup > > Regards > On 4 Jul 2013 11:18, "Satish Barot" wrote: > >> On Thu, Jul 4, 2013 at 1:30 AM, Gopalakrishnan N < >> gopalakrishnan...@gmail.com> wrote: >> >>> I tried with hangup cause but my script is not executed... also I tried >>> the same script with mix monitor itself no sucess. >>> >>> The script what I have is, am converting wav file to flac format.. >>> On 11 Jun 2013 11:17, "Satish Barot" wrote: >>> And yes if you want to use System application in your dialplan then have System in your h extension System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav /PathToMp3FileToBE Stored/filename.mp3) On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot < satish4aster...@gmail.com> wrote: > Hi Gopamkrishnan, > > Check the 'command' argument for Mixmonitor. Mixmonitor itself has a > facility to execute a command when recording is over. > > *In my case, 'wav2mp3' is a script which gets executed and converts > recorded wav audio file to mp3. I pass ${FILENAME} as an argument to my > script.* > > *You should have something like > *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) > in your dialplan. > > Hope this helps. > > --Satish Barot > > Ahmedabad, India > > > On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < > gopalakrishnan...@gmail.com> wrote: > >> Hi Satish, >> >> I tried with sox, without any parameter, just sox filename.wav to >> filename.mp3, in linux shell prompt... the file is been converted... >> >> Now If i want to run that command using dialplan, >> >> MixMonitor(filename.wav,m) >> Monitor_Exec(sox filename.wav filename.mp3) >> >> Or to use System command? >> >> Regards.. >> >> >> On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot < >> satish4aster...@gmail.com> wrote: >> >>> This is how I use a wav to mp3 script on Mixmonitor in my dialplan >>> (Asterisk 1.8.7.0). >>> ... >>> same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 >>> ^{FILENAME}) >>> ... >>> and my script is... >>> >>> #!/bin/bash >>> >>> WAV="/var/spool/asterisk/monitor/$1" >>> MP3=$(echo $1 | sed 's/\.wav$/.mp3/') >>> MP3DEST="/var/spool/asterisk/mp3/$MP3" >>> /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m >>> --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 >>> >>> --SATISH BAROT >>> Ahmedabad,India. >>> >>> >>> On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib < >>> fkha...@iconnecths.com> wrote: >>> Hello Guys, I am trying to convert files that are .wac to mp3 after mixmonitor command is called but it doesnt execute the command, I tried the command in terminal it worked, any help please ... below is my dial plan exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t -F -m m --bitwidth 8 --quiet "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) >>> >> Show your latest dialplan and script. >> >> --Satish Barot >> Ahmedabad, India >> >> >> Some observations, (1) You are missing ^ in command in Mixmonitor.In your case, It should be something like MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,m,/root/flac.sh ^${MIXMONITOR_FILENAME}.wav) (2) You are passing just file name as a parameter in your script and not a full path for file. (Do you handle full path in a script?) --Satish Barot Ahmedabad, India -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSU
Re: [asterisk-users] Executing Script after MixMonitor is called
exten => _4X.,1,Set(START_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)}) exten => _4X.,n,Set(MIXMONITOR_FILENAME=${EXTEN}-${START_TIME}-OUT) ;exten => _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,m,/root/flac.sh ${MIXMONITOR_FILENAME}.wav) exten => _4X.,n,MixMonitor(IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}.wav,b,/root/flac.sh ${MIXMONITOR_FILENAME}.wav) exten => _4X.,n,Set(CDR(userfield)=IND_PRI/${CDR(accountcode)}/OUT/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${MIXMONITOR_FILENAME}) exten => _4X.,n,Dial(SIP/${EXTEN},30) exten => _4X.,n,Hangup Regards On 4 Jul 2013 11:18, "Satish Barot" wrote: > On Thu, Jul 4, 2013 at 1:30 AM, Gopalakrishnan N < > gopalakrishnan...@gmail.com> wrote: > >> I tried with hangup cause but my script is not executed... also I tried >> the same script with mix monitor itself no sucess. >> >> The script what I have is, am converting wav file to flac format.. >> On 11 Jun 2013 11:17, "Satish Barot" wrote: >> >>> And yes if you want to use System application in your dialplan then have >>> System in your h extension >>> >>> System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav >>> /PathToMp3FileToBE Stored/filename.mp3) >>> >>> On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot < >>> satish4aster...@gmail.com> wrote: >>> Hi Gopamkrishnan, Check the 'command' argument for Mixmonitor. Mixmonitor itself has a facility to execute a command when recording is over. *In my case, 'wav2mp3' is a script which gets executed and converts recorded wav audio file to mp3. I pass ${FILENAME} as an argument to my script.* *You should have something like *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) in your dialplan. Hope this helps. --Satish Barot Ahmedabad, India On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < gopalakrishnan...@gmail.com> wrote: > Hi Satish, > > I tried with sox, without any parameter, just sox filename.wav to > filename.mp3, in linux shell prompt... the file is been converted... > > Now If i want to run that command using dialplan, > > MixMonitor(filename.wav,m) > Monitor_Exec(sox filename.wav filename.mp3) > > Or to use System command? > > Regards.. > > > On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot < > satish4aster...@gmail.com> wrote: > >> This is how I use a wav to mp3 script on Mixmonitor in my dialplan >> (Asterisk 1.8.7.0). >> ... >> same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 >> ^{FILENAME}) >> ... >> and my script is... >> >> #!/bin/bash >> >> WAV="/var/spool/asterisk/monitor/$1" >> MP3=$(echo $1 | sed 's/\.wav$/.mp3/') >> MP3DEST="/var/spool/asterisk/mp3/$MP3" >> /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m >> --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 >> >> --SATISH BAROT >> Ahmedabad,India. >> >> >> On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib > > wrote: >> >>> Hello Guys, >>> I am trying to convert files that are .wac to mp3 after mixmonitor >>> command is called but it doesnt execute the command, I tried the >>> command in >>> terminal it worked, any help please ... below is my dial plan >>> exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame >>> -b 8 -t -F -m m --bitwidth 8 --quiet >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") >>> exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) >>> >>> >> > Show your latest dialplan and script. > > --Satish Barot > Ahmedabad, India > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On Thu, Jul 4, 2013 at 1:30 AM, Gopalakrishnan N < gopalakrishnan...@gmail.com> wrote: > I tried with hangup cause but my script is not executed... also I tried > the same script with mix monitor itself no sucess. > > The script what I have is, am converting wav file to flac format.. > On 11 Jun 2013 11:17, "Satish Barot" wrote: > >> And yes if you want to use System application in your dialplan then have >> System in your h extension >> >> System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav >> /PathToMp3FileToBE Stored/filename.mp3) >> >> On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot > > wrote: >> >>> Hi Gopamkrishnan, >>> >>> Check the 'command' argument for Mixmonitor. Mixmonitor itself has a >>> facility to execute a command when recording is over. >>> >>> *In my case, 'wav2mp3' is a script which gets executed and converts >>> recorded wav audio file to mp3. I pass ${FILENAME} as an argument to my >>> script.* >>> >>> *You should have something like >>> *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) >>> in your dialplan. >>> >>> Hope this helps. >>> >>> --Satish Barot >>> >>> Ahmedabad, India >>> >>> >>> On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < >>> gopalakrishnan...@gmail.com> wrote: >>> Hi Satish, I tried with sox, without any parameter, just sox filename.wav to filename.mp3, in linux shell prompt... the file is been converted... Now If i want to run that command using dialplan, MixMonitor(filename.wav,m) Monitor_Exec(sox filename.wav filename.mp3) Or to use System command? Regards.. On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot < satish4aster...@gmail.com> wrote: > This is how I use a wav to mp3 script on Mixmonitor in my dialplan > (Asterisk 1.8.7.0). > ... > same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 > ^{FILENAME}) > ... > and my script is... > > #!/bin/bash > > WAV="/var/spool/asterisk/monitor/$1" > MP3=$(echo $1 | sed 's/\.wav$/.mp3/') > MP3DEST="/var/spool/asterisk/mp3/$MP3" > /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m > --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 > > --SATISH BAROT > Ahmedabad,India. > > > On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib > wrote: > >> Hello Guys, >> I am trying to convert files that are .wac to mp3 after mixmonitor >> command is called but it doesnt execute the command, I tried the command >> in >> terminal it worked, any help please ... below is my dial plan >> exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b >> 8 -t -F -m m --bitwidth 8 --quiet >> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" >> "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f >> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") >> exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) >> >> > Show your latest dialplan and script. --Satish Barot Ahmedabad, India -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
I tried with hangup cause but my script is not executed... also I tried the same script with mix monitor itself no sucess. The script what I have is, am converting wav file to flac format.. On 11 Jun 2013 11:17, "Satish Barot" wrote: > And yes if you want to use System application in your dialplan then have > System in your h extension > > System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav > /PathToMp3FileToBE Stored/filename.mp3) > > > > > > > On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot > wrote: > >> Hi Gopamkrishnan, >> >> Check the 'command' argument for Mixmonitor. Mixmonitor itself has a >> facility to execute a command when recording is over. >> >> *In my case, 'wav2mp3' is a script which gets executed and converts recorded >> wav audio file to mp3. I pass ${FILENAME} as an argument to my script. >> * >> >> *You should have something like >> *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) in >> your dialplan. >> >> Hope this helps. >> >> --Satish Barot >> >> >> Ahmedabad, India >> >> >> >> >> >> On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < >> gopalakrishnan...@gmail.com> wrote: >> >>> Hi Satish, >>> >>> I tried with sox, without any parameter, just sox filename.wav to >>> filename.mp3, in linux shell prompt... the file is been converted... >>> >>> Now If i want to run that command using dialplan, >>> >>> MixMonitor(filename.wav,m) >>> Monitor_Exec(sox filename.wav filename.mp3) >>> >>> Or to use System command? >>> >>> Regards.. >>> >>> >>> On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot < >>> satish4aster...@gmail.com> wrote: >>> This is how I use a wav to mp3 script on Mixmonitor in my dialplan (Asterisk 1.8.7.0). ... same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 ^{FILENAME}) ... and my script is... #!/bin/bash WAV="/var/spool/asterisk/monitor/$1" MP3=$(echo $1 | sed 's/\.wav$/.mp3/') MP3DEST="/var/spool/asterisk/mp3/$MP3" /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 --SATISH BAROT Ahmedabad,India. On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib wrote: > Hello Guys, > I am trying to convert files that are .wac to mp3 after mixmonitor > command is called but it doesnt execute the command, I tried the command > in > terminal it worked, any help please ... below is my dial plan > exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b > 8 -t -F -m m --bitwidth 8 --quiet > "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" > "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f > "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") > exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users >>> >>> >>> -- >>> _ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> New to Asterisk? Join us for a live introductory webinar every Thurs: >>>http://www.asterisk.org/hello >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>>http://lists.digium.com/mailman/listinfo/asterisk-users >>> >> >> > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
And yes if you want to use System application in your dialplan then have System in your h extension System(/PathToSox/sox -r 8000 -c 1 /PathToWavFile/filename.wav /PathToMp3FileToBE Stored/filename.mp3) On Tue, Jun 11, 2013 at 10:38 AM, Satish Barot wrote: > Hi Gopamkrishnan, > > Check the 'command' argument for Mixmonitor. Mixmonitor itself has a > facility to execute a command when recording is over. > > *In my case, 'wav2mp3' is a script which gets executed and converts recorded > wav audio file to mp3. I pass ${FILENAME} as an argument to my script. > * > > *You should have something like > *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) in > your dialplan. > > Hope this helps. > > --Satish Barot > > Ahmedabad, India > > > > > > On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < > gopalakrishnan...@gmail.com> wrote: > >> Hi Satish, >> >> I tried with sox, without any parameter, just sox filename.wav to >> filename.mp3, in linux shell prompt... the file is been converted... >> >> Now If i want to run that command using dialplan, >> >> MixMonitor(filename.wav,m) >> Monitor_Exec(sox filename.wav filename.mp3) >> >> Or to use System command? >> >> Regards.. >> >> >> On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot > > wrote: >> >>> This is how I use a wav to mp3 script on Mixmonitor in my dialplan >>> (Asterisk 1.8.7.0). >>> ... >>> same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 >>> ^{FILENAME}) >>> ... >>> and my script is... >>> >>> #!/bin/bash >>> >>> WAV="/var/spool/asterisk/monitor/$1" >>> MP3=$(echo $1 | sed 's/\.wav$/.mp3/') >>> MP3DEST="/var/spool/asterisk/mp3/$MP3" >>> /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m >>> --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 >>> >>> --SATISH BAROT >>> Ahmedabad,India. >>> >>> >>> On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib wrote: >>> Hello Guys, I am trying to convert files that are .wac to mp3 after mixmonitor command is called but it doesnt execute the command, I tried the command in terminal it worked, any help please ... below is my dial plan exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t -F -m m --bitwidth 8 --quiet "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users >>> >>> >>> -- >>> _ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> New to Asterisk? Join us for a live introductory webinar every Thurs: >>>http://www.asterisk.org/hello >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>>http://lists.digium.com/mailman/listinfo/asterisk-users >>> >> >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >>http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users >> > > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
Hi Gopamkrishnan, Check the 'command' argument for Mixmonitor. Mixmonitor itself has a facility to execute a command when recording is over. *In my case, 'wav2mp3' is a script which gets executed and converts recorded wav audio file to mp3. I pass ${FILENAME} as an argument to my script. * *You should have something like *MixMonitor(filename.wav,m,/PathToYourScript/YourScriptName^filename.wav) in your dialplan. Hope this helps. --Satish Barot Ahmedabad, India On Tue, Jun 11, 2013 at 9:31 AM, Gopalakrishnan N < gopalakrishnan...@gmail.com> wrote: > Hi Satish, > > I tried with sox, without any parameter, just sox filename.wav to > filename.mp3, in linux shell prompt... the file is been converted... > > Now If i want to run that command using dialplan, > > MixMonitor(filename.wav,m) > Monitor_Exec(sox filename.wav filename.mp3) > > Or to use System command? > > Regards.. > > > On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot > wrote: > >> This is how I use a wav to mp3 script on Mixmonitor in my dialplan >> (Asterisk 1.8.7.0). >> ... >> same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 >> ^{FILENAME}) >> ... >> and my script is... >> >> #!/bin/bash >> >> WAV="/var/spool/asterisk/monitor/$1" >> MP3=$(echo $1 | sed 's/\.wav$/.mp3/') >> MP3DEST="/var/spool/asterisk/mp3/$MP3" >> /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m --bitwidth >> 8 --lowpass 9.6 --resample 8 --lowpass-width 1 >> >> --SATISH BAROT >> Ahmedabad,India. >> >> >> On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib wrote: >> >>> Hello Guys, >>> I am trying to convert files that are .wac to mp3 after mixmonitor >>> command is called but it doesnt execute the command, I tried the command in >>> terminal it worked, any help please ... below is my dial plan >>> exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 >>> -t -F -m m --bitwidth 8 --quiet >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f >>> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") >>> exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) >>> >>> -- >>> _ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> New to Asterisk? Join us for a live introductory webinar every Thurs: >>> http://www.asterisk.org/hello >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>> http://lists.digium.com/mailman/listinfo/asterisk-users >>> >> >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >>http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
Hi Satish, I tried with sox, without any parameter, just sox filename.wav to filename.mp3, in linux shell prompt... the file is been converted... Now If i want to run that command using dialplan, MixMonitor(filename.wav,m) Monitor_Exec(sox filename.wav filename.mp3) Or to use System command? Regards.. On Fri, Jan 27, 2012 at 11:29 AM, Satish Barot wrote: > This is how I use a wav to mp3 script on Mixmonitor in my dialplan > (Asterisk 1.8.7.0). > ... > same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 > ^{FILENAME}) > ... > and my script is... > > #!/bin/bash > > WAV="/var/spool/asterisk/monitor/$1" > MP3=$(echo $1 | sed 's/\.wav$/.mp3/') > MP3DEST="/var/spool/asterisk/mp3/$MP3" > /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m --bitwidth > 8 --lowpass 9.6 --resample 8 --lowpass-width 1 > > --SATISH BAROT > Ahmedabad,India. > > > On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib wrote: > >> Hello Guys, >> I am trying to convert files that are .wac to mp3 after mixmonitor >> command is called but it doesnt execute the command, I tried the command in >> terminal it worked, any help please ... below is my dial plan >> exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 >> -t -F -m m --bitwidth 8 --quiet >> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" >> "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f >> "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") >> exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
This is how I use a wav to mp3 script on Mixmonitor in my dialplan (Asterisk 1.8.7.0). ... same => n,MixMonitor(${FILENAME},W(4),/var/spool/asterisk/wav2mp3 ^{FILENAME}) ... and my script is... #!/bin/bash WAV="/var/spool/asterisk/monitor/$1" MP3=$(echo $1 | sed 's/\.wav$/.mp3/') MP3DEST="/var/spool/asterisk/mp3/$MP3" /usr/bin/lame "${WAV}" "${MP3DEST}" --silent -b 16 -s 9.6 -m m --bitwidth 8 --lowpass 9.6 --resample 8 --lowpass-width 1 --SATISH BAROT Ahmedabad,India. On Wed, Jan 25, 2012 at 8:59 PM, Faraj Khasib wrote: > Hello Guys, > I am trying to convert files that are .wac to mp3 after mixmonitor command > is called but it doesnt execute the command, I tried the command in > terminal it worked, any help please ... below is my dial plan > exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t > -F -m m --bitwidth 8 --quiet > "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" > "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f > "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") > exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On 1/25/2012 10:29 AM, Faraj Khasib wrote: I am trying to convert files that are .wac to mp3 after mixmonitor > command is called but it doesnt execute the command, I tried the command in terminal it worked, any help please ... below is my dial > plan what version of asterisk are you using ? if it's an older version of 1.8 (< 1.8.4) and you're also recording the call, you may be encountering a known bug. https://issues.asterisk.org/jira/browse/ASTERISK-17346 -- Jeremy Kister http://jeremy.kister.net./ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On Thu, Jan 26, 2012 at 7:36 PM, Steve Edwards wrote: > The OP was using MIXMONITOR_EXEC (although I wonder about the '&&' syntax) > so he doesn't need to explicitly execute (via system()) his commands. Wow. Never knew that was possible. I still don't like the syntax, but good to know. For optimal debugging, I would suggest OP not try to build the pyramids with a single line of commands joined by ampersands, but rather do a separate System() call for either doing my script idea or doing the individual commands in multiple separate System() calls. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On Thu, 26 Jan 2012, David Backeberg wrote: On Thu, Jan 26, 2012 at 7:18 PM, David Backeberg wrote: shebang /path/to/bash PATH=$1 lame --arguments $1.wav $1.mp3 if [ -f {$1}.mp3 ] ; then rm {$1}.wav And my silly code sample hasn't been debugged, and I can spot one glaring bug, and another less important bug. (gotta close the if with a fi, I declare PATH and never use it, and I'm not certain that the declare will work without a 'declare' statement) Your dialplan sample was missing an essential step, which was System() that actually kicks off your command. You could also use it to kick off the bash script, like System(path_to_script path_argument_for_script) +1 for anything that cleans up a bunch of ugly dialplan code :) The OP was using MIXMONITOR_EXEC (although I wonder about the '&&' syntax) so he doesn't need to explicitly execute (via system()) his commands. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000-- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On Thu, Jan 26, 2012 at 7:18 PM, David Backeberg wrote: > shebang /path/to/bash > > PATH=$1 > lame --arguments $1.wav $1.mp3 > if [ -f {$1}.mp3 ] ; then > rm {$1}.wav And my silly code sample hasn't been debugged, and I can spot one glaring bug, and another less important bug. (gotta close the if with a fi, I declare PATH and never use it, and I'm not certain that the declare will work without a 'declare' statement) Your dialplan sample was missing an essential step, which was System() that actually kicks off your command. You could also use it to kick off the bash script, like System(path_to_script path_argument_for_script) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing Script after MixMonitor is called
On Wed, Jan 25, 2012 at 10:29 AM, Faraj Khasib wrote: > Hello Guys, > I am trying to convert files that are .wac to mp3 after mixmonitor command is > called but it doesnt execute the command, I tried the command in terminal it > worked, any help please ... below is my dial plan > exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t -F > -m m --bitwidth 8 --quiet "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" > "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f > "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") > exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) One obvious thing to try is to make sure that when you're making your shell test that you are running the shell as the same user that asterisk is running as. Set your console to at least verbose = 3, and run the dialplan. What do you get for the error? I will say just looking at that code, you have a mess. It would be simpler to debug if you made a short shell script that consisted of something like shebang /path/to/bash PATH=$1 lame --arguments $1.wav $1.mp3 if [ -f {$1}.mp3 ] ; then rm {$1}.wav and then call that script with the argument that is the path to the file. Will make your dialplan easier to debug, and still get you the equivalent functionality. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Executing Script after MixMonitor is called
Hello Guys, I am trying to convert files that are .wac to mp3 after mixmonitor command is called but it doesnt execute the command, I tried the command in terminal it worked, any help please ... below is my dial plan exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t -F -m m --bitwidth 8 --quiet "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users