Kevin P. Fleming
585de1223e
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
2007-07-05 22:11:51 +00:00
Joshua Colp
0b2c98ac3e
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
2007-07-05 19:15:18 +00:00
Joshua Colp
e32e830419
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
2007-07-05 14:19:14 +00:00
Joshua Colp
1dc2b9c0f7
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
2007-07-05 13:26:02 +00:00
Joshua Colp
bf7b174b08
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
2007-07-05 13:19:17 +00:00
Christian Richter
ce99e9d955
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
2007-07-04 14:50:58 +00:00
Christian Richter
479d7e4738
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
2007-07-04 08:20:54 +00:00
Tilghman Lesher
ff1c0bfa20
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
2007-07-03 12:34:14 +00:00
Christian Richter
2676d6c595
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
2007-07-03 08:04:35 +00:00
Jason Parker
d60de2804e
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
2007-07-02 17:58:25 +00:00
Russell Bryant
4dfa0b47a7
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
2007-07-01 23:51:34 +00:00
Russell Bryant
defd4eb3e2
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
2007-06-29 16:30:56 +00:00
Christian Richter
fc4111b44f
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
2007-06-29 13:08:26 +00:00
Joshua Colp
aac9dd609c
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
2007-06-27 23:24:01 +00:00
Brett Bryant
dcdfb4aa89
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
2007-06-27 23:22:13 +00:00
Brett Bryant
7b9318fedd
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
2007-06-27 22:58:53 +00:00
Joshua Colp
5c8b322f8d
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
2007-06-27 22:43:11 +00:00
Russell Bryant
eeafa5951e
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
2007-06-27 21:06:45 +00:00
Brett Bryant
89cc2e4b70
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
2007-06-27 20:43:53 +00:00
Joshua Colp
2303602f15
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
2007-06-27 20:23:24 +00:00
Jason Parker
4ce4fe74ae
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
2007-06-27 18:40:15 +00:00
Christian Richter
3637816f4c
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
2007-06-27 13:22:37 +00:00
Christian Richter
5f272436b9
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
2007-06-27 09:26:53 +00:00
Christian Richter
085065ac35
isdn_lib.c didn't compile
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-27 07:54:30 +00:00
Christian Richter
16ecedee04
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
2007-06-27 07:49:27 +00:00
Jason Parker
c2cfb7ba64
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
2007-06-26 17:49:14 +00:00
Tilghman Lesher
8f2a415995
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
2007-06-26 12:25:58 +00:00
Tilghman Lesher
5be40827e5
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
2007-06-25 18:12:37 +00:00
Joshua Colp
76b4eb5daa
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
2007-06-25 01:02:49 +00:00
Russell Bryant
fb50a2da95
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
2007-06-24 20:04:21 +00:00
Tilghman Lesher
f7a787c757
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
2007-06-24 17:32:21 +00:00
Joshua Colp
7e22d574a7
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
2007-06-22 16:02:40 +00:00
Jason Parker
01f5e6d56b
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
2007-06-22 14:52:18 +00:00
Brett Bryant
b9000f54b2
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
2007-06-22 14:39:34 +00:00
Steve Murphy
c25932a107
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
2007-06-21 22:29:50 +00:00
Joshua Colp
e179ccaff2
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
2007-06-21 21:37:55 +00:00
Steve Murphy
7a7b6536c7
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
2007-06-21 19:13:17 +00:00
Christian Richter
d8d4454ae5
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
2007-06-21 13:11:29 +00:00
Joshua Colp
6357ad5659
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
2007-06-20 22:20:16 +00:00
Tilghman Lesher
a1cc9b4966
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
2007-06-20 19:25:54 +00:00
Russell Bryant
cfaead2b9c
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
2007-06-20 18:45:38 +00:00
Christian Richter
f5f018a209
forgot one place ..
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@70342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 15:42:39 +00:00
Christian Richter
7fc236e53b
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
2007-06-20 15:29:09 +00:00
Christian Richter
ede913f976
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
2007-06-20 14:47:59 +00:00
Steve Murphy
8da289e13c
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
2007-06-19 18:07:59 +00:00
Joshua Colp
3d1a5f71c5
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
2007-06-19 17:00:58 +00:00
Russell Bryant
6e0248318b
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
2007-06-19 16:45:37 +00:00
Joshua Colp
07b9fc569f
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
2007-06-19 16:21:29 +00:00
Joshua Colp
e21d079484
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
2007-06-19 13:54:03 +00:00
Christian Richter
3322095dea
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
2007-06-19 13:23:04 +00:00