Обработка в контексте наподобие:
exten => _X.,n,Dial(${exten},${RINGTIME},${DIALOPTIONS}) ; Ring the interface, Ringtime seconds maximum
exten => _X.,n,Goto(stdexten-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => stdexten-NOANSWER,1,Play("record/noanswer")
exten => stdexten-NOANSWER,n,Return()
exten => stdexten-BUSY,1,Play("record/busy")
exten => stdexten-BUSY,n,Return()
exten => stdexten-CHANUNAVAIL,1,Play("record/canal-nedostupen")
exten => stdexten-CHANUNAVAIL,n,Return()
exten => stdexten-BUSY,1,Play("record/busy")
exten => stdexten-BUSY,n,Return()
exten => stdexten-CONGESTION,1,Play("record/drugaya-oshibka")
exten => stdexten-CONGESTION,n,Return()
exten => stdexten-ANSWER ...............
Будет проигрывать различные варианты сообщений по различному событию