Commit Graph

1572 Commits (dadf652e26064a9934d16e482790e9ebb1f1beaa)

Author SHA1 Message Date
Joshua Colp eb25ec6ed5 Merged revisions 46920 via svnmerge from
19 years ago
Olle Johansson 5667c1c71d Dont overwrite pkt->flags (from 1.2)
19 years ago
Olle Johansson 9ab1cc22a4 Support ;rport when we're supposed to support ;rport. Issue #7473.
19 years ago
Olle Johansson 56f2cab81c If peer fails ACL check, fail peer at REGISTER
19 years ago
Olle Johansson cdb0c64271 Fix T38 too. Thanks, tgrman !
19 years ago
Olle Johansson 86c973f71f Issue #8246 - Doxygen fixes from kshumard.
19 years ago
Olle Johansson 9213317979 Issue #7869 - Stop retransmission of 302 redirects (imported from 1.2)
19 years ago
Olle Johansson 4456e58811 Issue #7608 - Notifications sent with wrong content-type (imported from 1.2, modified)
19 years ago
Olle Johansson e8350b836b Backport of patch for #7828 that was reported for trunk, but obviously
19 years ago
Olle Johansson 0ff30203f9 Restoring the old logic, since working around it and fixing it seemed too complicated.
19 years ago
Olle Johansson b1b2177079 Accepting a message twice may be misinterpreted...
19 years ago
Olle Johansson 5c59f2f5f5 - 183 is not reliable message...
19 years ago
Olle Johansson 77e12e971c Old todo note - Don't add Contact header on BYE and Cancel
19 years ago
Olle Johansson b36a4fad1b Somewhat ugly code to try to fix issue #7608.
19 years ago
Olle Johansson 03b4e17d23 show settings doesn't produce a list
19 years ago
Kevin P. Fleming ce4b0afb73 apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
19 years ago
Kevin P. Fleming 05eb71c699 code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable
19 years ago
Luigi Rizzo 50fda8522d merge 45966 refer_to_domain potentially containing options
19 years ago
Luigi Rizzo d7b0db6530 merge 46026 improper checks on get_header() return values
19 years ago
Luigi Rizzo fa4d6f23a6 merge 46045 prevent NULL args to ast_strdupa() in chan_sip.c
19 years ago
Olle Johansson 2681aea6b2 Let's understand SIP:
19 years ago
Joshua Colp 67c180956c If the jitterbuffer is forced on then we can't partially bridge (reported by wangster on #asterisk-dev)
19 years ago
Olle Johansson a37a95c0d8 Cleaning up
19 years ago
Russell Bryant 87cb020143 Don't leak the actual thread-specific sip_pvt struct
19 years ago
Kevin P. Fleming 2f6a555fbd don't leak memory when a chan_sip thread is destroyed that has a thread-local temp_pvt allocated
19 years ago
Olle Johansson 9bd68dd32c remove duplicate declarations
19 years ago
Kevin P. Fleming 227d415709 optimize the 'quick response' code a bit more... no more malloc() or memset() for each response
19 years ago
Joshua Colp 0c4dfe3aed Don't create a "real" pvt structure for requests that shouldn't be able to create one. Instead use a temporary pvt and fill it with enough information so we can send a reply.
19 years ago
Olle Johansson 1e2935d447 remove the option that was not needed, really.
19 years ago
Joshua Colp d28fd24747 Merged revisions 45265 via svnmerge from
19 years ago
Joshua Colp 3f24dceeca Merged revisions 45260 via svnmerge from
19 years ago
Olle Johansson eaaddb90bf Don't destroy dialog for unexpected REFER response...
19 years ago
Joshua Colp 1bfbc1419a Complete merging in RPID screen changes (issue #8101 reported by hristo, patch by oej in revision 44757)
19 years ago
Luigi Rizzo 0e230d79d8 merge formatting and minor code simplifications from trunk
19 years ago
Kevin P. Fleming ec4bf13915 we can only send one 'a=ptime' attribute per media session, not one for each format
19 years ago
Kevin P. Fleming 09f6a6a167 Merged revisions 44955 via svnmerge from
19 years ago
Olle Johansson 84a6a67b15 Do not set default/global values in the variable declaration, set it in reload_config()
19 years ago
Joshua Colp e0dbc80f61 Move some stuff around so that a NOTIFY dialog won't hang around until the end of the world under certain circumstances
19 years ago
Joshua Colp e4380a1b2e Bail out if we have no refer structure and we get a refer response
19 years ago
Luigi Rizzo 0681269434 more merge from trunk (comments and change a static function name)
19 years ago
Joshua Colp 74171605af Only set DTMF information if an RTP structure exists
19 years ago
Luigi Rizzo fde338ba2c whitespace changes related to previous commit
19 years ago
Luigi Rizzo e0f745b1f6 merge a few code simplifications that have gone
19 years ago
Luigi Rizzo 9d88cfa8dc merge svn 44744: do not dereference p if we know it is NULL
19 years ago
Luigi Rizzo f480d547cc merge revision 44664 - put common code in a function to avoid repetitions.
19 years ago
Luigi Rizzo 169342bc0d remove hardwired usage of 5060, use DEFAULT_SIP_PORT instead
19 years ago
Luigi Rizzo 35d8151b55 merge rev 44253 - option_debug checking before printing to debug channel.
19 years ago
Luigi Rizzo e65f2bd612 backport simplifications on sip_register,
19 years ago
Luigi Rizzo e5a838cac1 improve and document function get_in_brackets(), introducing
19 years ago
Joshua Colp 8d2f872a84 One more T.38 fix! Don't leave a reinvite hanging by a thread if the other side is already setup with T.38
19 years ago
Joshua Colp db989fc58c Don't totally bail out if T.38 was negotiated
19 years ago
Kevin P. Fleming ca2bdd54c7 Merged revisions 44432 via svnmerge from
19 years ago
Kevin P. Fleming 0ee719e52f Merged revisions 44392 via svnmerge from
19 years ago
Kevin P. Fleming ff05bf15c8 update thread creation code a bit
19 years ago
Joshua Colp d241bab733 Use VideoSupport instead so it is considered a valid XML attribute name. (issue #8075 reported by renemendoza)
19 years ago
Joshua Colp d56d4a3f7f Merged revisions 44213 via svnmerge from
19 years ago
Mark Spencer 43b8d09b81 Don't use Channel when you're not talking about a channel :)
19 years ago
Luigi Rizzo c88b87f6ed sync with trunk - move variable declarations to the beginning of a block.
19 years ago
Paul Cadach ffd8a2576b Fix issue #7928 correctly. Next is a comment of previous fix:
19 years ago
Paul Cadach 7a7c5011a1 Found some buggy SIP clients (phones Planet VIP-153T firmware
19 years ago
Joshua Colp d2d4833b79 Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
19 years ago
Joshua Colp 8459e9a7ac Make rfc2833compensate a global option.
19 years ago
Joshua Colp 2862b777fe Merged revisions 43705 via svnmerge from
19 years ago
Russell Bryant 6a4c92a630 Add missing newline character in the warning message about deprecated TOS values
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Joshua Colp 3c732537bc Improve output of sip show peers (issue #6624 reported by mavetju with minor code changes by myself)
19 years ago
Matt O'Gorman 465adf2bf1 allow for packetization on rtp channel drivers, need to add
19 years ago
Olle Johansson 42a56b7a5a Merging patch from 1.2 - Issue #7682
19 years ago
Olle Johansson b93280947a Issue #7351 - sending CANCEL when the call at some point has been in UP state is wrong.
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Olle Johansson 948533a791 Issue #7924 - cmaj - Turn off silence suppression if no channel owner
19 years ago
Olle Johansson 50b6a222ef Issue #7928 - Don't send both 404 and 503. Fix by phsultan with a small fix by me, myself or I.
19 years ago
Olle Johansson d970a07b1c If we've found a T38 SDP line, stop looking for more on the very same line
19 years ago
Olle Johansson da55c166dc More formatting fixes and doxygen stuff
19 years ago
Olle Johansson d37002287b Add comment
19 years ago
Olle Johansson 8868c4e1ca - Use enum for send-request reliability flags
19 years ago
Olle Johansson 31fa147b76 More formatting
19 years ago
Olle Johansson 4c081033b6 More formatting/doxygen updates to keep me occupied
19 years ago
Olle Johansson 421f2b076d Ignore this. Only whitespace fixes while being bored.
19 years ago
Olle Johansson 2984fbc068 Change from "r" as a variable name to "dialog". "r" is commonly used for registrations,
19 years ago
Olle Johansson e7b882961e Use Timer T1 for dialog timeouts/destruction
19 years ago
Tilghman Lesher 237fbf35fc If the leading underscore is not stripped before comparison,
19 years ago
Olle Johansson 5a622d032e Don't destruct sessions prematurely. Especially not when we want reliable retransmissions...
19 years ago
Olle Johansson 01714e962b importing rev 42535 from 1.2 (which by mistake was actually imported from svn trunk)
19 years ago
Olle Johansson d0cbbaf8d7 Don't destroy pvt prematurely. Wait for answer or timeout.
19 years ago
Olle Johansson 562b491a85 Clear proper flag
19 years ago
Joshua Colp 53cf63c33a Convert some warnings into debug messages since they can exist under perfectly normal circumstances that the user shouldn't care about (issue #7894 reported by stephen_dredge)
19 years ago
Olle Johansson bd4e57a873 Make sure we handle CANCEL/ACK properly (imported with mods from 1.2)
19 years ago
Joshua Colp e43b830a9d Merged revisions 41768 via svnmerge from
19 years ago
Joshua Colp 0be2884d80 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
19 years ago
Joshua Colp 8ee7419d26 If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
19 years ago
Joshua Colp c6977b9983 Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
19 years ago
Olle Johansson 6ca927457d Why check bridgepeer twice?
19 years ago
Olle Johansson 18164dec14 Don't add headers to an uninitialized eq (from issue 7694 garyhai, but not
19 years ago
Olle Johansson 13eb698ce7 Note to myself: Remember Russell's note: Always compile first...
19 years ago
Olle Johansson 2c98238fbe Mark ALERT_INFO as deprecated. This can now be done with the sipaddheader() application and
19 years ago
Olle Johansson 0ace854142 Issue #7572 (Boesl) - hangup channel that get buggy 487 response (imported from 1.2)
19 years ago
Olle Johansson 7aa333c9ef Issue #7822 - don't issue SRV lookups if it's disabled. (barthek)
19 years ago
Joshua Colp 12b6ec4e11 Use an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking
19 years ago
Joshua Colp c70ed7614a Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
19 years ago
Joshua Colp 1c182a606a Allow an offset for SIP_HEADER so you can get more then 1 header of the same name if they exist. Why someone would want to grab something like Via headers from dialplan I don't exactly know, but okay. (issue #7563 reported by Corydon76)
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant a8272afb1f fix the use of an uninitialized variable (issue #7746, pointed out by garyhai)
19 years ago
Joshua Colp 59766196ea Move things around a bit more for onhold support, and add a check to only decrement the onhold variable if it's greater then 0. (issue #7740 reported by AuPix)
19 years ago
Russell Bryant 9f9a5f1984 move the calls to ast_jb_configure() to before the PBX thread is started on the
19 years ago
Russell Bryant fff5a55af6 print a more user friendly error message with the text representation of codecs
19 years ago
Russell Bryant 65373a1987 reduce duplicated code by using print_codec_to_cli in sip_show_user as it is
19 years ago
Joshua Colp 4ebd436c85 Add support to see if a peer has someone on hold, and fix a small bug with getting the state name. This one goes out to you mog!
19 years ago
Russell Bryant 92bd7f19f7 Merge team/russell/ast_verbose_threadstorage
19 years ago
Olle Johansson a42c164879 Fix accidental removal of if() in commit 38905
19 years ago
Olle Johansson b57c238260 Issue #7651 - always send subscription-state (AuPix)
19 years ago
Russell Bryant 9892054414 Merged revisions 38950 via svnmerge from
19 years ago
Russell Bryant 663adb2b0e Merged revisions 38903-38904 via svnmerge from
19 years ago
Joshua Colp e306f812df Don't assume that a referred by URI will always exist (issue #7641 reported and fixed by AuPix)
19 years ago
Kevin P. Fleming 1b784cd1f7 Merged revisions 38731 via svnmerge from
19 years ago
Kevin P. Fleming ec2e7aee56 Merged revisions 38611 via svnmerge from
19 years ago
Russell Bryant 450db95711 add macros for the pure and const attributes to compiler.h, in case they ever
19 years ago
Russell Bryant d6246e579f Add the function attribute "pure" or "const" to various functions that perform
19 years ago
Joshua Colp 48c09ef517 Merged revisions 38420 via svnmerge from
19 years ago
Russell Bryant 1df50be628 Merged revisions 38288 via svnmerge from
19 years ago
Joshua Colp 6d52c0b559 Merged revisions 38234 via svnmerge from
19 years ago
Joshua Colp cbf79ca489 Start out with cleared RTP payload structures instead of defaults. This should prevent issues where if a stream (audio/stream) is not present and it's RTP payload structure is combined with the overall capability then the capability would be every codec that Asterisk supports.
19 years ago
Luigi Rizzo 2c3bc8b1b3 move middle-of-the-block declaration at the top.
19 years ago
Joshua Colp 6810884f60 Only deal with getting the supported payloads on audio if an audio RTP stream exists
19 years ago
Russell Bryant d897bd41c2 use ast_atomic_fetchadd_int in chan_zap, sip, and iax2 for usecount handling
19 years ago
BJ Weschke f2611e36c3 This corrects the crash condition present in #7575, but I'm not really sure if it's the "right" fix. Please review and make any adjustments you see necessary.
19 years ago
Russell Bryant ca9ba719b6 Merge a new implementation of ast_inet_ntoa, our thread safe replacement for
19 years ago
Joshua Colp 1861dcdff5 Only bitmaskify the RTP payload structure for video if an RTP structure exists for it... otherwise the default values will cause codec combination madness
19 years ago
North Antara 1edb21b423 Fix a few doxygen warnings.
19 years ago
Kevin P. Fleming 6d0742fc16 merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
19 years ago
Kevin P. Fleming e8d711723a revert this morning's incorrect indentation change
19 years ago
Mark Spencer 837910062b First pass at in-place file manipulation via manager
19 years ago
Kevin P. Fleming 4376af0080 actually make the non-standard G726-32 behavior available for SIP clients
19 years ago
Kevin P. Fleming ead48c38cb Merged revisions 37531 via svnmerge from
19 years ago
Kevin P. Fleming fd9c9ec28f allow users of RTP to use G726-32 AAL2 packing even when RFC3551 packing has been requested (Sipura/Grandstream ATAs and others will need this)
19 years ago
Russell Bryant 4316a871ac repeat after me ...
19 years ago
Olle Johansson 8cd5ad1755 Re-enable RTCP quality reports
19 years ago
Russell Bryant 7828780bb7 eliminate some pointer signedness warnings
19 years ago
Joshua Colp 1fb6111c18 Merged revisions 37173 via svnmerge from
19 years ago
Olle Johansson c5660895a8 Draft became RFC...
19 years ago
Olle Johansson f9df5318ce Specify digest algorithm for picky clients
19 years ago
Olle Johansson c6ab7e7164 Increase buffer size for routing headers. When routing with enc.keys within
19 years ago
Olle Johansson 2f6f0b19c5 Raise debugging level for message
19 years ago
Russell Bryant 73e8e2ab1f Blocked revisions 36725 via svnmerge
19 years ago
Olle Johansson 8affb4c1f8 Issue #7421 - Hold status not working fully. Thanks jmls for a good job debugging!
19 years ago
Olle Johansson 4c8e3bcdca users want code to compile, really.
19 years ago
Olle Johansson e995afbd10 Formatting and debug output fixes
19 years ago