dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

160 Commits

Author SHA1 Message Date
russell e9d15cbea7 Move Asterisk-addons modules into the main Asterisk source tree.
Someone asked yesterday, "is there a good reason why we can't just put these
modules in Asterisk?".  After a brief discussion, as long as the modules are
clearly set aside in their own directory and not enabled by default, it is
perfectly fine.

For more information about why a module goes in addons, see README-addons.txt.

chan_ooh323 does not currently compile as it is behind some trunk API updates.
However, it will not build by default, so it should be okay for now.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204413 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-30 16:40:38 +00:00
russell 33ecd470c0 Minor tweaks and spelling fixes for CHANGES and UPGRADE.txt.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203960 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-27 09:51:45 +00:00
russell 89175b7e04 Convert the ast_channel data structure over to the astobj2 framework.
There is a lot that could be said about this, but the patch is a big 
improvement for performance, stability, code maintainability, 
and ease of future code development.

The channel list is no longer an unsorted linked list.  The main container 
for channels is an astobj2 hash table.  All of the code related to searching 
for channels or iterating active channels has been rewritten.  Let n be 
the number of active channels.  Iterating the channel list has gone from 
O(n^2) to O(n).  Searching for a channel by name went from O(n) to O(1).  
Searching for a channel by extension is still O(n), but uses a new method 
for doing so, which is more efficient.

The ast_channel object is now a reference counted object.  The benefits 
here are plentiful.  Some benefits directly related to issues in the 
previous code include:

1) When threads other than the channel thread owning a channel wanted 
   access to a channel, it had to hold the lock on it to ensure that it didn't 
   go away.  This is no longer a requirement.  Holding a reference is 
   sufficient.

2) There are places that now require less dealing with channel locks.

3) There are places where channel locks are held for much shorter periods 
   of time.

4) There are places where dealing with more than one channel at a time becomes 
   _MUCH_ easier.  ChanSpy is a great example of this.  Writing code in the 
   future that deals with multiple channels will be much easier.

Some additional information regarding channel locking and reference count 
handling can be found in channel.h, where a new section has been added that 
discusses some of the rules associated with it.

Mark Michelson also assisted with the development of this patch.  He did the 
conversion of ChanSpy and introduced a new API, ast_autochan, which makes it 
much easier to deal with holding on to a channel pointer for an extended period 
of time and having it get automatically updated if the channel gets masqueraded.
Mark was also a huge help in the code review process.

Thanks to David Vossel for his assistance with this branch, as well.  David 
did the conversion of the DAHDIScan application by making it become a wrapper 
for ChanSpy internally.

The changes come from the svn/asterisk/team/russell/ast_channel_ao2 branch.

Review: http://reviewboard.digium.com/r/203/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190423 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-24 14:04:26 +00:00
file 0eb1480fe0 Merge in the RTP engine API.
This API provides a generic way for multiple RTP stacks to be
integrated into Asterisk. Right now there is only one present, res_rtp_asterisk,
which is the existing Asterisk RTP stack. Functionality wise this commit
performs the same as previously. API documentation can be viewed in the
rtp_engine.h header file.

Review: http://reviewboard.digium.com/r/209/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186078 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-02 17:20:52 +00:00
russell 7d018fda72 Update UPGRADE.txt and CHANGES for 1.6.3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@182362 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-16 20:53:21 +00:00
russell 62ad52ba2b Add a note about the ordering of entries in sip.conf in 1.6.1.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179154 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-27 21:23:12 +00:00
russell 1f57cd4e51 Merge a large set of updates to the Asterisk indications API.
This patch includes a number of changes to the indications API.  The primary
motivation for this work was to improve stability.  The object management
in this API was significantly flawed, and a number of trivial situations could
cause crashes.

The changes included are:

1) Remove the module res_indications.  This included the critical functionality
   that actually loaded the indications configuration.  I have seen many people
   have Asterisk problems because they accidentally did not have an
   indications.conf present and loaded.  Now, this code is in the core,
   and Asterisk will fail to start without indications configuration.

   There was one part of res_indications, the dialplan applications, which did
   belong in a module, and have been moved to a new module, app_playtones.

2) Object management has been significantly changed.  Tone zones are now
   managed using astobj2, and it is no longer possible to crash Asterisk by
   issuing a reload that destroys tone zones while they are in use.

3) The API documentation has been filled out.

4) The API has been updated to follow our naming conventions.

5) Various bits of code throughout the tree have been updated to account
   for the API update.

6) Configuration parsing has been mostly re-written.

7) "Code cleanup"

The code is from svn/asterisk/team/russell/indications/.

Review: http://reviewboard.digium.com/r/149/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@176627 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-17 20:41:24 +00:00
kpfleming bc729d661c we can now build with -Wformat=2, which found a couple of real bugs
because SPRINTF() use non-literal format strings (which cannot be checked), move it into its own module so the rest of func_strings can benefit from format string checking



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159774 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29 15:29:33 +00:00
mnicholson 2ca1ca6786 Make the Join event from app_queue use CallerIDNum insead of CallerID for
indicating the callerid number just like the rest of asterisk.

(closes issue #13883)
Reported by: davidw


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158924 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25 00:05:41 +00:00
kpfleming 939ebd07ea as suggested by jtodd, document the purposes of the CHANGES and UPGRADE files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158449 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 20:42:37 +00:00
kpfleming 119d74be4a move relevant entries into UPGRADE.txt and resync UPGRADE-1.6.txt with previous branches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157739 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 13:27:02 +00:00
kpfleming 7ad42d39db make some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines
also, move UPGRADE.txt to UPGRADE-1.6.txt and make the new UPGRADE.txt contain information about upgrading between Asterisk 1.6 releases



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157706 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 12:42:19 +00:00
mmichelson 8bbcf78384 Fix some refcounting in app_queue.c and change the
hashing used by app_queue.c to be case-insensitive.
This is accomplished by adding a new case-insensitive
hashing function.

This was necessary to prevent bad refcount errors
(and potential crashes) which would occur due to the
fact that queues were initially read from the config
file in a case-sensitive manner. Then, when a user
issued a CLI command or manager action, we allowed
for case-insensitive input and used that input to 
directly try to find the queue in the hash table. The result
was either that we could not find a queue that was input or
worse, we would end up hashing to a completely bogus value
based on the input.

This commit resolves the problem presented in
issue #13703. However, that issue was reported against
1.6.0. Since this fix introduces a behavior change, I am
electing to not place this same fix in to the 1.6.0 or 1.6.1
branches, and instead will opt for a change which does not
change behavior.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156883 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14 16:53:38 +00:00
mvanbaak ee64593b69 Break up skinny.conf into seperate sections for
devices and lines.

(closes issue #13412)
Reported by: wedhorn
Patches:
      config-restruct-v4.diff uploaded by wedhorn (license 30)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150426 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-17 06:00:28 +00:00
tilghman c77eb286d6 Allow people to select the old console behavior of white text on a black
background, by using the startup flag '-B'.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07 17:44:32 +00:00
kpfleming cc3f8c6dc7 Merged revisions 137530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r137530 | kpfleming | 2008-08-13 15:46:19 -0500 (Wed, 13 Aug 2008) | 1 line

add document describing what users will need to be aware of when upgrading to this version and using DAHDI
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137627 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-13 22:33:32 +00:00
seanbright ff2f832957 Log the userfield CDR variable like the other CDR backends, assuming the
column is actually there.  If it's not, we still log everything else as
before.

(closes issue #13281)
Reported by: falves11


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137203 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-11 14:25:15 +00:00
tilghman 52a47a16b5 Add '+=' append operator to configuration files.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135717 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 18:25:16 +00:00
tilghman aa5fc8c256 Change SendImage() to output a more consistent status variable.
(closes issue #13134)
 Reported by: eliel
 Patches: 
       app_image.c.patch uploaded by eliel (license 64)
       UPGRADE.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134088 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-28 16:49:29 +00:00
tilghman 826f024438 Change several 'core' commands to be 'dialplan' commands (with appropriate
deprecation, of course)
(closes issue #13016)
 Reported by: caio1982
 Patches: 
       dialplan_globals6.diff uploaded by caio1982 (license 22)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131606 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-17 14:00:27 +00:00
seanbright 13e31ad1ef Merge in changes from my cdr-tds-conversion branch. This changes the internal
implementation from using the volatile libtds, to using the db-lib front end.
The unintended side effect of this is that we support (at least) versions 0.62
through 0.82 of the FreeTDS distribution without any #ifdef ugliness.

(closes issue #12844)
Reported by: jcollie


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126226 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-28 21:28:16 +00:00
seanbright 991d881f11 Update CHANGES and UPGRADE.txt per kpfleming's mail to #asterisk-dev.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124835 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-24 11:02:02 +00:00
tilghman 86f9034a9f Add some more IAX2-specific information about the channel to the CHANNEL()
function and begin the transition from SIPCHANINFO() to just using CHANNEL().
(closes issue #12856)
 Reported by: mostyn
 Patches: 
       iax_and_sip_channel_info.patch uploaded by mostyn (license 398)
       (with some additional cleanup by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-15 15:21:16 +00:00
tilghman e274b08136 Expand CDR uniqueid field to 150 chars, to account for maximum systemname.
(Closes issue #12831)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121855 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 17:44:39 +00:00
tilghman ede6df540e Add info on the [compat] section of asterisk.conf.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120567 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-05 14:35:47 +00:00
tilghman 30298a3d74 Change space-zero to now evaluate to false, as is expected by a great many.
(Inspired by a post on the -users list)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118223 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-25 14:31:29 +00:00
mmichelson 15c4716a78 Modify externnotify to take the number of urgent voicemails as a final argument instead
of the string "Urgent" 

(closes issue #12660)
Reported by: jaroth
Patches:
      externnotify.patch uploaded by jaroth (license 50)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116592 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 15:24:29 +00:00
mmichelson 71a41a28b1 Adding support for "urgent" voicemail messages. Messages which are
marked "urgent" are considered to be higher priority than other messages
and so they will be played before any other messages in a user's mailbox.

There are two ways to leave an urgent message. 
1. send the 'U' option to VoiceMail().
2. Set review=yes in voicemail.conf. This will give instructions for 
   a caller to mark a message as urgent after the message has been recorded.

I have tested that this works correctly with file and ODBC storage, and James
Rothenberger (who wrote initial support for this feature) has tested its use
with IMAP storage.

(closes issue #11817)
Reported by: jaroth
	Based on branch http://svn.digium.com/svn/asterisk/team/jrothenberger/asterisk-urgent
Tested by: putnopvut, jaroth



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115588 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-09 21:22:42 +00:00
tilghman 4e003c03f0 Note change for ExecIf syntax (caught by jmls on IRC)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-05 19:42:36 +00:00
kpfleming 69e8b962a3 clarify wording
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115288 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-05 10:55:09 +00:00
russell bb32a8bc65 Clarify the deprecation notice about Macro() to note that it will not be removed
for the sake of backwards compatibility, since it is a non-trivial task to convert
existing large dialplans that depend on Macro() to use GoSub(), instead.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114931 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-01 17:28:25 +00:00
mmichelson bcd5162d10 Make app_directory dependent on app_voicemail. This is because the function
which says the person's name is handled inside app_voicemail now.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114841 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-29 18:48:26 +00:00
kpfleming 99e6faa71b Merged revisions 111126 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r111126 | kpfleming | 2008-03-26 14:51:24 -0500 (Wed, 26 Mar 2008) | 10 lines

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

........
r111125 | kpfleming | 2008-03-26 14:49:30 -0500 (Wed, 26 Mar 2008) | 2 lines

update UPGRADE notes to document usage of the script

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-26 19:52:27 +00:00
kpfleming 48c13bd6a3 Merged revisions 110962 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r110962 | kpfleming | 2008-03-26 12:43:02 -0500 (Wed, 26 Mar 2008) | 2 lines

add note that the user will need to enable codec_ilbc to get it to build

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110963 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-26 17:44:09 +00:00
kpfleming adfd7f5f13 Merged revisions 110880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r110880 | kpfleming | 2008-03-26 09:42:35 -0700 (Wed, 26 Mar 2008) | 10 lines

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

........
r110869 | kpfleming | 2008-03-26 08:53:46 -0700 (Wed, 26 Mar 2008) | 2 lines

due to licensing restrictions, we cannot distribute the source code for iLBC encoding and decoding... so remove it, and add instructions on how the user can obtain it themselves

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110881 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-26 17:10:28 +00:00
tilghman 198829f2db Create a centralized configuration option for silencethreshold
(closes issue #11236)
 Reported by: philipps
 Patches: 
       20080218__bug11236.diff.txt uploaded by Corydon76 (license 14)
 Tested by: philipps


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106072 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05 16:23:44 +00:00
russell b8ad84d572 Deprecate the "stripmsd" option in favor of dialplan substring variable syntax.
(closes issue #12060)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104110 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25 23:56:47 +00:00
tilghman 92539559f8 Move Originate to a separate privilege and require the additional System privilege to call out to a subshell.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104039 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-22 22:55:35 +00:00
file 9fc8ecd73b Add CHANNELREDIRECT_STATUS variable to ChannelRedirect() dialplan application. This will either be set to NOCHANNEL if the given channel was not found or SUCCESS if it worked.
(closes issue #11553)
Reported by: johan
Patches:
      UPGRADE.txt.channelredirect.patch uploaded by johan (license 334)
      CHANGES.channelredirect.patch uploaded by johan (license 334)
      app_channelredirect-20080219.patch uploaded by johan (license 334)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103819 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19 18:40:22 +00:00
mmichelson 3f232df739 Change the queue holdtime announcement to happen at any interval (not just greater than two minutes). Remove
the saying of less-than for holdtime announcements since it can lead to awkward holdtime announcements. Using
'1' as a queue-round-seconds value is no longer valid.

(closes issue #9736)
Reported by: caio1982
Patches:
      queue_announce5.diff uploaded by caio1982 (license 22)
	  Tested by: caio1982, putnopvut


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103687 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 20:46:00 +00:00
mmichelson 6f57562368 1. Deprecate SetMusicOnHold and WaitMusicOnHold.
2. Add a duration parameter to MusicOnHold

(closes issue #11904)
Reported by: dimas
Patches:
      v2-moh.patch uploaded by dimas (license 88)
	  Tested by: dimas



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103658 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-13 15:47:25 +00:00
russell dc7deea755 At the request of ManxPower, include the UPGRADE.txt from 1.2 and 1.4, as well.
This way, if people need to go back and review what was deprecated in previous
major releases, it is readily available to them.  Thanks for the suggestion!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103044 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-08 16:49:19 +00:00
russell 7193c2e2ef Add a note about changing modules.conf since another console channel driver is
now present that can not be used at the same time as chan_alsa or chan_oss.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96715 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-05 21:35:54 +00:00
oej b9b03966fb HUGE improvements to QoS/CoS handling by IgorG
- Refer to the proper documentation
- Implement separate signalling/media QoS/CoS in many channels using RTP
- Improve warnings and verbose messages
- Deprecate some old settings

Minor modifications by me, a big effort from IgorG.
Thanks!


Reported by: IgorG
Patches: 
      qoscleanup-89394-4-trunk.patch uploaded by IgorG (license 20)
Tested by: IgorG
(closes issue #11145)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93163 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-16 10:51:53 +00:00
tilghman ef6f7af8ad Remove use of privacy.conf by the Privacy app.
Reported by: eliel
Patch by: eliel
(Closes issue #11344)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93066 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 19:27:54 +00:00
oej 283b5f3ef0 Adding documentation for the massive manager changes to manager
version 1.1 - hopefully a more consistent manager interface.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91438 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 15:56:58 +00:00
tilghman a17700ba80 Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
(Closes issue #11015)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91173 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 16:46:47 +00:00
oej 8febb656a2 Rename "username" to "defaultuser" to match with "defaultip".
"Username" still works, but is deprecated.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91152 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 13:09:47 +00:00
oej d33873fade - Mark "concise" as deprecated
- Restructure other changes to UPGRADE.txt and CHANGES

We're still looking for scripts that replace 
	asterisk -rx "show shannels concise"
by using the manager interface, but still produces the same output.
Anyone?


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89606 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 19:24:23 +00:00
tilghman 21981c69ae Change Read to set READSTATUS as an indication of the result
Also, some cleanup to CHANGES.
Reported by: michael-fig
Patch by: michael-fig,tilghman
(Closes issue #11004)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89489 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 18:38:18 +00:00