Posts

Showing posts with the label recording

Asterisk Out of Office Recording Extension

Asterisk Out of Office Recording Extension My clients sometimes need to put temporary messages on their phone lines. For example during the Christmas holidays or if everyone is away for a company retreat. This is a simple edit to your dialplan, so it should not be too difficult. On the incoming dialplan, add the following ;Check if a greeting is enabled, if so go to "playback" in the current context same => n,GotoIf(${DB_EXISTS(greeting/enabled)}?playback) ;If greeting is not enabled, skip to "noplayback" same => n,goto(noplayback) ;Play the recorded message then hang up same => n(playback),Playback(temp-message) same => n,HangUp() ;If message is not enabled, proceed with the rest of your incoming dialplan same => n(noplayback),NoOp(Playback is not active) Now, create the following context and make sure it is included in your outgoing context. [greeting] ;When the user dials 999 start the process to record the temporary message exten => 999,1,NoOp(...