Asterisk - The Open Source Telephony Project
18.5.0
|
Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host) More...
#include <sip.h>
Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host)
struct ast_string_field_pool* __field_mgr_pool |
const ast_string_field accountcode |
Account code
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_show_user(), and sip_show_users().
struct ast_acl_list* acl |
Access control list
Definition at line 1363 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_peer(), check_peer_ok(), register_verify(), sip_destroy_peer(), sip_show_user(), and sip_show_users().
struct ast_sockaddr addr |
IP address of peer
Definition at line 1352 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_peer(), check_peer_ok(), create_addr_from_peer(), expire_register(), function_sippeer(), on_dns_update_peer(), parse_register_contact(), peer_ipcmp_cb_full(), peer_iphash_cb(), realtime_peer(), reg_source_db(), register_verify(), reload_config(), set_peer_defaults(), sip_devicestate(), sip_do_debug_peer(), sip_find_peer_full(), sip_poke_peer(), sip_prune_realtime(), sip_send_keepalive(), sip_send_mwi_to_peer(), transmit_register(), and update_peer().
enum transfermodes allowtransfer |
Definition at line 1332 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), set_peer_defaults(), and sip_show_user().
int amaflags |
AMA Flags (for billing)
Definition at line 1323 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), and sip_show_user().
struct sip_auth_container* auth |
Realm authentication credentials
Definition at line 1322 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), and sip_destroy_peer().
unsigned short autoframing |
Whether to use our local configuration for frame sizes (off) or respect the other endpoint's request for frame sizes (on) for incoming calls
Definition at line 1317 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), set_peer_defaults(), and sip_show_user().
int busy_level |
Level of active channels where we signal busy
Definition at line 1330 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), function_sippeer(), and sip_devicestate().
struct sip_pvt* call |
Call pointer
Definition at line 1354 of file sip.h.
Referenced by dialog_unlink_all(), handle_response_peerpoke(), sip_destroy_peer(), sip_poke_noanswer(), sip_poke_peer(), and sip_pvt_dtor().
int call_limit |
Limit of concurrent calls
Definition at line 1328 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), set_peer_defaults(), sip_devicestate(), sip_show_inuse(), sip_show_user(), and update_call_counter().
const ast_string_field callback |
Callback extension
Definition at line 1306 of file sip.h.
Referenced by build_peer(), and peer_ipcmp_cb_full().
ast_group_t callgroup |
Call group
Definition at line 1346 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), set_peer_defaults(), and sip_show_user().
int callingpres |
Calling id presentation
Definition at line 1324 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), and sip_show_user().
struct ast_format_cap* caps |
Codec capability
Definition at line 1342 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), set_peer_defaults(), sip_destroy_peer(), and temp_peer().
struct ast_cc_config_params* cc_params |
Definition at line 1377 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), sip_destroy_peer(), and temp_peer().
struct ast_variable* chanvars |
Variables to set for channel created by user
Definition at line 1366 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_destroy_peer(), and sip_show_user().
const ast_string_field cid_name |
Caller ID name
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_msg_send(), and sip_show_user().
const ast_string_field cid_num |
Caller ID num
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_msg_send(), and sip_show_user().
const ast_string_field cid_tag |
Caller ID tag
Definition at line 1306 of file sip.h.
Referenced by check_peer_ok(), and create_addr_from_peer().
struct ast_acl_list* contactacl |
Restrict what IPs are allowed in the Contact header (for registration)
Definition at line 1364 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), parse_register_contact(), and sip_destroy_peer().
const ast_string_field context |
Default context for incoming calls
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), receive_message(), sip_show_user(), and sip_show_users().
struct ast_sockaddr defaddr |
Default IP address, used until registration
Definition at line 1362 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), set_peer_defaults(), sip_devicestate(), and sip_send_mwi_to_peer().
enum ast_transport default_outbound_transport |
Peer Registration may change the default outbound transport. If register expires, default should be reset. to this value
Definition at line 1308 of file sip.h.
Referenced by build_peer(), expire_register(), and set_peer_defaults().
unsigned short deprecated_username |
If it's a realtime peer, are they using the deprecated "username" instead of "defaultuser"
Definition at line 1321 of file sip.h.
Referenced by build_peer(), and update_peer().
const ast_string_field description |
Description of this peer
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), Parameter::load(), Api::load(), Property::load(), Model::load(), and ResourceApi::load().
struct ast_acl_list* directmediaacl |
Restrict what IPs are allowed to interchange direct media with
Definition at line 1365 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), sip_allow_anyrtp_remote(), and sip_destroy_peer().
unsigned int disallowed_methods |
Definition at line 1376 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), handle_response(), handle_response_info(), handle_response_message(), and set_peer_defaults().
struct ast_dnsmgr_entry* dnsmgr |
DNS refresh manager for peer
Definition at line 1351 of file sip.h.
Referenced by build_peer(), and match_and_cleanup_peer_sched().
struct ast_rtp_dtls_cfg dtls_cfg |
Definition at line 1381 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), and sip_destroy_peer().
struct ast_endpoint* endpoint |
Definition at line 1379 of file sip.h.
Referenced by build_peer(), expire_register(), handle_response_peerpoke(), parse_register_contact(), register_verify(), sip_destroy_peer(), sip_new(), and sip_poke_noanswer().
const ast_string_field engine |
RTP Engine to use
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), and sip_show_user().
int expire |
When to expire this peer registration
Definition at line 1341 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), complete_sip_registered_peer(), expire_register(), function_sippeer(), parse_register_contact(), peer_sched_cleanup(), realtime_peer(), reg_source_db(), set_peer_defaults(), sip_unregister(), and temp_peer().
struct sip_mailbox* first |
struct ast_flags flags[3] |
SIP_ flags
Definition at line 1335 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_path(), build_peer(), check_peer_ok(), complete_sip_peer(), complete_sip_registered_peer(), create_addr_from_peer(), expire_register(), function_sippeer(), handle_request_subscribe(), load_module(), parse_register_contact(), peer_ipcmp_cb_full(), realtime_peer(), register_verify(), reload_config(), set_peer_defaults(), set_peer_nat(), sip_find_peer_full(), sip_poke_peer(), sip_prune_realtime(), sip_reload(), sip_send_mwi_to_peer(), sip_show_users(), and update_peer().
const ast_string_field fromdomain |
From: domain when calling this peer
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), and create_addr_from_peer().
int fromdomainport |
The From: domain port
Definition at line 1371 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), and create_addr_from_peer().
const ast_string_field fromuser |
From: user when calling this peer
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), and sip_poke_peer().
const ast_string_field fullcontact |
Contact registered with us (not in sip.conf)
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), parse_register_contact(), register_verify(), sip_poke_peer(), sip_request_call(), and update_peer().
unsigned short host_dynamic |
Dynamic Peers register with Asterisk
Definition at line 1314 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_peer(), function_sippeer(), peer_ipcmp_cb_full(), register_verify(), and temp_peer().
int inuse |
Number of calls in use
Definition at line 1325 of file sip.h.
Referenced by function_sippeer(), sip_devicestate(), sip_show_inuse(), and update_call_counter().
unsigned short is_realtime |
this is a 'realtime' peer
Definition at line 1312 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_peer(), expire_register(), parse_register_contact(), realtime_peer(), register_realtime_peers_with_callbackextens(), sip_destroy_peer(), and update_peer().
int keepalive |
Keepalive: How often to send keep alive packet
Definition at line 1360 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), set_peer_defaults(), and sip_send_keepalive().
int keepalivesend |
Keepalive: Scheduled item for sending keep alive packet
Definition at line 1361 of file sip.h.
Referenced by build_peer(), peer_sched_cleanup(), sip_keepalive_all_peers(), sip_send_keepalive(), and temp_peer().
const ast_string_field language |
Default language for prompts
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), and sip_show_user().
struct sip_mailbox* last |
int lastms |
Qualification: How long last response took (in ms), or -1 for no response
Definition at line 1356 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), handle_response_peerpoke(), peer_status(), send_manager_peer_status(), sip_devicestate(), sip_poke_noanswer(), sip_poke_peer(), and update_peer().
int lastmsgssent |
SIP Refer restriction scheme The last known VM message counts (new/old)
Definition at line 1333 of file sip.h.
Referenced by _sip_show_peer(), and update_peer_lastmsgssent().
struct { ... } mailboxes |
Mailboxes that this peer cares about
Referenced by add_peer_mailboxes(), add_peer_mwi_subs(), build_peer(), get_cached_mwi(), handle_request_subscribe(), and peer_mailboxes_to_str().
int maxcallbitrate |
Maximum Bitrate for a video call
Definition at line 1340 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), set_peer_defaults(), and sip_show_user().
int maxforwards |
SIP Loop prevention
Definition at line 1331 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), and function_sippeer().
int maxms |
Qualification: Max ms we will accept for the host to be up, 0 to not monitor
Definition at line 1357 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), handle_response_peerpoke(), peer_status(), reg_source_db(), send_manager_peer_status(), set_peer_defaults(), sip_devicestate(), sip_poke_all_peers(), and sip_poke_peer().
const ast_string_field md5secret |
Password in MD5
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), receive_message(), register_verify(), sip_report_security_event(), and sip_show_user().
const ast_string_field messagecontext |
Default context for outofcall messages.
Definition at line 1306 of file sip.h.
Referenced by check_peer_ok(), and receive_message().
const ast_string_field mohinterpret |
Music on Hold class
Definition at line 1306 of file sip.h.
Referenced by check_peer_ok(), and create_addr_from_peer().
const ast_string_field mohsuggest |
Music on Hold class
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), and create_addr_from_peer().
const ast_string_field mwi_from |
Name to place in From header for outgoing NOTIFY requests
Definition at line 1306 of file sip.h.
Referenced by check_peer_ok(), create_addr_from_peer(), and sip_send_mwi_to_peer().
struct sip_pvt* mwipvt |
Subscription for MWI
Definition at line 1367 of file sip.h.
Referenced by dialog_unlink_all(), handle_request_subscribe(), sip_destroy_peer(), sip_pvt_dtor(), and sip_send_mwi_to_peer().
char name[80] |
the unique name of this object
Definition at line 1274 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers(), _sip_show_peers_one(), build_peer(), check_peer_ok(), complete_sip_peer(), complete_sip_registered_peer(), complete_sip_user(), create_addr_from_peer(), destroy_association(), expire_register(), find_by_name(), PathSegment::get_child(), handle_request_subscribe(), handle_response_invite(), handle_response_peerpoke(), Parameter::load(), SwaggerType::load(), Property::load(), on_dns_update_peer(), parse_register_contact(), peer_cmp_cb(), peer_dump_func(), peer_hash_cb(), realtime_peer(), receive_message(), reg_source_db(), register_peer_exten(), register_realtime_peers_with_callbackextens(), register_verify(), send_manager_peer_status(), show_channels_cb(), sip_destroy_peer(), sip_find_peer_full(), sip_msg_send(), sip_peer_hold(), sip_poke_noanswer(), sip_poke_peer_s(), sip_prune_realtime(), sip_show_inuse(), sip_show_user(), sip_show_users(), temp_peer(), update_call_counter(), and update_peer().
struct ast_namedgroups* named_callgroups |
Named call group
Definition at line 1348 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_destroy_peer(), and sip_show_user().
struct ast_namedgroups* named_pickupgroups |
Named pickup group
Definition at line 1349 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), sip_destroy_peer(), and sip_show_user().
int onhold |
Peer has someone on hold
Definition at line 1327 of file sip.h.
Referenced by sip_devicestate(), sip_peer_hold(), and sip_show_inuse().
struct sip_proxy* outboundproxy |
Outbound proxy for this peer
Definition at line 1350 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), obproxy_get(), set_peer_defaults(), and sip_destroy_peer().
const ast_string_field parkinglot |
Parkinglot
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), and create_addr_from_peer().
struct sip_route path |
List of out-of-dialog outgoing routing steps (fm Path headers)
Definition at line 1372 of file sip.h.
Referenced by _sip_show_peer(), build_path(), create_addr_from_peer(), Api::load(), ResourceApi::load(), parse_register_contact(), sip_destroy_peer(), sip_poke_peer(), and update_peer().
ast_group_t pickupgroup |
Pickup group
Definition at line 1347 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), set_peer_defaults(), and sip_show_user().
int pokeexpire |
Qualification: When to expire poke (qualify= checking)
Definition at line 1355 of file sip.h.
Referenced by build_peer(), handle_response_peerpoke(), peer_sched_cleanup(), reg_source_db(), sip_poke_all_peers(), sip_poke_noanswer(), sip_poke_peer(), sip_poke_peer_now(), sip_poke_peer_s(), and temp_peer().
unsigned int portinuri |
Whether the port should be included in the URI
Definition at line 1353 of file sip.h.
Referenced by build_peer(), create_addr_from_peer(), expire_register(), and parse_register_contact().
struct timeval ps |
Qualification: Time for sending SIP OPTION in sip_pke_peer()
Definition at line 1359 of file sip.h.
Referenced by handle_response_peerpoke(), and sip_poke_peer().
int qualifyfreq |
Qualification: Qualification: How often to check for the host to be up
Definition at line 1358 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), handle_response_peerpoke(), reg_source_db(), and set_peer_defaults().
const ast_string_field record_off_feature |
Feature to use when receiving INFO with record: off during a call
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), and handle_request_info().
const ast_string_field record_on_feature |
Feature to use when receiving INFO with record: on during a call
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), and handle_request_info().
const ast_string_field regexten |
Extension to register (if regcontext is used)
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), function_sippeer(), and register_peer_exten().
const ast_string_field remotesecret |
Remote secret (trunks, remote devices)
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), and build_reply_digest().
int ringing |
Number of calls ringing
Definition at line 1326 of file sip.h.
Referenced by sip_devicestate(), sip_show_inuse(), and update_call_counter().
unsigned short rt_fromcontact |
copy fromcontact from realtime
Definition at line 1313 of file sip.h.
Referenced by build_peer(), destroy_association(), parse_register_contact(), and reg_source_db().
int rtpholdtimeout |
RTP Hold Timeout
Definition at line 1344 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().
int rtpkeepalive |
Send RTP packets for keepalive
Definition at line 1345 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().
int rtptimeout |
RTP timeout
Definition at line 1343 of file sip.h.
Referenced by build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().
const ast_string_field secret |
Password for inbound auth
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), receive_message(), register_verify(), sip_report_security_event(), sip_show_user(), sip_show_users(), and Registration::write().
unsigned short selfdestruct |
Automatic peers need to destruct themselves
Definition at line 1315 of file sip.h.
Referenced by expire_register(), peer_markall_autopeers_func(), peer_markall_func(), sip_destroy_peer(), and temp_peer().
unsigned int sipoptions |
Supported SIP options
Definition at line 1334 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), and parse_register_contact().
struct sip_socket socket |
Socket used for this peer
Definition at line 1307 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), expire_register(), on_dns_update_peer(), parse_register_contact(), set_peer_defaults(), sip_destroy_peer(), sip_poke_peer(), and sip_send_keepalive().
struct sip_st_cfg stimer |
SIP Session-Timers
Definition at line 1368 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), set_peer_defaults(), sip_show_user(), st_get_mode(), st_get_refresher(), and st_get_se().
const ast_string_field subscribecontext |
Default context for subscriptions
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), and check_peer_ok().
unsigned int t38_maxdatagram |
T.38 FaxMaxDatagram override
Definition at line 1329 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), initialize_udptl(), and set_peer_defaults().
unsigned short the_mark |
That which bears the_mark should be deleted!
Definition at line 1316 of file sip.h.
Referenced by build_peer(), match_and_cleanup_peer_sched(), peer_markall_autopeers_func(), peer_markall_func(), and sip_prune_realtime().
int timer_b |
The maximum timer B (transaction timeouts)
Definition at line 1370 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().
int timer_t1 |
The maximum T1 value for the peer
Definition at line 1369 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().
const ast_string_field tohost |
If not dynamic struct ast_string_field_mgr __field_mgr IP address
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), sip_poke_peer(), and transmit_register().
unsigned short transports |
Transports (enum ast_transport) that are acceptable for this peer
Definition at line 1311 of file sip.h.
Referenced by _sip_show_peer(), build_peer(), parse_register_contact(), peer_ipcmp_cb_full(), set_peer_defaults(), and sip_find_peer_full().
enum sip_peer_type type |
Distinguish between "user" and "peer" types. This is used solely for CLI and manager commands
Definition at line 1375 of file sip.h.
Referenced by _sip_show_peers(), build_peer(), complete_sip_user(), find_by_name(), Property::load(), realtime_peer(), reload_config(), set_peer_defaults(), sip_find_peer_full(), and sip_show_users().
const ast_string_field unsolicited_mailbox |
Mailbox to store received unsolicited MWI NOTIFY messages information in
Definition at line 1306 of file sip.h.
Referenced by handle_request_notify().
const ast_string_field useragent |
User agent in SIP request (saved from registration)
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), function_sippeer(), parse_register_contact(), and update_peer().
const ast_string_field username |
Temporary username until registration
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), _sip_show_peers_one(), build_peer(), check_peer_ok(), create_addr_from_peer(), parse_register_contact(), reg_source_db(), sip_report_security_event(), and update_peer().
const ast_string_field vmexten |
Dialplan extension for MWI notify message
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), and sip_send_mwi_to_peer().
const ast_string_field zone |
Tonezone for this device
Definition at line 1306 of file sip.h.
Referenced by _sip_show_peer(), check_peer_ok(), create_addr_from_peer(), and sip_show_user().