Asterisk call flow


i have asterisk it works fine. i would like to setup my dial plan like… whenever the calling party gets the called party’s voicemail box… then after the passing the message, the calling party wish to land on some other ext… in this case, how do i write my dial plan…?

my existing dial plan is

exten => 246,1,Dial(SIP/246,20,rtT)
exten => 246,2,voiceMail(246@voicemail)
exten => 246,3,PlayBack(vm-goodbye)
exten => 246,4,Hangup()

thanks in advance

vinod-asteriskCLI> show application Voicemail
-= Info about application ‘VoiceMail’ =-

Leave a Voicemail message

VoiceMail(mailbox[@context][&mailbox[@context]][…][|options]): This
application allows the calling party to leave a message for the specified
list of mailboxes. When multiple mailboxes are specified, the greeting will
be taken from the first mailbox specified. Dialplan execution will stop if the
specified mailbox does not exist.
The Voicemail application will exit if any of the following DTMF digits are
0 - Jump to the ‘o’ extension in the current dialplan context.
* - Jump to the ‘a’ extension in the current dialplan context.
This application will set the following channel variable upon completion:
VMSTATUS - This indicates the status of the execution of the VoiceMail
application. The possible values are:

b - Play the ‘busy’ greeting to the calling party.
g(#) - Use the specified amount of gain when recording the voicemail
message. The units are whole-number decibels (dB).
s - Skip the playback of instructions for leaving a message to the
calling party.
u - Play the 'unavailable greeting.
j - Jump to priority n+101 if the mailbox is not found or some other
error occurs.

So , how do i change the dial plan? Even i do no have either o or a configured …

Thanks in advance