#include <stdlib.h>#include <string.h>#include "../../parser/parse_rr.h"#include "../../str.h"#include "../../ut.h"#include "../../ip_addr.h"


Go to the source code of this file.
Defines | |
| #define | append_fix(_p, _s) |
| #define | MAX_SIPPING_SIZE 65536 |
| #define | s_len(_s) (sizeof(_s)-1) |
Functions | |
| static char * | build_sipping (str *curi, struct socket_info *s, str *path, int *len_p) |
| static void | init_sip_ping (void) |
| static int | sipping_rpl_filter (struct sip_msg *rpl) |
Variables | |
| static str | sipping_callid = {0,0} |
| static char | sipping_callid_buf [8] |
| static int | sipping_callid_cnt = 0 |
| static str | sipping_from = {0,0} |
| static int | sipping_fromtag = 0 |
| static str | sipping_method = {"OPTIONS",7} |
| #define append_fix | ( | _p, | |||
| _s | ) |
Value:
do {\ memcpy(_p, _s, sizeof(_s)-1);\ _p += sizeof(_s)-1;\ }while(0)
Definition at line 42 of file sip_pinger.h.
Referenced by build_sipping().
| #define MAX_SIPPING_SIZE 65536 |
| #define s_len | ( | _s | ) | (sizeof(_s)-1) |
Referenced by build_sipping(), and format_converter().
| static char* build_sipping | ( | str * | curi, | |
| struct socket_info * | s, | |||
| str * | path, | |||
| int * | len_p | |||
| ) | [inline, static] |
Definition at line 119 of file sip_pinger.h.
References socket_info::address_str, append_fix, append_str, buf, CRLF, get_ticks(), int2reverse_hex(), _str::len, len, LM_ERR, MAX_SIPPING_SIZE, socket_info::port_no_str, _str::s, s_len, sipping_callid_cnt, and sipping_fromtag.
Referenced by nh_timer().
| static void init_sip_ping | ( | void | ) | [static] |
Definition at line 58 of file sip_pinger.h.
References int2reverse_hex(), _str::len, len, _str::s, sipping_callid_buf, sipping_callid_cnt, and sipping_fromtag.
Referenced by mod_init().
| static int sipping_rpl_filter | ( | struct sip_msg * | rpl | ) | [static] |
Definition at line 77 of file sip_pinger.h.
References hdr_field::body, sip_msg::callid, sip_msg::cseq, cseq_body::error, HDR_CALLID_F, HDR_CSEQ_F, HDR_VIA2_F, _str::len, LM_DBG, LM_ERR, cseq_body::method, parse_headers(), hdr_field::parsed, _str::s, and sip_msg::via2.
Referenced by mod_init().
str sipping_callid = {0,0} [static] |
Definition at line 52 of file sip_pinger.h.
char sipping_callid_buf[8] [static] |
int sipping_callid_cnt = 0 [static] |
str sipping_from = {0,0} [static] |
int sipping_fromtag = 0 [static] |
str sipping_method = {"OPTIONS",7} [static] |
1.5.6