aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-03-10 17:14:13 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-03-10 17:14:13 +0000
commit2b37c2b811eb9abed00c36ae35eda8533993087e (patch)
tree1d262d8124d9010a2db1bd77cf470c4fcfa85eb6
parente1409a83e2f766709555297ae8a7cba634573456 (diff)
Version 0.1.11 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@423 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannel.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/channel.c b/channel.c
index b251c0bc4..fdd7c8f66 100755
--- a/channel.c
+++ b/channel.c
@@ -303,8 +303,8 @@ void ast_channel_free(struct ast_channel *chan)
free(chan->dnid);
if (chan->callerid)
free(chan->callerid);
- if (chan->hidden_callerid)
- free(chan->hidden_callerid);
+ if (chan->ani)
+ free(chan->ani);
pthread_mutex_destroy(&chan->lock);
free(chan->pvt);
free(chan);
@@ -539,8 +539,12 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
/* Simulate a timeout if we were interrupted */
if (errno != EINTR)
*ms = -1;
- else
+ else {
+ /* Just an interrupt */
+#if 0
*ms = 0;
+#endif
+ }
return NULL;
}
@@ -931,7 +935,7 @@ int ast_readstring(struct ast_channel *c, char *s, int len, int timeout, int fti
}
if (!strchr(enders, d))
s[pos++] = d;
- if (strchr(enders, d) || (pos >= len - 1)) {
+ if (strchr(enders, d) || (pos >= len)) {
s[pos]='\0';
return 0;
}
@@ -1205,6 +1209,8 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
if (c0->pvt->bridge &&
(c0->pvt->bridge == c1->pvt->bridge) && !nativefailed) {
/* Looks like they share a bridge code */
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Attempting native bridge of %s and %s\n", c0->name, c1->name);
if (!(res = c0->pvt->bridge(c0, c1, flags, fo, rc))) {
c0->bridge = NULL;
c1->bridge = NULL;