[Aaug] Calling out
Christopher Fowler
cfowler at outpostsentinel.com
Fri Feb 16 21:12:14 EST 2007
On Fri, 2007-02-16 at 18:46 -0500, Dustin Wildes wrote:
> Easy way is to generate a .call file and put it in
> the /var/spool/asterisk/outgoing directory.
> http://svn.digium.com/view/asterisk/trunk/sample.call?rev=13815
I've got my solution working.
Here is how I did it.
#1. I created a context specifically for this system in extensions.conf
[hacker]
exten => _XXXXX,1,Answer()
exten => _XXXXX,n,Wait(1)
exten => _XXXXX,n,EAGI(/opt/SAM/AGI/notify.agi)
exten => _XXXXX,n,Goto(sam,s,1)
#2. I have a program that creates a call file. It could look like
this:
Channel: Zap/1/XXXXXXXX
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: hacker
Extension: 00081
Priority: 1
That x number is really the trouble ticket ID. I used that method to
tell the notify.agi program what the trouble ticket # is.
#3. I wrote notify.agi in PERL.
He gets the ticket # from the value of extension and casts to
an int to turn 00081 into 81.
He tells the user to 'Press 1 for an important message'.
He tells user the new ticket #.
He terminates.
#4 Call is routed to the main IVR application
Maybe there is a better solution to passing the ticket # vs what I
tried.
Now I have the server answering and making calls.
More information about the Aaug
mailing list