[asterisk-commits] russell: branch group/newcdr r202749 - /team/group/newcdr/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 23 13:46:45 CDT 2009


Author: russell
Date: Tue Jun 23 13:46:42 2009
New Revision: 202749

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202749
Log:
channel locking not needed here, the channel doesn't get put in the global channel list

Modified:
    team/group/newcdr/main/cel.c

Modified: team/group/newcdr/main/cel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/main/cel.c?view=diff&rev=202749&r1=202748&r2=202749
==============================================================================
--- team/group/newcdr/main/cel.c (original)
+++ team/group/newcdr/main/cel.c Tue Jun 23 13:46:42 2009
@@ -417,8 +417,6 @@
 		AST_LIST_INSERT_HEAD(headp, newvariable, entries);
 	}
 
-	ast_channel_lock(tchan);
-
 	tchan->cid.cid_name = ast_strdup(record.caller_id_name);
 	tchan->cid.cid_num = ast_strdup(record.caller_id_num);
 	tchan->cid.cid_ani = ast_strdup(record.caller_id_ani);
@@ -439,8 +437,6 @@
 	tchan->appl = ast_strdup(record.application_name);
 	tchan->data = ast_strdup(record.application_data);
 	tchan->amaflags = record.amaflag;
-
-	ast_channel_unlock(tchan);
 
 	return tchan;
 }




More information about the asterisk-commits mailing list