dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

13890 Commits

Author SHA1 Message Date
oej 6d98f4fd7e - Dial event
- Event Dial has new headers, to comply with other events
        - Source        -> Channel              Channel name (caller)
        - SrcUniqueID   -> UniqueID             Uniqueid
        (new)           -> Dialstring           Dialstring in app data


(moremanager)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91407 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 15:04:34 +00:00
oej 526275407d Adding small missing but important comma...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91406 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:55:31 +00:00
oej 7c7bfe6daf A big oops...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91388 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:40:44 +00:00
oej 77a2479f53 The MeetmeJoin now has caller ID name and Caller ID number fields (like MeetMeLeave)
(Moremanager)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91387 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:36:54 +00:00
oej 05ba99e36b Update ZapShowChannels so that you can specify one channel.
Action ZapShowChannels
        Header changes
        - Channel:      -> ZapChannel
        For active channels, the Channel: and Uniqueid: headers are added
        You can now add a "ZapChannel: " argument to zapshowchannels actions
        to only get information about one channel.

From the moremanager branch


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91386 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:33:14 +00:00
oej e9f4991f30 Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91385 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:29:20 +00:00
oej 4f471e1f71 Merged revisions 91366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91366 | oej | 2007-12-06 13:54:11 +0100 (Tor, 06 Dec 2007) | 4 lines

Make sure logger is reloaded at general reload in the cli.

(Discovered during Asterisk training in Portugal)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91384 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:23:12 +00:00
oej 21f8732bd3 Change description of new manager command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91348 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 10:29:02 +00:00
oej 9a86564730 Add manager command for showing all current channels.
Thanks, eliel, for writing the original patch. Modified by me to follow
other manager events and the new "moremanager" style.

(closes issue #11478)
Reported by: eliel
Patches: 
      manager.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 10:27:54 +00:00
file 1b34ebf274 Instead of iterating through the entire epoll events array just look at the ones that will actually contain data. (props to eliel on IRC for this)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91328 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 04:37:36 +00:00
mmichelson 67e82aa1ba Merged revisions 91292 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91292 | mmichelson | 2007-12-05 16:57:13 -0600 (Wed, 05 Dec 2007) | 3 lines

Reverting extra stuff I didn't mean to commit


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91293 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 22:57:57 +00:00
mmichelson eedde68808 Merged revisions 91273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91273 | mmichelson | 2007-12-05 16:35:52 -0600 (Wed, 05 Dec 2007) | 11 lines

The 'G' option for Dial() did not properly handle the case where only a label was
provided. This was due to the fact that the answering channel did not have an extension
set, so ast_parseable_goto would fail. This fix eliminates the call to ast_parseable_goto
on the answering channel since it is a wasteful call. The answering channel and the calling
channel are both directed to the same extension and context, just different priorities, so
we can just copy the values from the calling channel to the answering channel and increment
the answering channel's priority.

(closes issue #11382, reported by jon, patch by me with correction by jon)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91291 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 22:55:49 +00:00
tilghman 747e06552c Merged revisions 91237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91237 | tilghman | 2007-12-05 15:38:13 -0600 (Wed, 05 Dec 2007) | 2 lines

Upgrade to the latest version of extra sounds

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91238 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 21:46:42 +00:00
russell ea3565c2e5 Merged revisions 91192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91192 | russell | 2007-12-05 11:31:42 -0600 (Wed, 05 Dec 2007) | 10 lines

Make the lock in the threadstorage debugging code untracked to avoid a deadlock
on thread destruction.

(closes issue #11207)
Reported by: ys
Patches:
      threadstorage.c.diff uploaded by ys (license 281)

Also fixes an open bug report: (closes issue #11446)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91197 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 17:49:03 +00:00
russell 0738ce5f9e Resolve compiler warnings.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91193 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 17:44:59 +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
tilghman 29a6f4d8e6 Added multiple name listing. (Closes issue #10413)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91172 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 16:25:52 +00:00
file 88cd7c0f5d Remove second prefix line. Only need it documented once in the same file.
(closes issue #11472)
Reported by: eserra
Patches:
      http.conf.sample.diff uploaded by eserra (license 45)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91171 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 16:14:06 +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 8694b5efff Remove the cseqs from "sip show channel" and make more place for the call ID.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91151 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 12:58:12 +00:00
kpfleming bb78883d21 revert part of my changes from earlier today since this code is no longer dependent on libpri.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 03:48:53 +00:00
russell f611912982 Use ast_free() instead of free().
(closes issue #11309)
Reported by: Laureano
Patches: 
      res_odbc.c.patch uploaded by Laureano (license 265)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91131 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 03:34:51 +00:00
russell 2e316c898e Merged revisions 91070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91070 | russell | 2007-12-04 18:35:31 -0600 (Tue, 04 Dec 2007) | 11 lines

Fix some crashes in chan_iax2 that were reported as happening on Mac systems.
It turns out that the problem was the Mac version of the ast_atomic_fetchadd_int()
function.  The Mac atomic add function returns the _new_ value, while this function
is supposed to return the old value.  So, the crashes happened on unreferencing
objects.  If the reference count was decreased to 1, ao2_ref() thought that it
had been decreased to zero, and called the destructor.  However, there was still
an outstanding reference around.

(closes issue #11176)
(closes issue #11289)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91114 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 01:59:32 +00:00
russell 75f71be838 Merged revisions 91074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91074 | russell | 2007-12-04 18:48:47 -0600 (Tue, 04 Dec 2007) | 4 lines

When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks.  This should fix the
problem where people have reported "core show locks" crashing sometimes.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91077 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 00:49:19 +00:00
russell 6a7486f4e3 Fix mwimonitornotify on reload ... again. This option was only read at startup
so a reload would erase it and not reset it.  (pointed out by tzafrir)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 23:57:31 +00:00
russell ad229ede42 Blocked revisions 91032 via svnmerge
........
r91032 | russell | 2007-12-04 17:46:40 -0600 (Tue, 04 Dec 2007) | 5 lines

Modify file.h to maintain API compatibility with earlier versions.  If a recent
compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91033 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 23:47:28 +00:00
russell e40f5364c1 Fix the build of astman. Any file that includes any asterisk sub-headers
needs to first include asterisk.h.
(closes issue #11394)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91029 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 23:01:15 +00:00
mattf d2783f534e Don't error when we don't have libpri installed with libss7 support. Also, print the debug message anyway if we can't find the right PRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91012 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:44:01 +00:00
russell ea5152f7cc Merged revisions 90967 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90967 | russell | 2007-12-04 13:57:39 -0600 (Tue, 04 Dec 2007) | 7 lines

Make some changes to some additions I made recently for doing channel autoservice
when looking up extensions.  This code was added to handle the case where a
dialplan switch was in use that could block for a long time.  However, the way
that I added it, it did this for all extension lookups.  However, lookups in the
in-memory tree of extensions should _not_ take long enough to matter.  So, move
the autoservice stuff to be only around executing a switch.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91011 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:07:35 +00:00
russell 55e37207a1 Fix resetting mwimonitornotify on reload. I guess I only added this line in my head.
(thanks to tzafrir for pointing it out)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91010 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:02:48 +00:00
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