mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
Changes some print statements/events to use a blank string in place of NULL if the string in question is NULL.
This is supposed to improve Solaris compatibility since Solaris goes berserk when trying to output NULL strings. (closes issue #18759) Reported by: bklang Patches: null-strings.patch uploaded by bklang (license 919) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@311352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1764,11 +1764,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);
|
||||
|
||||
@@ -2266,11 +2266,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);
|
||||
|
||||
|
||||
@@ -2490,7 +2490,7 @@ static void aji_handle_presence(struct aji_client *client, ikspak *pak)
|
||||
"Account: %s\r\nJID: %s\r\nResource: %s\r\nStatus: %d\r\nPriority: %d"
|
||||
"\r\nDescription: %s\r\n",
|
||||
client->name, pak->from->partial, found->resource, found->status,
|
||||
found->priority, found->description);
|
||||
found->priority, S_OR(found->description, ""));
|
||||
} else {
|
||||
manager_event(EVENT_FLAG_USER, "JabberStatus",
|
||||
"Account: %s\r\nJID: %s\r\nStatus: %d\r\n",
|
||||
|
||||
Reference in New Issue
Block a user