Fix transition to operator extension
authorMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 23:26:26 +0000 (23:26 +0000)
committerMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 23:26:26 +0000 (23:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@806 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index b7875d0..d148849 100755 (executable)
@@ -519,8 +519,9 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
                                return -1;
                        }
                } else if (silent == '0') {
                                return -1;
                        }
                } else if (silent == '0') {
-                       strncpy(chan->exten, "0", sizeof(chan->exten) - 1);
+                       strncpy(chan->exten, "o", sizeof(chan->exten) - 1);
                        chan->priority = 0;
                        chan->priority = 0;
+                       ast_softhangup(chan, AST_SOFTHANGUP_ASYNCGOTO);
                        free(copy);
                        return 0;
                }
                        free(copy);
                        return 0;
                }