[Asterisk-Users] (no subject)

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Thu Dec 18 20:09:26 MST 2003


> How can I make * ring one phone then if no answer
> Go to a different extension ??

[in_andrew]
exten => s,1,Dial(IAX2/benshaw at ak_home/s,20,Ttr)
exten => s,2,SetAbsoluteTimeout(900)
exten => s,3,Dial(${FXOTRUNK}/5551212,20,Ttr)
exten => s,4,Hangup
exten => h,1,Hangup
exten => t,1,Hangup

This is the default context for a specific PSTN line I have at work.  It 
calls me at home (tries for 20s) -- if it times out it falls through to #2, 
which sets a maximum call for 15m and then dials my cell phone (number 
obviously changed).  

The reason for the SetAbsoluteTimeout() is because I'm using a stinky Access 
Bank I from CAC which has no remote end disconnection detection  Since I am 
answering a call on an FXO port and calling out to my cell on another FXO 
port I have no way of telling when the conversation is ended, so this 
forces the lines to be hung up after 15 minutes.  Not optimal, and I do 
have an Adit600 with FXO ports coming in which will resolve this problem.

The three hangups just force a hangup if my cell doesn't answer, if a hangup 
is detected, or if a timeout occurs, respectively.

Regards,
Andrew




More information about the asterisk-users mailing list