asterisk/main
Matthew Jordan 9e7de73fee Support VoiceMail d() option when extension does not exist in channel's context
The VoiceMail d([c]) option is documented to accept digits for a new extension
in context <c>, if played during the greeting.  This option works fine if the
extension being redirected to has an extension with the same initial digit in
the channel's current context.  If that digit did not happen to exist in some
extension, a dialplan match would fail and the user would not be redirected.

This patch fixes it such that if the <c> option is used, the extensions are
matched in that context as opposed to the caller's original context.

(closes issue ASTERISK-18243)
Reported by: mjordan
Tested by: mjordan

Review: https://reviewboard.asterisk.org/r/1892
........

Merged revisions 365474 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 365475 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@365477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-05-07 18:42:48 +00:00
..
editline Add gar to the check for AR for those silly OSes (Solaris) that don't have ar. 2010-04-27 21:13:01 +00:00
stdtime Fix a variety of potential buffer overflows 2012-04-19 02:40:55 +00:00
Makefile Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
abstract_jb.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
acl.c Prevent outbound SIP NOTIFY packets from displaying a port of 0 2012-03-01 14:22:01 +00:00
alaw.c Fix compile when certain G711 menuselect options are enabled. 2009-08-19 22:38:46 +00:00
aoc.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
app.c Fix bad check in voicemail functions for ast_inboxcount2_func 2012-05-01 18:29:58 +00:00
ast_expr2.c Multiple revisions 360356-360357 2012-03-24 02:42:42 +00:00
ast_expr2.fl Avoid cppcheck warnings; removing unused vars and a bit of cleanup. 2012-04-17 18:57:40 +00:00
ast_expr2.h Multiple revisions 360356-360357 2012-03-24 02:42:42 +00:00
ast_expr2.y Multiple revisions 360356-360357 2012-03-24 02:42:42 +00:00
ast_expr2f.c Avoid cppcheck warnings; removing unused vars and a bit of cleanup. 2012-04-17 18:57:40 +00:00
asterisk.c Add more constness to the end_buf pointer in the netconsole 2012-04-26 19:33:49 +00:00
asterisk.dynamics Remove the old stub files, preferring the optional_api method. 2010-07-14 20:48:59 +00:00
asterisk.exports.in Merged revisions 288640 via svnmerge from 2010-09-24 03:43:14 +00:00
astfd.c On some platforms, O_RDONLY is not a flag to be checked, but merely the absence of O_RDWR and O_WRONLY. 2012-04-23 16:08:33 +00:00
astmm.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
astobj2.c Fixed __ao2_ref() validating user_data twice. 2012-05-01 23:21:07 +00:00
audiohook.c Only log a failure to get read/write samples from factories if it didn't happen 2012-05-02 02:51:02 +00:00
autochan.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
autoservice.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
bridging.c Finalize ast_channel opaquification 2012-03-13 18:20:34 +00:00
buildinfo.c fix a few small things found by using sparse 2008-10-30 16:49:02 +00:00
callerid.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
ccss.c Fix case-sensitivity for device-specific event subscriptions and CCSS 2012-03-02 21:06:12 +00:00
cdr.c Add missing newlines to CLI logging 2012-04-06 18:19:03 +00:00
cel.c Multiple revisions 365006,365068 2012-05-02 17:43:16 +00:00
channel.c Make it possible to change the minimum DTMF duration in asterisk.conf 2012-04-25 09:32:21 +00:00
channel_internal_api.c Finalize ast_channel opaquification 2012-03-13 18:20:34 +00:00
chanvars.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
cli.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
config.c Fix many issues from the NULL_RETURNS Coverity report 2012-05-04 22:17:38 +00:00
cygload.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
data.c Avoid cppcheck warnings; removing unused vars and a bit of cleanup. 2012-04-17 18:57:40 +00:00
datastore.c Merged revisions 273565 via svnmerge from 2010-07-01 22:16:23 +00:00
db.c Allow AMI action callback to be reentrant. 2012-03-20 17:31:28 +00:00
devicestate.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
dial.c Introducing the log message unique call identifiers feature 2012-03-29 20:01:20 +00:00
dns.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
dnsmgr.c Convert ast_verb() to ast_debug() and increase log level 2012-03-26 21:22:23 +00:00
dsp.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
ecdisa.h Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
enum.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
event.c Add missing payload type to events API 2012-04-20 16:50:38 +00:00
features.c Fix many issues from the NULL_RETURNS Coverity report 2012-05-04 22:17:38 +00:00
file.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
fixedjitterbuf.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
fixedjitterbuf.h Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
format.c Use struct copy instead of memcpy(). 2012-03-13 16:50:06 +00:00
format_cap.c Astobj2 locking enhancement. 2012-02-28 18:15:34 +00:00
format_pref.c Fix a variety of potential buffer overflows 2012-04-19 02:40:55 +00:00
frame.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
framehook.c Fix some opaquification-related compiler warnings 2012-02-21 20:17:52 +00:00
fskmodem.c (Step 2 of 2) 2008-07-21 21:00:47 +00:00
fskmodem_float.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
fskmodem_int.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
global_datastores.c Add SRTP support for Asterisk 2010-06-08 05:29:08 +00:00
hashtab.c Add MALLOC_DEBUG to various utility APIs, so that memory leaks can be tracked back to their source. 2009-03-11 00:29:59 +00:00
heap.c Merged revisions 304950 via svnmerge from 2011-01-31 06:50:49 +00:00
http.c Fix crash caused by unloading or reloading of res_http_post 2012-04-10 19:58:04 +00:00
image.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
indications.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
io.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
jitterbuf.c Fix a variety of potential buffer overflows 2012-04-19 02:40:55 +00:00
libasteriskssl.c Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
libasteriskssl.exports.in Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
loader.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
lock.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
logger.c Merged revisions 364635 via svnmerge from 2012-04-30 17:17:51 +00:00
manager.c Prevent a potential crash when using manager hooks. 2012-05-01 21:49:25 +00:00
md5.c md5: supress some compiler warnings. 2012-04-28 01:33:49 +00:00
message.c Don't add an empty MESSAGE_DATA(key) header if it doesn't already exist. 2012-04-06 19:58:44 +00:00
netsock.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
netsock2.c Merged revisions 332560 via svnmerge from 2011-08-18 21:39:04 +00:00
pbx.c Support VoiceMail d() option when extension does not exist in channel's context 2012-05-07 18:42:48 +00:00
plc.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
poll.c Merged revisions 285268 via svnmerge from 2010-09-07 19:09:08 +00:00
privacy.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
rtp_engine.c Move debug message in ast_rtp_instance_early_bridge_make_compatible(). 2012-04-20 16:57:09 +00:00
say.c Formatting fixes 2012-04-25 08:39:01 +00:00
sched.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
security_events.c Add IPv6 address support to security events framework. 2012-04-16 21:20:50 +00:00
sha1.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
slinfactory.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
srv.c Convert SRV lookup message to debug level 2012-04-12 20:08:26 +00:00
strcompat.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
strings.c fixes segfault on logging 2010-05-18 22:48:51 +00:00
stun.c Re-resolve the STUN address if a STUN poll fails for res_stun_monitor. 2011-12-01 21:19:41 +00:00
syslog.c Add functions to map syslog facilities and priorities constants to strings. 2009-06-26 13:00:35 +00:00
taskprocessor.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
tcptls.c Add missing newlines to CLI logging 2012-04-06 18:19:03 +00:00
tdd.c Fix a variety of potential buffer overflows 2012-04-19 02:40:55 +00:00
term.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
test.c Remove "asterisk/version.h" in favor of "asterisk/ast_version.h". 2012-01-25 21:31:28 +00:00
threadstorage.c Fixed an issue in the threadstorage cli functions resulting from the constification of struct ast_cli_args in r196072. 2009-06-01 15:23:21 +00:00
timing.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
translate.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
udptl.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
ulaw.c Kill off red blobs in most of main/* 2012-03-22 19:51:16 +00:00
utils.c Allow the Hangup manager action to match channels by regex 2012-04-03 19:31:25 +00:00
xml.c Asterisk data retrieval API. 2010-04-22 18:07:02 +00:00
xmldoc.c Add missing newlines to CLI logging 2012-04-06 18:19:03 +00:00