[Asterisk-Users] MixMonitor and command

Garth van Sittert garth at bitco.co.za
Mon Feb 20 01:51:58 MST 2006


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
>   



More information about the asterisk-users mailing list