Commit Graph

1685 Commits (a7ade6f21312c40e22a443ef8535a88eb6feb095)

Author SHA1 Message Date
Steve Murphy 81ef9a4f18 Merged revisions 58115 via svnmerge from
19 years ago
Olle Johansson 275abf4e08 Merged revisions 58052 via svnmerge from
19 years ago
Joshua Colp 53b9bc89c0 Merged revisions 57475 via svnmerge from
19 years ago
Joshua Colp 4565c1483c Merged revisions 56230 via svnmerge from
19 years ago
Olle Johansson d67ef52159 Move message from verbose to debug
19 years ago
Russell Bryant 9a7d1cc182 Restructure a little bit of code to reduce nesting. There is no functionality
19 years ago
Russell Bryant 71921a8329 Merged revisions 56010 via svnmerge from
19 years ago
Joshua Colp 3d95841eb3 Add a flag that indicates whether a SIP dialog is an outgoing call or not. SIP_OUTGOING originally did it but it was repurposed to the direction of the last transaction, which can cause update_call_counter to falsely decrease the wrong counters. (please don't hurt me oej) (issue #8943 reported by mdu113)
19 years ago
Olle Johansson c0f5102378 Issue #8848 - Turn off lamp more quickly after transfer (decrement inuse early on transferer's call leg)
19 years ago
Joshua Colp 30d30fef76 Return behavior I removed. I did not remember that you could just add a localnet entry to make it work.
19 years ago
Joshua Colp 49749e44a2 Don't test our own address against the localnet settings. At least one person has had issues as a result of this from #7051 so I'm reversing it. (issue #8821 reported by kokoskarokoska)
19 years ago
Joshua Colp 7a4bed883e Merged revisions 55073 via svnmerge from
19 years ago
Olle Johansson 3ca445e34c Issue #7541 - Handle multipart attachments to SIP messages - even if boundary is quoted.
19 years ago
Russell Bryant 7bcf1d913a Remove a couple of leftover debug messages
19 years ago
Russell Bryant b100b69703 If we fail to create the SIP socket, then return -1 from reload_config() so
19 years ago
Russell Bryant 93fcd4a354 Change some text to properly state "On Hold", which was already done in trunk.
19 years ago
Russell Bryant 7ee02f585d Merge team/russell/sla_rewrite
19 years ago
Olle Johansson e7a0e86756 Formatting
19 years ago
Olle Johansson 8e07358edf Add some comments on queue system behaviour and how it affects the
19 years ago
Joshua Colp 910898b7be Make SIPDtmfMode application work with recent capability changes, and also fix an RTP stack issue when the auto option was used. (issue #8972 reported by mdu113)
19 years ago
Olle Johansson 90a4b844a9 Disable the direct p2p RTP call setup in SIP. You can enable it in sip.conf, but it is now
19 years ago
Joshua Colp 57fe6882ac Merged revisions 53103 via svnmerge from
19 years ago
Joshua Colp 09844a7f1a Merged revisions 53095 via svnmerge from
19 years ago
Olle Johansson 97efd0be22 - Clean INC_COUNT flag when we decrement call counter
19 years ago
Olle Johansson 6bb6bba6a3 Cleaning up the devicestate callback function
19 years ago
Joshua Colp e86275c11c Fix silly logic. We really want to write UDPTL frames out when the call is up.
19 years ago
Russell Bryant 9aab046002 Merged revisions 53045 via svnmerge from
19 years ago
Russell Bryant 29b7393d84 Only set the DTMF flag on the rtp structure if the DTMF mode is actually
19 years ago
Joshua Colp ed48c69f06 Drop out variables I accidentally put in.
19 years ago
Joshua Colp 6b08afd05d Decrement onHold count if we are hung up on and still on hold. (issue #8909 reported by alexh42)
19 years ago
Joshua Colp 5ebd1ecf63 Fix changing channel formats when joint capability changes and there are no audio formats... I didn't break it originally! (issue #8535 reported by ivoc)
19 years ago
Olle Johansson a207a31a97 Show capabilities *and* preference in general settings in "sip show settings"
19 years ago
Joshua Colp 8f7ddbef0d Update channel drivers to use module referencing so that unloading them while in use will not result in crashes. (issue #8897 reported by junky)
19 years ago
Joshua Colp 5a3acb0511 Only change audio formats on the channel if we have an audio format to change to. (issue #8535 reported by ivoc)
19 years ago
Russell Bryant 33235b40d6 Merge the changes from the /team/group/vldtmf_fixup branch.
19 years ago
Joshua Colp 1e3557c636 Copy MOH settings when calling a peer so that if they put someone on hold or get put on hold themselves they get the right music class. (issue #8840 reported by mdu113)
19 years ago
Russell Bryant 4244459e31 Merged revisions 51197 via svnmerge from
19 years ago
Joshua Colp 915f9315e1 Remove check for channel state as it can definitely be something other then ring, and also clean up the code a bit. This should solve the parking issues and maybe some attended transfer issues people have been seeing.
19 years ago
Joshua Colp 240ca25bea Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson)
19 years ago
Joshua Colp 9aca2b2a54 Fix chan_sip not working issue. Let's not prematurely return 0. (issue #8783 reported by st41ker)
19 years ago
Olle Johansson 1a33c38a15 - handle re-invites properly in sip_hangup()
19 years ago
Olle Johansson 3394598f93 Issue #8677 - Handle failure of T.38 re-invite
19 years ago
Olle Johansson 0f96f73768 Issue #8524, support multiple via header values (tardieu)
19 years ago
Olle Johansson be32fad9b8 We only need one forward declaration
19 years ago
Olle Johansson 484add6554 Issue 8735: Terminate state when extension is unavailable for subscription
19 years ago
Tilghman Lesher dcbf36432e Second condition was a subset of the first, so hold was never decremented, thus hint stayed stuck (Issue 8747)
19 years ago
Kevin P. Fleming 444adcb477 reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
19 years ago
Kevin P. Fleming fb010e49aa Merged revisions 49635 via svnmerge from
19 years ago
Olle Johansson 5edb7fa173 Small cleanup of add_t38sdp - it's always enabled at that point in the code
19 years ago
Olle Johansson 7db2ca152c remove incomplete implementation of dnsmgr. Let's fix this in trunk.
19 years ago
Olle Johansson 1e9c141c2d Only include acl.h and lock.h once
19 years ago
Olle Johansson 4f157be79e Only set rfc2833compensate flag once (handle_common_options)
19 years ago
Olle Johansson f1f8bbaabe - Remove checking for T38 options twice. Keeping them in handle_common_options
19 years ago
Kevin P. Fleming 0f5aae9688 make the option actually match the documentation
19 years ago
Olle Johansson d2b7e8b247 Be a bit more politically correct
19 years ago
Olle Johansson bfe4bb0f1e Issue #8575 - Buggy cisco MWI support.
19 years ago
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 1208869c00 Merged revisions 48939 via svnmerge from
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
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
Olle Johansson 76e35bac11 Issue 8319 - change noncecount before using it.
19 years ago
Olle Johansson 073e937757 Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate line
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
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
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