Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:49:48 2009

## Asterisk developer's documentation

# peercnt Struct Reference

## Data Fields

unsigned long | addr
uint16_t | cur
uint16_t | limit
unsigned char | reg

## Detailed Description

peer connection private, keeps track of all the call numbers consumed by a single ip address

Definition at line 685 of file chan_iax2.c.

## Field Documentation

unsigned long addr

ip address consuming call numbers

Definition at line 687 of file chan_iax2.c.

Referenced by iax2_show_callnumber_usage(), peercnt_add(), peercnt_cmp_cb(), peercnt_hash_cb(), peercnt_modify(), peercnt_remove(), peercnt_remove_by_addr(), sched_delay_remove(), and set_peercnt_limit().

uint16_t cur

Number of call numbers currently used by this ip address

Definition at line 689 of file chan_iax2.c.

Referenced by iax2_show_callnumber_usage(), peercnt_add(), and peercnt_remove().

uint16_t limit

Max call numbers allowed for this ip address

Definition at line 691 of file chan_iax2.c.

Referenced by iax2_show_callnumber_usage(), peercnt_add(), peercnt_modify(), and set_peercnt_limit().

unsigned char reg

Specifies whether limit is set by a registration or not, if so normal limit setting rules do not apply to this address.

Definition at line 694 of file chan_iax2.c.

Referenced by peercnt_modify(), and set_peercnt_limit().

The documentation for this struct was generated from the following file:

- chan_iax2.c