[asterisk-users] Ringing after console dsp hangup

Doug Lytle support at drdos.info
Thu Sep 25 19:50:07 CDT 2008


Jerry Geis wrote:
> Why is that and how can I stop it?
>   

I've never tried paging directly to the console, since it can introduce 
too much feedback.  Try recording the page and then play it back to the 
console:


exten => s,1,Set(active=${DB(paging/active)})
exten => s,n,GotoIf($["${active}" = "YES"]?7:4)

;************************
;* Set database entry for
;* paging active to YES
;************************

exten => s,n,Set(DB(paging/active)=YES)

;*****************************
;* If paging currently in use,
;* jump to paging-inuse
;* context.
;*****************************

exten => s,n,Goto(paging-inuse,s,1)


;**********************************
;* Start recording to paging.gsm,
;* no longer then 30 seconds if
;* silence for 5 seconds, terminate
;* recording
;***********************************

exten => s,n,Record(paging:gsm|5|30)
exten => s,n,Hangup()

;*************************************************
;* On hangup from paging, Playback paging file
;* then set paging/active to NO.
;*************************************************

exten => h,1,Dial(Console/dsp)
exten => h,n,Playback(paging)
exten => h,n,Set(DB(paging/active)=NO)

[paging-inuse]

exten => s,1,Congestion
exten => s,n,Hangup()

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