aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
AgeCommit message (Collapse)AuthorFilesLines
2007-09-12remove a race condition for the creation of recordthread's, and fix a small ↵dhubbard1-2/+10
memory leak. This closes issue# 10636 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82286 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06(closes issue #10122)file1-7/+0
Reported by: stevefeinstein Patches: meetme-unmute-manager.diff uploaded by qwell (license 4) Tested by: stevefeinstein After looking over the code I agree with Qwell. Setting the file descriptor to conference each time just causes a fight back and forth. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81776 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Fix a problem with the combination of the 'F' option to pass DTMF through arussell1-2/+8
conference and options that use DTMF to activate various features. The problem was that the BEGIN frame would be passed through, but the END frame would get intercepted to activate a feature. Then, the other conference members would hear DTMF for forever, which they didn't seem to like very much. (closes issue #10400, reported by stevefeinstein, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78717 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25This fix solves problem with intense squelch noise when someone joins conf ↵murf1-21/+27
in bug 9430; We repro'd the problem with meetme opts of 'CciMo'; Josh Colp supplied this patch, and I'm applying it. It looks like playing the recorded username will louse up the next thing played into the channel. Josh rearranged the code so as to start things over before playing data directly into the conference. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77191 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Using a freed frame causes crashes (closes issue #9317)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75529 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28cast a time_t so that it does not conflict with the print format.rizzo1-1/+1
This change was already done on trunk so this change needs to be blocked from merging. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72453 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21Remove a couple of duplicate unlocksrussell1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70726 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Merged revisions 69894 via svnmerge from file1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69894 | file | 2007-06-19 09:54:03 -0400 (Tue, 19 Jun 2007) | 2 lines Perform an extra hangup check just in case. (issue #9589 reported by bcnit) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69895 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-15The SLATRUNK_STATUS variable indicated "SUCCESS" for both an answer of therussell1-4/+14
incoming call on the trunk, or if the trunk reached its ring timeout. This patch changes the variable to say "RINGTIMEOUT" in that case. (issue #9973, reported by n00dle, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69518 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Really ignore NULL frames and check whether the channel hungup or not. ↵file1-0/+4
(issue #9912 reported by junky) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69144 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Fix some crashes related to the use of the "meetme" CLI command. The code forrussell1-2/+7
this command was not locking the conference list at all. (issue #9351, reported by and patch submitted by Junk-Y, committed patch is different and by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67558 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-22Remove a double const.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65452 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-28Note that the "talker optimization" option will be enabled by default in 1.6russell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06When a station picks up a trunk that was on hold, make the hints reflect thatrussell1-0/+1
nobody has the trunk on hold anymore. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60565 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06Fix a few problems with SLA. (issue #9459, reported by francesco_r, fixed ↵russell1-6/+27
by me) * The original behavior was that if one station put a call on hold, another one picked it up, and then hung up, the code would still consider the call on hold by the first station, so the trunk would not be hung up. However, to better comply with what most people seem to expect it to behave, it will now hang up the trunk. * Fix a problem with "barge=no". This was only intended to prevent people from joining calls that are in progress. However, it also prevented other people from picking up a call that was on hold. This has been fixed. * When there are no active stations on a trunk and it is on hold, the code now indicates the HOLD and UNHOLD conditions to the trunk channel. This allows music on hold to be played to the trunk when it is on hold. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60521 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-04Fix a problem where if a trunk was hung up while it was on hold, all of therussell1-0/+3
hints would reflect the line still on hold, even though it should reflect that it is back to not in use. (issue #9459, reported by francesco_r, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-29Merged revisions 59360 via svnmerge from file1-20/+17
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r59360 | file | 2007-03-29 13:33:58 -0400 (Thu, 29 Mar 2007) | 2 lines Keep a global array of variables indicating whether certain conference rooms are in use. This ensures that two people going into a new dynamic conference when the 'e' option is set don't go into the same conference room. (issue #8835 reported by eliel) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59361 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26Fix some codec negotiation problems when CallerID support is not enabled in SLA.russell1-3/+40
(issue #9308, reported by twilson) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59215 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-14By default, don't attempt to do any CallerID handling at all with SLA becauserussell1-4/+11
it is known to not work properly in some situations. However, add an option to enable it for those that would like to use it anyway. The short story behind this is that to properly handle CallerID with SLA, we need the ability to change the CallerID on an existing call, and we are not ready to handle that. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58894 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-13Ensure that the blinky lights show that the trunk stopped ringing when therussell1-0/+3
trunk hangs up before a station has answered it. (issue #9234, reported by francesco_r) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58872 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-10Make the compiler happy and initialize a variable.russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58669 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-08Hang up the channel that put the call on hold in the event processing thread torussell1-6/+5
avoid a race condition. Also, if the station originated the call that it is putting on hold, don't hang up the trunk if it was the only station on the call and it is hanging up due to hold and not a normal hangup. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58512 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-08Refactor hold handling a bit so that it does not require keeping the call uprussell1-38/+41
when a call is put on hold. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58474 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-08fix a compiler warning, and overwriting 'res' valuekpfleming1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58352 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-05Don't create a listen channel and record the conference unless the option is ↵file1-17/+16
turned on. (issue #9204 reported by francesco_r) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57872 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-01Merge changes from svn/asterisk/team/russell/sla_updatesrussell1-25/+16
* Originally, I put in the documentation that only Zap interfaces would be supported on the trunk side. However, after a discussion with Qwell, we came up with a way to make IP trunks work as well, using some things already in Asterisk. So, here it is, this now officially supports IP trunks. * Update the SLA documentation to reflect how to setup IP trunks. * Add a section in sla.txt that describes how to set up an SLA system with voicemail. * Simplify the way DTMF passthrough is handled in MeetMe. * Fix a bug that exposed itself when using a Local channel on the trunk side in SLA. The station's channel needs to be passed to the dial API when dialing the trunk. * Change a WARNING message to DEBUG in channel.h. This message is of no use to users. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57364 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Merge more changes from svn/asterisk/team/russell/sla_updatesrussell1-13/+99
* Add support for private hold. By setting "hold=private" for a trunk, only the station that put the call on hold will be able to retrieve it from hold. Also, by setting "hold=private" for a station, any call that station puts on hold can only be retrieved by that station. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57203 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Minor formatting changerussell1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57146 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Merge changes from svn/asterisk/team/russell/sla_updatesrussell1-9/+26
* Add support for the "barge=no" option for trunks. If this option is set, then stations will not be able to join in on a call that is on progress on this trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57144 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Merge current set of changes from svn/asterisk/team/russell/sla_updatesrussell1-149/+457
* Add support for station ring delays. Ring delays can be set globally for a station or for specific trunks on the station. * Fix a few bugs in existing code. * Restructure and Reorganize code to improve readability and maintainability. * Improve formatting of the "sla show (trunks|stations)" CLI commands. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57089 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Picky compiler...file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57055 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-26Move a comment to be in the correct struct.russell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56740 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-22Merge changes from team/russell/sla_updates.russell1-285/+664
This batch of changes to the SLA code does a few different things. * I made the SLA code event driven instead of having to act in a lot of busy loops while dialing things to wait for state changes. This makes the code more efficient and readable at the same time. * I have implemented a couple of new features. The first is inbound trunk ringing timeouts. This is an option that defines how long to let an incoming call on a trunk to ring. * I have also implemented ring timeouts for stations. They may be specified for the entire station, meaning it is how long to let the station ring before giving up. You can also specify a ring timeout for a specific trunk on a station. So, you can say that you only want a specific station to ring 5 seconds if it is line1 ringing, but otherwise, there is no timeout. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56277 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Merged revisions 55956 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r55956 | file | 2007-02-21 15:32:16 -0500 (Wed, 21 Feb 2007) | 2 lines Change naughty warning message to provide useful information. If a write now fails on a channel in meetme it will tell you the channel name instead of spitting out the wrong error message. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55957 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Simplify the last change to app_meetme, and move the call to dispose_conf()russell1-2/+0
up into the block where we know a conf exists. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55951 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Only dispose of the conference if one was created.file1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Improve the reference counting to fix bugs where people report seeingrussell1-43/+53
conferences listed that have no members. (issue #9073) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55758 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 55005 via svnmerge from russell1-56/+37
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r55005 | russell | 2007-02-16 16:48:22 -0600 (Fri, 16 Feb 2007) | 9 lines Revert the change I did in revisions 54955, 54969, and 54970, in 1.2, 1.4, and trunk. I decided that once a conference is created from meetme.conf, it is acceptable behavior that the pin can not be changed until the conference goes away. I also added a note in meetme.conf to describe this behavior. We still have another issue in 1.4 and trunk where some conferences with no users don't go away. That is the real bug that needs to be addressed here. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55006 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54955 via svnmerge from russell1-37/+56
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r54955 | russell | 2007-02-16 14:56:58 -0600 (Fri, 16 Feb 2007) | 5 lines For conferences that are configured in meetme.conf, check the configuration file every time someone joins the conference instead of only when the conference is first created. This is to ensure that changes to the pin numbers in the config file are always honored. (issue #9073) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@54969 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-12- Add the ability to register a callback to monitor state changes in anrussell1-2/+2
asynchronous dial operation. - Rename the various references to "status" to "state" in the dial API git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@54066 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-10Add some output for "show application SLAStation/SLATrunk"russell1-2/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-10Merge team/russell/sla_rewriterussell1-514/+1329
This is a completely new implementation of the SLA functionality introduced in Asterisk 1.4. It is now functional and ready for testing. However, I will be adding some additional features over the next week, as well. For information on how to set this up, see configs/sla.conf.sample and doc/sla.txt. In addition to the changes in app_meetme.c for the SLA implementation itself, this merge brings in various other changes: chan_sip: - Add the ability to indicate HOLD state in NOTIFY messages. - Queue HOLD and UNHOLD control frames even if the channel is not bridged to another channel. linkedlists.h: - Add support for rwlock based linked lists. dial.c: - Add the ability to run ast_dial_start() without a reference channel to inherit information from. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Merged revisions 53045 via svnmerge from russell1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53045 | russell | 2007-01-31 15:25:11 -0600 (Wed, 31 Jan 2007) | 3 lines Fix a bunch of places where pthread_attr_init() was called, but pthread_attr_destroy() was not. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-20Remove an unused instance of an unnamed enum.russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51343 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-19Remove another duplicated definitionrussell1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51341 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-19Remove a variable that was declared twice.russell1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51339 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most ↵kpfleming1-5/+5
cases git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49676 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-26Get rid of a needless memory allocation and only create a conference ↵file1-10/+6
structure in find_conf_realtime if data was read from realtime. (issue #8669 reported by robl) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48966 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Use the correct API call to say a device state changed. (Yes, I'm a nub.)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Don't access the conference structure after it has been freed.file1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48377 f38db490-d61c-443f-a65b-d21fe96a405b