]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: fix component JID
authorChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 25 Jun 2013 12:08:56 +0000 (08:08 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 25 Jun 2013 12:08:56 +0000 (08:08 -0400)
src/mod/event_handlers/mod_rayo/mod_rayo.c

index 78a256d3af429c5d12415428c90abd034f2d8388..c055dc990f6301bfc0cf40fbda16f1136758079a 100644 (file)
@@ -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;