Registrations with other SIP proxies. More...

Public Member Functions | |
| AST_DECLARE_STRING_FIELDS (AST_STRING_FIELD(callid);AST_STRING_FIELD(realm);AST_STRING_FIELD(nonce);AST_STRING_FIELD(opaque);AST_STRING_FIELD(qop);AST_STRING_FIELD(domain);AST_STRING_FIELD(username);AST_STRING_FIELD(authuser);AST_STRING_FIELD(hostname);AST_STRING_FIELD(secret);AST_STRING_FIELD(md5secret);AST_STRING_FIELD(callback);AST_STRING_FIELD(random);AST_STRING_FIELD(peername);) | |
| ASTOBJ_COMPONENTS_FULL (struct sip_registry, 1, 1) | |
Data Fields | |
| struct sip_pvt * | call |
| int | callid_valid |
| int | configured_expiry |
| struct ast_dnsmgr_entry * | dnsmgr |
| int | expire |
| int | expiry |
| char | lastmsg [256] |
| int | noncecount |
| unsigned int | ocseq |
| int | portno |
| int | refresh |
| int | regattempts |
| enum sipregistrystate | regstate |
| struct timeval | regtime |
| int | timeout |
| enum sip_transport | transport |
| struct sockaddr_in | us |
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 1928 of file chan_sip.c.
| AST_DECLARE_STRING_FIELDS | ( | AST_STRING_FIELD(callid);AST_STRING_FIELD(realm);AST_STRING_FIELD(nonce);AST_STRING_FIELD(opaque);AST_STRING_FIELD(qop);AST_STRING_FIELD(domain);AST_STRING_FIELD(username);AST_STRING_FIELD(authuser);AST_STRING_FIELD(hostname);AST_STRING_FIELD(secret);AST_STRING_FIELD(md5secret);AST_STRING_FIELD(callback);AST_STRING_FIELD(random);AST_STRING_FIELD(peername); | ) |
| ASTOBJ_COMPONENTS_FULL | ( | struct sip_registry | , | |
| 1 | , | |||
| 1 | ||||
| ) |
create a sip_pvt structure for each outbound "registration dialog" in progress
Definition at line 1954 of file chan_sip.c.
Referenced by __sip_destroy(), dialog_unlink_all(), handle_response_register(), sip_reg_timeout(), sip_registry_destroy(), sip_reregister(), and transmit_register().
| int callid_valid |
0 means we haven't chosen callid for this registry yet.
Definition at line 1957 of file chan_sip.c.
Referenced by sip_register(), and transmit_register().
Configured value to use for the Expires header
Definition at line 1949 of file chan_sip.c.
Referenced by handle_response_register(), sip_register(), and sip_reregister().
struct ast_dnsmgr_entry* dnsmgr [read] |
DNS refresh manager for register
Definition at line 1959 of file chan_sip.c.
Referenced by sip_reg_timeout(), sip_registry_destroy(), and transmit_register().
| int expire |
Sched ID of expiration
Definition at line 1948 of file chan_sip.c.
Referenced by handle_response_register(), sip_register(), sip_registry_destroy(), and sip_reregister().
| int expiry |
Negotiated value used for the Expires header
Definition at line 1950 of file chan_sip.c.
Referenced by handle_response_register(), sip_register(), sip_reregister(), and transmit_register().
| char lastmsg[256] |
Last Message sent/received
Definition at line 1962 of file chan_sip.c.
| int noncecount |
Nonce-count
Definition at line 1961 of file chan_sip.c.
Referenced by reply_digest(), and transmit_register().
| unsigned int ocseq |
Sequence number we got to for REGISTERs for this registry
Definition at line 1958 of file chan_sip.c.
Referenced by sip_register(), and transmit_register().
| int portno |
Optional port override
Definition at line 1947 of file chan_sip.c.
Referenced by sip_register(), and transmit_register().
| int refresh |
How often to refresh
Definition at line 1953 of file chan_sip.c.
Referenced by handle_response_register(), and sip_register().
| int regattempts |
Number of attempts (since the last success)
Definition at line 1951 of file chan_sip.c.
Referenced by handle_response_register(), sip_reg_timeout(), and transmit_register().
| enum sipregistrystate regstate |
Registration state (see above)
Definition at line 1955 of file chan_sip.c.
Referenced by handle_response_register(), sip_reg_timeout(), and transmit_register().
struct timeval regtime [read] |
Last successful registration time
Definition at line 1956 of file chan_sip.c.
Referenced by handle_response_register().
| int timeout |
sched id of sip_reg_timeout
Definition at line 1952 of file chan_sip.c.
Referenced by handle_response_register(), sip_reg_timeout(), sip_register(), sip_registry_destroy(), and transmit_register().
| enum sip_transport transport |
Transport for this registration UDP, TCP or TLS
Definition at line 1946 of file chan_sip.c.
Referenced by sip_register(), and transmit_register().
struct sockaddr_in us [read] |
Who the server thinks we are
Definition at line 1960 of file chan_sip.c.
Referenced by transmit_register().
1.6.1