The problem is that when somebody calls this extension and it gets answered, when the person at that extension hangs up the second priority (voicemail) is still executed unless the caller hangs up as well. This proves to be an even bigger problem on the inbound number, set up roughly as follows (pseudo-code again):
In this scenario, if the person at 70 (reception) answers and then hangs up before the caller, the dialplan will continue with the next priority and call all the other phones as well.
I realise that there are ways around this by implementing ‘gotos’ based on the DIALSTATUS variable as outlined at http://www.the-asterisk-book.com/unstable/voicemail-beispiele.html, but this is messy and difficult to implement in a realtime configuration. Is there an easier way around this?
As you can see, once the AGI script has completed successfully, the voicemail ‘unavailable’ message plays even though the call was answered. Any ideas?
You talk about and show a normal dialplan, But you output shows you are using an AGI and no sign of that, and obviously the dilaplan you have shown is not the one you have issue with.
How can any expect to understand what is happening if you do not show the ACTUAL code you are using, IE DIalplan AGI etc
The problem will be the AGI returning to the dialplan I expect.