#include <net-snmp/net-snmp-config.h>#include <net-snmp/net-snmp-includes.h>#include <net-snmp/agent/net-snmp-agent-includes.h>#include <net-snmp/library/snmp_assert.h>#include "hashTable.h"#include "interprocess_buffer.h"#include "utilities.h"#include "openserSIPContactTable.h"#include "snmpstats_globals.h"#include "../../mem/mem.h"#include "../../str.h"#include "../../sr_module.h"#include "../../locking.h"#include "../usrloc/usrloc.h"#include "../usrloc/ucontact.h"

Go to the source code of this file.
Functions | |
| int | createContactRow (int userIndex, int contactIndex, char *contactName, ucontact_t *contactInfo) |
| int | deleteContactRecord (contactToIndexStruct_t **contactRecord, char *contactName) |
| void | deleteContactRow (int userIndex, int contactIndex) |
| void | init_openserSIPContactTable (void) |
| void | initialize_table_openserSIPContactTable (void) |
| int | insertContactRecord (contactToIndexStruct_t **contactRecord, int index, char *name) |
| const openserSIPContactTable_context * | openserSIPContactTable_get_by_idx (netsnmp_index *hdr) |
| int | openserSIPContactTable_get_value (netsnmp_request_info *request, netsnmp_index *item, netsnmp_table_request_info *table_info) |
Variables | |
| static netsnmp_table_array_callbacks | cb |
| static netsnmp_handler_registration * | my_handler = NULL |
| oid | openserSIPContactTable_oid [] = { openserSIPContactTable_TABLE_OID } |
| size_t | openserSIPContactTable_oid_len = OID_LENGTH(openserSIPContactTable_oid) |
| int createContactRow | ( | int | userIndex, | |
| int | contactIndex, | |||
| char * | contactName, | |||
| ucontact_t * | contactInfo | |||
| ) |
Definition at line 170 of file openserSIPContactTable.c.
References cb, openserSIPContactTable_context_s::contactInfo, openserSIPContactTable_context_s::index, LM_ERR, NULL, openserSIPContactTable_context_s::openserSIPContactIndex, openserSIPContactTable_context_s::openserSIPContactURI, openserSIPContactTable_context_s::openserSIPContactURI_len, pkg_free, and pkg_malloc.
Referenced by executeInterprocessBufferCmd(), and init_openserSIPContactTable().
| int deleteContactRecord | ( | contactToIndexStruct_t ** | contactRecord, | |
| char * | contactName | |||
| ) |
Definition at line 132 of file openserSIPContactTable.c.
References contactToIndexStruct::contactIndex, contactToIndexStruct::contactName, contactToIndexStruct::next, NULL, and pkg_free.
Referenced by executeInterprocessBufferCmd().
| void deleteContactRow | ( | int | userIndex, | |
| int | contactIndex | |||
| ) |
Definition at line 230 of file openserSIPContactTable.c.
References cb, openserSIPContactTable_context_s::index, NULL, openserSIPContactTable_context_s::openserSIPContactURI, and pkg_free.
Referenced by executeInterprocessBufferCmd().
| void init_openserSIPContactTable | ( | void | ) |
Definition at line 264 of file openserSIPContactTable.c.
References createContactRow(), initialize_table_openserSIPContactTable(), and NULL.
Referenced by initialize_agentx().
| void initialize_table_openserSIPContactTable | ( | void | ) |
create the table structure itself
mallocs failed
index: openserSIPUserIndex
index: openserSIPContactIndex
Definition at line 281 of file openserSIPContactTable.c.
References cb, my_handler, openserSIPContactTable_COL_MAX, openserSIPContactTable_COL_MIN, openserSIPContactTable_get_value(), openserSIPContactTable_oid, and openserSIPContactTable_oid_len.
Referenced by init_openserSIPContactTable().
| int insertContactRecord | ( | contactToIndexStruct_t ** | contactRecord, | |
| int | index, | |||
| char * | name | |||
| ) |
Definition at line 100 of file openserSIPContactTable.c.
References contactToIndexStruct::contactIndex, contactToIndexStruct::contactName, LM_ERR, contactToIndexStruct::next, NULL, and pkg_malloc.
Referenced by executeInterprocessBufferCmd().
| const openserSIPContactTable_context* openserSIPContactTable_get_by_idx | ( | netsnmp_index * | hdr | ) |
| int openserSIPContactTable_get_value | ( | netsnmp_request_info * | request, | |
| netsnmp_index * | item, | |||
| netsnmp_table_request_info * | table_info | |||
| ) |
We shouldn't get here
Definition at line 342 of file openserSIPContactTable.c.
References COLUMN_OPENSERSIPCONTACTDISPLAYNAME, COLUMN_OPENSERSIPCONTACTEXPIRY, COLUMN_OPENSERSIPCONTACTLASTUPDATED, COLUMN_OPENSERSIPCONTACTPREFERENCE, COLUMN_OPENSERSIPCONTACTURI, consumeInterprocessBuffer(), openserSIPContactTable_context_s::contactInfo, convertTMToSNMPDateAndTime(), ucontact::expires, ucontact::last_modified, NULL, openserSIPContactTable_context_s::openserSIPContactURI, openserSIPContactTable_context_s::openserSIPContactURI_len, and ucontact::q.
Referenced by initialize_table_openserSIPContactTable().
netsnmp_table_array_callbacks cb [static] |
Definition at line 87 of file openserSIPContactTable.c.
Referenced by assemble_msg(), contact_iterator(), createContactRow(), createRegUserRow(), createRow(), db_oracle_delete(), db_oracle_insert(), db_oracle_query(), db_oracle_raw_query(), db_oracle_update(), decode_contact_header(), deleteContactRow(), deleteRegUserRow(), encode_contact(), getRow(), initialize_table_openserSIPContactTable(), initialize_table_openserSIPMethodSupportedTable(), initialize_table_openserSIPPortTable(), initialize_table_openserSIPRegUserLookupTable(), initialize_table_openserSIPRegUserTable(), initialize_table_openserSIPStatusCodesTable(), openserSIPContactTable_get_by_idx(), openserSIPMethodSupportedTable_get_by_idx(), openserSIPPortTable_get_by_idx(), openserSIPRegUserLookupTable_get_by_idx(), openserSIPRegUserLookupTable_set_action(), openserSIPRegUserTable_get_by_idx(), openserSIPStatusCodesTable_get_by_idx(), openserSIPStatusCodesTable_set_action(), p_tm_callback(), register_dlgcb(), register_qoscb(), run_create_callbacks(), run_create_cbs(), run_dlg_callbacks(), run_load_callbacks(), run_qos_callbacks(), run_xcap_update_cb(), and t_cancel_branches().
netsnmp_handler_registration* my_handler = NULL [static] |
Definition at line 86 of file openserSIPContactTable.c.
Referenced by initialize_table_openserSIPContactTable(), initialize_table_openserSIPMethodSupportedTable(), initialize_table_openserSIPPortTable(), initialize_table_openserSIPRegUserLookupTable(), initialize_table_openserSIPRegUserTable(), and initialize_table_openserSIPStatusCodesTable().
| oid openserSIPContactTable_oid[] = { openserSIPContactTable_TABLE_OID } |
Definition at line 89 of file openserSIPContactTable.c.
Referenced by initialize_table_openserSIPContactTable().
| size_t openserSIPContactTable_oid_len = OID_LENGTH(openserSIPContactTable_oid) |
Definition at line 90 of file openserSIPContactTable.c.
Referenced by initialize_table_openserSIPContactTable().
1.5.6