my notes

Asterisk: When Hangup does not work use Congestion

I did switch from a DAHDI line to a SIP trunk and recorded a voice notification informing about the number change. After the voice notification the call needs to be killed but Hangup ddoes not work for DAHDI on my PBX.

Easy fix is to use Congestion. See dialplan below.


[incoming-call-dahdi]
exten => s,1,Answer
exten => s,n,Background(greeting_number_change)
;exten => s,n,Set(TIMEOUT(response)=1)
;exten => s,n,Set(TIMEOUT(digit)=1)
exten => s,n,Congestion

Asterisk: Background() greeting interfering with DTMF

If you are having issues with digits being cut while entering the extension on incoming calls the issue might be with the music interfering with DTMF being entered. Background will listen for DTMF tones while playing music in the background, like in the context below:


[menu]
exten => s,1,Answer()
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Background(beep)
exten => s,n,Background(greeting7,m)
exten => s,n,WaitExten(4)
exten => s,n,Hangup

Tags

Asterisk