<div dir="ltr"><div dir="ltr">On Mon, Oct 3, 2022 at 9:11 AM Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi.<br>
<br>
I have a dialplan which calls the VoiceMail() application, and I'm getting the <br>
following behaviour:<br>
<br>
 - if the inbound caller leaves a message, then presses #, and then presses 1 <br>
to accept the recording, everything works as expected and the dialplan <br>
continues processing after the line containing VoiceMail()<br>
<br>
 - if the inbound caller leaves a message and then hangs up, the diaplan <br>
simply stops executing with a message such as:<br>
<br>
[2022-10-03 13:02:23.355976] pbx VERBOSE[19022][C-00000556]: pbx.c:4413 in <br>
__ast_pbx_run: Spawn extension (RecordVM, 00xx74xx88xx90, 2) exited non-zero <br>
on 'SIP/TrunkOne-00000c12'<br>
<br>
The subsequent commands in the dialplan do not get processed.<br></blockquote><div><br></div><div>This is fundamentally how dialplan works. If a channel hangs up, then normal dialplan execution stops.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Can anyone suggest either why this would happen and how to get the dialplan to <br>
continue processing under all circumstances, or at least how to investigate <br>
futher what is causing this to happen?<br>
<br>
I'm sure that leaving a message and hanging up the call should be valid <br>
because that's what the default greeting message tells people they can do.<br></blockquote><div><br></div><div>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.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>