aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 01:15:10 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 01:15:10 +0000
commita3e9f9f8a4ff9e495c3a31b53105b456642d0d65 (patch)
treea9a33bb1db32d8d7660328eb7047506f0c8e8b3e
parent2f6eb49401ec68f22b5f334895dab60547564d7c (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@49131 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--BUGS2
-rw-r--r--channels/chan_iax2.c2
-rw-r--r--channels/chan_sip.c5
-rw-r--r--funcs/func_math.c1
4 files changed, 5 insertions, 5 deletions
diff --git a/BUGS b/BUGS
index f1c6af13a..5c3a20b78 100644
--- a/BUGS
+++ b/BUGS
@@ -10,7 +10,7 @@ For more information on using the bug tracker, or to
learn how you can contribute by acting as a bug marshall
please see:
- http://www.digium.com/index.php?menu=bugguidelines
+ http://www.asterisk.org/developers/bug-guidelines
If you would like to submit a feature request, please
resist the temptation to post it to the bug tracker.
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index e896abeb3..1adac13e2 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -1260,7 +1260,7 @@ static int try_firmware(char *s)
return -1;
}
fwh = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
- if (!fwh) {
+ if (fwh == (void *) -1) {
ast_log(LOG_WARNING, "mmap failed: %s\n", strerror(errno));
close(fd);
return -1;
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5054a8b3f..425bac658 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9801,6 +9801,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
if (!ignore)
sip_cancel_destroy(p);
check_pendings(p);
+ ast_set_flag(p, SIP_CAN_BYE);
break;
case 180: /* 180 Ringing */
if (!ignore)
@@ -11031,11 +11032,11 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req, int de
} else if (p->owner) {
ast_queue_hangup(p->owner);
if (option_debug > 2)
- ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n.");
+ ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n");
} else {
ast_set_flag(p, SIP_NEEDDESTROY);
if (option_debug > 2)
- ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n.");
+ ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n");
}
transmit_response(p, "200 OK", req);
diff --git a/funcs/func_math.c b/funcs/func_math.c
index e8a49acc8..a838e4f99 100644
--- a/funcs/func_math.c
+++ b/funcs/func_math.c
@@ -124,7 +124,6 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da
iaction = LTEFUNCTION;
}
} else if ((op = strchr(mvalue1, '='))) {
- iaction = GTFUNCTION;
*op = '\0';
if (*(op+1) == '=') {
*++op = '\0';