summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-05-22- revert change to ast_queue_hangup and create ast_queue_hangup_with_causeMichiel van Baak
- 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: https://origsvn.digium.com/svn/asterisk/trunk@117802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-22Committing a fix pointed out by Atis Lezdins on the asterisk-dev list. Thanks!Mark Michelson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-22Minor text fix. roster -> resource.Sean Bright
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-22Store build-time options as a string in AST_BUILDOPTS in buildopts.h. Also,Russell Bryant
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: https://origsvn.digium.com/svn/asterisk/trunk@117756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-22Enhance ExternalIVR with new options and commands.Tilghman Lesher
(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: https://origsvn.digium.com/svn/asterisk/trunk@117725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21This change makes it so that logs will report the correct source of verbose ↵Mark Michelson
messages. Until this change, all verbose messages in Asterisk's log files reported logger.c as the source of the message. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117582 via svnmerge from Jeff Peeler
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: https://origsvn.digium.com/svn/asterisk/trunk@117658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117462 via svnmerge from Jeff Peeler
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: https://origsvn.digium.com/svn/asterisk/trunk@117628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Add a new manager event, AgentRingNoAnswer toMark Michelson
app_queue. (closes issue #12591) Reported by: CCHAsteria Patches: app_queue_RNA_event.diff uploaded by CCHAsteria (license 477) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117574 via svnmerge from Joshua Colp
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: https://origsvn.digium.com/svn/asterisk/trunk@117575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Blocked revisions 117523 via svnmergeTilghman Lesher
........ 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: https://origsvn.digium.com/svn/asterisk/trunk@117524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117519 via svnmerge from Tilghman Lesher
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: https://origsvn.digium.com/svn/asterisk/trunk@117520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Optimize the update_realtime_member_field function by not havingMark Michelson
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: https://origsvn.digium.com/svn/asterisk/trunk@117517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117514 via svnmerge from Russell Bryant
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: https://origsvn.digium.com/svn/asterisk/trunk@117515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117507 via svnmerge from Russell Bryant
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: https://origsvn.digium.com/svn/asterisk/trunk@117508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Merged revisions 117479 via svnmerge from Russell Bryant
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: https://origsvn.digium.com/svn/asterisk/trunk@117481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21On socket-based connections, there is no error FD, so don't try waiting on one.Tilghman Lesher
(closes issue #12697) Reported by: ctooley Patches: fix_externalivr_waitfor_nandfds-v3.diff uploaded by ctooley (license 136) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21do not die on SDL_ACTIVEEVENT reporting lost focus.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21Be sure that we cache included files for each source file which loadsMark Michelson
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: https://origsvn.digium.com/svn/asterisk/trunk@117367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-21These changes were made via the comments atis_work made at 4:30am (Mountain ↵Steve Murphy
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: https://origsvn.digium.com/svn/asterisk/trunk@117335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-20+ Implement a variant of astman_get_header() to return the first orLuigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@117297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-20Document the possible presence of multiple variables with theLuigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@117295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-20Reverse the check for Cookie: and remove leftover code implementingLuigi Rizzo
the same thing. Add an ast_debug() call to help debugging the url matching. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-20Increase limit of unshared connections from 1023 to 4.2 billion.Tilghman Lesher
(Related to issue #12677) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-20Revert part of previous fix, and heavily comment the logic for objectTilghman Lesher
destruction, for future users. (Closes issue #12677) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Minor formatting change to test a mantis change ...Russell Bryant
(issue #12674) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Change the default for the pridialplan parameter to the far more common case ofTilghman Lesher
'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: https://origsvn.digium.com/svn/asterisk/trunk@117182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Merged revisions 117135 via svnmerge from Joshua Colp
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: https://origsvn.digium.com/svn/asterisk/trunk@117136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Remove a premature mutex destroy (the destruction callback will end up ↵Joshua Colp
destroying it) and use a callback to purge remaining classes. (closes issue #12677) Reported by: falves11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Merged revisions 117086 via svnmerge from Tilghman Lesher
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: https://origsvn.digium.com/svn/asterisk/trunk@117088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19The logger closes the files it is logging to when reloading so we have to ↵Joshua Colp
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: https://origsvn.digium.com/svn/asterisk/trunk@117085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19trap potential failures of SDL when SDL_WINDOWID is pointing to aLuigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@117084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Merged revisions 117081 via svnmerge from Joshua Colp
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: https://origsvn.digium.com/svn/asterisk/trunk@117082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19fix example configuration for video support in chan_ossLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Some fixes to the code to support running on an externallyLuigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@117052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Allow users to specify 'startgui=1' in oss.conf so that theLuigi Rizzo
graphic screen for the video console is activated at startup. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19Merged revisions 116978 via svnmerge from Russell Bryant
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: https://origsvn.digium.com/svn/asterisk/trunk@116979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-18Add a set of text to the file astcanary uses to communicate back the mainTilghman Lesher
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: https://origsvn.digium.com/svn/asterisk/trunk@116948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-18Remove duplicate colon on Reason headerRussell Bryant
(closes issue #12678) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-17Improve native transfers when a chain of IAX2 connections are in use.Joshua Colp
(closes issue #7567) Reported by: tjd Patches: bug_7567_update_v2.diff uploaded by snuffy (license 35) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-16Try to fix attended transfers.Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-16Merged revisions 116799 via svnmerge from Joshua Colp
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: https://origsvn.digium.com/svn/asterisk/trunk@116800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-16Try to see if we can make our ringback situation a little betterMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-16Compile under dev-mode, please.Sean Bright
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-16Bring all app_rpt and chan_usbradio stuff up to dateJim Dixon
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-15Add an extra check in ast_strlen_zero, and make ast_assert() not print theTilghman Lesher
file, line, and function name twice. (Closes issue #12650) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-15Fixes a problem I was having with two SIP phones using Packet2Packet ↵Jeff Peeler
bridging dropping audio nearly immediately. The problem was that the lock on the SIP dialog was not being unlocked while the bridge was still active. (Related to issue #12566) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-15Don't unload config on reload, when config has not changed.Tilghman Lesher
(Closes issue #12652) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-15When counting urgent messages when using IMAP storage, take into account thatMark Michelson
the urgent messages are not in their own folder but are actually "flagged" messages in the INBOX. (closes issue #12659) Reported by: jaroth Patches: urgentfolder_v2.patch uploaded by jaroth (license 50) Tested by: jaroth git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-15Modify externnotify to take the number of urgent voicemails as a final ↵Mark Michelson
argument instead of the string "Urgent" (closes issue #12660) Reported by: jaroth Patches: externnotify.patch uploaded by jaroth (license 50) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116592 65c4cc65-6c06-0410-ace0-fbb531ad65f3