First you run:
/usr/src/asterisk/agi/fastagi-test
on the remote machine. This file is basically an agi server now.
Then you add a line to your extensions.conf:
exten => 335,1,agi(agi://192.168.0.2)
where 335 is the number you want to dial to test this and 192.168.0.2 is the IP address of the machine running the AGI server.
Save the extensions.conf file and reload asterisk.
Dial 335. You should (assuming the 335 was in the right context and the IP is right etc) hear a collection of numbers over the phone (the unique id) and if you have a look at the console you ran the agi server on (192.168.0.2) you should see something similar to the following:
# ./fastagi-test
AGI Environment Dump from 2452: --
-- accountcode =
-- callerid = "Matt Studio" <1>
-- channel = Zap/2-1
-- context = internal
-- dnid = unknown
-- enhanced = 0.0
-- extension = 335
-- language = en
-- network = yes
-- priority = 1
-- rdnis = unknown
-- request = agi://192.168.0.2
-- type = Zap
-- uniqueid = 1096425459.28
1. Testing 'sendfile'...PASS (0)
2. Testing 'sendtext'...PASS (0)
3. Testing 'sendimage'...PASS (0)
4. Testing 'saynumber'...PASS (0)
5. Testing 'waitdtmf'...PASS (0)
6. Testing 'record'...PASS (0)
6a. Testing 'record' playback...PASS (-1)
================== Complete ======================
7 tests completed, 7 passed, 0 failed
==================================================
#
So effectively the fastagi-test file can be used as a template for designing your own remote AGI processes. You would normally use this if you had a cpu intensive AGI task that would be better run on a differnt machine from the one that is running Asterisk.
Current Rating: 8.14/10 (7 votes) Similar Articles (Based on Title) FastAGi change - January 9, 2005 Olle has posted details of a change allowing multiple different AGI scripts to be installed on a remote machine. The change has been added to both CVS-STABLE and CVS-HEAD.
AsterPas - FastAGI Script Server Enters Beta - April 11, 2007 A slightly older release I ha d missed. AsterPas is a multithreaded FastAGI server.
AsterPas ObjectPascal Based FastAGI Server goes Open Source - July 8, 2008 This one is a bit late but I thought I would post it nonetheless. Lee Jenkins posted a link to a Pascal based FastAGI server.
Digium works for Tsunami Relief - January 13, 2005 We've just received a mail from Digium stating that they will be giving five percent of your purchase to AmeriCares - a charity.
G729 codec for trunk updated again... now it works - September 9, 2006 Kevin Fleming has posted details of a re-release of G729.
*-ss7: libss7: Status update (ANSI works) - September 14, 2006 Matthew Fredrickson from Digium has posted an update on the ss7 capabilities for Asterisk.
Asterisk-Users: How to restart a GS 101/102 phone remotely - September 28, 2004 Tony Mountifield posted an answer to the asterisk-users list on how to remotely restart a GrandStream phone.
Xorcom: How to install a SIP phone, Connecting to the Asterisk Manager - October 12, 2004 The guys over at Xorcom have a tips section with a couple of tips.
Asterisk-Dev/Users: How to submit patches to bugtracker - October 26, 2004 Josh Roberson (Twisted) posted a note to the dev and users lists detailing the process for submitting patches to Asterisk.
Asterisk-Users: Useful information - UK exchanges and SystemX/SystemY and how ISDN works! - December 7, 2004 Nick Barnes has posted some information on a BRI card he was running in the UK.
bugs.digium.com: How to set opermode for modprobe - December 7, 2004 If you are having problems with modprobe wctdm opermode=XXX then you will need to add an option to /etc/modprobe.conf
How "expensive" are the different codecs? - December 23, 2004 Andrew Aken has posted a speed comparisson between Debian and Fedora :-)
Voip-info.org: Free downloadable guide on how to switch to VoIP - February 6, 2005 Quamut.com has published a free downloadable guide on how to switch to VoIP. Great for the uninitiated.
Original Content (C) 2004-2010
Matt Riddell

Icons by: FastIcon.com
|
Back to life July 21, 2010 Average Vote: 10
Hey all - I am back online after some pretty big projects which have taken all my time. Will be updating the Asterisk news over the next few days.
Nerd Vittles: Building a Bluetooth Proximity Detection System with Asterisk December 12, 2005 Average Vote: 10
The Nerd Vittles site has an article on proximity detection using Asterisk and a TomTom GPS
Automated Testing Update July 30, 2010 Average Vote: 10
Russell Bryant has posted details of a new mailing list for automated testing of Asterisk and some information on the progress that has been made. There is no way to say how important I think this work is. It really makes a huge difference to Asterisk and the ability to use it in an enterprise environment. Really great work.
VoIP-Info: FFasterisk Video file converter August 25, 2006 Average Vote: 10
The wiki has a link to a new piece of software for converting video to the format required for Asterisk.
Code Review: SRTP support for Asterisk March 12, 2009 Average Vote: 10
Terry Wilson has moved his SRTP branch onto the Digium review board.
HumBug - Pre BETA Launch Registration July 27, 2010 Average Vote: 10
Nir Simionovich has posted details of the beta of the new call analytics service.
Interview with BKW_ December 7, 2004 Average Vote: 10
We've finally completed our interview with BKW. Hope you like! :-)
SlashDot: GSM and Asterisk Integration August 21, 2005 Average Vote: 10
There is a post up on SlashDot which talks about using cellphones with Asterisk.
Interview with Mark Spencer November 26, 2004 Average Vote: 9.9
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.
Asterisk and Kamailio realtime integration tutorial May 24, 2010 Average Vote: 9.9
Daniel-Constantin Mierla has posted a link to a tutorial on integrating Asterisk and Kamailio using realtime.
Asterisk IPv6 update February 1, 2010 Average Vote: 9.8
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.
Proposal for T.38 transparent gateway design in Asterisk April 29, 2010 Average Vote: 9.8
Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:
Asterisk Monitoring with iPhone and iPod touch February 12, 2010 Average Vote: 9.7
For the past couple of weeks I have been working on an app that allows you to monitor and restart Asterisk servers.
Monitoring Asterisk with Munin January 7, 2010 Average Vote: 9.7
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.
New Zealand Asterisk Voices March 2, 2006 Average Vote: 9.7
Chris Hodgetts has posted details of recordings of Asterisk Sounds with a New Zealand accent.
Automated Testing Update July 30, 2010 Russell Bryant has posted details of a new mailing list for automated testing of Asterisk and some information on the progress that has been made. There is no way to say how important I think this work is. It really makes a huge difference to Asterisk and the ability to use it in an enterprise environment. Really great work.
Asterisk 1.8.0-beta2 Now Available July 28, 2010 The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta2.
HumBug - Pre BETA Launch Registration July 27, 2010 Nir Simionovich has posted details of the beta of the new call analytics service.
Branch Merging Changes July 26, 2010 Russell Bryant has posted details of some changes to the way developers need to commit code to Asterisk because of the newly released 1.8 branch.
Asterisk 1.8.0-beta1 is Now Available July 26, 2010 The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta1. This release marks the beginning of the testing process for the eventual release of Asterisk 1.8.0.
Asterisk 1.6.2.10 Now Available July 26, 2010 The Asterisk Development Team has announced the release of Asterisk 1.6.2.10.
Asterisk 1.4.34 Now Available July 26, 2010 The Asterisk Development Team has announced the release of Asterisk 1.4.34.
AppleRaisin - AstDB over realtime July 23, 2010 Olle has posted a note about his awesome AppleRaisin branch which provides the ability to store AstDB in realtime. This would make for a much simpler failover and clustering situation.
QueueMetrics 1.6.1 released July 22, 2010 Lenz has posted a note to inform us that QueueMetrics version 1.6.1 has been released. This release offers a large number of bug fixes, misc improvements and new developements including hotdesking.
Asterisk 1.8 Branch Creation July 22, 2010 Russell Bryant has posted a note to inform us of the creation of the 1.8 branch of Asterisk. |