<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Times New Roman">Hi Jaap,</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">There is an additional alternative for a
ringback to a caller, which is to use the Call File capability as noted in Van
Meggelen's "Future of Telephone"; 2nd ed, p306.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">There is quite a deal of flexibility with this
method, and it keeps all the instructions in the dial plan and only calls
(not counting the System calls) one Bash script of 3 simple lines with a
System application call:</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">sleep 8s</FONT></DIV>
<DIV><FONT face="Times New Roman">mv "$1" "$2"</FONT></DIV>
<DIV><FONT face="Times New Roman">exit 0</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">As you can see, all the paths and file names
are set up in extensions.conf.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">In my case, when the caller calls in
to 'asterisk', he is prompted for the number he wishes to call. The
caller can be at a US or international number, and he can call any US or
international number, WITH or WITHOUT ringback. In other words the
caller designates whether this is a direct connect call, or a ringback (and then
bridge the called number). I have the complete flexibility of my dial plan
extensions to do as I wish with the phone numbers.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">But, if most of my code were in AGI
scripts, then I would probably stick with AGI scripts.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">I think Van Meggelen's book is clear enough,
but if you would like some of my extension examples, please let me know, and
I'll be more than happy to supply them.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">Thanks for listening,</FONT></DIV>
<DIV><FONT face="Times New Roman">Gerald Harshany</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV>
<DIV><FONT face="Times New Roman">Using current Asterisk version:
SVN-branch-1.6.0-r114304 (on Ubuntu-Gutsy with AMD X2 4000+) and Zaptel current
branch SVN 1.4 (with digium's TDM400P)</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV></DIV></BODY></HTML>