[asterisk-commits] file: trunk r79074 - /trunk/main/dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 10 13:37:32 CDT 2007
Author: file
Date: Fri Aug 10 13:37:32 2007
New Revision: 79074
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79074
Log:
Bring up to date with poll changes.
Modified:
trunk/main/dial.c
Modified: trunk/main/dial.c
URL: http://svn.digium.com/view/asterisk/trunk/main/dial.c?view=diff&rev=79074&r1=79073&r2=79074
==============================================================================
--- trunk/main/dial.c (original)
+++ trunk/main/dial.c Fri Aug 10 13:37:32 2007
@@ -289,6 +289,8 @@
ast_hangup(channel->owner);
channel->owner = NULL;
} else {
+ if (chan)
+ ast_poll_channel_add(chan, channel->owner);
res = 1;
ast_verb(3, "Called %s\n", numsubst);
}
@@ -595,6 +597,8 @@
set_state(dial, AST_DIAL_RESULT_HANGUP);
break;
}
+ if (chan)
+ ast_poll_channel_del(chan, channel->owner);
ast_hangup(who);
channel->owner = NULL;
continue;
@@ -616,6 +620,8 @@
AST_LIST_TRAVERSE(&dial->channels, channel, list) {
if (!channel->owner || channel->owner == who)
continue;
+ if (chan)
+ ast_poll_channel_del(chan, channel->owner);
ast_hangup(channel->owner);
channel->owner = NULL;
}
@@ -632,6 +638,8 @@
AST_LIST_TRAVERSE(&dial->channels, channel, list) {
if (!channel->owner)
continue;
+ if (chan)
+ ast_poll_channel_del(chan, channel->owner);
ast_hangup(channel->owner);
channel->owner = NULL;
}
More information about the asterisk-commits
mailing list