dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

13860 Commits

Author SHA1 Message Date
tilghman bd0b3bcb4e Coding guidelines fixups
(Closes issue #11412)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90993 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 21:46:27 +00:00
qwell a2d2f69502 Add manager action 'sipshowregistry'.
Closes issue #11464, patch by eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90991 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 21:23:30 +00:00
russell bdd896e7be Add support for monitoring MWI on FXO lines.
This introduces two new options for zapata.conf: mwimonitor and mwimonitornotify.
The mwimonitor option enables MWI monitoring.  When the MWI state on a line changes,
then the script specified by mwimonitornotify will be executed for custom handling
of the state change, similar to the externnotify option of voicemail.conf.

Also, when the MWI state on an FXO line changes, an internal Asterisk event is
generated to indicate the new state of the associated mailbox.  That may, any
module that cares about MWI information will get notified and can handle it
just as if app_voicemail had sent this notification.

(BE-253, original patch from markster, with some minor modifications by me to
 add comments, documentation, and internal event support)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 19:08:30 +00:00
mmichelson b31b092cff Kevin suggested doing the reverse of my last commit, since imap_retrieve_file
does not modify the contents of the "mailbox" string. In other words, I'm changing
the imap_retrieve_file function to take a const char* as the third argument so that I
don't need to cast const char*'s as char*'s to suppress compiler warnings.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90930 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 18:29:35 +00:00
qwell 80cb3f85ab Add Makefile alias target 'pdf' which does the same thing as asterisk.pdf.
Issue 11452, reported by blitzrage.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90929 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 18:15:17 +00:00
mmichelson fda84d629d Suppress a compiler warning due to discarding a "const" qualifier
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90928 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 18:14:08 +00:00
qwell 125f5f6754 Fix build, that some people aren't seeing for some reason.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90927 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 18:09:28 +00:00
mmichelson 48f394751c Wrong locking style got merged from 1.4 to trunk. My mistake.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90899 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:51:59 +00:00
kpfleming 9e4649bf40 fix build of this module when libpri and/or libss7 are or are not present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90880 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:40:29 +00:00
qwell ba0f9bf9f2 Merged revisions 90876 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11454)
........
r90876 | qwell | 2007-12-04 11:28:08 -0600 (Tue, 04 Dec 2007) | 4 lines

If we fail to create a channel after allocating a timing fd, we need to make sure to close it.

Issue 11454, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90879 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:38:51 +00:00
russell c467b62694 Fix a silly little typo :)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90878 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:36:59 +00:00
qwell 807b019f34 Fix build in trunk. This was fixed in 1.4, but blocked in trunk since this hadn't been merged yet.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90877 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:35:40 +00:00
mmichelson 4128bac7a9 Merged revisions 90735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90735 | mmichelson | 2007-12-03 17:12:17 -0600 (Mon, 03 Dec 2007) | 22 lines

A big one...

This is the merge of the forward-loop branch. The main change here is that call-forwards can no longer loop.
This is accomplished by creating a datastore on the calling channel which has a linked list of all devices
dialed. If a forward happens, then the local channel which is created inherits the datastore. If, through this
progression of forwards and datastore inheritance, a device is attempted to be dialed a second time, it will simply
be skipped and a warning message will be printed to the CLI. After the dialing has been completed, the datastore
is detached from the channel and destroyed.

This change also introduces some side effects to the code which I shall enumerate here:

1. Datastore inheritance has been backported from trunk into 1.4
2. A large chunk of code has been removed from app_dial. This chunk is the section of code
   which handles the call forward case after the channel has been requested but before it has
   been called. This was removed because call-forwarding still works fine without it, it makes the
   code less error-prone should it need changing, and it made this set of changes much less painful
   to just have the forwarding handled in one place in each module.
3. Two new files, global_datastores.h and .c have been added. These are necessary since the datastore
   which is attached to the channel may be created and attached in either app_dial or app_queue, so they
   need a common place to find the datastore info. This approach was taken in case similar datastores are
   needed in the future, there will be a common place to add them.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90873 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:08:36 +00:00
oej 4df981b891 (closes issue #11431)
Reported by: Laureano
Patches: 
      app_queue.c.patch uploaded by Laureano (license 265)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90854 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 15:16:03 +00:00
oej 5e8a73939a (closes issue #11422)
Reported by: eliel
Patches: 
      core.show.hint.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90853 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 15:07:53 +00:00
oej dd414bec14 (closes issue #11462)
Reported by: eliel
Patches: 
      CHANGES.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90852 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 15:02:48 +00:00
tilghman fc56a37a49 Pass the Asterisk version to AGI scripts as part of the initial dump of info
Reported by: acunningham
Patch by: acunningham
(Closes issue #11398)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 15:01:57 +00:00
rizzo 8e49ea6b36 fix build on cygwin
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90834 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 11:50:05 +00:00
file 9cebb62b61 Blocked revisions 90798 via svnmerge
........
r90798 | file | 2007-12-04 01:29:33 -0400 (Tue, 04 Dec 2007) | 2 lines

Fix build issue on the build cluster.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90799 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 05:31:00 +00:00
tilghman 56b0d2b610 Merged revisions 90753 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90753 | tilghman | 2007-12-03 17:50:51 -0600 (Mon, 03 Dec 2007) | 5 lines

Solaris requires the inclusion of sys/loadavg.h for getloadavg().
Reported by: snuffy
Patch by: snuffy,tilghman
(Closes issue #11430)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90760 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 23:52:23 +00:00
murf 7d0ee37cde A small fix from snuffy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90746 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 23:49:40 +00:00
qwell a6114c7c84 Add manager events for when a monitor is started or stopped.
Closes issue #10191, patch by dgradecak.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90738 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 23:48:04 +00:00
tilghman 13d1f2b914 Merged revisions 90736 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90736 | tilghman | 2007-12-03 17:23:55 -0600 (Mon, 03 Dec 2007) | 5 lines

If both dbhost and dbsock were not set, a NULL deref could result
Reported by: xrg
Patch by: tilghman
(Closes issue #11387)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90737 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 23:29:57 +00:00
qwell 2ee1c89345 Merged revisions 90696 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11383)
........
r90696 | qwell | 2007-12-03 16:06:36 -0600 (Mon, 03 Dec 2007) | 4 lines

Make sure we always close the conference fd if we have an open one.

Issue 11383, reported by markmhy, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90697 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 22:07:57 +00:00
mmichelson 893a67e791 Replacing some calls to free() with ast_free().
(closes issue #11448, reported and patched by jaroth)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90670 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 21:24:56 +00:00
file 7c209702a8 Add AGI commands for speech recognition. These mirror the dialplan applications mostly but present the information in a nicer fashion. The SPEECH RECOGNIZE command for example will return the results instead of having to query the dialplan functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90656 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 21:03:05 +00:00
mmichelson 5ea0aff8a0 Merged revisions 90639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90639 | mmichelson | 2007-12-03 14:59:51 -0600 (Mon, 03 Dec 2007) | 5 lines

Changing some bad logic when calculating the interdigit timeout.

(closes issue #11402, reported and patched by eferro)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90644 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 21:00:44 +00:00
qwell 670646d325 Merged revisions 90607 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11436)
........
r90607 | qwell | 2007-12-03 14:51:17 -0600 (Mon, 03 Dec 2007) | 4 lines

Fix crash in ParkAndAnnounce application.

Issue #11436, reported by lytledd, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90631 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 20:58:26 +00:00
tilghman eea6a9bbe8 Avoid an additional function call. Reported by: eliel Patch by: eliel (Closes issue #11438)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90591 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 20:30:02 +00:00
file 0e8545b0dc Merged revisions 90588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90588 | file | 2007-12-03 16:05:42 -0400 (Mon, 03 Dec 2007) | 2 lines

Do not create a smoother for G723.1 frames, they need to be left alone to their native 20/24 byte size.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90589 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 20:07:34 +00:00
file 0382b41448 Merged revisions 90548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90548 | file | 2007-12-03 14:40:56 -0400 (Mon, 03 Dec 2007) | 2 lines

Preserve the indication currently playing on a channel when a masquerade operation happens. (issue #BE-88)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90550 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 18:44:16 +00:00
qwell 7f367fa557 Blocked revisions 90546 via svnmerge
........
r90546 | qwell | 2007-12-03 12:20:49 -0600 (Mon, 03 Dec 2007) | 4 lines

Only log debug messages if debug is enabled.

Closes issue #11416, patch by casper.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90547 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 18:21:49 +00:00
mmichelson 50833920b4 Updating sample queues.conf file to show how multiple periodic announcements
may be specified since this was not documented previously

(closes issue #11432, reported and patched by Laureano)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90528 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 16:46:01 +00:00
file 344ae791b9 Remove the file descriptors from the main poll channel when the channel is hung up during the dialing attempt, and make sure a channel exists before trying to remove it at the end.
(closes issue #11441)
Reported by: blitzrage


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90508 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 14:14:43 +00:00
russell 814e0a28cf Merged revisions 90470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90470 | russell | 2007-12-02 12:18:52 -0600 (Sun, 02 Dec 2007) | 6 lines

The other day when I went through making changes as a result of the ao2_link()
change, I added some code to set pointers to NULL after they were unreferenced.
This pointed out that in this place, the object was unreferenced before the
code was done using it.  So, move the unref down a little bit.
(crash reported by jmls on IRC)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90471 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-02 18:20:13 +00:00
tilghman da0783fd7a Merged revisions 90432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90432 | tilghman | 2007-12-02 03:34:23 -0600 (Sun, 02 Dec 2007) | 7 lines

Clarify the return value on autoservice.  Specifically, if you started
autoservice and autoservice was already on, it would erroneously return an
error.
Reported by: adiemus
Patch by: dimas
(Closes issue #11433)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90433 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-02 09:42:48 +00:00
qwell 02481047df Only reload if the config file has changed.
Closes issue #11281, patch by eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90410 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-01 01:37:50 +00:00
mmichelson a7c0447e63 Adding support for the "automixmonitor" dial and queue options.
This works in much the same way as the automonitor, except that instead of using the monitor
app, it uses the mixmonitor app. By providing an 'x' or 'X' as a dial or queue option, a DTMF
sequence may be entered (as defined in features.conf) to start the one-touch mixmonitor.

This patch also introduces some new API calls to the audiohooks code for searching for an audiohook
by type and for searching for a running audiohook by type.

Big thanks to joetester for writing the initial patch, testing it and patiently waiting for it to 
be committed.

(closes issue #10185, reported and patched by xmarksthespot)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90388 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 21:19:57 +00:00
russell 7cfa10f05b Merged revisions 90348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90348 | russell | 2007-11-30 13:26:04 -0600 (Fri, 30 Nov 2007) | 8 lines

Change the behavior of ao2_link().  Previously, in inherited a reference.
Now, it automatically increases the reference count to reflect the reference
that is now held by the container.

This was done to be more consistent with ao2_unlink(), which automatically
releases the reference held by the container.  It also makes it so it is
no longer possible for a pointer to be invalid after ao2_link() returns.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90351 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 19:34:47 +00:00
russell 2393a4999d Merged revisions 90310 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90310 | russell | 2007-11-30 12:46:46 -0600 (Fri, 30 Nov 2007) | 2 lines

Add some notes on the behavior of ao2_unlink() after a discussion with Tilghman

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90311 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 18:47:14 +00:00
file c5a1e93068 Merged revisions 90269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90269 | file | 2007-11-30 10:43:15 -0400 (Fri, 30 Nov 2007) | 6 lines

Fix locking issues under one legged replaces scenarios.
(closes issue #11420)
Reported by: irroot
Patches:
      chan_sip_oneleg.patch uploaded by irroot (license 52)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 14:45:36 +00:00
mmichelson 655737e186 Merged revisions 90231 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90231 | mmichelson | 2007-11-29 18:16:04 -0600 (Thu, 29 Nov 2007) | 5 lines

Clear the DTMF buffer if the call times out.

(closes issue #11418, reported and patched by eferro)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90232 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 00:16:45 +00:00
mmichelson 18943278d5 Merged revisions 90163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90163 | mmichelson | 2007-11-29 13:38:39 -0600 (Thu, 29 Nov 2007) | 6 lines

This patch handles the case where a queue member with a negative penalty is added
via the manager. If a negative value is submitted for a member penalty, we set it to 0.

(closes issue #11411, reported and patched by Laureano)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90164 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 19:39:31 +00:00
tilghman 271af78f82 Merged revisions 90160 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90160 | tilghman | 2007-11-29 13:24:11 -0600 (Thu, 29 Nov 2007) | 2 lines

Properly escape input buffers (Fixes AST-2007-025)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90162 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 19:35:49 +00:00
tilghman 178cee50cf Merged revisions 90155 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90155 | tilghman | 2007-11-29 11:29:59 -0600 (Thu, 29 Nov 2007) | 5 lines

Use of "private" as a field name in a header file messes with C++ projects
Reported by: chewbacca
Patch by: casper
(Closes issue #11401)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90158 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 17:50:44 +00:00
tilghman d593529831 Fix build of trunk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90157 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 17:42:21 +00:00
tilghman 833a319047 Merged revisions 90154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90154 | tilghman | 2007-11-29 11:18:09 -0600 (Thu, 29 Nov 2007) | 2 lines

Upgrade the core sounds release version

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90156 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 17:31:35 +00:00
kpfleming e95d92fac9 let's try this again... *all* compilation and linking in Asterisk should be done using the standard compilation rules, not manually created ones. changing hashtest.c to use these rules caused the compiler to notice a large number of coding guidelines violations, so those are fixed too.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90150 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 13:38:11 +00:00
kpfleming cdc42b28f3 restore behavior from the 1.4 branch... manager users created via users.conf should default to *all* permissions, not none
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90149 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 13:30:50 +00:00
russell 828a2c6848 Blocked revisions 90147 via svnmerge
........
r90147 | russell | 2007-11-28 18:36:59 -0600 (Wed, 28 Nov 2007) | 1 line

fix some formatting i accidentally changed
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90148 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29 00:37:22 +00:00