dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

15455 Commits

Author SHA1 Message Date
tilghman b9f8e799b4 Merged revisions 117899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117899 | tilghman | 2008-05-22 13:53:53 -0500 (Thu, 22 May 2008) | 2 lines

Also remove preamble from asynchronous events (reported by jsmith on #asterisk-dev)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117900 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 18:54:41 +00:00
mvanbaak f7da1afd17 one more place I forgot
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117870 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:50:40 +00:00
mvanbaak 4273f5594b chan_console fixes because of ast_frame.data => ast_frame.data.ptr
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117834 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:16:08 +00:00
qwell dac7a3528e Fix a few places where frame data was used directly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117828 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:10:53 +00:00
mvanbaak 9ae780c750 oops
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117825 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:08:18 +00:00
mvanbaak 66d289c074 forgot chan_misdn
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117822 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:06:00 +00:00
tilghman bc0d549b6a Blocked revisions 117809 via svnmerge
........
r117809 | tilghman | 2008-05-22 11:47:03 -0500 (Thu, 22 May 2008) | 6 lines

Take into account the length of delimiters when calculating result string length.
(closes issue #12696)
 Reported by: adomjan
 Patches: 
       func_realtime.c-longdelimiter.patch uploaded by adomjan (license 487)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117812 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 16:50:32 +00:00
mvanbaak c1210321e7 - revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
- make data member of the ast_frame struct a named union instead of a void

Recently the ast_queue_hangup function got a new parameter, the hangupcause
Feedback came in that this is no good and that instead a new function should be created.
This I did.

The hangupcause was stored in the seqno member of the ast_frame struct. This is not very
elegant, and since there's already a data member that one should be used.
Problem is, this member was a void *.
Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone
wants to store another type in there in the future.

This commit is so massive, because all ast_frame.data uses have to be
altered to ast_frame.data.data

Thanks russellb and kpfleming for the feedback.

(closes issue #12674)
Reported by: mvanbaak


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 16:29:54 +00:00
mmichelson 2d9ba021dd Committing a fix pointed out by Atis Lezdins on the asterisk-dev list. Thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117794 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 16:05:18 +00:00
seanbright 890f6278bc Minor text fix. roster -> resource.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117792 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 15:49:17 +00:00
russell b0a1f90960 Store build-time options as a string in AST_BUILDOPTS in buildopts.h. Also,
display this information in the "core show settings" CLI command.  This is
useful if you want to verify that you're running a build with DONT_OPTIMIZE,
DEBUG_THREADS, etc.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117756 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 13:40:52 +00:00
tilghman 9f974d96fa Enhance ExternalIVR with new options and commands.
(closes issue #12705)
 Reported by: ctooley
 Patches: 
       new_externalivr_argument_format-v2.diff uploaded by ctooley (license 136)
       new_externalivr_documentation.diff uploaded by ctooley (license 136)
       and a few additional fixes by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117725 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 05:10:01 +00:00
mmichelson 549f37623b This change makes it so that logs will report the correct source of verbose messages.
Until this change, all verbose messages in Asterisk's log files reported logger.c
as the source of the message.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117693 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 22:34:27 +00:00
jpeeler cf71ad1d29 Merged revisions 117582 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117582 | jpeeler | 2008-05-21 15:11:14 -0500 (Wed, 21 May 2008) | 2 lines

Ensure that passed in zt_chan_conf structure is not modified in mkintf.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117658 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 21:31:17 +00:00
jpeeler 6d58f13e76 Merged revisions 117462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117462 | jpeeler | 2008-05-21 11:58:40 -0500 (Wed, 21 May 2008) | 3 lines

Pass a pointer for the conf parameter to the function mkintf rather than the whole zt_chan_conf structure.
Another commit is following to make sure the zt_chan_conf structure is not modified.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117628 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 20:44:04 +00:00
mmichelson cc2d2ea926 Add a new manager event, AgentRingNoAnswer to
app_queue.

(closes issue #12591)
Reported by: CCHAsteria
Patches:
      app_queue_RNA_event.diff uploaded by CCHAsteria (license 477)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117625 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 20:27:45 +00:00
file db00af8d48 Merged revisions 117574 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117574 | file | 2008-05-21 16:38:28 -0300 (Wed, 21 May 2008) | 2 lines

Apply the autoframing setting to dialogs that do not get matched against a user or peer.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117575 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 19:39:42 +00:00
tilghman 74e02c669c Blocked revisions 117523 via svnmerge
........
r117523 | tilghman | 2008-05-21 13:44:53 -0500 (Wed, 21 May 2008) | 2 lines

Revert accidental commit of the last change

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117524 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:45:26 +00:00
tilghman ce80ba991f Merged revisions 117519 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117519 | tilghman | 2008-05-21 13:40:14 -0500 (Wed, 21 May 2008) | 3 lines

Strip the preamble from the output also when -rx is not being used
(Related to issue #12702)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117520 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:43:26 +00:00
mmichelson 362de00dd2 Optimize the update_realtime_member_field function by not having
to query the database for the member and instead using a cached
uniqueid. 

Special thanks to atis for creating this and for keeping it up
to date with necessary changes

(closes issue #11896)
Reported by: atis
Patches:
      realtime_uniqueid_v6.patch uploaded by atis (license 242)
Tested by: atis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117517 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:31:05 +00:00
russell b854ddc899 Merged revisions 117514 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117514 | russell | 2008-05-21 13:28:46 -0500 (Wed, 21 May 2008) | 4 lines

Don't filter the magic character in the network verboser.  It gets filtered
once it reaches the client.
(related to issue #12702, pointed out by tilghman)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117515 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:29:05 +00:00
russell c77577be0c Merged revisions 117507 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117507 | russell | 2008-05-21 13:19:34 -0500 (Wed, 21 May 2008) | 7 lines

1) Don't print the verbose marker in front of every message from ast_verbose()
   being sent to remote consoles.

2) Fix pbx_gtkconsole to filter out the verbose marker.

(related to issue #12702)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117508 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:20:11 +00:00
russell 8dbcfb636d Merged revisions 117479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117479 | russell | 2008-05-21 13:11:51 -0500 (Wed, 21 May 2008) | 6 lines

Don't display the verbose marker for calls to ast_verbose() that do not include
a VERBOSE_PREFIX in front of the message.
(closes issue #12702)
Reported by: johnlange
Patched by me

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117481 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 18:12:19 +00:00
tilghman 20baa655f7 On socket-based connections, there is no error FD, so don't try waiting on one.
(closes issue #12697)
 Reported by: ctooley
 Patches: 
       fix_externalivr_waitfor_nandfds-v3.diff uploaded by ctooley (license 136)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117431 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 13:39:41 +00:00
rizzo 137f90f7b9 do not die on SDL_ACTIVEEVENT reporting lost focus.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 11:24:50 +00:00
mmichelson 1c9b0da173 Be sure that we cache included files for each source file which loads
a configuration file.  As it was, only the first did so. This led to 
a problem if the included file was changed (but not the configuration 
file which includes it) and the second source file attempted to reload 
the configuration. It would not see that the included file had changed.

In this particular example, res_phoneprov and chan_sip both loaded
sip.conf, which included a file call sip.peers.conf. Since res_phoneprov
was the first to load sip.conf, only it cached the fact that sip.conf
included sip.peers.conf. If sip.peers.conf were changed and sip.conf were
not and a sip reload were issued (meaning that chan_sip attempts to 
reload sip.conf only if it and its included files have changed) the changes
made to sip.peers.conf would not be seen and therefore no action would be
taken.

(closes issue #12693)
Reported by: marsosa



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117367 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 02:20:31 +00:00
murf 6a90ea060c These changes were made via the comments atis_work made at 4:30am (Mountain Time zone- US)
in #asterisk-dev on 20 May 2008. He noted that a backslash was being inserted before commas
in app call arguments in the extensions.conf.aeldump file that you get from aelparse with the
-w arg. This was being generated from code left over from 1.4, where commas were substituted
with '|', and any remaining commas needed to be escaped.

Many thanks to atis for his comment; please let us know if these changes break anything!




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117335 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21 01:00:28 +00:00
rizzo 3bfeb96b29 + Implement a variant of astman_get_header() to return the first or
last match, and possibly skip empty fields.  The function is useful
  (and used here) when a form submits multiple 'Action' fields to the
  Manager.

  This change slightly modifies the current behaviour, but only in the
  case the user supplies multiple 'Action: ' lines and the first
  ones are empty, so the change is totally harmless.
 
+ Fix style on a couple of "if (displayconnects)" statements;
 
+ Expand a bit the 'Manager Test' interface, to make it slightly
  more user friendly. But also comment that the HTML should not
  be embedded in the C source.
 
None of this stuff needs to be applied to 1.4.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117297 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20 18:07:24 +00:00
rizzo 7fffc70e0c Document the possible presence of multiple variables with the
same name in http queries, which might confuse the manager.

Replace calls to ast_uri_decode() with a local function that also
replaces '+' with ' ', as this is the normal encoding for
spaces in http requests.
This allows passing cli commands to the manager through the
http interface.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117295 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20 17:48:43 +00:00
rizzo 3120e6e452 Reverse the check for Cookie: and remove leftover code implementing
the same thing.
Add an ast_debug() call to help debugging the url matching.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117266 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20 16:39:39 +00:00
tilghman 60c5b78a7e Increase limit of unshared connections from 1023 to 4.2 billion.
(Related to issue #12677)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117264 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20 16:25:16 +00:00
tilghman dce9004ba8 Revert part of previous fix, and heavily comment the logic for object
destruction, for future users.
(Closes issue #12677)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20 16:13:48 +00:00
russell 30db35ff62 Minor formatting change to test a mantis change ...
(issue #12674)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117212 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 20:45:25 +00:00
tilghman 9f97a44436 Change the default for the pridialplan parameter to the far more common case of
'unknown', and better document the use of each parameter.
(closes issue #12633)
 Reported by: tzafrir
 Patches: 
       pridialplan_unknown_2.diff uploaded by tzafrir (license 46)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117182 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 20:06:38 +00:00
file 49884f46f0 Merged revisions 117135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117135 | file | 2008-05-19 13:50:52 -0300 (Mon, 19 May 2008) | 6 lines

Use the right pthread lock and condition when waiting.
(closes issue #12664)
Reported by: tomo1657
Patches:
      res_smdi.c.patch uploaded by tomo1657 (license 484)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117136 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 16:53:33 +00:00
file 65117da50c Remove a premature mutex destroy (the destruction callback will end up destroying it) and use a callback to purge remaining classes.
(closes issue #12677)
Reported by: falves11


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117133 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 16:22:56 +00:00
tilghman 9ebc2b5647 Merged revisions 117086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117086 | tilghman | 2008-05-19 11:05:05 -0500 (Mon, 19 May 2008) | 2 lines

The addition of usleep(2) within ast_assert requires the inclusion of the unistd.h header

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117088 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 16:07:09 +00:00
file f04a8183d8 The logger closes the files it is logging to when reloading so we have to read in the logger configuration even if it has not changed so that the logs get opened again.
(closes issue #12665)
Reported by: DennisD


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117085 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 16:03:33 +00:00
rizzo b8fa11992d trap potential failures of SDL when SDL_WINDOWID is pointing to a
random window.

This commit is essentially a workaround for some undesirable behaviour of SDL;
we should not be doing this in the application, but in the library.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117084 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 15:47:46 +00:00
file 8d22651dab Merged revisions 117081 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117081 | file | 2008-05-19 12:22:10 -0300 (Mon, 19 May 2008) | 6 lines

Make chan_h323 work with pwlib 1.12.0
(closes issue #12682)
Reported by: bamby
Patches:
      pwlib_nopipe.diff uploaded by bamby (license 430)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117082 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 15:24:44 +00:00
rizzo a187da59c6 fix example configuration for video support in chan_oss
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117053 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 14:54:34 +00:00
rizzo 971ffb8e85 Some fixes to the code to support running on an externally
supplied window.

SDL (at least recent 1.2.x versions) has the ability to run the
graphic output into an externally supplied window, whose ID in the
environment variable SDL_WINDOWID. Ideally, applications should
run unchanged irrespective of who creates the window. Unfortunately,
SDL does not subscribe to mouse, key and resize events on externally
supplied windows, so we need to do ask for these events explicitly.
 
On passing, also add some code to handle SDL_ACTIVEEVENT so if
the X11 window is killed while we are active, we call
"stop now" to terminate the asterisk instance.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117052 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 14:22:04 +00:00
rizzo 00111d287c Allow users to specify 'startgui=1' in oss.conf so that the
graphic screen for the video console is activated at startup.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117024 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 13:33:08 +00:00
russell de07591b7c Merged revisions 116978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116978 | russell | 2008-05-18 22:44:04 -0500 (Sun, 18 May 2008) | 4 lines

Avoid access of uninitialized memory.  This caused a bunch of crashes for me
while doing load testing of development branch where I'm working on some
performance improvements.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116979 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 03:44:28 +00:00
tilghman 6410c3d334 Add a set of text to the file astcanary uses to communicate back the main
Asterisk process, which explains the purpose for the file being there.  This
should assist people who find the file and wonder why it exists.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116948 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-18 21:15:58 +00:00
russell 53e5a04948 Remove duplicate colon on Reason header
(closes issue #12678)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116919 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-18 19:58:10 +00:00
file 244af566c7 Improve native transfers when a chain of IAX2 connections are in use.
(closes issue #7567)
Reported by: tjd
Patches:
      bug_7567_update_v2.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116884 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-17 19:39:35 +00:00
file 842572c895 Try to fix attended transfers.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116848 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 21:34:45 +00:00
file 21bdc0a10c Merged revisions 116799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116799 | file | 2008-05-16 17:28:11 -0300 (Fri, 16 May 2008) | 4 lines

Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
(closes issue #12669)
Reported by: sbisker

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116800 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 20:30:24 +00:00
mattf 125f7b54e9 Try to see if we can make our ringback situation a little better
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116797 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 20:00:04 +00:00