[asterisk-dev] [Code Review] adds a timeout argument to app_originate
Olle E. Johansson
oej at edvina.net
Wed Jul 6 08:46:28 CDT 2011
Isn't this something that you could do by using a local channel?
The design question here is how far we want to take originate commands in the various forms or if we just should point to the local channel for more advanced tricks.
/O
6 jul 2011 kl. 15.31 skrev jacco:
> This is an automatically generated e-mail. To reply, visit: https://reviewboard.asterisk.org/r/1310/
>
> Review request for Asterisk Developers and irroot.
> By jacco.
> Updated July 6, 2011, 8:31 a.m.
>
> Description
>
> adds a timeout argument to app_originate
>
> 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.
>
> [Syntax]
> Originate(tech_data,type,arg1[,arg2[,arg3[,timeout]]])
>
> [Arguments]
> 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 is 'exten', 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 ignored.
> timeout
> Timeout in seconds. Default is 30 seconds.
>
> Diffs
>
> • /branches/1.8/CHANGES (326468)
> • /branches/1.8/apps/app_originate.c (326468)
> View Diff
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
---
* Olle E Johansson - oej at edvina.net
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden
More information about the asterisk-dev
mailing list