Commit Graph

1610 Commits (9ce476a89c45a3b8de28d360cb36049d40a65e80)

Author SHA1 Message Date
Olle Johansson a7c1ac60b7 Make sure we destroy scheduled items and not use them ever again after destruction (rizzo)
19 years ago
Luigi Rizzo d20e81d829 fix bug 7450 - Parsing fails if From header contains angle brackets
19 years ago
Joshua Colp f373cad528 Compare technology using the pointers instead of a straight comparison based on name. (issue #8228 reported by dean bath)
19 years ago
Olle Johansson e1e6a1b2a8 Make the HOLD notification optional, in order to avoid a lot of extra database lookups
19 years ago
Olle Johansson d1ee29fc20 Don't fixup if there's nothing to fixup
19 years ago
Olle Johansson 5bd53e3588 - CANCEL is never authenticated (according to the RFC)
19 years ago
Olle Johansson c78840b900 - Improve SIP history
19 years ago
Olle Johansson 63f87d112d Send error message when we can't allocate SIP dialog, possibly due to limitation of file descriptors.
19 years ago
Joshua Colp 25b5cf18b7 Only keep the video RTP structure around if 1. Video support is enabled and 2. A video codec is enabled on the dialog
19 years ago
Olle Johansson 4ecb09f6e8 Update documentation to fit the implementation...
19 years ago
Olle Johansson cb82979700 Issue #8272 - Don't destroy dialog in retransmission system if it's an OPTION packet from peerpoke
19 years ago
Tilghman Lesher e944561518 Merged revisions 47580 via svnmerge from
19 years ago
Tilghman Lesher 6e4d0e50c8 Re-enable old deprecated commands
19 years ago
Olle Johansson 55c8a5ded8 - Don't reply to INVITE already replied to when we get BYE
19 years ago
Olle Johansson 0ca5dae550 Only produce error message about sip history once
19 years ago
Olle Johansson 153cb1309f Issue 8314 - Restore auto-framing (Thanks DEA!!!)
19 years ago
Olle Johansson fc5f9c78d1 Part of issue 8078 - parse even if udptl is UDPTL in sdp...
19 years ago
Olle Johansson a471f0a87c - Don't destroy SIP dialog because of a failed T.38 re-invite. Wait for a bye.
19 years ago
Olle Johansson 853958e863 -Remove blocking of ptime: parsing in sdp
19 years ago
Olle Johansson 2a321d80f5 ...and make sure that the dialog is destroyed, even if we don't get any answer on the bye...
19 years ago
Olle Johansson ea257647a2 Add debug output while trying to trace bug in bug report
19 years ago
Olle Johansson ba58cf9ecd Make sure we destroy dialog...
19 years ago
Olle Johansson 1f2a4eb8c2 Small cleanup of handle_request_invite() - imported from 1.2 with changes
19 years ago
Olle Johansson d83a1f1356 Issue 8010 - Fix support for multipart SDP (alphaque)
19 years ago
Tilghman Lesher f11ea0549d Discussion of these CLI changes resulted in more consistency (Bug 8236)
19 years ago
Olle Johansson 54994dfe04 Rip out half implementation of 491 response support, since it wasn't implemented
19 years ago
Olle Johansson 27e6ea10fb Fix bit definition for SIP_PAG2_CALL_ONHOLD. Thanks fenlander!
19 years ago
Kevin P. Fleming 10978d0390 add simple fix for SDP to report proper sample rate for G.722 media sessions
19 years ago
Olle Johansson 764ba93e05 Destroy dialog properly at unload (rizzo)
19 years ago
Steve Murphy 517978fd5f These mods are to solve the problem in bug 7506. It's a lot of rework to solve a fairly small problem... such is life.
19 years ago
Olle Johansson 647fb52e31 Issue 8303 (lrizzo) - break instead of continue.
19 years ago
Olle Johansson eac4efcf22 Fixing the attack shield so it doesn't produce attacks... Issue 8265 - never reply to an ACK
19 years ago
Olle Johansson d5edfd432a Issue #8284: Fixes to Invite/replaces and transfer from "john"
19 years ago
Steve Murphy b6079499e4 This fix introduced via bug 8233
19 years ago
Tilghman Lesher e05a2752e8 Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"
19 years ago
Olle Johansson ea69dd0cbc Move check for codec translation to sip_call() instead of in add_sdp. No one bothers
19 years ago
Olle Johansson bfb1d68414 Disable code for T38 over TCP and RTP since there's no trace of actual functionality for it :-)
19 years ago
Kevin P. Fleming efdffc0cf8 don't send INVITE when we have determined that we can't offer any audio formats due to lack of trancoding support (or incorrect configuration)
19 years ago
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