Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

domingo, 2 de septiembre de 2012

Como realizar llamadas desde la consola de Asterisk o aplicaciones externas.



Command Type: 
 Dialplan Application
Version: 
 Trunk
Syntax: 
Originate(tech_data,type,arg1[,arg2[,arg3]])
This application originates an outbound call and connects it to a specified extension or application. This application will block until the outgoing call fails or gets answered. At that point, this application will exit with the status variable set and dialplan processing will continue.
This application sets the following channel variable before exiting:
ORIGINATE_STATUS
This indicates the result of the call origination.
FAILED
SUCCESS
BUSY
CONGESTION
HANGUP
RINGING
UNKNOWN
In practice, you should never see this value. Please report it to the issue tracker if you ever see it.
Parameters:
tech_data:
Channel technology and data for creating the outbound channel. For example, SIP/1234.
type:
This should be app or exten, depending on whether the outbound channel should be connected to an application or extension.
arg1:
If the type is app, then this is the application name. If the type is exten, then this is the context that the channel will be sent to.
arg2:
If the type is app, then this is the data passed as arguments to the application. If the type isexten, then this is the extension that the channel will be sent to.
arg3:
If the type is exten, then this is the priority that the channel is sent to. If the type is app, then this parameter is ignore


------------------------------------------------------



Example

In extensions.conf
[greeting]]
exten => 400,1,Answer
exten => 400,n,Background("hello")
exten => 400,n,Wait(5)
exten => 400,n,HangUp()

Then in CLI:
originate Zap/1/123456 extension 400@greeting

This can be used from external scripts like this: asterisk -rx "originate zap/1/123456 extension 1@greeting"


http://www.voip-info.org/wiki/view/Asterisk+cli+originate


--------------------------------


This is a useful command when building your dial plan, it allows testing of the dial plan remotely. There are a couple of commands to explain. The first is the originate command a highly useful tool for checking any IVR context’s, this is how to use it.
originate SIP/14075551234@sip-outbound extension s@auto-att
Let me explain this.:
originate = command
SIP/14075551234 = what technology to use so this could be IAX.,SIP,ZAP,DHADI following a slash and phone number
@sip-outbound = this is what context to send it to in sip.conf or other associated technology file
extension = is required for the command
s = this is what exten to send to within the context specified below
@auto-att = which context to send to in extensions.conf
Now the other way to dial out from the system is with the dial command which is show below.
dial 14075551234@internal
dial = the command
14075551234 = the digits to send, so this could be anything you want it just has to match something in the context you specify
@internal = the context you would like to match the digits in extensions.conf


No hay comentarios:

Publicar un comentario