Commit Graph

7298 Commits

Author SHA1 Message Date
Joshua Colp
1cb1bbbe8d Allow dequeueing of frames with negative timestamp by moving jitterbuffer frames check to jb_next. (issue #8546 reported by harmen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-25 19:15:29 +00:00
Joshua Colp
245cdf50ba Add another note about audio files being played back to each bridged party. (issue #8718 reported by ppyy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-25 01:48:52 +00:00
Russell Bryant
5823b29f58 Fix a seg fault when running this application with no arguments from AGI.
(issue #8905, junky)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-25 00:39:50 +00:00
Steve Murphy
75d7a0309a updated check_expr via 8322 (refactoring of expression checking impl); elfring contributed a nice code reorg, I contributed some time to get it working again, better messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-24 17:43:50 +00:00
Christian Richter
34b5cd1de5 fixed the busy problem (dialstatus was not busy when we called a busy extension)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-24 10:48:09 +00:00
Russell Bryant
9eaff06d26 Fix an issue related to synchronization of recordings when using Monitor().
The bug is a miscalculation of the amount to seek the stream for writing to
disk when the number of samples coming in and out of a channel do not match up.
(issue #8298, #8887, report and patch by guillecabeza, patch files created and
 testing done by whoiswes)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-24 00:57:28 +00:00
Russell Bryant
bd06c9494b Don't set a new value for the END_ variable on the channel before using the
old value.  If you do, it will lead to accessing a memory address that has
been free()'d.  (issue #8895, arkadia)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-24 00:17:50 +00:00
Joshua Colp
e1dc278941 Yield before reading from zaptel timing source under Solaris so that other threads get a chance to do things. (issue #7875 reported by bob)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-23 01:41:35 +00:00
Russell Bryant
14eece85c9 Merge codec_zap support for the transcoder card. This is a standalone codec
module so it will not affect anything else.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-22 19:39:30 +00:00
Joshua Colp
edca3010a4 Move filestream creation to Mixmonitor loop. This will prevent a blank file from being created if no frames ever pass through to be recorded. (issue #7589 reported by steve_mcneil)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-22 19:08:52 +00:00
Joshua Colp
d46636d6fa Explicitly declare what codecs are supported by default globally since using a bitmask for all may include ones we don't need. (issue #8357 reported by gknispel_proformatique)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-22 16:23:03 +00:00
Russell Bryant
0a73ba87b1 Fix a memory leak on command line tab completion. The container for the
matches was freed, but the individual matches themselves were not.
(issue #8851, arkadia)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 16:44:09 +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
Tilghman Lesher
3f07bd5034 If a timezone is not specified, assume localtime (instead of gmtime) (Issue #7748)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18 21:11:34 +00:00
Tilghman Lesher
6f1d7511d1 Document all the fields, including the indication that "uniqueid" should not be renamed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18 17:42:17 +00:00
Russell Bryant
cbfeb816e1 Move the check for a failure of ast_channel_alloc() to before locking the
pvt structure again.  Otherwise, on a failure, this will cause a deadlock.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17 21:17:21 +00:00
Tilghman Lesher
0fad242a19 When ast_strip_quoted was called with a zero-length string, it would treat a
NULL as if it were the quoting character (and would thus return the string
in memory immediately following the passed-in string).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17 20:52:21 +00:00
Tilghman Lesher
7015408cf8 Add documentation walkthrough on getting Postgres to work with voicemail (from Issue 8513)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-16 21:50:04 +00:00
Tilghman Lesher
c69d99c830 Postgres driver doesn't like a NULL pointer when retrieving the length (Bug 8513)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-16 21:26:06 +00:00
Joshua Colp
84a751aecd Return previous behavior. ParkedCalls will be able to do DTMF based transfers again. trunk however will get an option to allow this to be set on/off. (issue #8804 reported by nortex)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-16 17:36:50 +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
Tilghman Lesher
e9b6a2c807 Check return value before dereferencing (Bug 8822)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-15 23:09:02 +00:00
Matt O'Gorman
741131aaa2 Solves issue with forwarding voicemails from folders other than inbox.
patch by anthonyl.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-15 20:44:53 +00:00
Tilghman Lesher
321c032c5e Bug 8814 - db should look for its header using a relative path, instead of the system path (Fixes FreeWRT)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-14 05:01:16 +00:00
Kevin P. Fleming
808bcff9d0 minor documentation clarification
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-12 14:34:15 +00:00
Olle Johansson
2e738d5a7c Issue #8793 bad response for Unsupported Extension (different fix).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 18:11:09 +00:00
Christian Richter
5704d29ffa when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 14:45:38 +00:00
Christian Richter
ec695243af * more additions to make the RESTART message work
* added fix for misdn_call to allow SETUPs with empty 
  extensions, replaced the strtok_r functions with strsep for that 
  (inspired by Sandro Cappellazzo, thanks)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 13:27:52 +00:00
Christian Richter
f5507d2431 more fixes regarding warnings for gcc-4 and first additions for the restart Information element, in the first step we initiate a restart with a CLI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 09:51:00 +00:00
Joshua Colp
ef53c893c3 Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 04:51:06 +00:00
Russell Bryant
4e779b5b43 Make the number that represents the major version number a single digit instead
of 2.  Using two digits makes it an octal number when put into version.h, which
breaks the compilation of any out of tree module that checks the version for
any version after 1.2.7 (reported by Matteo Brancaleoni on the asterisk-dev
mailing list, who gave credit to vihai for pointing it out)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 02:16:45 +00:00
Tilghman Lesher
a0afc6c927 The advent of realtime has enabled people to use commas in the fullname field.
This could cause an issue with sending voicemails, when the field is unquoted.
(Issue 8595)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-09 13:30:04 +00:00
Christian Richter
9713819c85 make gcc 4 happy, remove some warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 08:37:08 +00:00
Joshua Colp
8ca9fedc42 Ensure we use the default refresh value of 60 if the remote server does not send one. (issue #8746 reported by maethor)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 05:10:07 +00:00
Tilghman Lesher
be0be1b4f1 If openstream fails, then we crash (Issue 8564)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 21:43:10 +00:00
Kevin P. Fleming
2194a0b079 ensure that threads which are supposed to be detached (because we aren't going to wait on them) are created properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 16:56:40 +00:00
Matt O'Gorman
99815228f2 converted a lot of 256 to PATH_MAX and some white space fixes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-04 17:45:16 +00:00
Matt O'Gorman
82016c83d2 good catch russell sorry i missed that.
fix magic number with proper sizeof


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-04 16:48:43 +00:00
Matt O'Gorman
58f6fb69fb When using ODBC_STORAGE VoicemailMain doesn't create the
subdirectories for a mailbox such as the INBOX directory.

this patch solves that problem, was written by anthony
be-125


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-03 23:22:47 +00:00
Christian Richter
9c8bcc3c1c * Added check for bridging in misdn_call to avoid setting echocancellation
when 2 mISDN channels are involved and when bridging is set. That lead
  to a kernel panic before under different situations, because we switched 
  about 2 times between hardware bridging and echocancelation
* readded MISDN_URATE variable which got lost before, this should make app_v110
  work again
* fixed typo



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-03 08:24:00 +00:00
Christian Richter
6e6fa1c71f added check for channel ranges in the set/empty channel functions. set pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-02 10:07:22 +00:00
Kevin P. Fleming
6e7786ab99 location of the bug posting guidelines has changed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-29 00:32:32 +00:00
Olle Johansson
59ae6dac08 Issue 8596: Set CAN_BYE flag for 100 trying too
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 15:43:52 +00:00
Russell Bryant
c355d9667b Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function.  If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator.  Now, it properly
handles it as an invalid operator.
(issue #8665, patch by tempest1)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 05:19:48 +00:00
Russell Bryant
847ddc1e2c Check for the proper return value on an error in a call to mmap().
This was reported by Andy Wang on the asterisk-dev list.  Thanks!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 07:23:07 +00:00
Russell Bryant
798116918e Remove a couple of misplaced dots in log messages. This was reported by
Andrea Spadaccini on the asterisk-dev mailing list.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 06:47:29 +00:00
Joshua Colp
c54cc039e8 Add new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_palma_aste)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 20:25:01 +00:00
Joshua Colp
f28947f7ef Free localuser structure when we fail to dial (issue #8612 reported by rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:10:26 +00:00
Christian Richter
526b32f5e6 when we reject a channel, because it's in use already, we shouldn't process the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 13:08:51 +00:00