MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / do_send_message_server

Function do_send_message_server

modules/xmpp/xmpp_server.c:400–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400static void do_send_message_server(struct xmpp_pipe_cmd *cmd)
401{
402 char *domain;
403 xode x;
404
405 LM_DBG("from=[%s] to=[%s] body=[%s]\n", cmd->from, cmd->to, cmd->body);
406
407 x = xode_new_tag("message");
408 xode_put_attrib(x, "xmlns", "jabber:client");
409 xode_put_attrib(x, "id", cmd->id); // XXX
410 xode_put_attrib(x, "from", cmd->from);
411 xode_put_attrib(x, "to", cmd->to);
412 xode_put_attrib(x, "type", "chat");
413 xode_insert_cdata(xode_insert_tag(x, "body"), cmd->body, -1);
414
415 domain = extract_domain(cmd->to);
416 xode_send_domain(domain, x);
417}
418
419void xmpp_server_net_send(struct xmpp_pipe_cmd *cmd)
420{

Callers 1

xmpp_server_net_sendFunction · 0.85

Calls 6

extract_domainFunction · 0.85
xode_send_domainFunction · 0.85
xode_new_tagFunction · 0.70
xode_put_attribFunction · 0.70
xode_insert_cdataFunction · 0.70
xode_insert_tagFunction · 0.70

Tested by

no test coverage detected