Commit Graph

709 Commits

Author SHA1 Message Date
Joshua Colp ee3ab150f6 Merged revisions 51788 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51788 | file | 2007-01-23 17:46:31 -0500 (Tue, 23 Jan 2007) | 2 lines

Update channel drivers to use module referencing so that unloading them while in use will not result in crashes. (issue #8897 reported by junky)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-23 22:59:55 +00:00
Russell Bryant dcca8f345f Merged revisions 51311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51311 | russell | 2007-01-19 11:49:38 -0600 (Fri, 19 Jan 2007) | 23 lines

Merge the changes from the /team/group/vldtmf_fixup branch.

The main bug being addressed here is a problem introduced when two SIP
channels using SIP INFO dtmf have their media directly bridged.  So, when a
DTMF END frame comes into Asterisk from an incoming INFO message, Asterisk
would try to emulate a digit of some length by first sending a DTMF BEGIN
frame and sending a DTMF END later timed off of incoming audio.  However,
since there was no audio coming in, the DTMF_END was never generated.  This
caused DTMF based features to no longer work.

To fix this, the core now knows when a channel doesn't care about DTMF BEGIN
frames (such as a SIP channel sending INFO dtmf).  If this is the case, then
Asterisk will not emulate a digit of some length, and will instead just pass
through the single DTMF END event.

Channel drivers also now get passed the length of the digit to their digit_end
callback.  This improves SIP INFO support even further by enabling us to put
the real digit duration in the INFO message instead of a hard coded 250ms.
Also, for an incoming INFO message, the duration is read from the frame and
passed into the core instead of just getting ignored.

(issue #8597, maybe others...)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 18:06:03 +00:00
Luigi Rizzo 455ea1c99e remove variable declaration in the middle of a block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 17:38:28 +00:00
Luigi Rizzo 0a8d59d88a whoops, fix a cut&paste error...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 16:35:37 +00:00
Luigi Rizzo 03fc21712a slight change to the initialization of a structure,
also using '\0' to make it clear we need a (char)0



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 16:32:05 +00:00
Luigi Rizzo 3fefb9d516 include "asterisk/zapata.h" to get the zaptel headers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 16:28:24 +00:00
Dwayne M. Hubbard 18c23101a5 Merged revisions 51274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51274 | dhubbard | 2007-01-18 18:17:32 -0600 (Thu, 18 Jan 2007) | 3 lines

chan_zap compiles without libpri after committing 7877 patch


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 00:28:25 +00:00
Dwayne M. Hubbard 33243c6624 Merged revisions 51272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r51272 | dhubbard | 2007-01-18 17:56:49 -0600 (Thu, 18 Jan 2007) | 11 lines

Merged revisions 51271 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r51271 | dhubbard | 2007-01-18 17:47:10 -0600 (Thu, 18 Jan 2007) | 3 lines

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/trunk@51273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 00:06:35 +00:00
Russell Bryant 45bd0c4f3f Merged revisions 51204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51204 | russell | 2007-01-17 16:09:52 -0600 (Wed, 17 Jan 2007) | 4 lines

Instead of dividing the offset by 2 directly, make it more clear that the
offset is being scaled by the size of the elements in the buffer.
(Inspired by a discussing on the asterisk-dev list about this code)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-17 23:31:40 +00:00
Joshua Colp bf5c607c69 Merged revisions 51087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r51087 | file | 2007-01-16 00:55:23 -0500 (Tue, 16 Jan 2007) | 10 lines

Merged revisions 51085 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r51085 | file | 2007-01-16 00:53:31 -0500 (Tue, 16 Jan 2007) | 2 lines

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/trunk@51090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-16 05:56:42 +00:00
Joshua Colp f215636ef3 Allow usedistinctiveringdetection and distinctiveringaftercid to be reset during a reload. (issue #8739 reported by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 04:21:46 +00:00
Kevin P. Fleming 37182c873e finish const-ifying ast_func_read()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-06 00:13:33 +00:00
Jason Parker cdd63e685d Merged revisions 49705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49705 | qwell | 2007-01-05 17:16:16 -0600 (Fri, 05 Jan 2007) | 4 lines

Make codec_zap and chan_zap also depend on zaptel.

This fixes an issue (8727) with zaptel being in a different directory, using --with-zaptel.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:17:45 +00:00
Kevin P. Fleming 87b9abc892 Merged revisions 49676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49676 | kpfleming | 2007-01-05 16:16:33 -0600 (Fri, 05 Jan 2007) | 2 lines

reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 22:43:18 +00:00
Kevin P. Fleming 29058da351 Merged revisions 49165 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49165 | kpfleming | 2007-01-02 07:59:44 -0600 (Tue, 02 Jan 2007) | 2 lines

remove comment that is unrelated to this function

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-02 14:01:20 +00:00
Kevin P. Fleming cb97e0c353 Merged revisions 49102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49102 | kpfleming | 2007-01-01 17:34:35 -0600 (Mon, 01 Jan 2007) | 2 lines

check specifically for VLDTMF and transcoding support in the system's Zaptel installation, and make only the modules that need those features dependent on them (this will allow building the other Zaptel-using parts of Asterisk against older versions of Zaptel or those on other platforms that haven't caught up yet to the Linux version)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-01 23:43:43 +00:00
Steve Murphy 7b338004bf a quick fix to app_sms.c to get rid of cursed compiler warnings so I can compile under --enable-dev-mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 19:44:20 +00:00
Luigi Rizzo 7db228ac95 replace ast_safe_string_alloc() with asprintf()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 15:40:57 +00:00
Russell Bryant 52396dff26 revert check for a zaptel transcoder related definition that was done in the
wrong module.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-13 00:56:30 +00:00
Russell Bryant 4490b5710d Make chan_zap inform you that your version of zaptel is too old instead of
just failing to compile.

It seems like the proper way to do this would be in the configure script.
However, that wouldn't help existing checkouts unless we forced the configure
script to be executed after any code was changed.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 22:27:22 +00:00
Steve Murphy 23e606f70a Merged revisions 48372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48372 | murf | 2006-12-09 20:04:18 -0700 (Sat, 09 Dec 2006) | 9 lines

Merged revisions 48371 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48371 | murf | 2006-12-09 19:14:13 -0700 (Sat, 09 Dec 2006) | 1 line

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/trunk@48373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-10 03:14:27 +00:00
Russell Bryant a44e55a3f3 Constify a bunch of the usage strings for CLI commands.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-06 07:23:32 +00:00
Matthew Fredrickson 2102534748 Little fix so we use the right message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 21:50:42 +00:00
Matthew Fredrickson 94ec7877b5 Make compiler happier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 21:46:58 +00:00
Matthew Fredrickson 8b8187c6f8 bug fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 21:35:23 +00:00
Matthew Fredrickson 1ded1fd55a Make sure we don't send a group reset on a group larger than 32 CICs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 21:32:33 +00:00
Matthew Fredrickson cb06f87d11 Add ss7 show linkset command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 20:54:38 +00:00
Matthew Fredrickson 4dfd954ac3 Updates to show linkset command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-25 20:30:04 +00:00
Matthew Fredrickson 03ee553343 Add some sense of link state. Don't make calls if link is down. Only reset if we're bringing the
link up for the first time.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-17 18:26:33 +00:00
Matthew Fredrickson 57d4919427 Make sure we choose the last channel as the dchannel if it's not E1 (for BRI). (#8077) Thanks Tzafrir.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-17 01:05:28 +00:00
Jason Parker 65fb29bc03 Remove the interim variable for range modifications, and set it on the structure directly.
Also move the default checking to where it gets set initially.

Fixes suggested by file.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 22:51:00 +00:00
Jason Parker bfd630682e Add ability to modify range for dring matching.
Issue #8369, patch by ssuehring, modified slightly by me.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 22:32:23 +00:00
Tilghman Lesher 8dbe2063ed Merged revisions 47523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47523 | tilghman | 2006-11-12 19:12:01 -0600 (Sun, 12 Nov 2006) | 10 lines

Merged revisions 47522 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47522 | tilghman | 2006-11-12 18:34:44 -0600 (Sun, 12 Nov 2006) | 2 lines

Don't play dialtone if the seizing the channel fails (Bug 7754)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 01:16:30 +00:00
Matthew Fredrickson 69d3416c12 Make sure we don't use 32bits for a value that only requires 1 bit. Also, fix a compiler warning for one of the SS7 functions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 22:06:11 +00:00
Matthew Fredrickson 554902f070 Add fix for 7321. Ability to hide calleridname from zapata.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 19:35:41 +00:00
Russell Bryant 36793b730c Merged revisions 47391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47391 | russell | 2006-11-09 16:26:27 -0500 (Thu, 09 Nov 2006) | 7 lines

Work around an issue that caused menuselect to display a bogus description for
app_voicemail and chan_zap.  These modules use some preprocessor directives to
determine what it will report to Asterisk as its description.  However, the way
we extract this information from the source files for menuselect is not smart
enough to figure this out.
(issue #8326, #8328)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 21:32:27 +00:00
Steve Murphy 908f176cf3 A fair number of changes for the sake of bug 7506
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-07 21:47:49 +00:00
Luigi Rizzo 4a545a7662 remove old/useless usecnt stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-03 18:17:08 +00:00
Matthew Fredrickson eee1b9e1fb Updates to do unblock correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 21:34:03 +00:00
Matthew Fredrickson d810d52606 Changes to show blocked/unblocked states, as well as in service, out of service state
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 16:50:55 +00:00
Matthew Fredrickson 040e112ebd Add simple down event support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 16:03:12 +00:00
Russell Bryant 190cff5969 Merged revisions 46744 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46744 | russell | 2006-11-01 11:39:09 -0500 (Wed, 01 Nov 2006) | 2 lines

Prevent an infinite loop when config processing gets to a jitterbuffer option

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-01 16:51:26 +00:00
Matthew Fredrickson f171dabffe Make sure we give the linkset number, not the offset in the linksets array
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 18:04:28 +00:00
Matthew Fredrickson 4bfa05d373 Specify which linkset we're getting the messages from in the message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 17:32:04 +00:00
Matthew Fredrickson d0d065bcca Don't make errors when we don't need them
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 16:50:22 +00:00
Russell Bryant 955f1ef0fe Merged revisions 46370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46370 | russell | 2006-10-27 14:03:32 -0500 (Fri, 27 Oct 2006) | 4 lines

move the copy of the default settings to the global settings back out of
process_zap, so that they aren't overwritten when process_zap is called
multiple times

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-27 19:04:34 +00:00
Matthew Fredrickson ead98e2b7f First pass at implementation to be able to block and unblock zap channels for
use.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-27 17:46:04 +00:00
Russell Bryant de808a721a Merged revisions 46358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46358 | russell | 2006-10-27 10:32:40 -0500 (Fri, 27 Oct 2006) | 5 lines

Instead of iterating all of the options once to look for jitterbuffer options,
and then again for everything else, move the processing of jitterbuffer
options into the main loop so that there are no erroneous messages about
ignoring unknown options.  (issue #8226)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-27 15:44:34 +00:00
Matthew Fredrickson 6cc9d20b98 Send CPG when we get a CONTROL_PROGRESS frame and make sure that it sends ACM (not CPG) when
we get CONTROL_PROCEEDING.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 19:24:40 +00:00
Matthew Fredrickson 67926b9ac4 Update changes to do US style point code parsing/formatting (xxx.xxx.xxx)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 19:14:23 +00:00