From: Mark Spencer Date: Sun, 7 Sep 2003 00:12:29 +0000 (+0000) Subject: Copy context properly X-Git-Tag: 0.5.0~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=328897248a4692a18ccb77d8a11b4b71d7e6dc71;p=thirdparty%2Fasterisk.git Copy context properly git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1483 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_agent.c b/channels/chan_agent.c index a2998e3dc3..d293f9cc13 100755 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -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);