[asterisk-commits] file: branch 1.4 r75712 - in /branches/1.4: apps/ channels/ pbx/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 18 15:00:23 CDT 2007
Author: file
Date: Wed Jul 18 15:00:23 2007
New Revision: 75712
URL: http://svn.digium.com/view/asterisk?view=rev&rev=75712
Log:
Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode using GCC 4.2.
Modified:
branches/1.4/apps/app_voicemail.c
branches/1.4/channels/chan_agent.c
branches/1.4/channels/chan_sip.c
branches/1.4/pbx/pbx_realtime.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=75712&r1=75711&r2=75712
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Wed Jul 18 15:00:23 2007
@@ -553,12 +553,9 @@
ast_copy_flags(vmu, (&globalflags), AST_FLAGS_ALL);
if (saydurationminfo)
vmu->saydurationm = saydurationminfo;
- if (callcontext)
- ast_copy_string(vmu->callback, callcontext, sizeof(vmu->callback));
- if (dialcontext)
- ast_copy_string(vmu->dialout, dialcontext, sizeof(vmu->dialout));
- if (exitcontext)
- ast_copy_string(vmu->exit, exitcontext, sizeof(vmu->exit));
+ ast_copy_string(vmu->callback, callcontext, sizeof(vmu->callback));
+ ast_copy_string(vmu->dialout, dialcontext, sizeof(vmu->dialout));
+ ast_copy_string(vmu->exit, exitcontext, sizeof(vmu->exit));
if (maxmsg)
vmu->maxmsg = maxmsg;
vmu->volgain = volgain;
Modified: branches/1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_agent.c?view=diff&rev=75712&r1=75711&r2=75712
==============================================================================
--- branches/1.4/channels/chan_agent.c (original)
+++ branches/1.4/channels/chan_agent.c Wed Jul 18 15:00:23 2007
@@ -411,10 +411,10 @@
/* substitute . for - */
if ((pointer = strchr(filename, '.')))
*pointer = '-';
- snprintf(tmp, sizeof(tmp), "%s%s",savecallsin ? savecallsin : "", filename);
+ snprintf(tmp, sizeof(tmp), "%s%s", savecallsin, filename);
ast_monitor_start(ast, recordformat, tmp, needlock);
ast_monitor_setjoinfiles(ast, 1);
- snprintf(tmp2, sizeof(tmp2), "%s%s.%s", urlprefix ? urlprefix : "", filename, recordformatext);
+ snprintf(tmp2, sizeof(tmp2), "%s%s.%s", urlprefix, filename, recordformatext);
#if 0
ast_verbose("name is %s, link is %s\n",tmp, tmp2);
#endif
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=75712&r1=75711&r2=75712
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Jul 18 15:00:23 2007
@@ -4553,7 +4553,7 @@
regobjs++;
ASTOBJ_INIT(reg);
ast_string_field_set(reg, contact, contact);
- if (username)
+ if (!ast_strlen_zero(username))
ast_string_field_set(reg, username, username);
if (hostname)
ast_string_field_set(reg, hostname, hostname);
Modified: branches/1.4/pbx/pbx_realtime.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_realtime.c?view=diff&rev=75712&r1=75711&r2=75712
==============================================================================
--- branches/1.4/pbx/pbx_realtime.c (original)
+++ branches/1.4/pbx/pbx_realtime.c Wed Jul 18 15:00:23 2007
@@ -211,7 +211,7 @@
"Application: %s\r\n"
"AppData: %s\r\n"
"Uniqueid: %s\r\n",
- chan->name, chan->context, chan->exten, chan->priority, app, appdata ? appdata : "(NULL)", chan->uniqueid);
+ chan->name, chan->context, chan->exten, chan->priority, app, !ast_strlen_zero(appdata) ? appdata : "(NULL)", chan->uniqueid);
res = pbx_exec(chan, a, appdata);
} else
More information about the asterisk-commits
mailing list