exten => _199,1,Dial(SIP/501,1,r) ; Ring the Receptionist for 15 seconds exten => _199,2,GoTo(MainMenu,s,1) ; If the Receptionist doesn't answer goto the main menu exten => _199,102,GoTo(MainMenu,s,1) ; If the Receptionist is on the phone goto the main menu [MainMenu] ;include => extensions exten => s,1,Answer exten => s,2,SetMusicOnHold(default) exten => s,3,Set(TIMEOUT(digit)=5) exten => s,4,Background(danner) ; Play Welcome to companyname greeting exten => i,1,Playback(invalid) exten => i,2,GoTo(MainMenu,s,1) ; Provide a directory of users exten => 1,1,Dial(SIP/${EXTEN:1}) ; Go to the sales department exten => 2,1,Directory(other) ; Users are listed in the default context of voicemail.conf ; Leave a voicemail for the sales department ;exten => 0,1,Dial(${P100}&${P103},30,tT) ; If no answer leave a message for the exten => 0,1,Dial(${P501},15,tT) ; If no answer leave a message for the