From: Chris Rienzo Date: Tue, 25 Jun 2013 12:08:56 +0000 (-0400) Subject: mod_rayo: fix component JID X-Git-Tag: v1.5.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7625001e492508c8c34bf2c1a43df357dc1db7e8;p=thirdparty%2Ffreeswitch.git mod_rayo: fix component JID --- 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;