Michael Collins
2006-Feb-09 16:18 UTC
[Asterisk-Users] Possible for Asterisk to output CLID to invoke3rdparty app?
Or you could just use "System" and do it the easy way! AGI is better suited for more complicated scripting. In any case, check out the TFOT book - you'll like it. -MC _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Michael Collins Sent: Thursday, February 09, 2006 3:13 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Possible for Asterisk to output CLID to invoke3rdparty app? Seri, I think you might just need to find the right variable and pass it to your script. Also, you'll probably need to read up on AGI - I'm assuming that's how you would launch your Perl scripts. Here's the list of variables on the wiki: http://www.voip-info.org/wiki-Asterisk+variables Most likely you're looking for the variable referred to as ${CALLERID(num)} If you haven't already done so, you might check out the O'Reilly book: Asterisk - The Future Of Telephony, or TFOT for short. It has good information for beginners, including some basics on getting up and running with AGI. Try this: http://www.speakup.nl/en/opensource/asterisktfot/ The AGI stuff is in chapter 9. Definitely read the first few pages - it will help you understand how Asterisk communicates with Perl (or pretty much any other programming language/shell script) using STDIN, STDOUT, and STDERR. Also, don't forget this obvious one: http://www.voip-info.org/wiki-Asterisk+AGI Happy programming! Oh, and welcome the wild and crazy (but VERY cool) world of Asterisk! -MC _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of lists.digium.com@al-najjar.co.uk Sent: Thursday, February 09, 2006 2:45 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Possible for Asterisk to output CLID to invoke 3rdparty app? Hi all, please forgive me relative lack of knowledge with Asterisk, but I've not played with PBX systems for a while and I'm just re-finding my feet. I've set up my first Asterisk server, I have it configured with a Digium X100P Analogue pots board, I have my Called ID working and everything is hunky dorey with the server itself. But... (and there's always a but) I want to pass inbound CLID information out from Asterisk to other applications for display. Is there an easy way to do this? I have some simple command line perl scripts that will take a number as an argument when called and then do what I want with them (display the caller information on my Squeezebox) but after trawling documentation and mailing lists I can't find any way of doing this. I'm probably missing something simple, but any pointers would be a great help. TIA Seri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060209/1d0bdec0/attachment.htm
Apparently Analagous Threads
- Possible for Asterisk to output CLID to invoke 3rdparty app?
- Possible for Asterisk to output CLID to invo ke 3rd party app?
- Possible for Asterisk to output CLID to invoke 3rd party app?
- INFO: TFOT book- n priorities and labels
- Addition - Help!!! Windows XP Joining Samba 2.2.2 Domain