convert various places that access the channel lock directly to use the channel lock...
[asterisk/asterisk.git] / apps / app_zapscan.c
index 1530d7f..5a0cc8a 100644 (file)
@@ -332,7 +332,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
                        if((mygroup = pbx_builtin_getvar_helper(tempchan, "GROUP")) && (!strcmp(mygroup, desired_group))) {
                                ast_verb(3, "Found Matching Channel %s in group %s\n", tempchan->name, desired_group);
                        } else {
-                               ast_mutex_unlock(&tempchan->lock);
+                               ast_channel_unlock(tempchan);
                                lastchan = tempchan;
                                continue;
                        }