Re: [Asterisk-Users] MixMonitor and command

2006-02-20 Thread Garth van Sittert

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
  

___
--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


RE: [Asterisk-Users] MixMonitor and command

2006-02-19 Thread Alex Barnes
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:asterisk-users-
 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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/
 ___


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.

___
--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


Re: [Asterisk-Users] MixMonitor and command

2006-02-17 Thread BJ Weschke
On 2/17/06, Alex Barnes [EMAIL PROTECTED] 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/
___
--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