Commit Graph

580 Commits

Author SHA1 Message Date
Jason Parker
29da454042 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
2007-07-09 20:18:15 +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
Russell Bryant
2f0f1f5e00 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
2007-05-23 13:06:17 +00:00
Matthew Fredrickson
818c25352e Make sure we only create a DSP if it's requested on SUB_REAL
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-09 17:20:20 +00:00
Russell Bryant
274afdc345 This patch fixes an issue where depending on the cause code, when the network
sends a PRI disconnect, the call may not be properly hung up.
(issue #9588, reported and patched by softins)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 15:57:26 +00:00
Kevin P. Fleming
cd3ef82ba4 handle a very bizarre race condition with channels being redirected before a simple switch can be started on them (issue #9286)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 22:24:59 +00:00
Russell Bryant
eab557da86 Fix a typo where cid_num got copied instead of cid_ani.
(issue #9587, reported and patched by xrg)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 16:20:38 +00:00
Dwayne M. Hubbard
1cde24d633 removed #if 0 block from chan_phone, chan_zap, and chan_modem restart_monitor()
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 18:20:31 +00:00
Matthew Fredrickson
d971b4ba93 There should only be one code path for doing DTMF conditionals on channels. This fixes it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 17:03:15 +00:00
Matthew Fredrickson
3b38b3f632 When handling glare on a PRI, move the requested channel rather than hang up the old one. Fix for 8957 and 9011.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-14 16:25:49 +00:00
Russell Bryant
f9db7779f0 Fix a bunch of places where pthread_attr_init() was called, but
pthread_attr_destroy() was not.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-31 21:25:11 +00:00
Dwayne M. Hubbard
91d1c70906 issue 7877: chan_zap module reload does not use default/initialized values on subsequent loads. Reset configuration variables to default values prior to parsing configuration file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18 23:47:10 +00:00
Kevin P. Fleming
6926dd0fbe support echo cancellers that can handle 64ms or 128ms of echo cancellation
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18 23:35:35 +00:00
Joshua Colp
ed7bdda7b0 Add none as a valid callgroup/pickupgroup option. I consider it a bug that it would inherit it all the way down and not have any way to reset it to nothing - so that's why it is in 1.2. (issue #8296 reported by gkloepfer)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-16 05:53:31 +00:00
Steve Murphy
611a9778bb This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-10 02:14:13 +00:00
Tilghman Lesher
ec623148c0 Don't play dialtone if the seizing the channel fails (Bug 7754)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 00:34:44 +00:00
Tilghman Lesher
1df9da9fef Error message references wrong argument (Issue 7951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-14 22:16:31 +00:00
Matthew Fredrickson
640f0361b9 There, much better.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 15:21:18 +00:00
Matthew Fredrickson
3bfeacea91 Don't send proceeding twice (#7800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 15:13:43 +00:00
Russell Bryant
fdfc694ca3 Fix a crash reported to me by hads on IRC. This crash would occur with the use
of the "distinctiveringaftercid" option.  Also, on this user's system, the crash
would only occur when built without optimizations.  This is because the bug is
that the code would write past the end of an array that was allocated on the
stack, and the structure of the stack is different with or without optimizations
enabled.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-07 01:28:29 +00:00
Russell Bryant
66b15a3461 Fix an issue that would cause a NewCallerID manager event to be generated
before the channel's NewChannel event.  This was due to a somewhat recent
change that included using ast_set_callerid() where it wasn't before.  This
function should not be used in the channel driver "new" functions.
(issue #7654, fixed by me)

Also, fix a couple minor bugs in usecount handling.  chan_iax2 could have
increased the usecount but then returned an error.  The place where chan_sip
increased the usecount did not call ast_update_usecount()


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 05:08:50 +00:00
Russell Bryant
96048caf41 This resolves a deadlock that a tech support customer was getting frequently
when his users would answer call waiting. If another thread is currently
holding the zt_pvt lock for the first channel, unlock both channels and let
asterisk retry the native bridge, just like what is done for the second channel
directly below these changes.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-25 19:43:38 +00:00
Kevin P. Fleming
648bc1828d remove some more bad examples of using printf
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-12 13:54:10 +00:00
Russell Bryant
eeb613ea3d fix misplaced manager event (issue #6866, flefoll)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@31127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 20:26:17 +00:00
Kevin P. Fleming
84790a577b respect 'usecallingpres' in zapata.conf even if CLID has not been set for the channel (issue #7123)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 16:17:26 +00:00
Joshua Colp
dda49ce86b Make the minidle option actually exist as documented (issue #7159 reported by imran)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 17:04:02 +00:00
Russell Bryant
eb19888db5 ensure that the appropriate manager events are sent in all of the places where
alarms are detected or cleared (issue #6866, flefoll)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-06 00:05:27 +00:00
Matthew Fredrickson
cecda9a947 Fix buglet in channel reassignment on SETUP_ACK
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@22866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-27 16:12:46 +00:00
Olle Johansson
d5a3b59ccf Issue #6878 - Unhide DNDstate manager events (thanks casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@17367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:28:14 +00:00
Matthew Fredrickson
b89b296584 Fix SETUP_ACK handling so that we change channels if so requested
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@14522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 21:44:36 +00:00
Russell Bryant
3b776cdfdc always use the callerid signalling method set in the zt_pvt strucutre as
opposed to the last one read from the config file (issue #6734, with mods)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@13237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-16 17:42:46 +00:00
Kevin P. Fleming
48fb967c05 disable buggy PRI user-user code until it can be fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 17:08:28 +00:00
Russell Bryant
1d9b2a9df1 fix problem with dtmf on e&m (issue #6364)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 19:42:35 +00:00
Matthew Fredrickson
2f43722570 Backport fix for #6229, hangup on polarity reversal
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-24 20:37:30 +00:00
Kevin P. Fleming
9f92220a9c backport fix to ensure that DSP is never enabled on pseudo channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 00:07:45 +00:00
BJ Weschke
d38fff38f9 Bug #5877
Make sure the digit string from E&M wink DNIS collection is properly null terminated as it grows.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-10 18:10:50 +00:00
Kevin P. Fleming
a563eab49a remove extraneous svn:executable properties
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Mark Spencer
a7d794a0ac Fix DTMF issue with 3-way native zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-11 18:00:07 +00:00
Kevin P. Fleming
bdda6254f4 correct logic for group-match CONGESTION checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 01:42:38 +00:00
Kevin P. Fleming
cdf4031963 issue #3360 plus related fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 00:48:38 +00:00
Mark Spencer
c5f0a6db6f Fix three-way issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-08 19:36:20 +00:00
Russell Bryant
31a804b97c issue #5605
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 15:09:47 +00:00
Mark Spencer
3d473eebbc Fix chan_zap build on non-PRI (bug #5620)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 04:38:39 +00:00
Mark Spencer
994b9db081 Handle DTMF properly when combined with other events
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-05 22:30:31 +00:00
Russell Bryant
9ddf0e4dce Remove unnecessary checks before calls to ast_strlen_zero. Also, change
some places where strlen is used instead of ast_strlen_zero


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-27 02:19:37 +00:00
Russell Bryant
3453e3efa5 Doxygen documentation update from oej (issue #5505)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Russell Bryant
4cc2618bd1 fix output of 'zap show status' to line up properly (issue #5491)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-22 12:15:07 +00:00
Matthew Fredrickson
0f850c2ffb Add user to user ie transmission support in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-21 21:23:16 +00:00
Russell Bryant
56135f210f silence compiler warnings when ZT_TONEDETECT is not defined (issue #5470)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-20 16:50:18 +00:00
Mark Spencer
141d9f7156 Make sure when the timeout occurs that we actually break the bridge (bug #5252)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 17:02:20 +00:00