callid.h File Reference

TM :: Fast Call-ID Generator. More...

#include "../../str.h"

Include dependency graph for callid.h:

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

Go to the source code of this file.

Functions

int child_init_callid (int rank)
 Child initialization -- generates suffix.
void generate_callid (str *callid)
 Get a unique Call-ID.
int init_callid (void)
 Initialize the Call-ID generator -- generates random prefix.


Detailed Description

TM :: Fast Call-ID Generator.

Definition in file callid.h.


Function Documentation

int child_init_callid ( int  rank  ) 

Child initialization -- generates suffix.

Definition at line 111 of file callid.c.

References socket_info::address_str, bind_address, callid_buf, CALLID_SUFFIX_LEN, CID_SEP, get_first_socket(), _str::len, LM_CRIT, LM_DBG, LM_ERR, my_pid(), _str::s, and snprintf.

Referenced by child_init().

void generate_callid ( str callid  ) 

Get a unique Call-ID.

Definition at line 162 of file callid.c.

References inc_hexchar(), _str::len, and _str::s.

Referenced by mi_tm_uac_dlg(), req_outside(), and request().

int init_callid ( void   ) 

Initialize the Call-ID generator -- generates random prefix.

Definition at line 71 of file callid.c.

References callid_buf, callid_nr, CALLID_NR_LEN, _str::len, LM_CRIT, LM_DBG, LM_ERR, _str::s, and snprintf.

Referenced by mod_init().


Generated on Thu May 17 12:00:36 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6