[Asterisk-Users] MixMonitor and command

BJ Weschke bweschke at gmail.com
Fri Feb 17 15:17:12 MST 2006


On 2/17/06, Alex Barnes <abarnes at 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/



More information about the asterisk-users mailing list