[asterisk-users] VoiceMail() stops dialplan processing

Antony Stone Antony.Stone at asterisk.open.source.it
Mon Oct 3 07:20:28 CDT 2022


On Monday 03 October 2022 at 14:14:54, Joshua C. Colp wrote:

> On Mon, Oct 3, 2022 at 9:11 AM Antony Stone <
> 
> Antony.Stone at asterisk.open.source.it> wrote:
> > Hi.
> > 
> > I have a dialplan which calls the VoiceMail() application, and I'm
> > getting the following behaviour:
> >  - if the inbound caller leaves a message, then presses #, and then
> > presses 1 to accept the recording, everything works as expected and the
> > dialplan continues processing after the line containing VoiceMail()
> > 
> >  - if the inbound caller leaves a message and then hangs up, the diaplan
> > simply stops executing with a message such as:
> > 
> > [2022-10-03 13:02:23.355976] pbx VERBOSE[19022][C-00000556]: pbx.c:4413
> > in __ast_pbx_run: Spawn extension (RecordVM, 00xx74xx88xx90, 2) exited
> > non-zero on 'SIP/TrunkOne-00000c12'
> > 
> > The subsequent commands in the dialplan do not get processed.
> 
> This is fundamentally how dialplan works. If a channel hangs up, then
> normal dialplan execution stops.

I suppose that fits other situtations, yes.

> > Can anyone suggest either why this would happen and how to get the
> > dialplan to continue processing under all circumstances, or at least how
> > to investigate futher what is causing this to happen?
> > 
> > I'm sure that leaving a message and hanging up the call should be valid
> > because that's what the default greeting message tells people they can
> > do.
> 
> It is. If you're needing to do something afterwards, then the 'h' extension
> or hangup handlers are used to execute logic when the channel is hung up.

Okay, sounds simple enough - thanks,


Antony.

-- 
RTFM may be the appropriate reply, but please specify exactly which FM to R.

                                                   Please reply to the list;
                                                         please *don't* CC me.



More information about the asterisk-users mailing list