ul_mi.h File Reference

USRLOC - Usrloc MI functions. More...

#include "../../mi/mi.h"

Include dependency graph for ul_mi.h:

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

Go to the source code of this file.

Defines

#define MI_USRLOC_ADD   "ul_add"
#define MI_USRLOC_DUMP   "ul_dump"
#define MI_USRLOC_FLUSH   "ul_flush"
#define MI_USRLOC_RM   "ul_rm"
#define MI_USRLOC_RM_CONTACT   "ul_rm_contact"
#define MI_USRLOC_SHOW_CONTACT   "ul_show_contact"

Functions

struct mi_rootmi_usrloc_add (struct mi_root *cmd, void *param)
 Add a new contact for an address of record.
struct mi_rootmi_usrloc_dump (struct mi_root *cmd, void *param)
 Dump the content of the usrloc.
struct mi_rootmi_usrloc_flush (struct mi_root *cmd, void *param)
 Flush the usrloc memory cache to DB.
struct mi_rootmi_usrloc_rm_aor (struct mi_root *cmd, void *param)
 Delete a address of record including its contacts.
struct mi_rootmi_usrloc_rm_contact (struct mi_root *cmd, void *param)
 Delete a contact from an AOR record.
struct mi_rootmi_usrloc_show_contact (struct mi_root *cmd, void *param)
 Dumps the contacts of an AOR.


Detailed Description

USRLOC - Usrloc MI functions.

Definition in file ul_mi.h.


Define Documentation

#define MI_USRLOC_ADD   "ul_add"

Definition at line 38 of file ul_mi.h.

#define MI_USRLOC_DUMP   "ul_dump"

Definition at line 36 of file ul_mi.h.

#define MI_USRLOC_FLUSH   "ul_flush"

Definition at line 37 of file ul_mi.h.

#define MI_USRLOC_RM   "ul_rm"

Definition at line 34 of file ul_mi.h.

#define MI_USRLOC_RM_CONTACT   "ul_rm_contact"

Definition at line 35 of file ul_mi.h.

#define MI_USRLOC_SHOW_CONTACT   "ul_show_contact"

Definition at line 39 of file ul_mi.h.


Function Documentation

struct mi_root* mi_usrloc_add ( struct mi_root cmd,
void *  param 
) [read]

struct mi_root* mi_usrloc_dump ( struct mi_root cmd,
void *  param 
) [read]

struct mi_root* mi_usrloc_flush ( struct mi_root cmd,
void *  param 
) [read]

Flush the usrloc memory cache to DB.

Parameters:
cmd mi_root containing the parameter
param not used
Returns:
mi_root with the result or 0 on failure

Definition at line 429 of file ul_mi.c.

References init_mi_tree(), MI_OK_LEN, MI_OK_S, NULL, and synchronize_all_udomains().

struct mi_root* mi_usrloc_rm_aor ( struct mi_root cmd,
void *  param 
) [read]

Delete a address of record including its contacts.

Parameters:
cmd mi_root containing the parameter
param not used
Note:
expects 2 nodes: the table name and the AOR
Returns:
mi_root with the result

Definition at line 244 of file ul_mi.c.

References delete_urecord(), init_mi_tree(), mi_node::kids, lock_udomain(), mi_find_domain(), mi_fix_aor(), MI_MISSING_PARM_LEN, MI_MISSING_PARM_S, MI_OK_LEN, MI_OK_S, mi_node::next, mi_root::node, NULL, unlock_udomain(), and mi_node::value.

struct mi_root* mi_usrloc_rm_contact ( struct mi_root cmd,
void *  param 
) [read]

Delete a contact from an AOR record.

Parameters:
cmd mi_root containing the parameter
param not used
Note:
expects 3 nodes: the table name, the AOR and contact
Returns:
mi_root with the result or 0 on failure

Definition at line 282 of file ul_mi.c.

References delete_ucontact(), get_ucontact(), get_urecord(), init_mi_tree(), mi_node::kids, lock_udomain(), mi_find_domain(), mi_fix_aor(), MI_MISSING_PARM_LEN, MI_MISSING_PARM_S, MI_OK_LEN, MI_OK_S, MI_UL_CSEQ, mi_node::next, mi_root::node, NULL, release_urecord(), unlock_udomain(), and mi_node::value.

struct mi_root* mi_usrloc_show_contact ( struct mi_root cmd,
void *  param 
) [read]


Generated on Thu May 24 22:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6