dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

15616 Commits

Author SHA1 Message Date
russell b97df61759 Make this build under dev mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122232 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 17:14:32 +00:00
mmichelson cfdbb7eb03 Merging the work done in the queue-log-atxfer branch. The
net result of this work is that attended transfers made
by queue members will now show up in the queue_log as a 
TRANSFER message instead of COMPLETECALLER as it had been.

As far as the details go, I created a datastore which is
attached to the calling channel just prior to when the caller
is bridged with the queue member. If the calling channel
is masqueraded, then during the "fixup" portion, the TRANSFER
will be logged and the datastore will be removed.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122228 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 16:25:09 +00:00
tilghman 1a1d9a6c13 Merged revisions 122137 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122137 | tilghman | 2008-06-12 10:18:39 -0500 (Thu, 12 Jun 2008) | 8 lines

Flipflop the sections for two options, since the section for 'X' (exit context)
may otherwise absorb keypresses meant for 's' (admin/user menu).
(closes issue #12836)
 Reported by: blitzrage
 Patches: 
       20080611__bug12836.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 15:26:07 +00:00
tilghman cc826d9442 Merged revisions 122130 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122130 | tilghman | 2008-06-12 10:11:30 -0500 (Thu, 12 Jun 2008) | 4 lines

Occasionally, the alertpipe loses its nonblocking status, so detect and correct
that situation before it causes a deadlock.  (Reported and tested by ctooley
via #asterisk-dev)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122131 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 15:14:37 +00:00
murf 07c8bcdb66 Merged revisions 122127 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122127 | murf | 2008-06-12 08:51:44 -0600 (Thu, 12 Jun 2008) | 1 line

Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122128 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 14:56:26 +00:00
murf b3ef5ade57 Merged revisions 122046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122046 | murf | 2008-06-12 07:47:34 -0600 (Thu, 12 Jun 2008) | 37 lines

(closes issue #10668)
Reported by: arkadia
Tested by: murf, arkadia

Options added to forkCDR() app and the CDR() func to
remove some roadblocks for CDR applications.

The "show application ForkCDR" output was upgraded
to more fully explain the inner workings of forkCDR.

The A option was added to forkCDR to force the
CDR system to NOT change the disposition on the
original CDR, after the fork. This involves
ast_cdr_answer, _busy, _failed, and so on.

The T option was added to forkCDR to force 
obedience of the cdr LOCKED flag in the
ast_cdr_end, all the disposition changing
funcs (ast_cdr_answer, etc), and in the
ast_cdr_setvar func.

The CHANGES file was updated to explain ALL
the new options added to satisfy this bug report
(and some requests made verbally and via 
email, irc, etc, over the past months/year)

The 's' option was added to the CDR() func,
to force it to skip LOCKED cdr's in the
chain.

Again, the new options should be totally transparent
to existing apps! Current behavior of CDR,
forkCDR, and the rest of the CDR system should
not change one little bit. Until you add the
new options, at least!


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122091 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 14:28:01 +00:00
kpfleming 9178a12ea8 add infrastructure so that timing source can be a loadable module... next steps are to convert channel.c and chan_iax2.c to use this new API, and to move all the DAHDI-specific timing source code into a new res_timing_dahdi module
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122062 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 14:21:32 +00:00
russell 63e2aa5e5d Don't log not being able to set a default EID. Most people don't care, and
those that do can check their setup using CLI commands.
(closes issue #12839)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122047 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12 14:06:38 +00:00
twilson 9ebe0ea158 Blocked revisions 121992 via svnmerge
........
r121992 | twilson | 2008-06-11 18:47:23 -0500 (Wed, 11 Jun 2008) | 2 lines

Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121993 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 23:48:38 +00:00
twilson 5c31605852 Initialize parkingtime to DEFAULT_PARK_TIME instead of 0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121955 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 21:38:40 +00:00
mattf 66a6493fed Fix pseudo channel allocation errors on startup when using SS7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121914 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 18:53:10 +00:00
tilghman ba5ec156c0 Merged revisions 121861 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121861 | tilghman | 2008-06-11 13:18:16 -0500 (Wed, 11 Jun 2008) | 3 lines

Make calls to ast_assert() actually test something, so that the error message
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121867 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 18:19:24 +00:00
mattf 9edea8c7af Make sure we hangup any calls we have and NULL out the ss7call value when we get a reset circuit message. Fixes crash bug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121857 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 17:50:17 +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
jpeeler d46e4924e8 Merged revisions 121804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121804 | jpeeler | 2008-06-11 11:11:09 -0500 (Wed, 11 Jun 2008) | 1 line

add instructions for logging gdb output via set logging on
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121805 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 16:11:40 +00:00
crichter 2462f3b468 Merged revisions 121751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121751 | crichter | 2008-06-11 11:28:04 +0200 (Mi, 11 Jun 2008) | 1 line

fixed issue with previous commit, the find_free_channel test for channels which where inuse was broken.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121770 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11 11:52:18 +00:00
russell 0ff771045e don't refer to asterisk-events, as that implies that the code was checked out from a branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121716 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 21:51:06 +00:00
tilghman 2a6397c89e Move the table cache routines to res_odbc, so they can be used from other
places (app_voicemail, for example).
(Related to bug #11678)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121683 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 21:14:58 +00:00
mmichelson e3f8a4c03c Add an additional sanity check in case an event is passed between
Asterisk boxes with mismatched ie_maps.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121649 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 19:52:21 +00:00
juggie fa257271e7 Revision 117802 changed frame.data to frame.data.ptr however codec_ilbc.c was not updated. This resolves that oversight.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121599 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 19:03:11 +00:00
seanbright 816a4f6803 Merged revisions 121596 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121596 | seanbright | 2008-06-10 14:34:45 -0400 (Tue, 10 Jun 2008) | 6 lines

Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage returns in scripts.

(closes issue #12749)
Reported by: alinux
Tested by: Laureano (on #asterisk-dev), juggie

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121597 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 18:35:37 +00:00
russell 6195ff1afd Merge another big set of changes from team/russell/events
This commit merges in the rest of the code needed to support distributed device
state.  There are two main parts to this commit.

Core changes:
 - The device state handling in the core has been updated to understand device
   state across a cluster of Asterisk servers.  Every time the state of a device
   changes, it looks at all of the device states on each node, and determines the
   aggregate device state.  That resulting device state is what is provided to
   modules in Asterisk that take actions based on the state of a device.

New module, res_ais:
 - A module has been written to facilitate the communication of events between
   nodes in a cluster of Asterisk servers.  This module uses the SAForum AIS
   (Service Availability Forum Application Interface Specification) CLM and EVT
   services (Cluster Management and Event) to handle this task.  This module
   currently supports sharing Voicemail MWI (Message Waiting Indication) and
   device state events between servers.  It has been tested with openais, though
   other implementations of the spec do exist.

For more information on testing distributed device state, see the following doc:
  - doc/distributed_devstate.txt


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121559 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 15:12:17 +00:00
russell 639a4bf7e4 Merge some more changes from team/russell/events
This commit pulls in a batch of improvements and additions to the event API.
Changes include:
 - the ability to dynamically build a subscription.  This is useful if you're
    building a subscription based on something you receive from the network,
    or from options in a configuration file.
 - Add tables of event types and IE types and the corresponding string
    representation for implementing text based protocols that use these
	events, for showing events on the CLI, reading configuration that
	references event information, among other things.
 - Add a table that maps IE types and the corresponding payload type.
 - an API call to get the total size of an event
 - an API call to get all events from the cache that match a subscription
 - a new IE payload type, raw, which I used for transporting the Entity ID in
    my code for handling distributed device state.
 - Code improvements to reduce code duplication
 - Include the Entity ID of the server that originated the event in every event
 - an additional event type, DEVICE_STATE_CHANGE, to help facilitate distributed
    device state.  DEVICE_STATE is a state change on one server, DEVICE_STATE_CHANGE
	is the aggregate device state change across all servers.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121555 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 14:53:40 +00:00
file d804883827 Fix issue where session timer headers were present when they should not have been.
(closes issue #12706)
Reported by: falves11
Patches:
      chan_sip.c.diff uploaded by rjain (license 226)
Tested by: falves11


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121503 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 14:11:16 +00:00
russell dd57dea04e Merge another change from team/russell/events
This commit breaks out some logic from pbx.c into a simple API.  The hint
processing code had logic for taking the state from multiple devices and
turning that into the state for a single extension.  So, I broke this out
and made an API that lets you take multiple device states and determine
the aggregate device state.  I needed this for some core device state changes
to support distributed device state.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121501 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 14:06:29 +00:00
file 97f03a1be3 Merged revisions 121495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121495 | file | 2008-06-10 10:34:27 -0300 (Tue, 10 Jun 2008) | 4 lines

If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
(closes issue #12828)
Reported by: ramonpeek

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121496 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 13:36:13 +00:00
file 54f9c86dc5 Merged revisions 121442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121442 | file | 2008-06-10 09:52:06 -0300 (Tue, 10 Jun 2008) | 4 lines

Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
(closes issue #12815)
Reported by: ramonpeek

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121444 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 12:54:39 +00:00
russell e0a0687a86 Update dundi.conf to indicate that the asterisk.conf entityid option can be used
to set the entityid used in DUNDi, as well.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121441 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 12:50:07 +00:00
russell 5262d4ab16 Merge another change from team/russell/events ...
DUNDi uses a concept called the Entity ID for unique server identifiers.  I have
pulled out the handling of EIDs and made it something available to all of Asterisk.
There is now a global Entity ID that can be used for other purposes as well, such
as code providing distributed device state, which is why I did this.  The global
Entity ID is set automatically, just like it was done in DUNDi, but it can also be
set in asterisk.conf.  DUNDi will now use this global EID unless one is specified
in dundi.conf.

The current EID for the system can be seen in the "core show settings" CLI command.
It is also available in the dialplan via the ENTITYID variable.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121439 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 12:48:50 +00:00
russell 497b8c298c Bump up the debug level of a couple of messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121407 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 00:52:46 +00:00
russell a4199bd9a8 Merge a couple of configure script checks in from team/russell/events. This adds
the checks for the CLM and EVT services from the SAForum AIS.  I'm going to work
on merging in changes from this branch in pieces.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121403 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 00:43:06 +00:00
russell 5892ffdfdd Properly initialize the cli_ping condition and lock
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121402 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 00:31:30 +00:00
russell c4fd7f3320 Change system header includes to be like how it is done in other files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10 00:29:01 +00:00
tilghman e8556a10e2 Expand RQ_INTEGER type out to multiple types, one for each precision
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121367 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 22:51:59 +00:00
twilson 3f654c0868 Initialize the lock and destroy lock and cond in the destructor (thanks, mmichelson)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121365 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 22:42:08 +00:00
tilghman 9c234cec9a Add storage of the useragent in the realtime database.
(Closes AST-38)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121334 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 19:33:23 +00:00
russell 138235a099 arbitrary formatting change to test mantis change
(closes issue #12824)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121286 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 16:55:15 +00:00
russell 7df57fb2ab arbitrary formatting change to test a mantis change
(closes issue #12824)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121285 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 16:53:26 +00:00
russell a9c9333461 Minor formatting change to test a mantis change ...
(closes issue #12824)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121284 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 16:48:26 +00:00
russell 043bbef5b2 Merged revisions 121280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121280 | russell | 2008-06-09 11:35:40 -0500 (Mon, 09 Jun 2008) | 10 lines

Do not attempt to do emulation if an END digit is received and the length is
less than the defined minimum digit length, and the other end only wants END
digits (SIP INFO, for example).

(closes issue #12778)
Reported by: tsearle
Patches:
      12778.rev1.txt uploaded by russell (license 2)
Tested by: tsearle

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121282 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 16:37:08 +00:00
tilghman 50660eb42e Implement FINDLABEL matching for the new extension matching engine.
(closes issue #12800)
 Reported by: chris-mac
 Patches: 
       20080608__bug12800.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121279 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 16:35:06 +00:00
mmichelson f8511c7de5 Merged revisions 121229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Note that this is being merged to trunk/1.6.0 because
it may affect non-callback agents with ackcall set)

........
r121229 | mmichelson | 2008-06-09 10:02:37 -0500 (Mon, 09 Jun 2008) | 16 lines

A unique situation of timeouts brought forth a failure situation for
autologoff in chan_agent. If using AgentCallbackLogin-style agents, 
then if the timeout specified by the Dial() to reach the agent's phone
was shorter than the timeout specified in queues.conf, then autologoff
would only work if the caller hung up while the agent's phone was ringing.
This patch allows autologoff to work in this situation when the call in
queue transfers to the next available agent (as it would have if the timeout
in queues.conf were less than the timeout in the Dial()).

(closes issue #12754)
Reported by: Rodrigo
Patches:
      12754.patch uploaded by putnopvut (license 60)
Tested by: Rodrigo


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121230 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09 15:08:58 +00:00
mvanbaak 85f4dc1869 add a new argument to PrivacyManager to specify a context
where the entered phone number is checked.

You can now define a set of extensions/exten patterns that describe
valid phone numbers. PrivacyManager will check that context for a match
with the given phone number.
This way you get better control. For example people blindly hitting
10 digits just to get past privacymanager

Example line in extensions.conf:
exten => incoming,n,PrivacyManager(3,10,,route-outgoing)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121197 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-08 11:40:44 +00:00
jpeeler d6ba625aac This was accidentally reverted.
Fixes a bug where if a stream monitor thread was not created (caused from failure of opening or starting the stream) pthread_cancel was called with an invalid thread ID.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121163 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-08 01:41:59 +00:00
jpeeler 592ef84d24 Fixes segfault when using ParkAndAnnounce. Also, loop made more efficient as announce template only needs to be checked until the number of colon separated arguments run out, not the entire pointer storage array. Was done in a similiar fashion in 1.4, but here we're using less variables.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121131 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-08 01:16:25 +00:00
russell f14225c2fc Merged revisions 121078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121078 | russell | 2008-06-07 09:10:56 -0500 (Sat, 07 Jun 2008) | 7 lines

Don't run LIST_HEAD_DESTROY on a STATIC list

(closes issue #12807)
Reported by: ys
Patches: 
      chan_agent_local.diff uploaded by ys (license 281)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121079 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-07 14:18:44 +00:00
tilghman f91ce66326 Added a facility for sending arbitrary SIP notify commands from AMI.
(closes issue #12562)
 Reported by: michael-fig
 Patches: 
       20080515__bug12562.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121042 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06 20:24:11 +00:00
tilghman 9229799e60 Make extension match characters case-insensitive.
(closes issue #12777)
 Reported by: jsmith
 Patches: 
       lower_case_patterns-trunk-v1.patch uploaded by jsmith (license 15)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121010 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06 19:55:08 +00:00
jpeeler 8b857c9a99 Merged revisions 120959 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120959 | jpeeler | 2008-06-06 13:29:14 -0500 (Fri, 06 Jun 2008) | 1 line

add another LOW_MEMORY define I forgot
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120960 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06 18:30:17 +00:00
jpeeler 520498134e Merged revisions 120908 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120908 | jpeeler | 2008-06-06 13:05:15 -0500 (Fri, 06 Jun 2008) | 1 line

only define thread storage variable if necessary for LOW_MEMORY
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120909 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06 18:06:06 +00:00