Upgrade 3CX to v18 and get it hosted free!

Asterisk Blog - Page 21

Asterisk Manager API Action GetVar

Asterisk Manager API Action: GetVar Action: Getvar Parameters: Channel, Variable, ActionID ActionID is an optional parameter for message matching. Example : SEND: ACTION: GetVar Channel: SIP/5060-44d225d0 Variable: extension RECEIVE: Response: Success extension: 17065551419 RECEIVE ON ERROR: Response: Error…

Read More »

Asterisk Manager API Action ExtensionState

Action: ExtensionStateParameters: Exten, Context, ActionID SEND: ACTION: ExtensionStateContext: defaultExten: idonnoActionID: 1 RECEIVE: Response: SuccessActionID: 1Message: Extension StatusExten: idonnoContext: defaultHint:Status: -1 Status codes:-1 = Extension not found0 = Idle1 = In Use2 = Busy4 = Unavailable8 = Ringing16 =…

Read More »

Asterisk Manager API Action Monitor

Asterisk Manager API Action: Monitor Action: Monitor Parameters: Channel, File, Format, Mix Example Via Asterisk 1.0.9 SEND: ACTION: Monitor Channel: SIP/x7062618529-643d File: channelsavefile Mix: 1 RECEIVE: Response: Success Message: Started monitoring channel RECIEVE ON FAIL: Response: Error Message:…

Read More »

Asterisk manager Example: Command

Execute an Asterisk CLI command in an Asterisk manager session The Asterisk CLI is accessible through the manager API. All of the CLI commands can be passed through using the “Command subset” feature. For example, to dump the…

Read More »

Asterisk manager Example: Transfer

Asterisk Manager Example: Transfer Transfer a call to another extension Let’s see what channels we actually have first: SEND: ACTION: Command command: show channels RECEIVE: Response: Follows Channel (Context Extension Pri ) State Appl. Data SIP/x7065558529-8f54 (pms-x7065558529 1…

Read More »

Asterisk cmd Dial

Dial() Synopsis Application dial() attempts to establish a new outgoing connection on a channel, and then link it to the calling input channel. Description Dial(type/identifier, timeout, options, URL)fo Dial(type1/identifier1[&type2/identifier2[&type3/identifier3… ] ], timeout, options, URL) RetryDial(announce|sleep|loops|Technology/resource[&Technology2/resource2…][|[timeout][|[options][|URL]]]) Page Contents Parameters…

Read More »

Asterisk manager Example: Redirect

Redirect with ExtraChannel: Attempted goal:Have a ‘robot’ program Redirect both ends of an already-connected call to a meetme room using the ExtraChannel feature through the management interface. SEND: ACTION: RedirectChannel: SIP/1234-6378ExtraChannel: SIP/4321-45cf6c80Exten: 680Priority: 1Context: default RECEIVE: Response: ErrorMessage:…

Read More »

Asterisk manager Example: Originate

Originate – Place a call from a device to an extension. If the device (SIP/12345) is a phone, it will ring and when picked up the user will be connected to the extension (Context, Exten, Priority) dialed. If…

Read More »

Asterisk manager Example: Login

Login – Establish a new Asterisk manager session. Don’t forget that you have to end your request with \r\n\r\n (two CrLfs), that’s ascii characters 13, 10, 13 and 10 successively. SEND: ACTION: LOGIN USERNAME: username SECRET: password EVENTS:…

Read More »

Asterisk manager Example: C Sharp

C# Example using System; using System.Net; using System.Net.Sockets; using System.Text.RegularExpressions; using System.Text; namespace AsteriskPrototype { class AppConsole { [STAThread] static void Main(string[] args) { Console.WriteLine(“Quick and Dirty Asterisk Manager Daemon Test:\n”); // Connect to the asterisk server. Socket…

Read More »

Asterisk manager Example: Java

Asterisk Manager Example: Java   Java library The Asterisk-java package (available unter Apache License from http://asterisk-java.org/) consists of a set of Java classes that allow you to use the Manager API Java applications. It supports receiving events from…

Read More »

Asterisk Manager API Action Status

Returns the status of all currently-open channels, or of the specified channel. Action: StatusParameters: Channel (optional), ActionID (optional)Not specifying a Channel will return status of all channels. Permissions required (1.4.26.2)read=write=call Permissions required (1.6.0.6)read=write=reporting Sample Query:Action: StatusChannel: SIP/102-efe4ActionID: blah…

Read More »

Asterisk config bonjour.conf

bonjour.conf – config file for res_bonjour [general] bindaddr=eth1 ; network interface on which to accept bonjour requests domain=local ; bonjour domain, if unsure use local [service-id] name = <service name> type = _<type-name>.(_udp|_tcp) port = <service network port>…

Read More »

Asterisk Configurations for connecting with VOIP providers

It is considered bad style to use a dialstring with a password as in “user:[email protected]” since username and password will then show up on the console. Instead, for each provider enter a peer entry in sip.conf or iax.conf…

Read More »

Asterisk High Availability Solutions

This page outlines the various option available to create high availability for a VoIP PBX. Some are generic solutions while others are PBX specific. Some are complete HA solutions while others are half-baked scripts that do some things…

Read More »
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.