Copy context properly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 059b57438b
commit 328897248a

@ -806,6 +806,7 @@ static int check_availability(struct agent_pvt *newlyavailable, int needlock)
newlyavailable->acknowledged = 1;
ast_setstate(parent, AST_STATE_UP);
ast_setstate(chan, AST_STATE_UP);
strncpy(parent->context, chan->context, sizeof(parent->context) - 1);
/* Go ahead and mark the channel as a zombie so that masquerade will
destroy it for us, and we need not call ast_hangup */
ast_mutex_lock(&parent->lock);

Loading…
Cancel
Save