Asterisk - The Open Source Telephony Project
18.5.0
|
Registrations with other SIP proxies. More...
#include <sip.h>
Data Fields | |
struct ast_string_field_pool * | __field_mgr_pool |
const ast_string_field | authdomain |
const ast_string_field | authuser |
struct sip_pvt * | call |
const ast_string_field | callback |
const ast_string_field | callid |
int | callid_valid |
int | configured_expiry |
const ast_string_field | configvalue |
struct ast_dnsmgr_entry * | dnsmgr |
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 |
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.
struct ast_string_field_pool* __field_mgr_pool |
const ast_string_field authdomain |
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().
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().
const ast_string_field callback |
Contact extension
Definition at line 1414 of file sip.h.
Referenced by AST_TEST_DEFINE(), and transmit_register().
const ast_string_field callid |
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().
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().
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().
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().
int expire |
Sched ID of expiration
Definition at line 1418 of file sip.h.
Referenced by __cleanup_registration(), __start_reregister_timeout(), AST_TEST_DEFINE(), sip_parse_register_line(), sip_register(), and sip_reregister().
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().
const ast_string_field hostname |
Domain or host we register to
Definition at line 1414 of file sip.h.
Referenced by __cleanup_registration(), __start_register_timeout(), AST_TEST_DEFINE(), do_register_auth(), handle_response_register(), manager_show_registry(), on_dns_update_registry(), sip_reg_timeout(), sip_registry_destroy(), sip_reregister(), sip_show_registry(), and transmit_register().
const ast_string_field localtag |
Local tag generated same time as callid
Definition at line 1414 of file sip.h.
Referenced by transmit_register().
const ast_string_field md5secret |
const ast_string_field nonce |
Authorization nonce
Definition at line 1414 of file sip.h.
Referenced by reply_digest(), and transmit_register().
int noncecount |
Nonce-count
Definition at line 1431 of file sip.h.
Referenced by reply_digest(), and transmit_register().
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().
const ast_string_field opaque |
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().
int portno |
Optional port override
Definition at line 1416 of file sip.h.
Referenced by AST_TEST_DEFINE(), manager_show_registry(), on_dns_update_registry(), sip_parse_register_line(), sip_show_registry(), and transmit_register().
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().
const ast_string_field realm |
int refresh |
How often to refresh
Definition at line 1423 of file sip.h.
Referenced by AST_TEST_DEFINE(), handle_response_register(), manager_show_registry(), sip_parse_register_line(), sip_register(), and sip_show_registry().
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().
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().
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().
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().
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().
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().
int timeout |
sched id of sip_reg_timeout
Definition at line 1422 of file sip.h.
Referenced by __cleanup_registration(), __start_register_timeout(), __stop_register_timeout(), AST_TEST_DEFINE(), handle_response_register(), sip_parse_register_line(), sip_reg_timeout(), and sip_register().
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().
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().
const ast_string_field username |
Who we are registering as
Definition at line 1414 of file sip.h.
Referenced by __cleanup_registration(), AST_TEST_DEFINE(), handle_response_register(), manager_show_registry(), sip_reg_timeout(), sip_registry_destroy(), sip_reregister(), sip_show_registry(), and transmit_register().