[Gambas-user] telephone?
Rob
sourceforge-raindog2 at ...94...
Tue Apr 6 23:42:37 CEST 2004
On Tuesday 06 April 2004 17:28, Lin---s.be wrote:
> Is there an easy way to communicate with the modem?
Sure, just open the serial port and act on the response codes
(RING, NO ANSWER, etc...) and send Hayes commands to dial and
set options (ATDT18005551212, ATL3, ATH0 etc...)
> This is what i would like to do :
> - answer the phone when ringing
> - play sound files
> - recieving the users options
> - ...
> The usual IVR stuff...
> Anyone had experience with any of this ?
Ah, now this is a different story. What you really want to do is
start looking at Asterisk, and write AGI (like CGI, only for IVR
apps rather than web apps) programs in Gambas. Asterisk handles
answering the phone and understanding touch tones and all that,
and you just send it commands (using its process handle) and
receive its output (to tell you what the user enters.) In
addition to the usual IVR and PBX boards, Asterisk supports a
number of voice modems.
I do most of my AGI programming in perl because there's a module
and because I don't have to manually recompile every time I
change something, but the processing done by the module is very
minimal and I've done a couple simple proof of concept applets
in gambas.
Rob
More information about the User
mailing list