aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_fax.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_fax.c')
-rw-r--r--res/res_fax.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index 785b073ae..ed718aeb6 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -1717,11 +1717,11 @@ static int receivefax_exec(struct ast_channel *chan, const char *data)
info.context,
info.exten,
info.cid,
- pbx_builtin_getvar_helper(chan, "REMOTESTATIONID"),
- pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"),
- pbx_builtin_getvar_helper(chan, "FAXPAGES"),
- pbx_builtin_getvar_helper(chan, "FAXRESOLUTION"),
- pbx_builtin_getvar_helper(chan, "FAXBITRATE"),
+ S_OR(pbx_builtin_getvar_helper(chan, "REMOTESTATIONID"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXPAGES"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXRESOLUTION"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXBITRATE"), ""),
args.filename);
ast_channel_unlock(chan);
@@ -2208,11 +2208,11 @@ static int sendfax_exec(struct ast_channel *chan, const char *data)
info.context,
info.exten,
info.cid,
- pbx_builtin_getvar_helper(chan, "REMOTESTATIONID"),
- pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"),
- pbx_builtin_getvar_helper(chan, "FAXPAGES"),
- pbx_builtin_getvar_helper(chan, "FAXRESOLUTION"),
- pbx_builtin_getvar_helper(chan, "FAXBITRATE"),
+ S_OR(pbx_builtin_getvar_helper(chan, "REMOTESTATIONID"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXPAGES"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXRESOLUTION"), ""),
+ S_OR(pbx_builtin_getvar_helper(chan, "FAXBITRATE"), ""),
filenames);
ast_channel_unlock(chan);