AgeCommit message (Collapse)AuthorFilesLines
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
2007-06-21This little fix is in response to bug 10016, but may not cure it. The code ↵murf1-1/+2
is wrong, clearly. In a situation where you set the CDR's amaflags, and then ForkCDR, and then set the new CDR's amaflags to some other value, you will see that all CDRs have had their amaflags changed. This is not good. So I fixed it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70948 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21Don't explode if the gain option is specified without a value. (issue #9274 ↵file1-1/+5
reported by mfarver) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70898 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21it was pointed out that the cdr_custom config load could get a lock, and ↵murf1-4/+6
under certain circumstances, would never release it. I also noted that the situation where more than one mapping spec was warned about, but did not ignore further mappings as it had promised. I think I have fixed both situations. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70804 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21we activate the bchannels in TE mode on incoming calls only when we want to ↵crichter2-1/+2
connect the call. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70672 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Don't overwrite the configured username setting upon a REGISTER. (issue ↵file1-3/+1
#8565 reported by jsmith) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Issue 9997 - Timelimit times out the wrong channeltilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Fix a problem where an established call would not be properly disconnectedrussell1-29/+37
when a PRI disconnect is received depending on which cause code was received. (issue #9588, original patch by softins, updated patch from jtexter3, and some additional feedback from mhardeman) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70396 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20forgot one place .. crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70342 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20fixed a bug that was introduced by copy and paste in the last commit ↵crichter3-13/+30
..bchannels weren't cleaned properly. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70341 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20on receiption of cause:44 we mark the channel as in use and inform the user ↵crichter3-22/+52
about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70311 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19This fixes 9246, where channel variables are not available in the 'h' exten, ↵murf1-1/+10
on a 'ZOMBIE' channel. The fix is to consolidate the channel variables during a masquerade, and then copy the merged variables back onto the clone, so the zombie has the same vars that the 'original' has. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Handle the CC field in the RTP header. (issue #9384 reported by DoodleHu)file1-1/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69992 f38db490-d61c-443f-a65b-d21fe96a405b