xmpp.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xmpp_pipe_cmd

Enumerations

enum  xmpp_pipe_cmd_type { XMPP_PIPE_SEND_PACKET = 1, XMPP_PIPE_SEND_MESSAGE = 2, XMPP_PIPE_SEND_PSUBSCRIBE = 4, XMPP_PIPE_SEND_PNOTIFY = 8 }

Functions

char * db_key (char *secret, char *domain, char *id)
char * extract_domain (char *jid)
char * random_secret (void)
char * shahash (const char *str)
int xmpp_component_child_process (int data_pipe)
void xmpp_free_pipe_cmd (struct xmpp_pipe_cmd *cmd)
int xmpp_send_sip_msg (char *from, char *to, char *msg)
 Relay a MESSAGE to a SIP client.
int xmpp_server_child_process (int data_pipe)

Variables

char domain_separator
char * gateway_domain
char * xmpp_domain
char * xmpp_host
char * xmpp_password
int xmpp_port


Detailed Description

Definition in file xmpp.h.


Enumeration Type Documentation

Enumerator:
XMPP_PIPE_SEND_PACKET 
XMPP_PIPE_SEND_MESSAGE 
XMPP_PIPE_SEND_PSUBSCRIBE 
XMPP_PIPE_SEND_PNOTIFY 

Definition at line 34 of file xmpp.h.


Function Documentation

char* db_key ( char *  secret,
char *  domain,
char *  id 
)

Definition at line 151 of file util.c.

References buf, hash, shahash(), and snprintf.

Referenced by in_stream_node_callback(), and out_stream_node_callback().

char* extract_domain ( char *  jid  ) 

Definition at line 124 of file util.c.

Referenced by do_send_message_server().

char* random_secret ( void   ) 

Definition at line 137 of file util.c.

References secret.

Referenced by in_stream_node_callback(), and xmpp_server_child_process().

char* shahash ( const char *  str  ) 

Definition at line 201 of file jabber/sha.c.

References INT64, sha_hash(), sha_init(), and strprintsha().

Referenced by db_key(), stream_node_callback(), and xj_jcon_user_auth().

int xmpp_component_child_process ( int  data_pipe  ) 

void xmpp_free_pipe_cmd ( struct xmpp_pipe_cmd cmd  ) 

int xmpp_send_sip_msg ( char *  from,
char *  to,
char *  msg 
)

Relay a MESSAGE to a SIP client.

Todo:
This assumes that a message is text/plain, which is not always the case with XMPP messages. We should propably also set the character set, as all SIP clients doesn't assume utf8 for text/plain

< Type of the message

< Request-URI

< To

< From

< Optional headers

< Message body

< Callback function

< Callback parameter

Definition at line 259 of file xmpp.c.

References buf, CRLF, _str::len, msg_type, NULL, _str::s, snprintf, tm_binds::t_request, and tmb.

Referenced by in_stream_node_callback(), and stream_node_callback().

int xmpp_server_child_process ( int  data_pipe  ) 


Variable Documentation

Definition at line 136 of file xmpp.c.

Referenced by encode_uri_xmpp_sip().

char* xmpp_domain

char* xmpp_host

Definition at line 138 of file xmpp.c.

Referenced by xmpp_component_child_process().

Definition at line 140 of file xmpp.c.

Referenced by stream_node_callback().

int xmpp_port

Definition at line 139 of file xmpp.c.

Referenced by mod_init(), xmpp_component_child_process(), and xmpp_server_child_process().


Generated on Fri May 25 00:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6