
Go to the source code of this file.
Data Structures | |
| struct | extern_account_t |
| struct | extern_user_t |
Functions | |
| void | extern_account_free (extern_account_t *accounts, int count) |
| void | extern_user_free (extern_user_t *users, int count) |
| extern_account_t * | find_accounts (char *sip_user, int *count) |
| char * | find_sip_user (char *extern_user) |
| extern_user_t * | find_users (char *sip_user, int *count) |
| void extern_account_free | ( | extern_account_t * | accounts, | |
| int | count | |||
| ) |
Definition at line 58 of file mapping.c.
References pkg_free.
Referenced by pipe_handle_message(), pipe_handle_publish(), and pipe_handle_subscribe().
| void extern_user_free | ( | extern_user_t * | users, | |
| int | count | |||
| ) |
Definition at line 73 of file mapping.c.
References pkg_free.
Referenced by pipe_handle_message(), and pipe_handle_subscribe().
| extern_account_t* find_accounts | ( | char * | sip_user, | |
| int * | count | |||
| ) |
Definition at line 156 of file mapping.c.
References db_func::close, DB_STRING, db_func::free_result, db_func::init, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, extern_account_t::password, pkg_malloc, extern_account_t::protocol, db_func::query, ROW_VALUES, db_res::rows, db_val_t::string_val, db_val_t::type, db_func::use_table, extern_account_t::username, and db_val_t::val.
Referenced by pipe_handle_message(), pipe_handle_publish(), and pipe_handle_subscribe().
| char* find_sip_user | ( | char * | extern_user | ) |
Definition at line 86 of file mapping.c.
References db_func::close, DB_STR, db_func::free_result, db_func::init, _str::len, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, pkg_malloc, db_func::query, ROW_VALUES, db_res::rows, _str::s, db_val_t::str_val, db_val_t::string_val, db_val_t::type, db_func::use_table, and db_val_t::val.
Referenced by buddy_signed_off(), buddy_signed_on(), buddy_status_changed(), and write_conv().
| extern_user_t* find_users | ( | char * | sip_user, | |
| int * | count | |||
| ) |
Definition at line 245 of file mapping.c.
References db_func::close, DB_STRING, db_func::free_result, db_func::init, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, pkg_malloc, extern_user_t::protocol, db_func::query, ROW_VALUES, db_res::rows, db_val_t::string_val, db_val_t::type, db_func::use_table, extern_user_t::username, and db_val_t::val.
Referenced by pipe_handle_message(), and pipe_handle_subscribe().
1.5.6