[custom-test-play-with-conditional] ;We are going to try and write to the Asterisk database if this is the first call. exten => s,1,GotoIf(DB_EXISTS(voicemail/${DNID})?1000:2) exten => s,2,wait(2) exten => s,3,playback(mainmenu-custom) exten => s,4,Set(DB(voicemail/${DNID})=activated) exten => s,5,hangup exten => s,1000,wait(2) exten => s,1001,VoiceMailMain(2957@default)