52 #define FINDUSERS (1 << 0) 53 #define FINDPEERS (1 << 1) 54 #define FINDALLDEVICES (FINDUSERS | FINDPEERS) 56 #define SIPBUFSIZE 512 60 #define SIP_RESERVED ";/?:@&=+$,# " 62 #define DEFAULT_DEFAULT_EXPIRY 120 63 #define DEFAULT_MIN_EXPIRY 60 64 #define DEFAULT_MAX_EXPIRY 3600 65 #define DEFAULT_MWI_EXPIRY 3600 66 #define DEFAULT_REGISTRATION_TIMEOUT 20 67 #define DEFAULT_MAX_FORWARDS 70 69 #define DEFAULT_AUTHLIMIT 100 70 #define DEFAULT_AUTHTIMEOUT 30 74 #define EXPIRY_GUARD_SECS 15 75 #define EXPIRY_GUARD_LIMIT 30 76 #define EXPIRY_GUARD_MIN 500 81 #define EXPIRY_GUARD_PCT 0.20 83 #define DEFAULT_EXPIRY 900 85 #define DEFAULT_QUALIFY_GAP 100 86 #define DEFAULT_QUALIFY_PEERS 1 88 #define CALLERID_UNKNOWN "Anonymous" 89 #define FROMDOMAIN_INVALID "anonymous.invalid" 91 #define DEFAULT_MAXMS 2000 92 #define DEFAULT_QUALIFYFREQ 60 * 1000 93 #define DEFAULT_FREQ_NOTOK 10 * 1000 95 #define DEFAULT_RETRANS 1000 96 #define DEFAULT_TIMER_T1 500 97 #define SIP_TRANS_TIMEOUT 64 * DEFAULT_TIMER_T1 100 #define DEFAULT_TRANS_TIMEOUT -1 101 #define PROVIS_KEEPALIVE_TIMEOUT 60000 102 #define MAX_AUTHTRIES 3 104 #define SIP_MAX_HEADERS 64 105 #define SIP_MAX_LINES 256 106 #define SIP_MAX_PACKET_SIZE 20480 107 #define SIP_MIN_PACKET 4096 108 #define MAX_HISTORY_ENTRIES 50 110 #define INITIAL_CSEQ 101 112 #define DEFAULT_MAX_SE 1800 113 #define DEFAULT_MIN_SE 90 115 #define SDP_MAX_RTPMAP_CODECS 32 120 #define DEC_CALL_LIMIT 0 121 #define INC_CALL_LIMIT 1 122 #define DEC_CALL_RINGING 2 123 #define INC_CALL_RINGING 3 136 #define NOT_SUPPORTED 0 139 #define SIP_OPT_REPLACES (1 << 0) 140 #define SIP_OPT_100REL (1 << 1) 141 #define SIP_OPT_TIMER (1 << 2) 142 #define SIP_OPT_EARLY_SESSION (1 << 3) 143 #define SIP_OPT_JOIN (1 << 4) 144 #define SIP_OPT_PATH (1 << 5) 145 #define SIP_OPT_PREF (1 << 6) 146 #define SIP_OPT_PRECONDITION (1 << 7) 147 #define SIP_OPT_PRIVACY (1 << 8) 148 #define SIP_OPT_SDP_ANAT (1 << 9) 149 #define SIP_OPT_SEC_AGREE (1 << 10) 150 #define SIP_OPT_EVENTLIST (1 << 11) 151 #define SIP_OPT_GRUU (1 << 12) 152 #define SIP_OPT_TARGET_DIALOG (1 << 13) 153 #define SIP_OPT_NOREFERSUB (1 << 14) 154 #define SIP_OPT_HISTINFO (1 << 15) 155 #define SIP_OPT_RESPRIORITY (1 << 16) 156 #define SIP_OPT_FROMCHANGE (1 << 17) 157 #define SIP_OPT_RECLISTINV (1 << 18) 158 #define SIP_OPT_RECLISTSUB (1 << 19) 159 #define SIP_OPT_OUTBOUND (1 << 20) 160 #define SIP_OPT_UNKNOWN (1 << 21) 166 #define ALLOWED_METHODS "INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE" 169 #define STANDARD_SIP_PORT 5060 171 #define STANDARD_TLS_PORT 5061 190 #define DEFAULT_CONTEXT "default" 191 #define DEFAULT_RECORD_FEATURE "automon" 192 #define DEFAULT_MOHINTERPRET "default" 193 #define DEFAULT_MOHSUGGEST "" 194 #define DEFAULT_VMEXTEN "asterisk" 195 #define DEFAULT_CALLERID "asterisk" 196 #define DEFAULT_MWI_FROM "" 197 #define DEFAULT_NOTIFYMIME "application/simple-message-summary" 198 #define DEFAULT_ALLOWGUEST TRUE 199 #define DEFAULT_RTPKEEPALIVE 0 200 #define DEFAULT_CALLCOUNTER FALSE 201 #define DEFAULT_SRVLOOKUP TRUE 202 #define DEFAULT_COMPACTHEADERS FALSE 203 #define DEFAULT_TOS_SIP 0 204 #define DEFAULT_TOS_AUDIO 0 205 #define DEFAULT_TOS_VIDEO 0 206 #define DEFAULT_TOS_TEXT 0 207 #define DEFAULT_COS_SIP 4 208 #define DEFAULT_COS_AUDIO 5 209 #define DEFAULT_COS_VIDEO 6 210 #define DEFAULT_COS_TEXT 5 211 #define DEFAULT_ALLOW_EXT_DOM TRUE 212 #define DEFAULT_REALM "asterisk" 213 #define DEFAULT_DOMAINSASREALM FALSE 214 #define DEFAULT_NOTIFYRINGING NOTIFYRINGING_ENABLED 215 #define DEFAULT_NOTIFYCID DISABLED 216 #define DEFAULT_PEDANTIC TRUE 217 #define DEFAULT_AUTOCREATEPEER AUTOPEERS_DISABLED 218 #define DEFAULT_MATCHEXTERNADDRLOCALLY FALSE 219 #define DEFAULT_QUALIFY FALSE 220 #define DEFAULT_KEEPALIVE 0 221 #define DEFAULT_KEEPALIVE_INTERVAL 60 222 #define DEFAULT_ALWAYSAUTHREJECT TRUE 223 #define DEFAULT_AUTH_OPTIONS FALSE 224 #define DEFAULT_AUTH_MESSAGE TRUE 225 #define DEFAULT_ACCEPT_OUTOFCALL_MESSAGE TRUE 226 #define DEFAULT_REGEXTENONQUALIFY FALSE 227 #define DEFAULT_LEGACY_USEROPTION_PARSING FALSE 228 #define DEFAULT_SEND_DIVERSION TRUE 229 #define DEFAULT_T1MIN 100 230 #define DEFAULT_MAX_CALL_BITRATE (384) 231 #ifndef DEFAULT_USERAGENT 232 #define DEFAULT_USERAGENT "Asterisk PBX" 233 #define DEFAULT_SDPSESSION "Asterisk PBX" 234 #define DEFAULT_SDPOWNER "root" 235 #define DEFAULT_ENGINE "asterisk" 236 #define DEFAULT_STORE_SIP_CAUSE FALSE 250 #define SIP_OUTGOING (1 << 0) 251 #define SIP_OFFER_CC (1 << 1) 252 #define SIP_RINGING (1 << 2) 253 #define SIP_PROGRESS_SENT (1 << 3) 254 #define SIP_NEEDREINVITE (1 << 4) 255 #define SIP_PENDINGBYE (1 << 5) 256 #define SIP_GOTREFER (1 << 6) 257 #define SIP_CALL_LIMIT (1 << 7) 258 #define SIP_INC_COUNT (1 << 8) 259 #define SIP_INC_RINGING (1 << 9) 260 #define SIP_DEFER_BYE_ON_TRANSFER (1 << 10) 262 #define SIP_PROMISCREDIR (1 << 11) 263 #define SIP_TRUSTRPID (1 << 12) 264 #define SIP_USEREQPHONE (1 << 13) 265 #define SIP_USECLIENTCODE (1 << 14) 268 #define SIP_DTMF (7 << 15) 269 #define SIP_DTMF_RFC2833 (0 << 15) 270 #define SIP_DTMF_INBAND (1 << 15) 271 #define SIP_DTMF_INFO (2 << 15) 272 #define SIP_DTMF_AUTO (3 << 15) 273 #define SIP_DTMF_SHORTINFO (4 << 15) 276 #define SIP_NAT_FORCE_RPORT (1 << 18) 277 #define SIP_NAT_RPORT_PRESENT (1 << 19) 280 #define SIP_REINVITE (7 << 20) 281 #define SIP_REINVITE_NONE (0 << 20) 282 #define SIP_DIRECT_MEDIA (1 << 20) 283 #define SIP_DIRECT_MEDIA_NAT (2 << 20) 284 #define SIP_REINVITE_UPDATE (4 << 20) 287 #define SIP_INSECURE (3 << 23) 288 #define SIP_INSECURE_NONE (0 << 23) 289 #define SIP_INSECURE_PORT (1 << 23) 290 #define SIP_INSECURE_INVITE (1 << 24) 293 #define SIP_PROG_INBAND (3 << 25) 294 #define SIP_PROG_INBAND_NO (0 << 25) 295 #define SIP_PROG_INBAND_NEVER (1 << 25) 296 #define SIP_PROG_INBAND_YES (2 << 25) 298 #define SIP_USEPATH (1 << 27) 299 #define SIP_SENDRPID (3 << 29) 300 #define SIP_SENDRPID_NO (0 << 29) 301 #define SIP_SENDRPID_PAI (1 << 29) 302 #define SIP_SENDRPID_RPID (2 << 29) 303 #define SIP_G726_NONSTANDARD (1 << 31) 306 #define SIP_FLAGS_TO_COPY \ 307 (SIP_PROMISCREDIR | SIP_TRUSTRPID | SIP_SENDRPID | SIP_DTMF | SIP_REINVITE | \ 308 SIP_PROG_INBAND | SIP_USECLIENTCODE | SIP_NAT_FORCE_RPORT | SIP_G726_NONSTANDARD | \ 309 SIP_USEREQPHONE | SIP_INSECURE | SIP_USEPATH) 316 #define SIP_PAGE2_RTCACHEFRIENDS (1 << 0) 317 #define SIP_PAGE2_RTAUTOCLEAR (1 << 1) 318 #define SIP_PAGE2_RPID_UPDATE (1 << 2) 319 #define SIP_PAGE2_Q850_REASON (1 << 3) 320 #define SIP_PAGE2_SYMMETRICRTP (1 << 4) 321 #define SIP_PAGE2_STATECHANGEQUEUE (1 << 5) 322 #define SIP_PAGE2_CONNECTLINEUPDATE_PEND (1 << 6) 323 #define SIP_PAGE2_RPID_IMMEDIATE (1 << 7) 324 #define SIP_PAGE2_RPORT_PRESENT (1 << 8) 325 #define SIP_PAGE2_PREFERRED_CODEC (1 << 9) 326 #define SIP_PAGE2_VIDEOSUPPORT (1 << 10) 327 #define SIP_PAGE2_TEXTSUPPORT (1 << 11) 328 #define SIP_PAGE2_ALLOWSUBSCRIBE (1 << 12) 330 #define SIP_PAGE2_ALLOWOVERLAP (3 << 13) 331 #define SIP_PAGE2_ALLOWOVERLAP_NO (0 << 13) 332 #define SIP_PAGE2_ALLOWOVERLAP_YES (1 << 13) 333 #define SIP_PAGE2_ALLOWOVERLAP_DTMF (2 << 13) 334 #define SIP_PAGE2_ALLOWOVERLAP_SPARE (3 << 13) 336 #define SIP_PAGE2_SUBSCRIBEMWIONLY (1 << 15) 337 #define SIP_PAGE2_IGNORESDPVERSION (1 << 16) 339 #define SIP_PAGE2_T38SUPPORT (3 << 17) 340 #define SIP_PAGE2_T38SUPPORT_UDPTL (1 << 17) 341 #define SIP_PAGE2_T38SUPPORT_UDPTL_FEC (2 << 17) 342 #define SIP_PAGE2_T38SUPPORT_UDPTL_REDUNDANCY (3 << 17) 344 #define SIP_PAGE2_CALL_ONHOLD (3 << 19) 345 #define SIP_PAGE2_CALL_ONHOLD_ACTIVE (1 << 19) 346 #define SIP_PAGE2_CALL_ONHOLD_ONEDIR (2 << 19) 347 #define SIP_PAGE2_CALL_ONHOLD_INACTIVE (3 << 19) 349 #define SIP_PAGE2_RFC2833_COMPENSATE (1 << 21) 350 #define SIP_PAGE2_BUGGY_MWI (1 << 22) 351 #define SIP_PAGE2_DIALOG_ESTABLISHED (1 << 23) 353 #define SIP_PAGE2_FAX_DETECT (3 << 24) 354 #define SIP_PAGE2_FAX_DETECT_CNG (1 << 24) 355 #define SIP_PAGE2_FAX_DETECT_T38 (2 << 24) 356 #define SIP_PAGE2_FAX_DETECT_BOTH (3 << 24) 358 #define SIP_PAGE2_UDPTL_DESTINATION (1 << 26) 359 #define SIP_PAGE2_VIDEOSUPPORT_ALWAYS (1 << 27) 360 #define SIP_PAGE2_HAVEPEERCONTEXT (1 << 28) 361 #define SIP_PAGE2_USE_SRTP (1 << 29) 363 #define SIP_PAGE2_TRUST_ID_OUTBOUND (3 << 30) 364 #define SIP_PAGE2_TRUST_ID_OUTBOUND_LEGACY (0 << 30) 365 #define SIP_PAGE2_TRUST_ID_OUTBOUND_NO (1 << 30) 366 #define SIP_PAGE2_TRUST_ID_OUTBOUND_YES (2 << 30) 368 #define SIP_PAGE2_FLAGS_TO_COPY \ 369 (SIP_PAGE2_ALLOWSUBSCRIBE | SIP_PAGE2_ALLOWOVERLAP | SIP_PAGE2_IGNORESDPVERSION | \ 370 SIP_PAGE2_VIDEOSUPPORT | SIP_PAGE2_T38SUPPORT | SIP_PAGE2_RFC2833_COMPENSATE | \ 371 SIP_PAGE2_BUGGY_MWI | SIP_PAGE2_TEXTSUPPORT | SIP_PAGE2_FAX_DETECT | \ 372 SIP_PAGE2_UDPTL_DESTINATION | SIP_PAGE2_VIDEOSUPPORT_ALWAYS | SIP_PAGE2_PREFERRED_CODEC | \ 373 SIP_PAGE2_RPID_IMMEDIATE | SIP_PAGE2_RPID_UPDATE | SIP_PAGE2_SYMMETRICRTP |\ 374 SIP_PAGE2_Q850_REASON | SIP_PAGE2_HAVEPEERCONTEXT | SIP_PAGE2_USE_SRTP | SIP_PAGE2_TRUST_ID_OUTBOUND) 377 #define SIP_PAGE3_SNOM_AOC (1 << 0) 378 #define SIP_PAGE3_SRTP_TAG_32 (1 << 1) 379 #define SIP_PAGE3_NAT_AUTO_RPORT (1 << 2) 380 #define SIP_PAGE3_NAT_AUTO_COMEDIA (1 << 3) 381 #define SIP_PAGE3_DIRECT_MEDIA_OUTGOING (1 << 4) 382 #define SIP_PAGE3_USE_AVPF (1 << 5) 383 #define SIP_PAGE3_ICE_SUPPORT (1 << 6) 384 #define SIP_PAGE3_IGNORE_PREFCAPS (1 << 7) 385 #define SIP_PAGE3_DISCARD_REMOTE_HOLD_RETRIEVAL (1 << 8) 386 #define SIP_PAGE3_FORCE_AVP (1 << 9) 387 #define SIP_PAGE3_RTCP_MUX (1 << 10) 389 #define SIP_PAGE3_FLAGS_TO_COPY \ 390 (SIP_PAGE3_SNOM_AOC | SIP_PAGE3_SRTP_TAG_32 | SIP_PAGE3_NAT_AUTO_RPORT | SIP_PAGE3_NAT_AUTO_COMEDIA | \ 391 SIP_PAGE3_DIRECT_MEDIA_OUTGOING | SIP_PAGE3_USE_AVPF | SIP_PAGE3_ICE_SUPPORT | SIP_PAGE3_IGNORE_PREFCAPS | \ 392 SIP_PAGE3_DISCARD_REMOTE_HOLD_RETRIEVAL | SIP_PAGE3_FORCE_AVP | SIP_PAGE3_RTCP_MUX) 394 #define CHECK_AUTH_BUF_INITLEN 256 477 #define OFFERED_MEDIA_COUNT 4 746 int ignore_regexpire;
749 int pedanticsipchecking;
753 int alwaysauthreject;
754 int auth_options_requests;
755 int auth_message_requests;
756 int accept_outofcall_message;
758 int allow_external_domains;
759 int regextenonqualify;
760 int legacy_useroption_parsing;
762 int matchexternaddrlocally;
765 unsigned int disallowed_methods;
782 int default_max_forwards;
783 int websocket_write_timeout;
784 int websocket_enabled;
828 unsigned int sdp_start;
829 unsigned int sdp_count;
841 unsigned int reqsipoptions;
851 #define REQ_OFFSET_TO_STR(req,offset) (ast_str_buffer((req)->data) + ((req)->offset)) 856 const char *uri_options;
857 const char *vxml_url;
861 const char *replaces;
869 const char *protocol;
938 int attendedtransfer;
957 int st_active_peer_ua;
958 int st_cached_min_se;
959 int st_cached_max_se;
979 char *decline_m_line;
1062 uint32_t init_icseq;
1065 struct ast_namedgroups *named_callgroups;
1066 struct ast_namedgroups *named_pickupgroups;
1067 uint32_t lastinvite;
1071 unsigned short do_history:1;
1072 unsigned short alreadygone:1;
1073 unsigned short needdestroy:1;
1074 unsigned short final_destruction_scheduled:1;
1076 unsigned short outgoing_call:1;
1077 unsigned short answered_elsewhere:1;
1078 unsigned short novideo:1;
1079 unsigned short notext:1;
1080 unsigned short session_modify:1;
1081 unsigned short route_persistent:1;
1082 unsigned short autoframing:1;
1086 unsigned short req_secure_signaling:1;
1087 unsigned short natdetected:1;
1090 unsigned int sipoptions;
1091 unsigned int reqsipoptions;
1097 int noncodeccapability;
1098 int jointnoncodeccapability;
1100 int t38_maxdatagram;
1101 int request_queue_sched_id;
1102 int provisional_keepalive_sched_id;
1103 const char *last_provisional;
1116 int64_t sessionversion_remote;
1117 unsigned int portinuri:1;
1136 unsigned int stalenonce:1;
1137 unsigned int ongoing_reinvite:1;
1140 uint32_t pendinginvite;
1141 uint32_t glareinvite;
1158 struct timeval last_ringing_channel_time;
1159 int last_presence_state;
1172 size_t history_entries;
1189 unsigned int allowed_methods;
1194 unsigned int disallowed_methods;
1236 struct timeval time_sent;
1237 int64_t retrans_stop_time;
1304 unsigned short transports:5;
1305 unsigned short is_realtime:1;
1306 unsigned short rt_fromcontact:1;
1307 unsigned short host_dynamic:1;
1308 unsigned short selfdestruct:1;
1309 unsigned short the_mark:1;
1310 unsigned short autoframing:1;
1314 unsigned short deprecated_username:1;
1322 unsigned int t38_maxdatagram;
1327 unsigned int sipoptions;
1341 struct ast_namedgroups *named_callgroups;
1342 struct ast_namedgroups *named_pickupgroups;
1346 unsigned int portinuri:1;
1369 unsigned int disallowed_methods;
1412 int configured_expiry;
1419 struct timeval regtime;
1673 void *instance_data;
1718 const char *device_name;
1735 char entity_tag[30];
1751 void *event_specific_data;
1789 struct sip_pvt *subscribe_pvt;
1814 struct sip_pvt *subscription_pvt;
1887 #define sip_ref_peer(peer, tag) ao2_t_bump(peer, tag) 1888 #define sip_unref_peer(peer, tag) ({ ao2_t_cleanup(peer, tag); (NULL); })
static struct lines lines
#define AST_THREADSTORAGE(name)
Define a thread storage variable.
sip packet - raw format for outbound packets that are sent or scheduled for transmission Packets are ...
unsigned long long ast_group_t
structure for secure RTP audio
enum sip_cc_notify_state state
static char accountcode[AST_MAX_ACCOUNT_CODE]
static int handle_error(void)
static char mohinterpret[MAX_MUSICCLASS]
static char exten[AST_MAX_EXTENSION]
Main Channel structure associated with a channel.
#define SIP_OPT_SEC_AGREE
const ast_string_field tel_phone_context
void sip_auth_headers(enum sip_auth_type code, char **header, char **respheader)
return the request and response header for a 401 or 407 code
Asterisk main include file. File version handling, generic pbx functions.
const ast_string_field realm
The Event State Compositors.
invitestates
States for the INVITE transaction, not the dialog.
static char parkinglot[AST_MAX_CONTEXT]
Parameters to the transmit_invite function.
Security Event Reporting API.
Structure to store route information.
String manipulation functions.
media_type
Media types generate different "dummy answers" for not accepting the offer of a media stream...
const ast_string_field engine
static uint32_t keepalive
A request to stop the tcp_handler thread.
definition of a sip proxy server
#define SIP_OPT_FROMCHANGE
There is new data to be sent out.
static struct ast_threadstorage check_auth_buf
static int debug
Global debug status.
transfermodes
Authorization scheme for call transfers.
static struct stasis_rest_handlers mailboxes
REST handler for /api-docs/mailboxes.json.
Structure for variables, used for configurations and for channel variables.
const ast_string_field username
const ast_string_field theirprovtag
const ast_string_field opaque
Registrations with other SIP proxies.
Structure for an UDPTL session.
check_auth_result
Authentication result from check_auth* functions.
const ast_string_field from
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
Wrapper for an ast_acl linked list.
const ast_string_field peermd5secret
t38state
T38 States for a call.
static int call(void *data)
inv_req_result
The results from handling an invite request.
sip_result
The result of a lot of functions.
const ast_string_field subscribecontext
sip_get_dest_result
Result from get_destination function.
struct spandsp_fax_stats t38
struct sip_peer * sip_find_peer(const char *peer, struct ast_sockaddr *addr, int realtime, int which_objects, int devstate_only, int transport)
Locate device by name or ip address.
Generic support for tcp/tls servers in Asterisk.
#define SIP_OPT_EVENTLIST
st_mode
Modes in which Asterisk can be configured to run SIP Session-Timers.
Socket address structure.
static char cid_num[AST_MAX_EXTENSION]
Structure that encapsulates all attributes related to configuration of SIP Session-Timers feature on ...
const ast_string_field fullcontact
const ast_string_field sessionunique_remote
common ESC items for all event types
const ast_string_field nonce
const ast_string_field fromuser
domain_mode
Modes for SIP domain handling in the PBX.
const ast_string_field qop
static int notify_uri(void *obj)
struct subscriptions subscriptions
const ast_string_field dialstring
#define SIP_OPT_RECLISTINV
Structure to store Via information.
List of well-known SIP options. If we get this in a require, we should check the list and answer acco...
static char mailbox[AST_MAX_MAILBOX_UNIQUEID]
Definition of a thread that handles a socket.
int(*const esc_publish_callback)(struct sip_pvt *, struct sip_request *, struct event_state_compositor *, struct sip_esc_entry *)
General Asterisk PBX channel definitions.
const ast_string_field peersecret
sip_auth_type
Authentication types - proxy or www authentication.
static void ringing(struct ast_channel *chan)
Helper method to send a ringing indication to a channel in a bridge.
const ast_string_field messagecontext
static char mohsuggest[MAX_MUSICCLASS]
#define AST_MAX_EXTENSION
#define AST_STRING_FIELD(name)
Declare a string field.
const ast_string_field fromdomain
#define MAX_TONEZONE_COUNTRY
notifycid_setting
Settings for the 'notifycid' option, see sip.conf.sample for details.
A set of macros to manage forward-linked lists.
static char language[MAX_LANGUAGE]
const ast_string_field theirtag
const ast_string_field authname
AST_LIST_HEAD_NOLOCK(contactliststruct, contact)
sipmethod
SIP Request methods known by Asterisk.
notifyringing_setting
Setting for the 'notifyringing' option, see sip.conf.sample for details.
describes a server instance
Struct to handle custom SIP notify requests. Dynamically allocated when needed.
sip_debug_e
debugging state We store separately the debugging requests from the config file and requests from the...
argument for the 'show channels|subscriptions' callback.
const ast_string_field callid
char name[MAXHOSTNAMELEN]
const ast_string_field useragent
backend for an event publication agent
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
const ast_string_field initviasentby
xmittype
When sending a SIP message, we can send with a few options, depending on type of SIP request...
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
const ast_string_field last_presence_message
Instance data for a Call completion EPA entry.
def ignore(key=None, val=None, section=None, pjsip=None, nmapped=None, type='endpoint')
const ast_string_field redircause
Structure used for each SIP dialog, ie. a call, a registration, a subscribe. Created and initialized ...
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
const char * sip_get_header(const struct sip_request *req, const char *name)
Get header from SIP request.
const char * sip_get_transport(enum ast_transport t)
Return transport as string.
static const struct cfsip_options sip_options[]
Structure definition for session.
struct ast_channel * owner
const ast_string_field mwi_from
st_refresher
The entity playing the refresher role for Session-Timers.
Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host) ...
const ast_string_field peername
enum invitestates invitestate
Structure used to handle boolean flags.
can_create_dialog
States whether a SIP message can create a dialog in Asterisk.
static char cid_name[AST_MAX_EXTENSION]
sip_request: The data grabbed from the UDP socket
#define SIP_OPT_RESPRIORITY
referstatus
Parameters to know status of transfer.
autocreatepeer_mode
Automatic peer registration behavior.
Definition of an MWI subscription to another server.
static int remove_handler(void *obj, void *arg, void *data, int flags)
const ast_string_field initviabranch
sip_cc_notify_state
The states that can be represented in a SIP call-completion NOTIFY.
const ast_string_field msg_body
#define SIP_OPT_PRECONDITION
const ast_string_field cid_tag
const ast_string_field tohost
generic struct to map between strings and integers. Fill it with x-s pairs, terminate with an entry w...
#define AST_FEATURE_MAX_LEN
sip_auth: Credentials for authentication to other SIP services
const ast_string_field tag
sip_publish_type
The types of PUBLISH messages defined in RFC 3903.
static char regcontext[AST_MAX_CONTEXT]
static struct ast_str * hostname
parse_register_result
Results from the parse_register() function.
sip_cc_publish_state
The states that can be represented in a SIP call-completion PUBLISH.
#define SIP_OPT_TARGET_DIALOG
const ast_string_field last_presence_subtype
enum ast_transport transport
const ast_string_field todnid
#define SIP_OPT_EARLY_SESSION
sipregistrystate
States for outbound registrations (with register= lines in sip.conf.
static char context[AST_MAX_CONTEXT]
Call Parking and Pickup API Includes code and algorithms from the Zapata library. ...
const ast_string_field fromname
Pluggable RTP Architecture.
#define SIP_OPT_RECLISTSUB
The SIP socket definition.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
Container of SIP authentication credentials.
#define SIP_OPT_NOREFERSUB
a place to store all global settings for the sip channel driver
const ast_string_field subscribeuri
const ast_string_field uri
sip_history: Structure for saving transactions within a SIP dialog
subscriptiontype
Type of subscription, based on the packages we do support, see subscription_types.
Structure to handle SIP transfers. Dynamically allocated when needed.
const ast_string_field okcontacturi
static char vmexten[AST_MAX_EXTENSION]
DTLS configuration structure.
T.38 channel settings (at some point we need to make this alloc'ed.
Structure that encapsulates all attributes related to running SIP Session-Timers feature on a per dia...
const ast_string_field rdnis
const ast_string_field our_contact