Re: [asterisk-users] Originate (Executing a System Command)

2009-07-10 Thread Danny Nicholas
Why not just Local/1 (unless your server is actually named dummy)?

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of J. G.
Sent: Friday, July 10, 2009 2:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Originate (Executing a System Command)

 

I know I'm doing something simple and wrong, but I can't quite figure it
out:


Example (executing system command): 


Action: Originate 
Channel: Local/1...@dummy 
Application: System http://www.voip-info.org/wiki/view/Asterisk+cmd+System

Data: /path/to/script 

I keep getting a Unable to request channel and am not sure what it is
looking for in place of Local/1...@dummy.

The script is an internal voice delivery to my agents (among other things
I'd like to do)

Thanks!
PB

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Originate (Executing a System Command)

2009-07-10 Thread Philipp Kempgen
J. G. schrieb:
 I know I'm doing something simple and wrong, but I can't quite figure it
 out:
 Example (executing system command): Action: Originate
 Channel: Local/1...@dummy
 Application: System http://www.voip-info.org/wiki/view/Asterisk+cmd+System
 Data: /path/to/script

 I keep getting a Unable to request channel and am not sure what it is
 looking for in place of Local/1...@dummy.

Danny Nicholas schrieb:
 Why not just Local/1 (unless your server is actually named dummy)?

For Local/ channels @... specifies the context, not a peer/hostname.
Syntax: Local/extens...@context[/n]


Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 -  http://www.amoocon.de
-- 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Originate (Executing a System Command)

2009-07-10 Thread Miguel Molina

J. G. escribió:
I know I'm doing something simple and wrong, but I can't quite figure 
it out:



  Example (executing system command):

Action: Originate
Channel: Local/1...@dummy
Application: System 
http://www.voip-info.org/wiki/view/Asterisk+cmd+System

Data: /path/to/script

I keep getting a Unable to request channel and am not sure what it 
is looking for in place of Local/1...@dummy.


The script is an internal voice delivery to my agents (among other 
things I'd like to do)


Thanks!
PB
Do you have the dummy context with the 1 extension in your dialplan with 
something like this? Did you reload it and check it within the CLI?


[dummy]
exten = 1,1,Answer()
exten = 1,n,Wait(2)
exten = 1,n,Hangup()

The application (your external command) won't be launched until the 
Origiante channel is answered.


--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users