Dispatcher :: Dispatch. More...
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <time.h>#include "../../ut.h"#include "../../trim.h"#include "../../dprint.h"#include "../../action.h"#include "../../route.h"#include "../../dset.h"#include "../../mem/shm_mem.h"#include "../../parser/parse_uri.h"#include "../../parser/parse_from.h"#include "../../parser/parse_param.h"#include "../../usr_avp.h"#include "../../lib/kmi/mi.h"#include "../../parser/digest/digest.h"#include "../../resolve.h"#include "../../lvalue.h"#include "../../modules/tm/tm_load.h"#include "../../lib/srdb1/db.h"#include "../../lib/srdb1/db_res.h"#include "../../str.h"#include "../../script_cb.h"#include "../../lib/kcore/faked_msg.h"#include "ds_ht.h"#include "api.h"#include "dispatch.h"
Go to the source code of this file.
Definition in file dispatch.c.
| void ds_check_timer | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Timer for checking inactive destinations.
This timer is regularly fired.
Definition at line 2383 of file dispatch.c.
References ds_options_callback().
Referenced by mod_init().


| void ds_ht_timer | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Timer for checking active calls load.
This timer is regularly fired.
Definition at line 2436 of file dispatch.c.
Referenced by mod_init().

| static void ds_options_callback | ( | struct cell * | t, | |
| int | type, | |||
| struct tmcb_params * | ps | |||
| ) | [static] |
g. a Response came in, the timeout was hit, ...)
Definition at line 2320 of file dispatch.c.
References ds_ping_check_rplcode(), _str::len, and _str::s.
Referenced by ds_check_timer().


| static int get_uri_hash_keys | ( | str * | key1, | |
| str * | key2, | |||
| str * | uri, | |||
| struct sip_uri * | parsed_uri, | |||
| int | flags | |||
| ) | [inline, static] |
| key1 | - will be filled with first part of the key (uri user or "" if no user) | |
| key2 | - will be filled with the second part of the key (uri host:port) | |
| uri | - str with the whole uri | |
| parsed_uri | - struct sip_uri pointer with the parsed uri (it must point inside uri). It can be null (in this case the uri will be parsed internally). | |
| flags | - if & DS_HASH_USER_ONLY, only the user part of the uri will be used |
Definition at line 909 of file dispatch.c.
References DS_HASH_USER_ONLY, sip_uri::host, _str::len, sip_uri::port, _str::s, SIP_PORT, SIPS_PORT, sip_uri::type, and sip_uri::user.
1.7.1