aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-07-18Store prior to copy (closes issue #10193)tilghman1-1/+9
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75748 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18removed the word 'pissed' from ast_log(...) function call for BE-90dhubbard1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75657 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Properly check for the length in the skinny packet to prevent an invalid memcpy.russell1-1/+1
(ASA-2007-016) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75449 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Ensure that when encoding the contents of an ast_frame into an iax_frame, thatrussell3-4/+17
the size of the destination buffer is known in the iax_frame so that code won't write past the end of the allocated buffer when sending outgoing frames. (ASA-2007-014) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17After parsing information elements in IAX frames, set the data length to zero,russell1-0/+1
so that code later on does not think it has data to copy. (ASA-2007-015) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75440 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16provide proper copyright/license attribution for this structure that was ↵kpfleming1-0/+59
copied from a BSD-licensed header file long, long ago... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75304 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16install the LICENSE file along with the music fileskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75257 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16move FreePlayMusic files into a subdirectory, and include a license ↵kpfleming5-1/+4
statement for them git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75251 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Fix a couple potential minor memory leaks. load_moh_classes() could returnrussell1-2/+2
without destroying the loaded configuration. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75107 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Fixed an issue where chanspy flags were uninitialized if no options were passed.mmichelson1-0/+2
What triggered this investigation was an IRC chat where some people's quiet flags were set while others' weren't even though none of them had specified the q option. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75066 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Ensure that adding a user to the list of users of a specific music on holdrussell1-0/+2
class is not done at the same time as any of the other operations on this list to prevent list corruption. Using the global moh_data lock for this is not ideal, but it is what is used to protect these lists everywhere else in the module, and I am only changing what is necessary to fix the bug. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75059 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13(closes issue #9660)russell1-3/+12
Reported by: mmacvicar Patches submitted by: bbryant, russell Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous When using a TDM400P (and probably other analog cards) there was a chance that you could hang up and pick the phone back up where it has been long enough to be not considered a flash hook, but too soon such that the device reports that it is busy and the person on the phone will only hear silence. This patch makes chan_zap more tolerant of this and gives the device a couple of seconds to succeed so the person on the phone happily gets their dialtone. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Only print out a warning for situations where it is actually helpful. (issue ↵file1-8/+9
#10187 reported by denke) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74814 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11The function make_trunk() can fail and return -1 instead of a valid new callrussell1-3/+8
number. Fix the uses of this function to handle this instead of treating it as the new call number. This would cause a deadlock and memory corruption. (possible cause of issue #9614 and others, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74766 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.mmichelson1-0/+2
(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74719 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Make sure that the ESCAPE immediately follows the condition that uses LIKE.russell1-10/+8
This fixes realtime extensions with ODBC. (closes issue #10175, reported by stuarth, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74656 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Use some Makefile magic to determine if linux/compiler.h is present. (issue ↵file2-0/+7
#10174 reported by francesco_r) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74587 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix an issue where it was possible to have a service level of over 100%qwell1-10/+13
Between the time recalc_holdtime and update_queue was called, it was possible that the call could have been hungup. Move both additions to the same place, so this won't happen. Issue 10158, initial patch by makoto, modified by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74427 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix an issue with wrapuptime not working when using AgentLogin.qwell1-4/+6
Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74376 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Use res_ndestroy on systems that have it. Otherwise, use res_nclose.qwell1-0/+7
This prevents a memleak on NetBSD - and possibly others. Issue 10133, patch by me, reported and tested by scw git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74373 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix a small typo in description in of Voicemail() application.qwell1-1/+1
Issue 10170, patch by casper. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74316 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Only use ESCAPE when LIKE is used. russell1-2/+4
(issue #10075, this part reported by jmls on IRC, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74313 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Ensure the group information category exists before trying to do a string ↵file1-2/+2
comparison with it. (issue #10171 reported by mlegas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74264 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09When the specified class isn't found, properly fall back to the channel's musicrussell1-9/+9
class or the default. (issue #10123, reported by blitzrage, patches from juggie, qwell, and me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74165 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Several chan_zap options were not working on reload because they were ↵qwell1-8/+8
arbitrarily disallowed when reloading some/most PRI options (such as signalling) was disallowed. Options such as polarityonanswerdelay and answeronpolarityswitch can safely be changed on a reload. This corrects that behavior. Issue 9186, patch by tzafrir. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74158 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06If a sip_pvt struct has already registered an extension state callback,russell1-1/+4
remove the old one before adding a new one. If this isn't done, Asterisk will crash. (issue #10120) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73768 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06(closes issue #10075)russell1-0/+4
Reported by: apsaras Patches submitted by: Corydon76 Tested by: apsaras Fix a problem with MSSQL 2005 by explicitly stating that '\' is being used as an escape character. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73684 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06(closes issue #10125)russell1-2/+6
Reported by: makoto Patches submitted by: makoto This fixes a crash in chan_sip that happens when the bindaddr setting is not valid on Asterisk startup, gets fixed, and then a reload gets issued. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73678 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Fixed a bug wherein agents get stuck busy. (issue 9618, reported by ↵mmichelson1-1/+1
jiddings, patched by moi) closes issue #9618 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73674 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support ↵kpfleming1-0/+3
it for G.729 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73547 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Copy language information to the dialog structure when calling a peer for ↵file1-0/+2
situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Tweak spy locking. (issue #9951 reported by welles)file2-9/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73349 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Actually check to make sure a PBX was started on one of the Local channels ↵file1-3/+3
instead of blindly assuming it was. (issue #10112 reported by makoto) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73318 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Reset ServicelevelPerf variable back to 0 if we are unable to calculate it ↵file1-2/+1
each time... otherwise we will get previous values. (issue #10117 reported by noriyuki) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73315 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04bchannel configurations like echocancel and volume control, need to be ↵crichter1-0/+20
setuped on inbound calls too. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04bad bug in overlapdial case, we called start_pbx multiple times, because the ↵crichter1-1/+6
state wasn't changed.. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03RetryDial should accept a 0 argument, but it does not, because atoi does not ↵tilghman1-2/+2
distinguish between 0 and error (closes issue #10106) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03fixed issue, that misdn_l2l1_check could only be called from mISDN Source ↵crichter1-5/+0
channels.. #9449 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73004 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Fix an issue with playing "oclock" multiple times in French with 24 hour ↵qwell1-5/+0
time format. Issue 10101 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72924 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-01When appending lines to call files to keep track of retries, write a leadingrussell1-1/+1
newline just in case the original call file did not have a newline at the end. This fix is in response to a problem I saw reported on the asterisk-users mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Backport changes that make chan_iax2 not start the PBX on an incoming channelrussell1-8/+34
until the three-way call setup is completed. These changes are already in 1.4 and trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72629 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29check if the bchannel stack id is already used, if so don't use it a second ↵crichter2-1/+17
time. Also added a release_chan lock, so that the same chan_list object cannot be freed twice. chan_misdn does not crash anymore on heavy load with these changes. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Update documentation to clarify variable usage with MixMonitor. (issue #9494 ↵file1-2/+2
reported by netoguy) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72378 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Reinstating patch. This actually fixes the problem, however I was running a ↵bbryant1-0/+7
development branch without it and mistakenly thought it wasn't fixed. Fixes issue #10010, and #9654: 100% CPU usage caused by an asterisk console losing it's controlling terminal. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72373 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Reverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010bbryant1-7/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Fix issue where queue log events might be missing. (issue #7765 reported by ↵file1-0/+4
mtryfoss) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Fix a minor issue with parsing the priority number. You could have as muchrussell1-0/+2
whitespace as you want around a numeric priority, but you couldn't have any whitespace around a special priority like "n" or "hint". (issue #10039, reported by mitheloc, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72267 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Fixes 100% load when controlling terminal disappears.bbryant1-0/+8
Issue #9654, #10010 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72259 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27I may possibly get shot for doing this... but... defer CDR processing until ↵file1-1/+7
after the channel has been dealt with. This should eliminate all of the issues with channels going funky (SIP/PRI) when you are posting CDRs to a database that is either slow or unavailable and do not want to enable batching. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72256 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Fix another problem in voicemail with missing symbols.qwell1-4/+4
Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72184 f38db490-d61c-443f-a65b-d21fe96a405b