Ignore this ... playing with jira (AST-1)
[asterisk/asterisk.git] / main / app.c
index 91441f6..0eb8591 100644 (file)
@@ -75,7 +75,7 @@ int ast_app_dtget(struct ast_channel *chan, const char *context, char *collect,
        else if (!timeout)
                timeout = 5;
        
-       ts = ast_get_indication_tone(chan->zone,"dial");
+       ts = ast_get_indication_tone(chan->zone, "dial");
        if (ts && ts->data[0])
                res = ast_playtones_start(chan, 0, ts->data, 0);
        else 
@@ -894,6 +894,20 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category)
        return count;
 }
 
+int ast_app_group_update(struct ast_channel *old, struct ast_channel *new)
+{
+       struct ast_group_info *gi = NULL;
+
+       AST_LIST_LOCK(&groups);
+       AST_LIST_TRAVERSE(&groups, gi, list) {
+               if (gi->chan == old)
+                       gi->chan = new;
+       }
+       AST_LIST_UNLOCK(&groups);
+
+       return 0;
+}
+
 int ast_app_group_discard(struct ast_channel *chan)
 {
        struct ast_group_info *gi = NULL;