aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-01 17:02:03 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-01 17:02:03 +0000
commit2cea89209c4d380816a84817c9fed30e59dbae97 (patch)
treea8164c57938b3d9b7ca98a553b61b369d128a0b9
parentd3f9c3164a6313204fb0b57304fbed49c6664730 (diff)
Modify queued frames from local channels to not set the other side to up
In this case, attended transfers were broken due to ast_feature_request_and_dial detecting the channel being set to up before the answer frame could be read and therefore failing to mark the channel as ready. This fix is a regression fix for 244785, which should continue to work properly as well. (closes issue #16816) Reported by: jamhed Tested by: jamhed, corruptor git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@249536 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_local.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 410151f1a..01897a532 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -212,37 +212,8 @@ static int local_queue_frame(struct local_pvt *p, int isoutbound, struct ast_fra
}
if (other) {
- if (f->frametype == AST_FRAME_CONTROL) {
- switch (f->subclass) {
- case AST_CONTROL_RINGING:
+ if (f->frametype == AST_FRAME_CONTROL && f->subclass == AST_CONTROL_RINGING) {
ast_setstate(other, AST_STATE_RINGING);
- break;
- case AST_CONTROL_ANSWER:
- ast_setstate(other, AST_STATE_UP);
- break;
- case AST_CONTROL_BUSY:
- ast_setstate(other, AST_STATE_BUSY);
- break;
-
- /* not going to handle these */
- case AST_CONTROL_HANGUP:
- case AST_CONTROL_RING:
- case AST_CONTROL_TAKEOFFHOOK:
- case AST_CONTROL_OFFHOOK:
- case AST_CONTROL_CONGESTION:
- case AST_CONTROL_FLASH:
- case AST_CONTROL_WINK:
- case AST_CONTROL_OPTION:
- case AST_CONTROL_RADIO_KEY:
- case AST_CONTROL_RADIO_UNKEY:
- case AST_CONTROL_PROGRESS:
- case AST_CONTROL_PROCEEDING:
- case AST_CONTROL_HOLD:
- case AST_CONTROL_UNHOLD:
- case AST_CONTROL_VIDUPDATE:
- case AST_CONTROL_SRCUPDATE:
- break;
- }
}
ast_queue_frame(other, f);
ast_channel_unlock(other);