On Wed, 2005-09-14 at 09:30 +0200, Remco Barende wrote:

> Thanks for the tip. I was actually thinking in the direction of putting 
> the asterisk calling card application to use. I've never used it and 
> wonder if it is at all possible to use it from within the dial plan 
> instead of normally from an extension.


Yup.  I will try to make it simple for the archives, or anyone else that
is interested in doing this type of thing.  You appear to know most of
this already, but then again you arent the only person on this list :)

Call the AGI from the dialplan when you want to.

exten => 31337,1,answer
exten => 31337,2,playback(welcome)
exten => 31337,3,agi(blah.pl)

replace blah.pl with whatever the name is, so long as its executable.
blah.php blah a.out etc


see asterisk.conf for where to place the agis
astagidir => /some/path/to/asterisk/agi-bin


-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to