-= Info about application 'VoiceMail' =-
[Synopsis]
Leave a Voicemail message
[Description]
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
received:
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:
SUCCESS | USEREXIT | FAILED
Options:
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).
Only works on supported technologies, which is Zap only.
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.
-- Executing [1111@from-internal:1] Answer("SIP/102-b7bbd698", "") in new stack
-- Executing [1111@from-internal:2] Set("SIP/102-b7bbd698", "__meext=102") in new stack
-- Executing [1111@from-internal:3] ReadFile("SIP/102-b7bbd698", "__chantovm=/var/monitorvm/102.txt") in new stack
-- Executing [1111@from-internal:4] Set("SIP/102-b7bbd698", "DYNAMIC_FEATURES=sendback") in new stack
-- Executing [1111@from-internal:5] ChanSpy("SIP/102-b7bbd698", "chantovm") in new stack
-- <SIP/102-b7bbd698> Playing 'beep' (language 'en')
I'm not sure how you would modify the trixbox stock dialplan...but if this were open source asterisk, then I would say it could be done, with a bit less headache.
You can definitely chanspy(zap/1-2... but since the channel is already connected to vm app, you would need a method in which you can run a macro on that channel, to transfer that call back to the original extension.
The one issue I see...is that someone would probably leave a message faster than you can spy on the channel, and then decide to transfer them back to your second line.
....almost "anything" is possible with Asterisk, but this could get very tricky/technical....so the real question is....how badly do you want this ?