Has anyone had any success using the MixMonitor() plus "command" as
nothing I have tried works.
I am using 1.2.1 I did google the archive but couldn't see any mention
of anyone using this. What I am hoping to do is run a macro on hangup,
current method I am using seems to miss some calls 5% of calls fail to
mix / convert to mp3 etc. Was hoping that MixMonitor would fix this.
exten => s,n,MixMonitor(${CALLDIR}${CALLFILENAME}.wav||System(touch
/tmp/test${UNIQUEID}))
exten => s,n,Answer
exten => s,n,SayDigits(1234)
exten => s,n,StopMonitor()
exten => s,n,Hangup()
Output:
-- Executing MixMonitor("Zap/1-1",
"/tmp/callrec/20060217-212722-1-IN.wav||System(touch
/tmp/test1140211642.11373)") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing SayDigits("Zap/1-1", "1234") in new stack
-- Playing 'digits/1' (language 'en')
== Begin MixMonitor Recording Zap/1-1
-- Playing 'digits/2' (language 'en')
-- Playing 'digits/3' (language 'en')
-- Playing 'digits/4' (language 'en')
-- Executing StopMonitor("Zap/1-1", "") in new stack
-- Executing Hangup("Zap/1-1", "") in new stack
== Spawn extension (macro-test-script, s, 14) exited non-zero on
'Zap/1-1' in macro 'test-script'
== Spawn extension (from-outside-547551-tl-allhours, s, 1) exited
non-zero on 'Zap/1-1'
== End MixMonitor Recording Zap/1-1
== Executing [System(touch /tmp/test1140211642.11373)]
-- Hungup 'Zap/1-1'
However listing /tmp reveals no files. Running macros that only print
NoOp's don't work either.
Thanks for the help
Alex
---------------------------------------
Alex Barnes
Engineering Support
Ubiquity Software
---------------------------------------
Information contained in this e-mail and any attachments are intended for the
use of the addressee only, and may contain confidential information of Ubiquity
Software Corporation. All unauthorized use, disclosure or distribution is
strictly prohibited. If you are not the addressee, please notify the sender
immediately and destroy all copies of this email. Unless otherwise expressly
agreed in writing signed by an officer of Ubiquity Software Corporation, nothing
in this communication shall be deemed to be legally binding. Thank you.
On 2/17/06, Alex Barnes <abarnes@ubiquitysoftware.com> wrote:> Has anyone had any success using the MixMonitor() plus "command" as > nothing I have tried works. > > I am using 1.2.1 I did google the archive but couldn't see any mention > of anyone using this. What I am hoping to do is run a macro on hangup, > current method I am using seems to miss some calls 5% of calls fail to > mix / convert to mp3 etc. Was hoping that MixMonitor would fix this. > > > exten => s,n,MixMonitor(${CALLDIR}${CALLFILENAME}.wav||System(touch > /tmp/test${UNIQUEID})) > > exten => s,n,Answer > exten => s,n,SayDigits(1234) > exten => s,n,StopMonitor() > exten => s,n,Hangup() > > > Output: > > -- Executing MixMonitor("Zap/1-1", > "/tmp/callrec/20060217-212722-1-IN.wav||System(touch > /tmp/test1140211642.11373)") in new stack > -- Executing Answer("Zap/1-1", "") in new stack > -- Executing SayDigits("Zap/1-1", "1234") in new stack > -- Playing 'digits/1' (language 'en') > == Begin MixMonitor Recording Zap/1-1 > -- Playing 'digits/2' (language 'en') > -- Playing 'digits/3' (language 'en') > -- Playing 'digits/4' (language 'en') > -- Executing StopMonitor("Zap/1-1", "") in new stack > -- Executing Hangup("Zap/1-1", "") in new stack > == Spawn extension (macro-test-script, s, 14) exited non-zero on > 'Zap/1-1' in macro 'test-script' > == Spawn extension (from-outside-547551-tl-allhours, s, 1) exited > non-zero on 'Zap/1-1' > == End MixMonitor Recording Zap/1-1 > == Executing [System(touch /tmp/test1140211642.11373)] > -- Hungup 'Zap/1-1' > > > However listing /tmp reveals no files. Running macros that only print > NoOp's don't work either. >Alex - The command is a system command already that is spawned by MixMonitor. It's not the command you would expect to run from within a dial plan itself. -- Bird's The Word Technologies, Inc. http://www.btwtech.com/
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of BJ Weschke > Sent: 17 February 2006 22:17 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] MixMonitor and command > > On 2/17/06, Alex Barnes <abarnes@ubiquitysoftware.com> wrote: > > Has anyone had any success using the MixMonitor() plus "command" as > > nothing I have tried works. > > > > I am using 1.2.1 I did google the archive but couldn't see anymention> > of anyone using this. What I am hoping to do is run a macro onhangup,> > current method I am using seems to miss some calls 5% of calls failto> > mix / convert to mp3 etc. Was hoping that MixMonitor would fixthis.> > > > > > exten => s,n,MixMonitor(${CALLDIR}${CALLFILENAME}.wav||System(touch > > /tmp/test${UNIQUEID})) > > > > exten => s,n,Answer > > exten => s,n,SayDigits(1234) > > exten => s,n,StopMonitor() > > exten => s,n,Hangup() > > > > > > Output: > > > > -- Executing MixMonitor("Zap/1-1", > > "/tmp/callrec/20060217-212722-1-IN.wav||System(touch > > /tmp/test1140211642.11373)") in new stack > > -- Executing Answer("Zap/1-1", "") in new stack > > -- Executing SayDigits("Zap/1-1", "1234") in new stack > > -- Playing 'digits/1' (language 'en') > > == Begin MixMonitor Recording Zap/1-1 > > -- Playing 'digits/2' (language 'en') > > -- Playing 'digits/3' (language 'en') > > -- Playing 'digits/4' (language 'en') > > -- Executing StopMonitor("Zap/1-1", "") in new stack > > -- Executing Hangup("Zap/1-1", "") in new stack > > == Spawn extension (macro-test-script, s, 14) exited non-zero on > > 'Zap/1-1' in macro 'test-script' > > == Spawn extension (from-outside-547551-tl-allhours, s, 1) exited > > non-zero on 'Zap/1-1' > > == End MixMonitor Recording Zap/1-1 > > == Executing [System(touch /tmp/test1140211642.11373)] > > -- Hungup 'Zap/1-1' > > > > > > However listing /tmp reveals no files. Running macros that onlyprint> > NoOp's don't work either. > > > > Alex - > > The command is a system command already that is spawned by > MixMonitor. It's not the command you would expect to run from within a > dial plan itself. > > -- > Bird's The Word Technologies, Inc. > http://www.btwtech.com/ > _______________________________________________Thanks very much works like a charm now. I will add this to the WIKI. Cheers Alex Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you.
Yes, you need to remove the 'System' part.
You should only have:
exten =>
s,n,MixMonitor(${CALLDIR}${CALLFILENAME}.wav||touch/tmp/test${UNIQUEID})
Garth
Alex Barnes wrote:> Has anyone had any success using the MixMonitor() plus "command"
as
> nothing I have tried works.
>
> I am using 1.2.1 I did google the archive but couldn't see any mention
> of anyone using this. What I am hoping to do is run a macro on hangup,
> current method I am using seems to miss some calls 5% of calls fail to
> mix / convert to mp3 etc. Was hoping that MixMonitor would fix this.
>
>
> exten => s,n,MixMonitor(${CALLDIR}${CALLFILENAME}.wav||System(touch
> /tmp/test${UNIQUEID}))
>
> exten => s,n,Answer
> exten => s,n,SayDigits(1234)
> exten => s,n,StopMonitor()
> exten => s,n,Hangup()
>
>
> Output:
>
> -- Executing MixMonitor("Zap/1-1",
> "/tmp/callrec/20060217-212722-1-IN.wav||System(touch
> /tmp/test1140211642.11373)") in new stack
> -- Executing Answer("Zap/1-1", "") in new stack
> -- Executing SayDigits("Zap/1-1", "1234") in new
stack
> -- Playing 'digits/1' (language 'en')
> == Begin MixMonitor Recording Zap/1-1
> -- Playing 'digits/2' (language 'en')
> -- Playing 'digits/3' (language 'en')
> -- Playing 'digits/4' (language 'en')
> -- Executing StopMonitor("Zap/1-1", "") in new
stack
> -- Executing Hangup("Zap/1-1", "") in new stack
> == Spawn extension (macro-test-script, s, 14) exited non-zero on
> 'Zap/1-1' in macro 'test-script'
> == Spawn extension (from-outside-547551-tl-allhours, s, 1) exited
> non-zero on 'Zap/1-1'
> == End MixMonitor Recording Zap/1-1
> == Executing [System(touch /tmp/test1140211642.11373)]
> -- Hungup 'Zap/1-1'
>
>
> However listing /tmp reveals no files. Running macros that only print
> NoOp's don't work either.
>
> Thanks for the help
>
> Alex
>
> ---------------------------------------
> Alex Barnes
> Engineering Support
> Ubiquity Software
> ---------------------------------------
>
>
>
>
> Information contained in this e-mail and any attachments are intended for
the use of the addressee only, and may contain confidential information of
Ubiquity Software Corporation. All unauthorized use, disclosure or distribution
is strictly prohibited. If you are not the addressee, please notify the sender
immediately and destroy all copies of this email. Unless otherwise expressly
agreed in writing signed by an officer of Ubiquity Software Corporation, nothing
in this communication shall be deemed to be legally binding. Thank you.
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>