Are you trying to dial in and test your IVR? You can actually do most of it
from within Asterisk's dialplan by initiating a call by dropping a text file in
the outbound queue, /var/spool/asterisk/outgoing -- make sure you do a 'mv'
across the same filesystem, not a 'cp', as Asterisk can pick up the file
mid-way through a disk write.

The contents of the file would look like:

Channel: Zap/1
MaxRetries: 1
WaitTime: 30
Context: testplan
Extension: s
Priority: 1

Where Zap/1 is your FXS port (I think you can dial out an FXS port...), and
your dialplan would then look something like:

[testplan]
; Try to navigate through the IVR
exten => s,1,SendDTMF(4)
exten => s,2,Wait(1)
exten => s,1,SendDTMF(3)
exten => s,3,...
exten => s,n,DBput(testplan/ivrstate=ok)  ; Write something to the asterisk db
exten => s,n,AGI(record_result_somewhere.agi|values...) ; or call an
external program

; This is a special extension (see voip-info page below)
exten => failed,1,DBput(testplan/ivrstate=fail)
exten => failed,2,AGI(send_alert.agi)

Helpful info on the subject:
 http://www.voip-info.org/tiki-index.php?page=Asterisk+auto-dial+out

On 5/10/07, gcc gcc <[EMAIL PROTECTED]> wrote:
Can someone please kick start me on the procedure of a shell script for
asterisk to dial through FXS ports to FXO ports in order to test the FXO
port during a period of time. I would like to make asterisk dial certain
extensions through FXO or FXS.

Thanks

_________________________________________________________________
Windows Live Hotmail is the next generation of MSN Hotmail. Its fast,
simple, and safer than ever and best of all  its still free. Try it today!
www.newhotmail.ca?icid=WLHMENCA146


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
| It ain't what you don't know that gets you into trouble. It's what
| you know for sure that just ain't so.   -- Mark Twain
|
| The Toronto Asterisk Users Group
| Join the discussion group by visiting http://taug.ca

Reply via email to