aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-09-20Fix a minor spelling error.file1-1/+1
(closes issue #10769) Reported by: flefoll Patches: chan_sip.c.trunk.83071.inita-patch uploaded by flefoll (license 244) chan_sip.c.br14.83070.inita-patch uploaded by flefoll (license 244) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83230 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19The System() and TrySystem() applications can take a substantial amount ofrussell1-0/+4
time to execute while not servicing the channel. So, put the channel in autoservice while the command is being executed. (closes issue #10726, reported by mnicholson) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83179 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19Using curl can take a substantial amount of time, so the channel should berussell1-0/+4
autoserviced while waiting for it to complete. (closes issue #10725, reported by mnicholson) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83177 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19When handling a reload of chan_iax2, don't use an ao2_callback() to POKE allrussell1-1/+12
peers. Instead, use an iterator. By using an iterator, the peers container is not locked while the POKE is being done. It can cause a deadlock if the peers container is locked because poking a peer will try to lock pvt structs, while there is a lot of other code that will hold a pvt lock when trying to go lock the peers container. (reported to me directly by Loic Didelot. Thank you for the debug info!) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19Fix up another potential race condition. Do the loop decrementing use countrussell1-2/+1
on events with the eventq protected from being changed. (reported on IRC by Ivan) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83121 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19Protect the CDR record from modification by pbx_exec so that the application ↵file1-1/+5
data contains the Queue data. (closes issue #10761) Reported by: snar Patches: app-queue-mixmonitor.patch uploaded by snar (license 245) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83074 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19(closes issue #10760)file1-0/+2
Reported by: dimas Patches: chan_sip.patch uploaded by dimas (license 88) Read in subscribecontext option in general to be the default. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19removed comment which violates the coding guidelines.crichter1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83024 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19added 'astdtmf' option to allow configuring the asterisk dtmf detector ↵crichter3-4/+21
instead of the mISDN_dsp ones. also added the patch from irroot #10190, so that dtmf tones detected by the asterisk detector are passed outofband to asterisk, to make any use of dtmf tones at all. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83023 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19Change the description of app_flash to note how it can be a useful tool insteadrussell1-3/+4
of just saying that it is generally a worthless feature. (Thanks to Jim Van Meggelen for pointing it out and providing the proposed text) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82992 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Initialize a variable to NULL to make the world happy.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82961 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Add a new patch to handle interrupting the fgets() call when using FastAGI.russell2-4/+26
This version of the patch maintains the original behavior of the code when not using FastAGI. (closes issue #10553) Reported by: juggie Patches: res_agi_fgets-4.patch uploaded by juggie (license 24) res_agi_fgets_1.4svn.patch uploaded by juggie (license 24) Slight mods by me Tested by: juggie, festr git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82929 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Corrected patch applied in revision r82887. dbailey1-10/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Fixed a bug where http manager sessions prevented the eventq from being ↵dbailey1-10/+16
cleaned out because http manager sessions do not have a valid file descriptor. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Fix a memory leak that can occur on systems under higher load. The issue isrussell1-7/+5
that when events are appended to the master event queue, they use the number of active sessions as a use count so it will know when all active sessions at the time the event happened have consumed it. However, the handling of the number of sessions was not properly synchronized, so the use count was not always correct, causing an event to disappear early, or get stuck in the event queue for forever. (closes issue #9238, reported by bweschke, patch from Ivan, modified by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Moving the logic for handling an empty membername to the create_member ↵mmichelson1-15/+8
function so that there is a common place where this occurs instead of being spread out to several different places. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82865 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18there is no need for conditional logic to select ->interface or ↵kpfleming1-11/+5
->membername, snince ->membername will always be populated git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82834 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18When copying the contents from the wildcard peer, do a deep copy instead ofrussell1-1/+31
shallow copy so that it doesn't crash when beging destroyed. (closes issue #10546, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82802 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18Correct the allowexternaldomains option in SIP sample config.qwell1-1/+1
Issue 10753 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82751 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17Put a memset in ast_localtime() instead of a couple places in app_voicemailrussell2-3/+1
to prevent the problem everywhere instead of just a couple of places. (related to issue #10746) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82676 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17Initialize some memory to fix crashes when leaving voicemail. This problemrussell1-1/+7
was fixed by running Asterisk under valgrind. (closes issue #10746, reported by arcivanov, patched by me) *** IMPORTANT NOTE: We need to check to see if this same bug exists elsewhere. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82644 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17Handle the case where there are multiple dynamic features with the same digitrussell1-4/+8
mapping, but won't always match the activated on/by access controls. In that case, the code needs to keep trying features for a match. (reported by Atis on the asterisk-dev list, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82594 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17revert a change that wasn't supposed to be committed... doh!kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82592 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17fix a couple of places where a logical member name (if specified) was not ↵kpfleming2-6/+12
used, but instead the direct interface was listed git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82590 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-17(closes issue #10734)file1-1/+1
Reported by: asgaroth Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82514 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14closes issue #10668; thanks to arkadia for his patch; had to leave out the ↵murf1-26/+32
bit about ending the previous cdr in the fork; it would destroy current implementations. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Add a note to help clarify the value set with the echocancel option.russell1-0/+3
(inspired by Malcolm's blog post on blogs.digium.com about HPEC) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82435 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Crap, I broke the build. Fixed.mmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82398 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Adding member name field to manager events where they were missing beforemmichelson1-2/+4
(closes issue #10721, reported by snar) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82396 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14If a channel does not have an owner, do not try to set a channel variable.qwell1-1/+1
This will end up making the channel variable global, which is not right. Closes issue #10720, patch by flefoll. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82394 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Add checking for libusb here, so nobody has to deal with conflicts in therussell5-6/+450
chan_usbradio-1.4 branch every time the configure script gets changed git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82385 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Remove chan_usbradio from the main 1.4 branch. It can't live here because werussell7-7241/+0
have a strict policy to not include new features in release branches. However, I'm going to merge it into trunk, and I also have a special 1.4 based branch that includes this module. svn co http://svn.digium.com/svn/asterisk/team/jdixon/chan_usbradio-1.4 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82382 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Fixing a typo in the coding guidelinesmmichelson1-1/+1
(closes issue #10717, reported and patched by leedm777) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82376 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Fixed problem with changes made to cdr functionalityjdixon1-0/+45
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82368 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14this new driver may not live in this branch for long (since it is a new ↵kpfleming1-0/+1
feature), but it definitely should not be built by default git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82367 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-14Added channel driver for USB Radio device andjdixon9-76/+7559
support thereof. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82366 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Fix a small typo.qwell1-1/+1
retrytime > waittime git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Preemptively fixing a possible segfault. It is possible that queuename is NULL mmichelson1-1/+1
(meaning pause ALL queues), so use q->name instead. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82346 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Fix a crash that could occur in cdr_csv when mutliple threads tried to close ↵qwell1-10/+18
the same file. Do we actually need the locking here? What happens if you open the same file twice, and two threads try to write to it at the same time? Is fputs() going to write out the entire line at once? I suspect that it could be possible for the second fopen to run during the first fputs, so the position could be in the middle of the previously written line... Issue 10347, initial patch by explidous (but I removed all of the paranoia stuff..) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82344 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13resolve a warning when not building under dev moderussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82339 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Only compile in tracking astobj2 statistics if dev-mode is enabled. Also, whenrussell3-5/+36
dev mode is enabled, register the CLI command that can be used to run the astobj2 test and print out statistics. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82337 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Merged revisions 82334 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r82334 | kpfleming | 2007-09-13 11:10:12 -0700 (Thu, 13 Sep 2007) | 2 lines clarify the OpenSSL and OpenH323 license exceptions ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Added logic to handle the unlikely case that someone has two queues with the ↵mmichelson1-1/+13
same name. Asterisk will log a warning message letting the user know that one was already defined with that name and is it skipping all further instances. This also will work for realtime queues but in order for that to happen, the user would have to trigger a perfectly timed reload as a realtime queue is being looked up, which is highly unlikely (but taken care of nonetheless). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82326 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Closes issue #9401, reported and patched by irrot, with slightphsultan1-13/+29
modifications by me. Handle DTMF sent by Asterisk properly. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82309 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12Fix a check of the wrong pointer, as pointed out by an XXX comment left in russell1-1/+1
the code. The problem was harmless, however. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82296 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12Oops, wrong location for FreeBSD zone filestilghman1-4/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82291 f38db490-d61c-443f-a65b-d21fe96a405b
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-12Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so wetilghman4-721/+988
updated the localtime.c file from source. Next we'll have to write ast_strptime to match. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82285 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12Clean up the output of "asterisk -h". This tweaks the wording and wraps linesrussell1-4/+6
at 80 characters. (closes issue #10699, seanbright) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82280 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12revert patch from issue #10553, as someone not using fastagi reported that thisrussell1-16/+1
broke their system. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82278 f38db490-d61c-443f-a65b-d21fe96a405b