Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
sip_registry Struct Reference

Registrations with other SIP proxies. More...

#include <sip.h>

Collaboration diagram for sip_registry:
Collaboration graph
[legend]

Data Fields

struct ast_string_field_pool__field_mgr_pool
 
const ast_string_field authdomain
 
const ast_string_field authuser
 
struct sip_pvtcall
 
const ast_string_field callback
 
const ast_string_field callid
 
int callid_valid
 
int configured_expiry
 
const ast_string_field configvalue
 
struct ast_dnsmgr_entrydnsmgr
 
int expire
 
int expiry
 
const ast_string_field hostname
 
char lastmsg [256]
 
const ast_string_field localtag
 
const ast_string_field md5secret
 
const ast_string_field nonce
 
int noncecount
 
uint32_t ocseq
 
const ast_string_field opaque
 
const ast_string_field peername
 
int portno
 
const ast_string_field qop
 
const ast_string_field realm
 
int refresh
 
int regattempts
 
const ast_string_field regdomain
 
int regdomainport
 
enum sipregistrystate regstate
 
struct timeval regtime
 
const ast_string_field secret
 
int timeout
 
enum ast_transport transport
 
struct ast_sockaddr us
 
const ast_string_field username
 

Detailed Description

Registrations with other SIP proxies.

Created by sip_register(), the entry is linked in the 'regl' list, and never deleted (other than at 'sip reload' or module unload times). The entry always has a pending timeout, either waiting for an ACK to the REGISTER message (in which case we have to retransmit the request), or waiting for the next REGISTER message to be sent (either the initial one, or once the previously completed registration one expires). The registration can be in one of many states, though at the moment the handling is a bit mixed.

Definition at line 1396 of file sip.h.

Field Documentation

◆ __field_mgr_pool

struct ast_string_field_pool* __field_mgr_pool

Definition at line 1414 of file sip.h.

◆ authdomain

const ast_string_field authdomain

Authorization domain

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ authuser

const ast_string_field authuser

Who we authenticate as

Definition at line 1414 of file sip.h.

Referenced by AST_TEST_DEFINE(), transmit_register(), and Registration::write().

◆ call

struct sip_pvt* call

create a sip_pvt structure for each outbound "registration dialog" in progress

Definition at line 1424 of file sip.h.

Referenced by __cleanup_registration(), dialog_unlink_all(), handle_response_register(), sip_pvt_dtor(), sip_reg_timeout(), sip_registry_destroy(), sip_reregister(), and transmit_register().

◆ callback

const ast_string_field callback

Contact extension

Definition at line 1414 of file sip.h.

Referenced by AST_TEST_DEFINE(), and transmit_register().

◆ callid

const ast_string_field callid

Global Call-ID

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ callid_valid

int callid_valid

0 means we haven't chosen callid for this registry yet.

Definition at line 1427 of file sip.h.

Referenced by AST_TEST_DEFINE(), sip_parse_register_line(), and transmit_register().

◆ configured_expiry

int configured_expiry

Configured value to use for the Expires header

Definition at line 1419 of file sip.h.

Referenced by AST_TEST_DEFINE(), handle_response_register(), sip_parse_register_line(), sip_register(), and sip_reregister().

◆ configvalue

const ast_string_field configvalue

register string from config

Definition at line 1414 of file sip.h.

Referenced by registry_cmp_cb(), and sip_show_objects().

◆ dnsmgr

struct ast_dnsmgr_entry* dnsmgr

DNS refresh manager for register

Definition at line 1429 of file sip.h.

Referenced by __cleanup_registration(), sip_reg_timeout(), sip_show_registry(), and transmit_register().

◆ expire

int expire

◆ expiry

int expiry

Negotiated value used for the Expires header

Definition at line 1420 of file sip.h.

Referenced by AST_TEST_DEFINE(), handle_response_register(), sip_parse_register_line(), sip_register(), sip_reregister(), transmit_register(), and Registration::write().

◆ hostname

const ast_string_field hostname

◆ lastmsg

char lastmsg[256]

Last Message sent/received

Definition at line 1432 of file sip.h.

◆ localtag

const ast_string_field localtag

Local tag generated same time as callid

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ md5secret

const ast_string_field md5secret

Password in md5

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ nonce

const ast_string_field nonce

Authorization nonce

Definition at line 1414 of file sip.h.

Referenced by reply_digest(), and transmit_register().

◆ noncecount

int noncecount

Nonce-count

Definition at line 1431 of file sip.h.

Referenced by reply_digest(), and transmit_register().

◆ ocseq

uint32_t ocseq

Sequence number we got to for REGISTERs for this registry

Definition at line 1428 of file sip.h.

Referenced by AST_TEST_DEFINE(), sip_parse_register_line(), and transmit_register().

◆ opaque

const ast_string_field opaque

Opaque nonsense

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ peername

const ast_string_field peername

Peer registering to

Definition at line 1414 of file sip.h.

Referenced by AST_TEST_DEFINE(), on_dns_update_registry(), and transmit_register().

◆ portno

int portno

◆ qop

const ast_string_field qop

Quality of Protection struct ast_string_field_mgr __field_mgr since SIP wasn't complicated enough yet.

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ realm

const ast_string_field realm

Authorization realm

Definition at line 1414 of file sip.h.

Referenced by transmit_register().

◆ refresh

int refresh

◆ regattempts

int regattempts

Number of attempts (since the last success)

Definition at line 1421 of file sip.h.

Referenced by handle_response_register(), sip_reg_timeout(), and transmit_register().

◆ regdomain

const ast_string_field regdomain

Registration doamin

Definition at line 1414 of file sip.h.

Referenced by AST_TEST_DEFINE(), manager_show_registry(), sip_show_registry(), and transmit_register().

◆ regdomainport

int regdomainport

Port override for domainport

Definition at line 1417 of file sip.h.

Referenced by AST_TEST_DEFINE(), manager_show_registry(), sip_parse_register_line(), sip_show_registry(), and transmit_register().

◆ regstate

enum sipregistrystate regstate

Registration state (see above)

Definition at line 1425 of file sip.h.

Referenced by handle_response_register(), manager_show_registry(), sip_reg_timeout(), sip_reregister(), sip_show_registry(), and transmit_register().

◆ regtime

struct timeval regtime

Last successful registration time

Definition at line 1426 of file sip.h.

Referenced by handle_response_register(), manager_show_registry(), and sip_show_registry().

◆ secret

const ast_string_field secret

Password in clear text

Definition at line 1414 of file sip.h.

Referenced by AST_TEST_DEFINE(), transmit_register(), and Registration::write().

◆ timeout

int timeout

◆ transport

enum ast_transport transport

Transport for this registration UDP, TCP or TLS

Definition at line 1415 of file sip.h.

Referenced by AST_TEST_DEFINE(), sip_parse_register_line(), and transmit_register().

◆ us

struct ast_sockaddr us

Who the server thinks we are

Definition at line 1430 of file sip.h.

Referenced by on_dns_update_registry(), and transmit_register().

◆ username

const ast_string_field username

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