[VoIP] DISA Question
John R. Covert
john_reads_cnet_via_archives at covert.org
Wed Mar 28 14:03:46 CST 2007
>I'm wondering if there's a way to reset DISA when one has completed a call
Sure. The key elements are the "g" modifier on the Dial command, which
says to come back if the called party hangs up, and the H modifier, which
allows the calling party to hang up with a "*" (a bit of a problem then
sending "*" to the other end while on this DISA).
Here's an example, which you get to with "Goto(repeatingdisa,s,1).
"@station" refers to a context for dealing with what's dialed.
[repeatingdisa]
exten => s,1,DISA,no-password|repeatingdisa
exten => _X,1,Dial(local/${EXTEN}@station,120,Hg)
exten => _X,n,Goto(s,1)
exten => _X.,1,Dial(local/${EXTEN}@station,120,Hg)
exten => _X.,n,Goto(s,1)
This is just a rudimentary example. In all my real DISAs I do a
better dial plan arrangement so that there is instant completion
when the right number of digits are dialled, or on variable things,
I remove the "#" at the end, etc.
Oh, and you don't really need to use "DISA", since all it really
does is deal with the password and playing a dial tone. You can
accomplish the same thing by making the first lines be
exten => s,1,Set(TIMEOUT(digit)=2)
exten => s,n,BackGround(/Users/jcovert/asterisk/dialtone101a)
exten => s,n,Hangup
and your "DISA" will have 101a dialtone (which is why the cnetgateway
I have on 206-203-6610 has that dialtone).
/john
More information about the VoIP
mailing list