]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
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

18 years agoReinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888...
Joshua Colp [Wed, 6 Jun 2007 13:28:34 +0000 (13:28 +0000)] 
Reinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888 reported by gasparz)

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

18 years agoRevert channel name splitting fix for Zap. The moral of the story is don't use -...
Joshua Colp [Wed, 6 Jun 2007 12:18:36 +0000 (12:18 +0000)] 
Revert channel name splitting fix for Zap. The moral of the story is don't use - in your user/peer names. (issue #9668 reported by stevedavies)

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

18 years agobriding is a bool, fixed copy and paste issue.
Christian Richter [Tue, 5 Jun 2007 15:42:03 +0000 (15:42 +0000)] 
briding is a bool, fixed copy and paste issue.

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

18 years agosimplified the EVENT_SETUP handling in the cb_events function a lot. Commented the...
Christian Richter [Tue, 5 Jun 2007 15:39:43 +0000 (15:39 +0000)] 
simplified the EVENT_SETUP handling in the cb_events function a lot. Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination.

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

18 years agoBackport of the overlap_dial functionality from asterisk-1.4's chan_misdn.
Nadi Sarrar [Tue, 5 Jun 2007 11:18:45 +0000 (11:18 +0000)] 
Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.

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

18 years agoadded possibility to deactivate bridging per port
Christian Richter [Tue, 5 Jun 2007 10:05:45 +0000 (10:05 +0000)] 
added possibility to deactivate bridging per port

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

18 years agoAccording to MATH, 0+1181000386 = 1181000448. Oops.
Tilghman Lesher [Mon, 4 Jun 2007 23:41:49 +0000 (23:41 +0000)] 
According to MATH, 0+1181000386 = 1181000448.  Oops.

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

18 years agoAdd revision Id tags (by request of tzafrir)
Tilghman Lesher [Mon, 4 Jun 2007 17:10:30 +0000 (17:10 +0000)] 
Add revision Id tags (by request of tzafrir)

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

18 years agoIt is now possible for this path of execution to have the frame pointer be NULL,...
Joshua Colp [Thu, 31 May 2007 16:12:39 +0000 (16:12 +0000)] 
It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)

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

18 years agoIssue 9818 - Fix for issue 8329 breaks pbx_realtime. Issue 8329 will remain unfixed...
Tilghman Lesher [Thu, 31 May 2007 15:58:45 +0000 (15:58 +0000)] 
Issue 9818 - Fix for issue 8329 breaks pbx_realtime.  Issue 8329 will remain unfixed for pbx_realtime, but only because we lack core API to do it.

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

18 years agoIf the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return...
Tilghman Lesher [Tue, 29 May 2007 21:49:35 +0000 (21:49 +0000)] 
If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.

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

18 years agoIssue #9802 - Change inuse counter on CANCEL
Olle Johansson [Tue, 29 May 2007 07:53:14 +0000 (07:53 +0000)] 
Issue #9802 - Change inuse counter on CANCEL

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

18 years agoIssue 9791 - Fix pronunciation of seconds in Dutch
Tilghman Lesher [Fri, 25 May 2007 13:46:35 +0000 (13:46 +0000)] 
Issue 9791 - Fix pronunciation of seconds in Dutch

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

18 years agoAllow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched...
Joshua Colp [Thu, 24 May 2007 14:40:38 +0000 (14:40 +0000)] 
Allow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched to a user or peer. (issue #9546 reported by mcrawford)

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

18 years agowe should only activate the generator in chan_misdn, when asterisk hask not yet taken...
Christian Richter [Thu, 24 May 2007 09:19:58 +0000 (09:19 +0000)] 
we should only activate the generator in chan_misdn, when asterisk hask not yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example.

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

18 years agoensure that variables are set on a newly created channel before we start a PBX on it
Kevin P. Fleming [Wed, 23 May 2007 20:46:22 +0000 (20:46 +0000)] 
ensure that variables are set on a newly created channel before we start a PBX on it

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

18 years agoif we are going to set variables on a newly created channel, it should be done *befor...
Kevin P. Fleming [Wed, 23 May 2007 20:06:13 +0000 (20:06 +0000)] 
if we are going to set variables on a newly created channel, it should be done *before* we start the PBX on it

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

18 years agoRevert revision 62417 as someone reported problems with it to Mark. This was
Russell Bryant [Wed, 23 May 2007 13:06:17 +0000 (13:06 +0000)] 
Revert revision 62417 as someone reported problems with it to Mark.  This was
related to issue #9588.

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

18 years agoFix a memory leak that I just noticed in the device state handling in app_queue.
Russell Bryant [Tue, 22 May 2007 13:07:03 +0000 (13:07 +0000)] 
Fix a memory leak that I just noticed in the device state handling in app_queue.
On most device state changes, it would leak roughly 8 to 64 bytes (the length of
the name of the device).

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

18 years agowe stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNE...
Christian Richter [Tue, 22 May 2007 07:46:39 +0000 (07:46 +0000)] 
we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNECTED state we should not stop tones when we receive an Information Message

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

18 years agoThis update will fix the situation that occurs as described by 9717, where when sever...
Steve Murphy [Fri, 18 May 2007 20:56:20 +0000 (20:56 +0000)] 
This update will fix the situation that occurs as described by 9717, where when several targets are specified for a dial, if any one them reports FAIL, the whole call gets FAIL, even though others were ringing OK. I rearranged the priorities, so that a new disposition, NULL, is at the lowest level, and the disposition get init'd to NULL. Then, next up is FAIL, and next up is BUSY, then NOANSWER, then ANSWERED. All the related set routines will only do so if the disposition value to be set to is greater than what's already there. This gives the intended effect. So, if all the targets are busy, you'd get BUSY for the call disposition. If all get BUSY, but one, and that one rings is not answered, you get NOANSWER. If by some freak of nature, the NULL value doesn't get overridden, then the disp2str routine will report NOANSWER as before.

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