USRLOC - Usrloc MI functions
#include <string.h>#include <stdio.h>#include "../../dprint.h"#include "../../ut.h"#include "../../qvalue.h"#include "../../ip_addr.h"#include "ul_mi.h"#include "dlist.h"#include "udomain.h"#include "utime.h"#include "p_usrloc_mod.h"
Go to the source code of this file.
Definition in file p_usrloc/ul_mi.c.
| static int mi_add_aor_node | ( | struct mi_node * | parent, | |
| urecord_t * | r, | |||
| time_t | t, | |||
| int | short_dump | |||
| ) | [inline, static] |
| parent | parent node | |
| r | printed record | |
| t | actual time | |
| short_dump | 0 means that all informations will be included, 1 that only the AOR is printed |
Definition at line 106 of file p_usrloc/ul_mi.c.
References urecord::aor, ucontact::c, ucontact::callid, ucontact::cflags, urecord::contacts, CS_DIRTY, CS_NEW, CS_SYNC, ucontact::cseq, ucontact::expires, ucontact::flags, int2str(), _str::len, ucontact::methods, ucontact::next, ucontact::path, ucontact::q, ucontact::received, _str::s, ucontact::sock, ucontact::state, UL_EXPIRED_TIME, and ucontact::user_agent.

| table | domain (table) name |
Definition at line 64 of file p_usrloc/ul_mi.c.
Referenced by mi_usrloc_add(), mi_usrloc_rm_aor(), mi_usrloc_rm_contact(), and mi_usrloc_show_contact().

| static int mi_fix_aor | ( | str * | aor | ) | [inline, static] |
Convert an address of record string to lower case, and truncate it when use_domain is not set.
| aor | address of record |
Definition at line 80 of file p_usrloc/ul_mi.c.
References _str::len, _str::s, and use_domain.
Referenced by mi_usrloc_add(), mi_usrloc_rm_aor(), mi_usrloc_rm_contact(), and mi_usrloc_show_contact().

| struct mi_root* mi_usrloc_add | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 371 of file p_usrloc/ul_mi.c.
| struct mi_root* mi_usrloc_dump | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 337 of file p_usrloc/ul_mi.c.
| struct mi_root* mi_usrloc_flush | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 350 of file p_usrloc/ul_mi.c.
| struct mi_root* mi_usrloc_rm_aor | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 239 of file p_usrloc/ul_mi.c.
| struct mi_root* mi_usrloc_rm_contact | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 277 of file p_usrloc/ul_mi.c.
| struct mi_root* mi_usrloc_show_contact | ( | struct mi_root * | cmd, | |
| void * | param | |||
| ) | [read] |
| cmd | mi_root containing the parameter | |
| param | not used |
Definition at line 485 of file p_usrloc/ul_mi.c.
1.7.1