Commit Graph

3813 Commits (01b09027f736c81e034153f5f95f51d9c96ed0b5)

Author SHA1 Message Date
Olle Johansson e25756dfac - Make sure handle_common_options return 1 when we found a common option
19 years ago
Olle Johansson 4ea530f2dc Issue 8599 (rizzo) Change invitestate before re-sending invite with auth.
19 years ago
Olle Johansson 8a42650605 Fix bogus content-length in t38 sdp. (rizzo, #8600)
19 years ago
Joshua Colp 9cc04e026d Add an API call that initializes an RTP structure. We need this because chan_sip is cheeky and uses a temporary RTP structure for codec purposes, and the API calls that are used rely on the lock. (Pointed out on asterisk-dev by Andy Wang)
19 years ago
Russell Bryant a1eee8d2d9 Fix a typo in an error message that indicated that the MGCP channel type could
19 years ago
Russell Bryant 53115ff688 Merged revisions 48943 via svnmerge from
19 years ago
Russell Bryant 1208869c00 Merged revisions 48939 via svnmerge from
19 years ago
Jason Parker 66783cb46f Note to self: Run make before committing...
19 years ago
Jason Parker ef2f05a518 Fix for issue 7774 - patch by alamantia
19 years ago
Kevin P. Fleming 2703d88576 suppress compiler warnings in this module until it can be improved
19 years ago
Joshua Colp 11e61ea68a Put thread into proper list if we abort handling due to an error, and also hold the lock while putting it back into the proper idle list so we don't prematurely get a signal. (issue #8604 reported by arkadia)
19 years ago
Joshua Colp a0c21d30ac Hold call structure lock in places where a qualify or peer action can destroy it.
19 years ago
Joshua Colp 195c66b4a1 Lock network retransmission queue in all places that it is used.
19 years ago
Olle Johansson c1f1cf48ac Issue #8592 - treat 504 as 503 (imported from 1.2)
19 years ago
Olle Johansson a8fe77b95b Update to latest IANA spec
19 years ago
Joshua Colp 3706ecbbc5 Use a wakeup variable so that we don't wait on IO indefinitely if packets need to be retransmitted.
19 years ago
Steve Murphy f6cf1458ad Merged revisions 48371 via svnmerge from
19 years ago
Russell Bryant eeb415e8dd Use locking when accessing the registrations list. This list is not actually
19 years ago
Olle Johansson 28c36660c7 Issue #8258 - fix handling of 487 being retransmitted to Asterisk
19 years ago
Olle Johansson 0fe91149ae Don't send Contact on MESSAGE
19 years ago
Olle Johansson 694205de93 Merging the invitestate-1.4 branch after successful testing.
19 years ago
Olle Johansson 9636bccb7c - Removing one of two pieces of code to handle 481 response on INVITE
19 years ago
Olle Johansson f89143bd13 - Disable RTP hold timers while T.38 fax transmission happens
19 years ago
Olle Johansson 98d3fb64ed - Backport of the "limitonpeers" patch from trunk, to fix a lot of issues with queues and SIP device states
19 years ago
Joshua Colp b2b70adede Do not do a partial bridge for Google Talk since we need to handle STUN. (issue #8448 reported by phsultan)
19 years ago
Olle Johansson 76e35bac11 Issue 8319 - change noncecount before using it.
19 years ago
Joshua Colp 422c97eab7 Merged revisions 48157 via svnmerge from
19 years ago
Olle Johansson 073e937757 Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate line
19 years ago
Joshua Colp 68ad03e888 Merged revisions 48087 via svnmerge from
19 years ago
Olle Johansson 9436ecaad7 Change logging message
19 years ago
Olle Johansson 5a3dcaff3c Not having a HINT is not an ERROR. In 1.4 and future releases, you can disable
19 years ago
Christian Richter 55229f98b9 Merged revisions 47968 via svnmerge from
19 years ago
Olle Johansson c3a7e9d7c2 Don't allocate unused variable.
19 years ago
Olle Johansson 5c0be47e69 Apparently Exosip sends a 101 after a 100 provisional response. Let's not treat that as
19 years ago
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
Joshua Colp 88002f78fd Merged revisions 47750 via svnmerge from
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
Joshua Colp e83e3123f7 Merged revisions 47711 via svnmerge from
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
Kevin P. Fleming 8dd76cc19a silence compiler warning on 64-bit platforms (this variable is an 'int' anyway, comparing it to 'signed long' is not useful)
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
Tilghman Lesher 129280f4ee Merged revisions 47522 via svnmerge from
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
Russell Bryant 3964b50b05 Merged revisions 47496 via svnmerge from
19 years ago
Matthew Fredrickson eb4c18e444 Make sure we don't use 32bits when we only need one bit.
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
Matthew Fredrickson 60c6acf03f Fix for #7321. Be able to explicitly hide callerid name for switches that bork
19 years ago
Joshua Colp ff947e3743 Let's give this a go...
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
Joshua Colp e424d306ac Fix building of chan_h323 by completeing some structure definitions. (issue #8327 reported by Mithraen)
19 years ago
Russell Bryant 58ed1b07ab Work around an issue that caused menuselect to display a bogus description for
19 years ago
Joshua Colp 6e693fdb0c Merged revisions 47379 via svnmerge from
19 years ago
Steve Murphy 1de03495a9 Committed in behalf of 8190.
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
Russell Bryant 487d4512d3 Make this module build again
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
Joshua Colp b3bf131dd8 This is not the commit you are looking for...
19 years ago
Joshua Colp b832f42414 Make MOH work as it did before in chan_local, without this then it can go funky when transfers and MOH are involved. (issue #7671 reported by jmls)
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 56a1e60c54 More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)
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
Nadi Sarrar 72985e664f find_free_chan_in_stack usage fix
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
Matt O'Gorman 6a10570614 bind address support from bug 8164
19 years ago
Joshua Colp 899d116be2 It's another round of chan_iax2 fixes! Should hopefully fix the deadlock issues people have been reporting. IAXtel now has qualify turned on for 800 peers and it is handling it fine.
19 years ago
Russell Bryant c9c41a0b85 Prevent an infinite loop when config processing gets to a jitterbuffer option
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
Joshua Colp a7e0a4d143 We need to lock the pvt structure during retransmission as another worker thread may be doing something as well.
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
Russell Bryant 0ed3384fb1 move the copy of the default settings to the global settings back out of
19 years ago
Russell Bryant b588d56fc8 Instead of iterating all of the options once to look for jitterbuffer options,
19 years ago
Christian Richter b03054fdfc Merged revisions 46350 via svnmerge from
19 years ago
Christian Richter f7a6f0efa2 fixed not compile issue, which was just introduced
19 years ago
Christian Richter 6964f148ba Merged revisions 46176 via svnmerge from
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 6c17f1e07e add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)
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
Joshua Colp c6b9449955 We need to initialize our scheduler pthread condition... yes.
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
Christian Richter c01e86f14e Merged revisions 45808 via svnmerge from
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
Christian Richter a05d2ebb96 avoiding warning, fixing potential bug
19 years ago
Kevin P. Fleming 7f8528f21c Merged revisions 45048 via svnmerge from
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
Christian Richter 3a602aa1d7 Merged revisions 45020 via svnmerge from
19 years ago
Christian Richter 887395b103 Merged revisions 44993 via svnmerge from
19 years ago
Luigi Rizzo 0e230d79d8 merge formatting and minor code simplifications from trunk
19 years ago
Matt O'Gorman 0c4d8edca6 fix for bug 7764.
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
Christian Richter 8621f03cf2 removed warning because of missing prototype declaration
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
Christian Richter 76dd912066 Merged revisions 44785 via svnmerge from
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
Jason Parker f3ba83ae1a Fix a problem where phones that go "missing" never got unregistered.
19 years ago
Joshua Colp f11d155547 iaxs[callno] may go away if we try to avoid the deadlock
19 years ago
Joshua Colp 8a7f8f5592 Properly avoid a collision with iax2_hangup (issue #8115 reported by vazir)
19 years ago
Luigi Rizzo 9d88cfa8dc merge svn 44744: do not dereference p if we know it is NULL
19 years ago
Paul Cadach e2676b1098 Propagate caller's transfer capability too
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
Christian Richter 290fe898f0 Merged revisions 44460 via svnmerge from
19 years ago
Christian Richter 37df5208a1 Merged revisions 44335 via svnmerge from
19 years ago
Christian Richter 13825dab85 Merged revisions 44334 via svnmerge from
19 years ago
Christian Richter e0005b654a Merged revisions 44149 via svnmerge from
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
Matt O'Gorman 592cbc0452 fix issue with dialing client without resource.
19 years ago
Paul Cadach bc3dee9d86 Change default presentation indicator to "user provided not screened" if octet 3a missed in CallingPartyNumber IE
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
Paul Cadach 70dfcccd66 Fix preparation of type and presentation of calling number
19 years ago
Matt O'Gorman 5058b9e13f updated res_jabber for even better component support, soon will be jep-0100 compliant.
19 years ago
Joshua Colp d56d4a3f7f Merged revisions 44213 via svnmerge from
19 years ago
Paul Cadach f76b7ab4a9 Optimization of oh323_indicate(): less locks - less problems, plus single exit point
19 years ago
Mark Spencer 43b8d09b81 Don't use Channel when you're not talking about a channel :)
19 years ago
Paul Cadach 5ec38a80bf Do not simulate any audio tones if we got PROGRESS message
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
Kevin P. Fleming ec2e4f2216 fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80
19 years ago
Paul Cadach e4ff1716d5 Compile first, please
19 years ago
Paul Cadach 8a107b3a16 Set TON/PRESENTATION information more carefully when no CallingNumber IE available
19 years ago
Paul Cadach 4ecb66c6b4 Fake display name by called number on incoming calls (until passing connected number/connected name is not implemented)
19 years ago
Paul Cadach 5d8c027883 Ported code refers to H.450 - add includes
19 years ago
Paul Cadach 6f72c19b74 Properly pass TON/PRESENTATION information - original
19 years ago
Paul Cadach b05cb6d46b Pass TON/PRESENTATION information too
19 years ago
Kevin P. Fleming 704397dc3c don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead
19 years ago
Joshua Colp d2d4833b79 Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
19 years ago
Paul Cadach 13b9f34966 Extend call establishment timeout
19 years ago
Joshua Colp 24b723af44 Make sure the pvt exists before accessing it again as it may have gone away (issue #7562 reported by Seb7 and issue #7939 reported by sorg)
19 years ago
Paul Cadach f1ebcc8e34 Fix compiler warning
19 years ago
Paul Cadach 89e23aa040 Force remote side to start media on outgoing PROGRESS message
19 years ago
Christian Richter a3f43a7dfe Merged revisions 43764 via svnmerge from
19 years ago
Paul Cadach e2d1986cec Do not open transmit channel until TCS is received
19 years ago
Joshua Colp 0929a218f3 Get rid of two functions from a time now past (we THINK these are from pre-recursive lock time) that may be contributing to two open issues on the bug tracker (7562/7939) and that has the potential to just make bad things happen if the timing is right.
19 years ago
Christian Richter cf7b068f58 removed the chan_misdn versioning, since asterisk has it's own
19 years ago
Joshua Colp 8459e9a7ac Make rfc2833compensate a global option.
19 years ago