aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2007-06-27simplified generation for dummy bchannels, also we mark them as dummies, so ↵crichter4-33/+45
they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72099 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27simplified channel finding and locking a lot. removed unnecessary #ifdefed ↵crichter2-91/+67
areas. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72087 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27isdn_lib.c didn't compilecrichter1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27for inbound TE calls, we setup the bchannel when we get the ↵crichter1-45/+4
CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72040 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26Don't try to install an init script that doesn't exist.qwell1-1/+3
Reported to me on #asterisk on Freenode IRC. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71847 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26Issue 10062 - Trying to move a message without selecting one first results ↵tilghman1-0/+5
in memory corruption git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Issue 10035 - handle_exec returns a result inconsistent with all of the ↵tilghman1-1/+1
other AGI commands git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71656 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Ignore other URIs after the first in a 300 Multiple Choice response. (issue ↵file1-1/+3
#10041 reported by homesick) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71414 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-24Revert the patch from issue 9654 due to an unexpected side effectrussell1-11/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-24Issue 10043 - There is a legitimate need to be able to set variables to the ↵tilghman2-11/+2
empty string. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71288 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Send an unhold indication when going off hold. (issue #10036 reported by speedy)file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71124 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Fix a few silly usages of ast_playstream() - it only ever returns 0...qwell2-20/+5
Issue 10035 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71065 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Fixed infinite loop when controlling terminal was lostbbryant1-5/+11
and return value of input function wasn't checked for errors. This would cause 100% cpu to be taken up. (closes issue #9654, issue #10010) Reported by: mnicholson, and eserra Idea for the patch from mnicholson, patched by me git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71064 f38db490-d61c-443f-a65b-d21fe96a405b