提交 93fec8dd authored 作者: Ben Langfeld's avatar Ben Langfeld 提交者: Chris Rienzo

mod_rayo: Remove compensation for Punchblock Rayo spec incompatibility

上级 1d30a502
...@@ -2556,11 +2556,7 @@ static void on_call_originate_event(struct rayo_client *rclient, switch_event_t ...@@ -2556,11 +2556,7 @@ static void on_call_originate_event(struct rayo_client *rclient, switch_event_t
ref = iks_insert(response, "ref"); ref = iks_insert(response, "ref");
iks_insert_attrib(ref, "xmlns", RAYO_NS); iks_insert_attrib(ref, "xmlns", RAYO_NS);
#ifdef RAYO_UUID_IN_REF_URI
iks_insert_attrib(ref, "uri", uuid);
#else
iks_insert_attrib_printf(ref, "uri", "xmpp:%s", RAYO_JID(call)); iks_insert_attrib_printf(ref, "uri", "xmpp:%s", RAYO_JID(call));
#endif
RAYO_SEND_MESSAGE(call, RAYO_JID(rclient), response); RAYO_SEND_MESSAGE(call, RAYO_JID(rclient), response);
call->dial_id = NULL; call->dial_id = NULL;
} }
......
...@@ -51,9 +51,6 @@ ...@@ -51,9 +51,6 @@
#define RAT_PEER_SERVER "PEER_SERVER" #define RAT_PEER_SERVER "PEER_SERVER"
#define RAT_CLIENT "CLIENT" #define RAT_CLIENT "CLIENT"
/* these are support punchblock.. undefine once punchblock is fixed */
#define RAYO_UUID_IN_REF_URI
struct rayo_actor; struct rayo_actor;
struct rayo_call; struct rayo_call;
struct rayo_mixer; struct rayo_mixer;
......
...@@ -58,11 +58,7 @@ void rayo_component_send_start(struct rayo_component *component, iks *iq) ...@@ -58,11 +58,7 @@ void rayo_component_send_start(struct rayo_component *component, iks *iq)
iks *response = iks_new_iq_result(iq); iks *response = iks_new_iq_result(iq);
iks *ref = iks_insert(response, "ref"); iks *ref = iks_insert(response, "ref");
iks_insert_attrib(ref, "xmlns", RAYO_NS); iks_insert_attrib(ref, "xmlns", RAYO_NS);
#ifdef RAYO_UUID_IN_REF_URI
iks_insert_attrib(ref, "uri", component->ref);
#else
iks_insert_attrib_printf(ref, "uri", "xmpp:%s", RAYO_JID(component)); iks_insert_attrib_printf(ref, "uri", "xmpp:%s", RAYO_JID(component));
#endif
RAYO_SEND_REPLY(component, iks_find_attrib(response, "to"), response); RAYO_SEND_REPLY(component, iks_find_attrib(response, "to"), response);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论