#include <string.h>#include "../../dprint.h"#include "../../action.h"#include "../../config.h"#include "../../ut.h"#include "../../mod_fix.h"#include "../../parser/parse_uri.h"#include "../../parser/parse_from.h"#include "../../db/db.h"#include "speeddial.h"#include "sdlookup.h"

Go to the source code of this file.
Defines | |
| #define | MAX_USERURI_SIZE 256 |
Functions | |
| static int | rewrite_ruri (struct sip_msg *_m, char *_s) |
| int | sd_lookup (struct sip_msg *_msg, char *_table, char *_owner) |
Variables | |
| static char | useruri_buf [MAX_USERURI_SIZE] |
| #define MAX_USERURI_SIZE 256 |
Definition at line 42 of file sdlookup.c.
| static int rewrite_ruri | ( | struct sip_msg * | _m, | |
| char * | _s | |||
| ) | [inline, static] |
Rewrite Request-URI
Definition at line 48 of file sdlookup.c.
References do_action(), action::elem, LM_ERR, action::next, SET_URI_T, action_elem_::string, STRING_ST, action_elem_::type, action::type, and action_elem_::u.
| int sd_lookup | ( | struct sip_msg * | _msg, | |
| char * | _table, | |||
| char * | _owner | |||
| ) |
Free the result because we don't need it anymore
Definition at line 68 of file sdlookup.c.
References DB_BLOB, db_funcs, db_handle, DB_STR, DB_STRING, domain_column, dstrip_s, fixup_get_svalue(), db_func::free_result, sip_uri::host, _str::len, LM_DBG, LM_ERR, new_uri_column, db_val_t::nul, NULL, parse_from_uri(), parse_sip_msg_uri(), parse_uri(), sip_msg::parsed_uri, db_func::query, RES_ROW_N, RES_ROWS, rewrite_ruri(), _str::s, sd_domain_column, sd_user_column, db_val_t::str_val, db_val_t::type, use_domain, db_func::use_table, sip_uri::user, user_column, useruri_buf, and db_val_t::val.
char useruri_buf[MAX_USERURI_SIZE] [static] |
Definition at line 43 of file sdlookup.c.
1.5.6