]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoremoved the word 'pissed' from ast_log(...) function call for BE-90
Dwayne M. Hubbard [Wed, 18 Jul 2007 17:48:33 +0000 (17:48 +0000)] 
removed the word 'pissed' from ast_log(...) function call for BE-90

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75657 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoProperly check for the length in the skinny packet to prevent an invalid memcpy.
Russell Bryant [Tue, 17 Jul 2007 20:57:09 +0000 (20:57 +0000)] 
Properly check for the length in the skinny packet to prevent an invalid memcpy.
(ASA-2007-016)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75449 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEnsure that when encoding the contents of an ast_frame into an iax_frame, that
Russell Bryant [Tue, 17 Jul 2007 20:45:27 +0000 (20:45 +0000)] 
Ensure that when encoding the contents of an ast_frame into an iax_frame, that
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@75444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAfter parsing information elements in IAX frames, set the data length to zero,
Russell Bryant [Tue, 17 Jul 2007 20:41:41 +0000 (20:41 +0000)] 
After parsing information elements in IAX frames, set the data length to zero,
so that code later on does not think it has data to copy.
(ASA-2007-015)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75440 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoprovide proper copyright/license attribution for this structure that was copied from...
Kevin P. Fleming [Mon, 16 Jul 2007 20:46:58 +0000 (20:46 +0000)] 
provide proper copyright/license attribution for this structure that was copied from a BSD-licensed header file long, long ago...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75304 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoinstall the LICENSE file along with the music files
Kevin P. Fleming [Mon, 16 Jul 2007 18:33:02 +0000 (18:33 +0000)] 
install the LICENSE file along with the music files

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75257 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agomove FreePlayMusic files into a subdirectory, and include a license statement for...
Kevin P. Fleming [Mon, 16 Jul 2007 18:10:40 +0000 (18:10 +0000)] 
move FreePlayMusic files into a subdirectory, and include a license statement for them

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75251 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a couple potential minor memory leaks. load_moh_classes() could return
Russell Bryant [Fri, 13 Jul 2007 20:35:22 +0000 (20:35 +0000)] 
Fix a couple potential minor memory leaks.  load_moh_classes() could return
without destroying the loaded configuration.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75107 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed an issue where chanspy flags were uninitialized if no options were passed.
Mark Michelson [Fri, 13 Jul 2007 20:10:39 +0000 (20:10 +0000)] 
Fixed an issue where chanspy flags were uninitialized if no options were passed.
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@75066 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEnsure that adding a user to the list of users of a specific music on hold
Russell Bryant [Fri, 13 Jul 2007 20:07:21 +0000 (20:07 +0000)] 
Ensure that adding a user to the list of users of a specific music on hold
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@75059 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #9660)
Russell Bryant [Fri, 13 Jul 2007 19:10:00 +0000 (19:10 +0000)] 
(closes issue #9660)
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@75052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly print out a warning for situations where it is actually helpful. (issue #10187...
Joshua Colp [Thu, 12 Jul 2007 15:51:24 +0000 (15:51 +0000)] 
Only print out a warning for situations where it is actually helpful. (issue #10187 reported by denke)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74814 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThe function make_trunk() can fail and return -1 instead of a valid new call
Russell Bryant [Wed, 11 Jul 2007 22:53:26 +0000 (22:53 +0000)] 
The function make_trunk() can fail and return -1 instead of a valid new call
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@74766 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThe cli command "agent logoff Agent/x soft" did not work...at all. Now it does.
Mark Michelson [Wed, 11 Jul 2007 21:12:30 +0000 (21:12 +0000)] 
The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.

(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure that the ESCAPE immediately follows the condition that uses LIKE.
Russell Bryant [Wed, 11 Jul 2007 18:33:23 +0000 (18:33 +0000)] 
Make sure that the ESCAPE immediately follows the condition that uses LIKE.
This fixes realtime extensions with ODBC.
(closes issue #10175, reported by stuarth, patch by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74656 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse some Makefile magic to determine if linux/compiler.h is present. (issue #10174...
Joshua Colp [Wed, 11 Jul 2007 17:15:11 +0000 (17:15 +0000)] 
Use some Makefile magic to determine if linux/compiler.h is present. (issue #10174 reported by francesco_r)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74587 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue where it was possible to have a service level of over 100%
Jason Parker [Tue, 10 Jul 2007 19:57:20 +0000 (19:57 +0000)] 
Fix an issue where it was possible to have a service level of over 100%
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@74427 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue with wrapuptime not working when using AgentLogin.
Jason Parker [Tue, 10 Jul 2007 19:03:45 +0000 (19:03 +0000)] 
Fix an issue with wrapuptime not working when using AgentLogin.

Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74376 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse res_ndestroy on systems that have it. Otherwise, use res_nclose.
Jason Parker [Tue, 10 Jul 2007 18:37:23 +0000 (18:37 +0000)] 
Use res_ndestroy on systems that have it.  Otherwise, use res_nclose.
This prevents a memleak on NetBSD - and possibly others.

Issue 10133, patch by me, reported and tested by scw

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a small typo in description in of Voicemail() application.
Jason Parker [Tue, 10 Jul 2007 15:37:54 +0000 (15:37 +0000)] 
Fix a small typo in description in of Voicemail() application.

Issue 10170, patch by casper.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74316 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly use ESCAPE when LIKE is used.
Russell Bryant [Tue, 10 Jul 2007 15:30:20 +0000 (15:30 +0000)] 
Only use ESCAPE when LIKE is used.
(issue #10075, this part reported by jmls on IRC, patch by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74313 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEnsure the group information category exists before trying to do a string comparison...
Joshua Colp [Tue, 10 Jul 2007 14:48:00 +0000 (14:48 +0000)] 
Ensure the group information category exists before trying to do a string comparison with it. (issue #10171 reported by mlegas)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen the specified class isn't found, properly fall back to the channel's music
Russell Bryant [Mon, 9 Jul 2007 21:00:17 +0000 (21:00 +0000)] 
When the specified class isn't found, properly fall back to the channel's music
class or the default.
(issue #10123, reported by blitzrage, patches from juggie, qwell, and me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74165 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSeveral chan_zap options were not working on reload because they were arbitrarily
Jason Parker [Mon, 9 Jul 2007 20:18:15 +0000 (20:18 +0000)] 
Several chan_zap options were not working on reload because they were 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@74158 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf a sip_pvt struct has already registered an extension state callback,
Russell Bryant [Fri, 6 Jul 2007 23:01:22 +0000 (23:01 +0000)] 
If a sip_pvt struct has already registered an extension state callback,
remove the old one before adding a new one.  If this isn't done, Asterisk
will crash.  (issue #10120)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73768 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10075)
Russell Bryant [Fri, 6 Jul 2007 16:06:27 +0000 (16:06 +0000)] 
(closes issue #10075)
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@73684 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10125)
Russell Bryant [Fri, 6 Jul 2007 15:55:41 +0000 (15:55 +0000)] 
(closes issue #10125)
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@73678 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched...
Mark Michelson [Fri, 6 Jul 2007 15:26:40 +0000 (15:26 +0000)] 
Fixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched by moi)

closes issue #9618

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73674 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for...
Kevin P. Fleming [Thu, 5 Jul 2007 22:11:51 +0000 (22:11 +0000)] 
we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoCopy language information to the dialog structure when calling a peer for situations...
Joshua Colp [Thu, 5 Jul 2007 19:15:18 +0000 (19:15 +0000)] 
Copy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoTweak spy locking. (issue #9951 reported by welles)
Joshua Colp [Thu, 5 Jul 2007 14:19:14 +0000 (14:19 +0000)] 
Tweak spy locking. (issue #9951 reported by welles)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoActually check to make sure a PBX was started on one of the Local channels instead...
Joshua Colp [Thu, 5 Jul 2007 13:26:02 +0000 (13:26 +0000)] 
Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73318 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReset ServicelevelPerf variable back to 0 if we are unable to calculate it each time...
Joshua Colp [Thu, 5 Jul 2007 13:19:17 +0000 (13:19 +0000)] 
Reset ServicelevelPerf variable back to 0 if we are unable to calculate it each time... otherwise we will get previous values. (issue #10117 reported by noriyuki)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73315 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agobchannel configurations like echocancel and volume control, need to be setuped on...
Christian Richter [Wed, 4 Jul 2007 14:50:58 +0000 (14:50 +0000)] 
bchannel configurations like echocancel and volume control, need to be setuped on inbound calls too.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73252 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agobad bug in overlapdial case, we called start_pbx multiple times, because the state...
Christian Richter [Wed, 4 Jul 2007 08:20:54 +0000 (08:20 +0000)] 
bad bug in overlapdial case, we called start_pbx multiple times, because the state wasn't changed..

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73207 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRetryDial should accept a 0 argument, but it does not, because atoi does not distingu...
Tilghman Lesher [Tue, 3 Jul 2007 12:34:14 +0000 (12:34 +0000)] 
RetryDial should accept a 0 argument, but it does not, because atoi does not distinguish between 0 and error (closes issue #10106)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed issue, that misdn_l2l1_check could only be called from mISDN Source channels...
Christian Richter [Tue, 3 Jul 2007 08:04:35 +0000 (08:04 +0000)] 
fixed issue, that misdn_l2l1_check could only be called from mISDN Source channels.. #9449

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73004 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue with playing "oclock" multiple times in French with 24 hour time format.
Jason Parker [Mon, 2 Jul 2007 17:58:25 +0000 (17:58 +0000)] 
Fix an issue with playing "oclock" multiple times in French with 24 hour time format.

Issue 10101

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72924 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen appending lines to call files to keep track of retries, write a leading
Russell Bryant [Sun, 1 Jul 2007 23:51:34 +0000 (23:51 +0000)] 
When appending lines to call files to keep track of retries, write a leading
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBackport changes that make chan_iax2 not start the PBX on an incoming channel
Russell Bryant [Fri, 29 Jun 2007 16:30:56 +0000 (16:30 +0000)] 
Backport changes that make chan_iax2 not start the PBX on an incoming channel
until the three-way call setup is completed.  These changes are already in 1.4
and trunk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agocheck if the bchannel stack id is already used, if so don't use it a second time...
Christian Richter [Fri, 29 Jun 2007 13:08:26 +0000 (13:08 +0000)] 
check if the bchannel stack id is already used, if so don't use it a second 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72585 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUpdate documentation to clarify variable usage with MixMonitor. (issue #9494 reported...
Joshua Colp [Wed, 27 Jun 2007 23:24:01 +0000 (23:24 +0000)] 
Update documentation to clarify variable usage with MixMonitor. (issue #9494 reported by netoguy)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReinstating patch. This actually fixes the problem, however I was running a developme...
Brett Bryant [Wed, 27 Jun 2007 23:22:13 +0000 (23:22 +0000)] 
Reinstating patch. This actually fixes the problem, however I was running a 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010
Brett Bryant [Wed, 27 Jun 2007 22:58:53 +0000 (22:58 +0000)] 
Reverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix issue where queue log events might be missing. (issue #7765 reported by mtryfoss)
Joshua Colp [Wed, 27 Jun 2007 22:43:11 +0000 (22:43 +0000)] 
Fix issue where queue log events might be missing. (issue #7765 reported by mtryfoss)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72327 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a minor issue with parsing the priority number. You could have as much
Russell Bryant [Wed, 27 Jun 2007 21:06:45 +0000 (21:06 +0000)] 
Fix a minor issue with parsing the priority number.  You could have as much
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72267 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixes 100% load when controlling terminal disappears.
Brett Bryant [Wed, 27 Jun 2007 20:43:53 +0000 (20:43 +0000)] 
Fixes 100% load when controlling terminal disappears.

Issue #9654, #10010

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72259 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoI may possibly get shot for doing this... but... defer CDR processing until after...
Joshua Colp [Wed, 27 Jun 2007 20:23:24 +0000 (20:23 +0000)] 
I may possibly get shot for doing this... but... defer CDR processing until 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72256 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix another problem in voicemail with missing symbols.
Jason Parker [Wed, 27 Jun 2007 18:40:15 +0000 (18:40 +0000)] 
Fix another problem in voicemail with missing symbols.

Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agosimplified generation for dummy bchannels, also we mark them as dummies, so they...
Christian Richter [Wed, 27 Jun 2007 13:22:37 +0000 (13:22 +0000)] 
simplified generation for dummy bchannels, also we mark them as dummies, so 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agosimplified channel finding and locking a lot. removed unnecessary #ifdefed areas.
Christian Richter [Wed, 27 Jun 2007 09:26:53 +0000 (09:26 +0000)] 
simplified channel finding and locking a lot. removed unnecessary #ifdefed areas.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoisdn_lib.c didn't compile
Christian Richter [Wed, 27 Jun 2007 07:54:30 +0000 (07:54 +0000)] 
isdn_lib.c didn't compile

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72041 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofor inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE,...
Christian Richter [Wed, 27 Jun 2007 07:49:27 +0000 (07:49 +0000)] 
for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72040 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't try to install an init script that doesn't exist.
Jason Parker [Tue, 26 Jun 2007 17:49:14 +0000 (17:49 +0000)] 
Don't try to install an init script that doesn't exist.

Reported to me on #asterisk on Freenode IRC.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 10062 - Trying to move a message without selecting one first results in memory...
Tilghman Lesher [Tue, 26 Jun 2007 12:25:58 +0000 (12:25 +0000)] 
Issue 10062 - Trying to move a message without selecting one first results in memory corruption

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71750 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 10035 - handle_exec returns a result inconsistent with all of the other AGI...
Tilghman Lesher [Mon, 25 Jun 2007 18:12:37 +0000 (18:12 +0000)] 
Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71656 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIgnore other URIs after the first in a 300 Multiple Choice response. (issue #10041...
Joshua Colp [Mon, 25 Jun 2007 01:02:49 +0000 (01:02 +0000)] 
Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert the patch from issue 9654 due to an unexpected side effect
Russell Bryant [Sun, 24 Jun 2007 20:04:21 +0000 (20:04 +0000)] 
Revert the patch from issue 9654 due to an unexpected side effect

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 10043 - There is a legitimate need to be able to set variables to the empty...
Tilghman Lesher [Sun, 24 Jun 2007 17:32:21 +0000 (17:32 +0000)] 
Issue 10043 - There is a legitimate need to be able to set variables to the empty string.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSend an unhold indication when going off hold. (issue #10036 reported by speedy)
Joshua Colp [Fri, 22 Jun 2007 16:02:40 +0000 (16:02 +0000)] 
Send an unhold indication when going off hold. (issue #10036 reported by speedy)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71124 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a few silly usages of ast_playstream() - it only ever returns 0...
Jason Parker [Fri, 22 Jun 2007 14:52:18 +0000 (14:52 +0000)] 
Fix a few silly usages of ast_playstream() - it only ever returns 0...

Issue 10035

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71065 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed infinite loop when controlling terminal was lost
Brett Bryant [Fri, 22 Jun 2007 14:39:34 +0000 (14:39 +0000)] 
Fixed infinite loop when controlling terminal was lost
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@71064 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis little fix is in response to bug 10016, but may not cure it. The code is wrong...
Steve Murphy [Thu, 21 Jun 2007 22:29:50 +0000 (22:29 +0000)] 
This little fix is in response to bug 10016, but may not cure it. The code 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@70948 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't explode if the gain option is specified without a value. (issue #9274 reported...
Joshua Colp [Thu, 21 Jun 2007 21:37:55 +0000 (21:37 +0000)] 
Don't explode if the gain option is specified without a value. (issue #9274 reported by mfarver)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70898 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoit was pointed out that the cdr_custom config load could get a lock, and under certai...
Steve Murphy [Thu, 21 Jun 2007 19:13:17 +0000 (19:13 +0000)] 
it was pointed out that the cdr_custom config load could get a lock, and 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@70804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe activate the bchannels in TE mode on incoming calls only when we want to connect...
Christian Richter [Thu, 21 Jun 2007 13:11:29 +0000 (13:11 +0000)] 
we activate the bchannels in TE mode on incoming calls only when we want to connect the call.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70672 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't overwrite the configured username setting upon a REGISTER. (issue #8565 reporte...
Joshua Colp [Wed, 20 Jun 2007 22:20:16 +0000 (22:20 +0000)] 
Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70551 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9997 - Timelimit times out the wrong channel
Tilghman Lesher [Wed, 20 Jun 2007 19:25:54 +0000 (19:25 +0000)] 
Issue 9997 - Timelimit times out the wrong channel

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a problem where an established call would not be properly disconnected
Russell Bryant [Wed, 20 Jun 2007 18:45:38 +0000 (18:45 +0000)] 
Fix a problem where an established call would not be properly disconnected
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@70396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoforgot one place ..
Christian Richter [Wed, 20 Jun 2007 15:42:39 +0000 (15:42 +0000)] 
forgot one place ..

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed a bug that was introduced by copy and paste in the last commit ..bchannels...
Christian Richter [Wed, 20 Jun 2007 15:29:09 +0000 (15:29 +0000)] 
fixed a bug that was introduced by copy and paste in the last commit ..bchannels weren't cleaned properly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70341 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoon receiption of cause:44 we mark the channel as in use and inform the user about...
Christian Richter [Wed, 20 Jun 2007 14:47:59 +0000 (14:47 +0000)] 
on receiption of cause:44 we mark the channel as in use and inform the user 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@70311 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis fixes 9246, where channel variables are not available in the 'h' exten, on a...
Steve Murphy [Tue, 19 Jun 2007 18:07:59 +0000 (18:07 +0000)] 
This fixes 9246, where channel variables are not available in the 'h' exten, 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@70053 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoHandle the CC field in the RTP header. (issue #9384 reported by DoodleHu)
Joshua Colp [Tue, 19 Jun 2007 17:00:58 +0000 (17:00 +0000)] 
Handle the CC field in the RTP header. (issue #9384 reported by DoodleHu)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBackport fix for crashes related to subscriptions from 1.4 ...
Russell Bryant [Tue, 19 Jun 2007 16:45:37 +0000 (16:45 +0000)] 
Backport fix for crashes related to subscriptions from 1.4 ...

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: https://origsvn.digium.com/svn/asterisk/branches/1.2@69990 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUpdate BRIDGEPEER variable if set to the new channel name when a masquerade happens...
Joshua Colp [Tue, 19 Jun 2007 16:21:29 +0000 (16:21 +0000)] 
Update BRIDGEPEER variable if set to the new channel name when a masquerade happens. (issue #9699 reported by dimas)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69986 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPerform an extra hangup check just in case. (issue #9589 reported by bcnit)
Joshua Colp [Tue, 19 Jun 2007 13:54:03 +0000 (13:54 +0000)] 
Perform an extra hangup check just in case. (issue #9589 reported by bcnit)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69894 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowhen we send out a SETUP, but get no response, we should cleanup everything after...
Christian Richter [Tue, 19 Jun 2007 13:23:04 +0000 (13:23 +0000)] 
when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69887 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd parked call extension AFTER the parking slot has been announced, otherwise two...
Joshua Colp [Tue, 19 Jun 2007 12:57:55 +0000 (12:57 +0000)] 
Add parked call extension AFTER the parking slot has been announced, otherwise two threads will try to handle the same channel and it will go kaboom. (issue #9191 reported by japple)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSet the peer name on the dialog to the one configured in sip.conf and NOT the usernam...
Joshua Colp [Mon, 18 Jun 2007 18:13:03 +0000 (18:13 +0000)] 
Set the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69765 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9998 - Remove SIG prefix, since it's not supported by ksh
Tilghman Lesher [Mon, 18 Jun 2007 17:45:15 +0000 (17:45 +0000)] 
Issue 9998 - Remove SIG prefix, since it's not supported by ksh

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue where the line number in an unterminated comment block error message...
Jason Parker [Thu, 14 Jun 2007 23:21:45 +0000 (23:21 +0000)] 
Fix an issue where the line number in an unterminated comment block error 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@69469 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBackport rev 69010 from the 1.4 branch ...
Russell Bryant [Thu, 14 Jun 2007 20:56:19 +0000 (20:56 +0000)] 
Backport rev 69010 from the 1.4 branch ...

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: https://origsvn.digium.com/svn/asterisk/branches/1.2@69347 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChange a quite broken while loop to a for loop, so "continue;" works as expected...
Jason Parker [Thu, 14 Jun 2007 15:15:53 +0000 (15:15 +0000)] 
Change a quite broken while loop to a for loop, so "continue;" works as expected instead of eating 99% CPU...

Issue 9966, patch by me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69258 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReturn group counting to previous behavior where you could only have one group per...
Joshua Colp [Wed, 13 Jun 2007 18:12:48 +0000 (18:12 +0000)] 
Return group counting to previous behavior where you could only have one group per category. (issue #9711 reported by irroot)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agorestart indicator 0x80 is correct, at least that's what libpri does.
Christian Richter [Wed, 13 Jun 2007 09:55:54 +0000 (09:55 +0000)] 
restart indicator 0x80 is correct, at least that's what libpri does.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69053 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBring RTP back to Asterisk at the end of a native bridge no matter what.
Joshua Colp [Tue, 12 Jun 2007 14:18:57 +0000 (14:18 +0000)] 
Bring RTP back to Asterisk at the end of a native bridge no matter what.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68921 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoif the bridged partner is mISDN too we should not send dtmf tones, they are transmitt...
Christian Richter [Tue, 12 Jun 2007 08:35:22 +0000 (08:35 +0000)] 
if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68887 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoif we have already some digits, we just stop the tones.
Christian Richter [Tue, 12 Jun 2007 07:48:52 +0000 (07:48 +0000)] 
if we have already some digits, we just stop the tones.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68874 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded check for NULL Pointer when calling misdn_new. Asterisk does not allow us to...
Christian Richter [Mon, 11 Jun 2007 16:49:00 +0000 (16:49 +0000)] 
added check for NULL Pointer when calling misdn_new. Asterisk does not allow us to create channels anymore when stop gracefully is used :). also modified the restart_indicator to 0

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68732 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoImprove deadlock handling of the channel list. (issue #8376 reported by one47)
Joshua Colp [Mon, 11 Jun 2007 14:29:58 +0000 (14:29 +0000)] 
Improve deadlock handling of the channel list. (issue #8376 reported by one47)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68682 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed problem that the dummybc chanels had no lock, checking for the lock now. Also...
Christian Richter [Mon, 11 Jun 2007 09:18:01 +0000 (09:18 +0000)] 
fixed problem that the dummybc chanels had no lock, checking for the lock now. Also fixed the channel restart stuff, we can now specify and restart particular channels too.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68631 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't automatically hang up after running Dictate so that callers can exit
Russell Bryant [Fri, 8 Jun 2007 22:22:36 +0000 (22:22 +0000)] 
Don't automatically hang up after running Dictate so that callers can exit
cleanly using '#'
(closes issue #9577, patch from Thomas Andrews)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68526 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't call ast_waitstream_full when the control file descriptor and audio file descri...
Joshua Colp [Fri, 8 Jun 2007 00:15:33 +0000 (00:15 +0000)] 
Don't call ast_waitstream_full when the control file descriptor and audio file descriptor are not set, simply call ast_waitstream! (issue #8530 reported by rickead2000)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68397 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDo a DNS lookup immediately upon calling the dnsmgr function, don't wait until a...
Joshua Colp [Thu, 7 Jun 2007 23:59:04 +0000 (23:59 +0000)] 
Do a DNS lookup immediately upon calling the dnsmgr function, don't wait until a refresh happens. (issue #9097 reported by plack)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68368 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a problem where saying a character wouldn't properly break out when the caller...
Russell Bryant [Thu, 7 Jun 2007 23:13:33 +0000 (23:13 +0000)] 
Fix a problem where saying a character wouldn't properly break out when the caller pressed '#'
(issue #8113, reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't try to save voicemail greetings unless the user presses '1' to accept/save.
Jason Parker [Thu, 7 Jun 2007 20:02:50 +0000 (20:02 +0000)] 
Don't try to save voicemail greetings unless the user presses '1' to accept/save.

Issue 9904, patch by me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68204 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow the 'g' option to work if used with the 'S' option. (issue #9888 reported by...
Joshua Colp [Thu, 7 Jun 2007 14:19:40 +0000 (14:19 +0000)] 
Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly notify the devicestate system of a peer state change when the peer is built...
Joshua Colp [Thu, 7 Jun 2007 00:09:13 +0000 (00:09 +0000)] 
Only notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67938 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWe have some bug reports showing crashes due to a double free of a channel.
Russell Bryant [Wed, 6 Jun 2007 16:40:51 +0000 (16:40 +0000)] 
We have some bug reports showing crashes due to a double free of a channel.
Add a sanity check to ast_channel_free() to make sure we don't go on trying
to free a channel that wasn't found in the channel list.
(issue #8850, and others...)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67715 65c4cc65-6c06-0410-ace0-fbb531ad65f3