From 2536706b9b9b0824847be8dc475576a0e5ec1ff4 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 25 Jun 2013 08:08:56 -0400 Subject: [PATCH] mod_rayo: fix component JID --- src/mod/event_handlers/mod_rayo/mod_rayo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index 78a256d3af..c055dc990f 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -1086,7 +1086,7 @@ static void rayo_component_cleanup(struct rayo_actor *actor) */ struct rayo_component *_rayo_component_init(struct rayo_component *component, switch_memory_pool_t *pool, const char *type, const char *subtype, const char *id, struct rayo_actor *parent, const char *client_jid, const char *file, int line) { - char *ref = switch_mprintf("%s-%d", type, rayo_actor_seq_next(parent)); + char *ref = switch_mprintf("%s-%d", subtype, rayo_actor_seq_next(parent)); char *jid = switch_mprintf("%s/%s", RAYO_JID(parent), ref); if (zstr(id)) { id = jid;