Commit Graph

1089 Commits (1.2-netsec)

Author SHA1 Message Date
Automerge script 0ca5e4125e automerge commit 20 years ago
Automerge script ea091271c8 automerge commit 20 years ago
Automerge script bea37cf37b automerge commit 20 years ago
Automerge script 413b215b6c automerge commit 20 years ago
Automerge script 30185fdff4 automerge commit 20 years ago
Kevin P. Fleming f16619507a updating to current 1.2 20 years ago
Kevin P. Fleming 69ac155838 initial import of Asterisk SIP support for network security devices 20 years ago
Olle Johansson ed523e248a Fixing typo in XML for video updates. 20 years ago
Kevin P. Fleming b59a63c8cd backport rport scanning fix from trunk (bug ) 20 years ago
BJ Weschke ea4c262482 Fix compiler warnings. 20 years ago
Russell Bryant 4578bc3b0c fix memory leak in build_rpid (issue ) 20 years ago
Russell Bryant a434f8877a cast time_t to an int in printf/scanf (issue ) 20 years ago
Russell Bryant a5e9fe97c8 revert changes to videosupport to allow per-peer setting, since it isn't quite 20 years ago
Russell Bryant 2293cfaf84 remove stray unlock (issue ) 20 years ago
Josh Roberson d252dde933 Actually put in the per-peer settings for sip video, as they didn't make it in at astricon somehow, and I've been too busy up until now to redo it. 20 years ago
Russell Bryant 50079144e3 I messed up and accidently committed this to the trunk first ... 20 years ago
Kevin P. Fleming 8ef66261f1 Max-Forwards headers must only be present on requests, not responses 20 years ago
Kevin P. Fleming 90812b536c forcibly expire previous subscriptions from a peer when they resubscribe (keeps them from building up and waiting for expiration, and stops us sending unwanted NOTIFY messages to devices) 20 years ago
Kevin P. Fleming 8452f6b494 ensure that hangups while incoming calls are in early state are handled properly (issue ) 20 years ago
Russell Bryant 03a8791440 fix the order of arguments to an error message (issue ) 20 years ago
Olle Johansson 8c701a0861 Bug . Improve SIP INFO DTMF debugging output. (1.2 & Trunk) 20 years ago
Kevin P. Fleming a563eab49a remove extraneous svn:executable properties 20 years ago
Kevin P. Fleming 3b50570c9b backport fix from HEAD branch 20 years ago
Kevin P. Fleming 00d7e962a7 backport fix from HEAD branch 20 years ago
Russell Bryant ca9633ca9b issue 20 years ago
Russell Bryant d8f74ecb94 Add missing carriage return and line feed to the SDP line indicating that we don't support VAD (issue ) 20 years ago
Kevin P. Fleming 639104bbb2 fix previous commit to actually do it properly... 20 years ago
Kevin P. Fleming 2b656be753 issue 20 years ago
Kevin P. Fleming 4331958422 issue 20 years ago
Kevin P. Fleming e88e390bb8 issue 20 years ago
Kevin P. Fleming 766d1a73b1 issue 20 years ago
Kevin P. Fleming 8605bf0104 minor fixes 20 years ago
Kevin P. Fleming a0a9769616 issue 20 years ago
Mark Spencer 4468de1bd7 Only consider timeouts on realtimers (bug ) 20 years ago
Kevin P. Fleming d8672874ef properly handle '100 Trying' that arrives after a dialog has been dropped (issue ) 20 years ago
Kevin P. Fleming 9c25f9d1d5 handle improperly formatted initial requests properly (issue ) 20 years ago
Kevin P. Fleming 3da6bf02c9 add some warning message for when chan_sip gets overloaded (issue ) 20 years ago
Kevin P. Fleming a15a52208d don't increment 'inuse' counter when call is being failed because of limit (issue ) 20 years ago
Kevin P. Fleming b175ff39ef properly support 'musicclass' setting for peers/users (issue ) 20 years ago
Mark Spencer 39d27dbab8 Fix ability to do lots of outbound registrations (bug ) 20 years ago
Mark Spencer de47e29d09 Merge highly modified fullcontact in realtime sip patch (bug , heavy mods) 20 years ago
Russell Bryant 9ddf0e4dce Remove unnecessary checks before calls to ast_strlen_zero. Also, change 20 years ago
Russell Bryant 6324072247 more doxygenification (issue ) 20 years ago
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue ) 20 years ago
Mark Spencer 5f78c43950 Fix max forwards interoperability (bug ) 20 years ago
Mark Spencer 4e919f337c Fix queue, iax and sip formatting issues (bug ) 20 years ago
Kevin P. Fleming 4d1506e64d make chan_sip able to deal with PBX-level call limit being reached (issue ) 20 years ago
Kevin P. Fleming 454061ec18 don't force CLID to be a phone-number-looking-thingie (issue ) 20 years ago
Mark Spencer 0b265779b2 Fix the ordering of the sscanfs for SDP parsing (bug #AT&T) 20 years ago
Kevin P. Fleming c05c0c7ce6 clean up pedantic mode tag handling (issue ) 20 years ago
Mark Spencer d75fb48fb8 Display proper error for matching domain registers (bug ) 20 years ago
Russell Bryant 1f2943fc0a re-bind the socket if the bindaddr option is changed during reload (issue ) 20 years ago
Kevin P. Fleming 04d7bcc757 send "100 Trying" when we receive PROCEEDING, unless "183 Session Progress" has already been sent 20 years ago
Mark Spencer 7560605ebc Fix "screen" for network numbers (bug ) 20 years ago
Mark Spencer 522dfad107 Do *not* default to a max number of registration attempts 20 years ago
Mark Spencer 65afb68602 Handle yet some SIP contact issue nuances and exceptions (bug with mods and rant) 20 years ago
Mark Spencer c07a31e4bc Fix noncecount update (bug , redone fix) 20 years ago
Kevin P. Fleming 8496d5fe92 fix authentication header extra space (issue ) 20 years ago
Kevin P. Fleming d9f508c7f1 fix timer T1 handling (issue ) 20 years ago
Kevin P. Fleming a755500ef8 ensure that the correct flags are always copied from peers/users to private structures (so RPID sending will work properly, issue ) 20 years ago
Kevin P. Fleming d50adefa05 ensure that Remote-Party-ID is sent even on secondary INVITEs within a dialog (issue ) 20 years ago
Kevin P. Fleming aeaf9f4cc6 remove unused config option (issue ) 20 years ago
Kevin P. Fleming 7c1bbe6eef handle peer matching for subscriptions by name instead of IP address (issue ) 20 years ago
Kevin P. Fleming 6fe572d1a9 fix various state-related bugs (issue , with mod to return AST_DEVICE_INUSE) 20 years ago
Kevin P. Fleming b7c31babb0 support call duration limits on inbound OSP calls (issue ) 20 years ago
Kevin P. Fleming b1a61a9672 generate fewer 'stale nonce' messages (issue ) 20 years ago
Kevin P. Fleming a0a478a72c don't destroy calls when re-INVITE messages ask for things we can't do (issue ) 20 years ago
Kevin P. Fleming 8e4697d8f2 ensure that peer codec preferences take precedence over global preferences 20 years ago
Kevin P. Fleming 35b5891b74 don't replace CLID/CNAM when RPID is being generated (issue ) 20 years ago
Mark Spencer ea215f5b7d Remove possibility of manager deadlocks from manager actions 20 years ago
Mark Spencer bca61024ca 486 (and friends) are really BUSY (bug ) 20 years ago
Kevin P. Fleming 626582a84c store tag in the private structure as formatted text, instead of formatting every time we send a packet 20 years ago
Kevin P. Fleming 8af7725f98 support optional sending of Remote-Party-ID headers (issue , heavily modified to actually work properly) 20 years ago
Kevin P. Fleming fdccf66d52 add domains documentation and rename config option 20 years ago
Kevin P. Fleming 9bbf4c3854 add basic SIP domain support (issue , with major mods) 20 years ago
Kevin P. Fleming 78fa3593b1 properly ignore retransmitted INVITEs on long latency links (issue ) 20 years ago
Kevin P. Fleming 43d43b8b46 properly respond to REGISTER queries (issue ) 20 years ago
Kevin P. Fleming 051ddb97f3 clean update devicestate function, ensure that it can return AST_DEVICE_UNKNOWN when call limits are not turned on (issue ) 20 years ago
Russell Bryant bcaaea9ce6 add missing newline (issue ) 20 years ago
Kevin P. Fleming c4d824cf71 error message generated using backwards logic (issue ) 20 years ago
Kevin P. Fleming ff41d6ab6c correct 'progressinband' parsing (issue , different fix) 20 years ago
Kevin P. Fleming eb332490ff put items in RFC-specified order (issue ) 20 years ago
Kevin P. Fleming 02e5af9cf5 proper header name and attribution (issue ) 20 years ago
Kevin P. Fleming e30adc051f various niteroperability fixes (issue ) 20 years ago
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!) 20 years ago
Kevin P. Fleming f2e6ac45ca don't abort Asterisk load if configuration not found (issue ) 20 years ago
Kevin P. Fleming ee696945de support all OSP authentication models (issue ) 20 years ago
Kevin P. Fleming 16cd2019b1 ensure that Manager hold/unhold events are generated even for non-bridged channels (issue ) 20 years ago
Kevin P. Fleming e60671d5bf make RTP handling errors less likely to crash Asterisk (issue ) 20 years ago
Kevin P. Fleming 07a06d83a4 handle rport/received in Via headers properly (issue ) 20 years ago
Mark Spencer 5600956db8 Handle dialog updates to to tag properly (bug ) 20 years ago
Kevin P. Fleming a1bdc4836a output 'our tag' in proper format 20 years ago
Josh Roberson 8ac8621f40 don't send a 200 ACK before a 404 on invalid subscriptions (Bug ) 20 years ago
Kevin P. Fleming 60ffafcc39 allow users of RTP to know when the peer endpoint is (apparently) behind a NAT 20 years ago
Russell Bryant d0ff6c46f8 add missing break (issue ) 20 years ago
Russell Bryant 720272254b initialize these variables because they could be used uninitialized in the 20 years ago
Kevin P. Fleming 1e854ea773 remove useless buffer initializations (issue ) 20 years ago
Kevin P. Fleming 04a954ae16 ensure debug messages are only output if debug is enabled (issue ) 20 years ago
Kevin P. Fleming 1bd1a35a9a factor out INVITE response handling in its own function (issue ) 20 years ago
Kevin P. Fleming 7d37750831 remove unneeded variables (issue ) 20 years ago
Josh Roberson 8f21e3659b Fix spelling of Accountcode. *wink* 20 years ago
Mark Spencer 2f67f66577 Allow "auto" dtmf mode to select between RFC2833 and inband based on peer's offer or answer. 20 years ago
Mark Spencer bcd06b8582 Don't recreate stuff on authentication (so it works on reinvites) 20 years ago
Kevin P. Fleming 3bad83e0f2 ensure that notify message sent out have the correct state (issue with minor mods) 20 years ago
Kevin P. Fleming 6b76015469 allow for custom URI options to be set (issue with mods) 20 years ago
Kevin P. Fleming 3a31b6ff2d don't try to reference through pvt if it is NULL (issue ) 20 years ago
Kevin P. Fleming 4f493d1126 don't add a colon to the header name (thanks bkw!) 20 years ago
Kevin P. Fleming 5b819fc101 stop retransmitting INVITE after we have sent CANCEL for the same call 20 years ago
Kevin P. Fleming 102ff2d56e preserve user-added headers when outbound INVITE must be authenticated (issue ) 20 years ago
Kevin P. Fleming 085ad00ee0 don't terminate subscriptions before they should be (issue ) 20 years ago
Kevin P. Fleming 5f07eec58a remove unused 'outgoinglimit' code, rename 'incominglimit' to 'call-limit' (old syntax is still supported) (issue ) 20 years ago
Kevin P. Fleming 6d19c704b7 make chan_sip and chan_iax2 less chatty when not in debug mode (issue ) 20 years ago
Mark Spencer 5d4d2fdfd4 Add SIP video fixes 20 years ago
Kevin P. Fleming 538e160956 fix error I introduced into oej's patch :-( 20 years ago
Kevin P. Fleming 388e8bd9a8 massive upgrade to SUBSCRIBE, device state and messaging support (issue ) 20 years ago
Kevin P. Fleming ae1e51c857 use proper next hop in strict routing mode (issue ) 20 years ago
Kevin P. Fleming 1824c2f630 encode/decode URIs in 'pedantic' mode (issue ) 20 years ago
Kevin P. Fleming 99929b21e4 preserve hint watchers and laststate across 'extensions reload' (issue ) 20 years ago
Kevin P. Fleming da627fc643 use case-insensitive comparisons for headears (issue ) 20 years ago
Kevin P. Fleming 529fcab374 add T1 timer support for NOTIFY dialogs (issue ) 20 years ago
Kevin P. Fleming 1cb8d00523 ensure Asterisk won't segfault during re-registration (issue ) 20 years ago
Kevin P. Fleming bf6bc6d4fd clean up rtcaching config options (issue ) 20 years ago
Kevin P. Fleming 60718ec80b handle INVITEs that are asking for authentication that we cannot supply more intelligently (issue ) 20 years ago
Kevin P. Fleming 20e887d708 make some messages show up only under debugging and other minor cleanups (issue ) 20 years ago
Kevin P. Fleming fa4b3f8416 fix 'sip debug' vs. reload properly 20 years ago
Kevin P. Fleming 87f2acf15d don't reset sipdebug to zero during reload (issue ) 20 years ago
Kevin P. Fleming 9a6618e8d8 show global vmexten in 'sip show settings' (issue ) 20 years ago
Kevin P. Fleming 0a3502b592 handle on-/off-hold properly with RTP reinvited streams (issue ) 20 years ago
Kevin P. Fleming a5b640cb40 add 'sip show settings' CLI command (issue ) 20 years ago
Kevin P. Fleming 0bf1d48e40 support configurable Message-Account value in NOTIFY messages (issue ) 20 years ago
Kevin P. Fleming 3480297607 add preliminary support for SIP timers (issue ) 20 years ago
Kevin P. Fleming 09bd4cfb95 add SIPCHANINFO function to retrieve information about the current connected SIP endpoint (issue ) 20 years ago
Kevin P. Fleming 97b45d5d6d handle BYE instead of CANCEL from callers (issue ) 20 years ago
Mark Spencer 97e1ede292 Centralize and fix tos for IAX (bug inspired) 20 years ago
Mark Spencer 95cf08ee92 Allow ToS to be set in hex (bug ) 20 years ago
Mark Spencer 6dde38ed52 Be consistent with User/Username (bug ) 20 years ago
Russell Bryant c65f1a04ab there is no reason to check the channeltype of the channel calling SIPAddHeader 20 years ago
Mark Spencer 73e21b0ccc Add extra aliases from RFC4028 and RFC3841 (bug ) 20 years ago
Mark Spencer 6e825f933d Revert a portion of oej's patch... 20 years ago
Mark Spencer c57bfc55cf Don't ignore ACk packets (bug ) 20 years ago
Mark Spencer 3a362c7839 Reduce number of calls to get method (bug ) 20 years ago
Mark Spencer 50087d3467 Fix qop syntax (bug ) 20 years ago
Mark Spencer 9f136f57fe Don't delete RTP if there is a channel, even if we get REGISTER/SUBSCRIBE (bug ) 20 years ago
Kevin P. Fleming 11891d28da and now we know why #define-ing constants and trying to keep them in sequence is a bad idea... 20 years ago
Kevin P. Fleming 9080884688 fix breakage that was causing PUBLISH to be sent instead of CANCEL 20 years ago
Kevin P. Fleming f99dcb7586 add a few const's 20 years ago
Kevin P. Fleming b774d41660 enhance SIP_PEER function to return additional items (bug ) 20 years ago
Kevin P. Fleming 4df19fa1c2 clean up SIP response and pedantic REGISTER matching (bug ) 20 years ago
Kevin P. Fleming 1a5aa9c836 add dedicated function for adding Content-Length header (bug ) 20 years ago
Kevin P. Fleming 6596f8496e _really_ rewrite get_in_brackets to do the right thing (including skipping escaped double-quote characters) 20 years ago
Kevin P. Fleming 1aa875b656 combine bracket-removing functions (bug , with compiler warning mod) 20 years ago
Kevin P. Fleming 1e9beaa1d2 ensure that port number in URI is presented when needed (bug ) 20 years ago
Kevin P. Fleming 1153f74259 add plain-text hangup cause private header to outbound BYE/CANCEL (bug with minor mods) 20 years ago
Kevin P. Fleming 5238d544e9 ensure socket address family is copied (bug ) 20 years ago
Kevin P. Fleming dd1cd37f11 ensure SIP_HEADER does not segfault when called on hung-up channels (bug , different fix than posted patch) 20 years ago
Russell Bryant bd18858411 more formatting fixes from oej :-) (bug ) 20 years ago
Kevin P. Fleming 91e8442629 add SIPPEER dialplan function (bug ) 20 years ago
Kevin P. Fleming 0be59a11de simple fix for bug 20 years ago
Kevin P. Fleming 22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug ) 20 years ago
Kevin P. Fleming 9d8d86e19d phase two of string portability stuff: 20 years ago
Kevin P. Fleming aaa057778c add create_addr_from_peer, to use an existing peer reference 20 years ago
Russell Bryant e24821e1cf fix off by one errors in calls to ast_copy_string (bug ) 20 years ago
Russell Bryant 4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION 20 years ago
Kevin P. Fleming c13d601fb4 queue device state changes and handle them serially in a background thread 20 years ago
Malcolm Davenport f1a18b8066 Hardcode urgent messages option in Voice-Message to 0 20 years ago
Kevin P. Fleming 1bd88c387e don't segfault when peer doesn't send Referred-By (bug ) 20 years ago
Russell Bryant 52ef5c7d30 add function to convert a cause code to a string 20 years ago
Kevin P. Fleming 3c91556d2d reset regattempts counter after successful registration (bug ) 20 years ago
Kevin P. Fleming 4803ab0bb2 don't use locks when reading usecounts (reading only, not writing) 20 years ago
Mark Spencer 4358089aa7 Fix SIP with OSP 20 years ago
Kevin P. Fleming 369b421b78 make SIP registration accept RFC non-compliant Digest headers (bug ) 20 years ago
Kevin P. Fleming 52e26805e7 begin properly supporting 'Supported' and 'Required' headers (bug ) 20 years ago
Kevin P. Fleming 4e6d610317 ensure that proper response code is return for unimplemented methods (bug ) 20 years ago
Kevin P. Fleming a752aeb4e8 fix reply_digest breakage from earlier patch 20 years ago
Mark Spencer f80df76143 Fix fd's when we release rtp/vrtp 20 years ago
Mark Spencer b6ea1bcb29 Attempt to repair SIP parameter gathering brokenness 20 years ago
Mark Spencer 0c61fc56be Fix via comparison to be case insensitive 20 years ago
Kevin P. Fleming 2f7e984a31 don't generate 'rport' unless RFC3581 support is enabled (bug ) 20 years ago
Kevin P. Fleming 81d1a11ed6 clean up and optimize reply_digest (bug ) 20 years ago
Kevin P. Fleming 9a80a7bc2c string/whitespace handling cleanups (bug , with mods) 20 years ago
Kevin P. Fleming f3efc756ad allow transfer-to number for SIP transfers to contain an '@' (and enforce the max-forwards restriction for these transfers) (bug ) 20 years ago
Kevin P. Fleming 5736270107 add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug ) 20 years ago
Kevin P. Fleming e5e64bfd41 header ordering fixes for FreeBSD (pending a global merge into asterisk.h) (bug ) 20 years ago
Kevin P. Fleming 7584fac64b various compiler warning fixes (bug ) 20 years ago
Kevin P. Fleming 2b8338cb52 more file version tags 20 years ago
Kevin P. Fleming 005e436b57 another round of version tag updates, along with 'show version files' pattern filtering 20 years ago
Mark Spencer bccc1171f0 Fix minor OSP compile issue 20 years ago
Kevin P. Fleming 090f7d278b more cleanups for outbound registrations (bug ) 20 years ago
Kevin P. Fleming d6a2290eb2 use a struct for long parameter list to transmit_invite (bug ) 20 years ago
Kevin P. Fleming 420737f3ea correct oops in recent outbound registration rework (bug ) 20 years ago
Kevin P. Fleming c9004afb94 various improvements to outbound registrations and response handling (bug ) 20 years ago
Kevin P. Fleming 115e45c7b0 handle stale authentication nonces more properly (bug , with formatting fixes) 20 years ago
Mark Spencer 5b55f3600b Fix attended transfer crash (bug with changes) 20 years ago
Mark Spencer db99849187 Fix reply digest selection of size (bug ) 20 years ago
Mark Spencer ed233f7e82 Fix the ordering fo some checks (bug ) 20 years ago
Russell Bryant 4e329973eb use DEFAULT_SIP_PORT (bug ) 20 years ago
Mark Spencer a6f2f031b3 Fix typo about maddr (bug ) 20 years ago
Josh Roberson 70b3b8730e Fix typo in chan_sip. (Bug ). 20 years ago
Mark Spencer 2df83a9298 Fix SIP registration (bug ) 20 years ago
Mark Spencer 41e7cc8154 Use defined AST_MAX_ACCOUNT_CODE (bug ) 20 years ago