[asterisk-dev] [Code Review] adds a timeout argument to app_originate

jacco reviewboard at asterisk.org
Fri Jul 22 08:58:45 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1310/
-----------------------------------------------------------

(Updated July 22, 2011, 8:58 a.m.)


Review request for Asterisk Developers and irroot.


Changes
-------

I've no made a patch for /trunk.
I now use scanf.
I made timeout a unsigned int


Summary
-------

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 (updated)
-----

  /trunk/CHANGES 329296 
  /trunk/apps/app_originate.c 329296 

Diff: https://reviewboard.asterisk.org/r/1310/diff


Testing
-------


Thanks,

jacco

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110722/1cddb46d/attachment.htm>


More information about the asterisk-dev mailing list