Git Product home page Git Product logo

asterisk-app_originate's Introduction

Asterisk Originate

This is an Enhanced version of app_originate for Asterisk 11.25 which replaces the stock Asterisk Originate dial plan application. This version has been enhanced to support passing CallerID.

To use the new function, you must pass the following variables:

  • 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.
  • options - The "options" parameter is optional. Valid options are defined in the next section.

Options

The options parameter, which is optional, is a string containing zero or more of the following flags and parameters:

  • c: callerid to be set based on a dialplan "hint" for the current channel.

Example

To originate a call to SIP/1234 using the CALLERID(all) you would call the following from the dial plan:

	exten => _X.,n,Originate(SIP/1234,exten,context,extension,1,30,c(${CALLERID(all)}))

asterisk-app_originate's People

Contributors

chrisfwood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.