aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-06-29importing files for 1.2.20 releaserussell3-0/+6136
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.20@72632 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Creating tag for the release of asterisk-1.2.20russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.20@72631 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
2007-06-19Backport fix for crashes related to subscriptions from 1.4 ...russell1-0/+5
Fix a crash that could occur when handing device state changes. When the state of a device changes, the device state thread tells the extension state handling code that it changed. Then, the extension state code calls the callback in chan_sip so that it can update subscriptions to that extension. A pointer to a sip_pvt structure is passed to this function as the call which needs a NOTIFY sent. However, there was no locking done to ensure that the pvt struct didn't disappear during this process. (issue #9946, reported by tdonahue, patch by me, patch updated to trunk to use the sip_pvt lock wrappers by eliel) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69990 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Update BRIDGEPEER variable if set to the new channel name when a masquerade ↵file1-0/+6
happens. (issue #9699 reported by dimas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69986 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Perform an extra hangup check just in case. (issue #9589 reported by bcnit)file1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69894 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19when we send out a SETUP, but get no response, we should cleanup everything ↵crichter1-1/+7
after reception of a hangup. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Add parked call extension AFTER the parking slot has been announced, ↵file1-2/+2
otherwise two threads will try to handle the same channel and it will go kaboom. (issue #9191 reported by japple) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69846 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Set the peer name on the dialog to the one configured in sip.conf and NOT ↵file1-1/+1
the username to be used for authentication attempts. (issue #9967 reported by achauvin) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69765 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Issue 9998 - Remove SIG prefix, since it's not supported by kshtilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69743 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Fix an issue where the line number in an unterminated comment block error ↵qwell1-1/+1
message would show the wrong line number. "Reported" to me on #asterisk (somebody posted an error message, and I happened to catch it) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69469 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Backport rev 69010 from the 1.4 branch ...russell1-0/+5
In ast_channel_make_compatible(), just return if the channels' read and write formats already match up. There are code paths that call this function on a pair of channels multiple times. This made calls fail that were using g729 in some cases. The reason is that codec_g729a will unregister itself from the list of available translators will all licenses are in use. So, the first time the function got called, the right translation path was allocated. However, the second time it got called, the code would not find a translation path to/from g729 and make the call fail, even if the channel actually already had a g729 translation path allocated. (SPD-32) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Change a quite broken while loop to a for loop, so "continue;" works as ↵qwell1-49/+45
expected instead of eating 99% CPU... Issue 9966, patch by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69258 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Return group counting to previous behavior where you could only have one ↵file1-3/+7
group per category. (issue #9711 reported by irroot) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69127 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13restart indicator 0x80 is correct, at least that's what libpri does.crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12Bring RTP back to Asterisk at the end of a native bridge no matter what.file1-0/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68921 f38db490-d61c-443f-a65b-d21fe96a405b