[svn-commits] qwell: trunk r270983 - /trunk/channels/chan_agent.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 16 16:12:29 CDT 2010


Author: qwell
Date: Wed Jun 16 16:12:25 2010
New Revision: 270983

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=270983
Log:
Fix the actual place that was pointed out, for previous commit.

Modified:
    trunk/channels/chan_agent.c

Modified: trunk/channels/chan_agent.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_agent.c?view=diff&rev=270983&r1=270982&r2=270983
==============================================================================
--- trunk/channels/chan_agent.c (original)
+++ trunk/channels/chan_agent.c Wed Jun 16 16:12:25 2010
@@ -2298,7 +2298,9 @@
 		} 
 	} else if (!strcasecmp(args.item, "fullchannel")) {
 		if (agent->chan) {
+			ast_channel_lock(agent->chan);
 			ast_copy_string(buf, agent->chan->name, len);
+			ast_channel_unlock(agent->chan);
 		} 
 	} else if (!strcasecmp(args.item, "exten")) {
 		buf[0] = '\0';




More information about the svn-commits mailing list