aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-06 21:33:01 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-06 21:33:01 +0000
commitbf6699ffaa0bd600fc9ec757bb71f95bbdb85ec8 (patch)
treea5f42628f0ff2ce1270ac8d345ee3b0d2dd37d6f /channel.c
parent77e6c046554ed00cf54f9cc6b9f9eaabc756dabe (diff)
Add features (incomplete, highly experimental), fix DundiLookup app, debug improvements (bug #2800)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4167 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 5db5ac1dd..2b9c877bf 100755
--- a/channel.c
+++ b/channel.c
@@ -59,6 +59,8 @@
static int shutting_down = 0;
static int uniqueint = 0;
+unsigned long global_fin = 0, global_fout = 0;
+
/* XXX Lock appropriately in more functions XXX */
struct chanlist {
@@ -334,8 +336,8 @@ struct ast_channel *ast_channel_alloc(int needqueue)
tmp->streamid = -1;
tmp->appl = NULL;
tmp->data = NULL;
- tmp->fin = 0;
- tmp->fout = 0;
+ tmp->fin = global_fin;
+ tmp->fout = global_fout;
snprintf(tmp->uniqueid, sizeof(tmp->uniqueid), "%li.%d", (long)time(NULL), uniqueint++);
headp=&tmp->varshead;
ast_mutex_init(&tmp->lock);