summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-05-29 20:18:45 +0000
committerMartin Pycko <martinp@digium.com>2003-05-29 20:18:45 +0000
commit11325940c85e2fff43607e1eb53aa7760b25ff51 (patch)
tree460a4dc8c3940bc49ecd63db6b1fb8e69629c51d /channels
parented04393d27f112d61b237b8f7787b20da2cd06c5 (diff)
Add FAXEXTEN to save the DID/DNIS when we transfer to "fax" extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 81fcca924..de10dd477 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3279,6 +3279,8 @@ struct ast_frame *zt_read(struct ast_channel *ast)
if (ast_exists_extension(ast, ast->context, "fax", 1, ast->callerid)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Redirecting %s to fax extension\n", ast->name);
+ /* Save the DID/DNIS when we transfer the fax call to a "fax" extension */
+ pbx_builtin_setvar_helper(ast,"FAXEXTEN",ast->exten);
if (ast_async_goto(ast, ast->context, "fax", 1, 0))
ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", ast->name, ast->context);
} else