]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add FAXEXTEN to save the DID/DNIS when we transfer to "fax" extension
authorMartin Pycko <martinp@digium.com>
Thu, 29 May 2003 20:18:45 +0000 (20:18 +0000)
committerMartin Pycko <martinp@digium.com>
Thu, 29 May 2003 20:18:45 +0000 (20:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1063 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 81fcca924f5a88701438f2f8f82c6aadf3942959..de10dd47772cfde72b89c72292aeed6697540a6c 100755 (executable)
@@ -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