summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-09-28 10:10:35 +0200
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-10-11 17:09:07 +0200
commitdb43862074de2ac2177949f943997f16b2b2a1fd (patch)
tree779a48f933e4fcf7d033c56830c485f046c44b47 /config.c
parent83aa130c7dd80c396b8752ad010f2ee6b1bdaac3 (diff)
config: fixup type for demo effect
this is hardcoded for now, and automatically applied for phone routing group. Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index ee13ce6..c317e6f 100644
--- a/config.c
+++ b/config.c
@@ -121,8 +121,8 @@ bool agl_config_dofile (struct userdata *u, const char *path)
effect_fct = json_object_get_string (json_object_object_get (elt, "effect_fct"));
agl_router_create_rtgroup (u, pa_streq(type, "OUTPUT") ? agl_output : agl_input,
name, card,
- pa_streq(type, "phone") ? agl_router_phone_accept : NULL,
- pa_streq(type, "phone") ? agl_router_phone_effect : NULL);
+ pa_streq(name, "phone") ? agl_router_phone_accept : NULL,
+ pa_streq(name, "phone") ? agl_router_phone_effect : NULL);
}
/* [classmap] section */