[asterisk-users] How to implement Ringing through a sound card for overhead paging

Doug Lytle support at drdos.info
Mon Oct 6 15:03:00 CDT 2008


Robert Augustyn wrote:
> Ok then how do you make that an night_bell as your extension?
>   

We have an after hours IVR, press 1 if you know the party that you're 
trying to reach, press 2 for Dial By Directory and press 3 for the night 
bell.


[incoming]

;****************************************
;* Check if call is within office hours,
;* if so, jump to the office-hours context
;* If not, continue on in the incoming
;* context.
;****************************************

exten => s,1,GotoIfTime(07:59-16:59|mon-fri|*|*?office-hours,s,1)
exten => s,n,Answer()
exten => s,n,Wait(1)

;**********************************************
;* If after hours then play the 'Welcome'
;* and office hours message Press 1 if you know
;* the extension or 2 for dial by name directory
;**********************************************

exten => s,n,Background(local/welcome)
exten => s,n,Background(local/business-hours)
exten => s,n,Background(local/8am-5pm)
exten => s,n,Background(local/press1-extension)
exten => s,n,Background(local/press2-directory)
exten => s,n,Background(local/press3-night-bell)

;*************
;* Set timeouts
;*************

exten => s,11,Set(TIMEOUT(response)=15)
exten => s,12,Set(TIMEOUT(digit)=2)

;*****************************************
;* If 1 is pressed, go to Dial by extension
;*****************************************

exten => 1,1,Goto(dial-by-extension,s,1)

;************************************
;* If 2 is pressed, go to Dial by name
;************************************

exten => 2,1,Goto(directory,s,1)

;************************************
;* If 3 is pressed, go to Night Bell
;************************************

exten => 3,1,Goto(night_bell,4173,1)


Doug


-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."




More information about the asterisk-users mailing list