Commit Graph

5656 Commits (d165079cbcb51c94ce729b97f25b42cdbd7b443e)

Author SHA1 Message Date
Luigi Rizzo c15f7953c8 Fix a few issues in the previous (disabled) HTTPS code,
19 years ago
Luigi Rizzo e8a65b7155 Implement https support.
19 years ago
Luigi Rizzo 5aa25a8d33 it is useless and possibly wrong to use ast_cli() to send the
19 years ago
Joshua Colp e85da9be41 Let's have build.h created a bit earlier so that func_version can use it and not stop the build on a fresh machine that has never had Asterisk installed on it before...
19 years ago
Luigi Rizzo a0ae6ebd8e the default port number was erroneously stored in host order,
19 years ago
Joshua Colp 62d3a11eb9 Merged revisions 45817 via svnmerge from
19 years ago
Luigi Rizzo edd8e11889 minor comment changes, code rearrangement and field renaming
19 years ago
Olle Johansson e19576388d Doxygen corrections
19 years ago
Luigi Rizzo e7c2295b81 more fixes to comments and very minor code rearrangement.
19 years ago
Luigi Rizzo 32214ffc02 implement proper XML/HTML formatting of multiple messages
19 years ago
Luigi Rizzo 9934b7f4d2 more documentation of data structure and functions.
19 years ago
Russell Bryant bd53e7ee4c Extend the thread storage API such that a custom initialization function can
19 years ago
Luigi Rizzo 71c67605ca silent warning from a debugging message (which will go away
19 years ago
Luigi Rizzo eee51dbd1c remove trailing whitespace
19 years ago
Luigi Rizzo 9e9edb05ec ouch! remember to unlink temporary files once done with them.
19 years ago
Luigi Rizzo 3c2eaaf1f0 + move output_format variables in the http section of the file;
19 years ago
Joshua Colp 0ff90f87c5 Merged revisions 45595 via svnmerge from
19 years ago
Luigi Rizzo c046fb40d8 another bunch of comments on the data structures.
19 years ago
Luigi Rizzo a518165207 despite the large changes, this commit only moves functions
19 years ago
Luigi Rizzo a18accc09e more comment and formatting fixes, small simplifications
19 years ago
Matt O'Gorman 1783aef1e8 rizzo compile then commit, maybe even run it too ^_^
19 years ago
Luigi Rizzo 71cf14207c comment and cleanup the main thread.
19 years ago
Luigi Rizzo eb3767cafe create a new (internal, for the time being) function astman_start_ack()
19 years ago
Luigi Rizzo df06a40b05 more indentation cleanup from previous commits,
19 years ago
Luigi Rizzo 46b5c26399 create proper handlers for "Challenge" and "Login" actions,
19 years ago
Luigi Rizzo becfe17739 fix indentation from a commit of a couple of days ago
19 years ago
Luigi Rizzo 8e63fb21da another batch of simplifications to authenticate()
19 years ago
Luigi Rizzo d171c3d864 remove unused fields and unimplemented options.
19 years ago
Luigi Rizzo 998732456f first pass as simplifying authenticate(), avoiding whitespace changes
19 years ago
Luigi Rizzo bc66d9b7d8 more code simplifications
19 years ago
Luigi Rizzo c93be15b7e simplify ast_strings_to_mask
19 years ago
Luigi Rizzo efd87b68ee add a comment to remember that a block of code is
19 years ago
Luigi Rizzo 2102d73bf4 + move the enum declaration for output formats near the head
19 years ago
Luigi Rizzo 3a3b26658e merge xml_translate() and html_translate() into one function since
19 years ago
Luigi Rizzo fbe6c86b0b introduce uri_decode() so that '+' are translated into ' '
19 years ago
Luigi Rizzo d1058df18f various code simplifications to reduce nesting depth,
19 years ago
Joshua Colp bb8926d50c Merged revisions 45452 via svnmerge from
19 years ago
Russell Bryant 40b8afd54f Merged revisions 45441 via svnmerge from
19 years ago
Kevin P. Fleming 696f9ed677 Merged revisions 45408 via svnmerge from
19 years ago
Joshua Colp 17fabe225d Warning be gone!
19 years ago
Luigi Rizzo 3e2a2bfd7e simplify authority_to_str() using ast_build_string()
19 years ago
Luigi Rizzo 3abf04cc26 Improve the XML formatting of responses coming from web interface.
19 years ago
Luigi Rizzo f2d12f4d06 open a temporary file to receive the output from cli commands
19 years ago
Luigi Rizzo 0c7e8f99a4 document xml_copy_escape() and add an extra function, namely
19 years ago
Luigi Rizzo 5f395bf38f + comment some unclear fields of struct mansession;
19 years ago
Luigi Rizzo 5fda2a874a + comment some unclear requirements for master_eventq
19 years ago
Luigi Rizzo 6d10a245b6 protect access to first_action with actionlock.
19 years ago
Luigi Rizzo 97fc34d450 comment some functions, and more small code simplifications
19 years ago
Luigi Rizzo 250ad2ad7e fix indentation of a large block after changes in previous commit
19 years ago
Luigi Rizzo 9146e44403 simplify string parsing routines using ast_skip_*() functions.
19 years ago
Luigi Rizzo 895eb4fd73 don't forget to close a descriptor on a malloc failure.
19 years ago
Luigi Rizzo 9a3cef21ac typo: serer -> server
19 years ago
Kevin P. Fleming dc3ddc165b Merged revisions 45125 via svnmerge from
19 years ago
Joshua Colp 4cf4255267 Merged revisions 45031 via svnmerge from
19 years ago
Kevin P. Fleming 0638096e5c Merged revisions 45027 via svnmerge from
19 years ago
Kevin P. Fleming 035aeb82e4 Merged revisions 44956 via svnmerge from
19 years ago
Russell Bryant 43f1054d07 Merged revisions 44945 via svnmerge from
19 years ago
Nadi Sarrar 0752be2ec0 Merged revisions 44921 via svnmerge from
19 years ago
Jason Parker 7173b2cf2e Merged revisions 44888 via svnmerge from
19 years ago
Paul Cadach 500353e095 Extend CALLERID() function for "pres" and "ton" values
19 years ago
Joshua Colp 62e6417b21 Merged revisions 44628 via svnmerge from
19 years ago
Luigi Rizzo 684d1f1698 basically fix indentation of a large function after previous
19 years ago
Luigi Rizzo 35cada23f0 s cannot be null here, so remove the useless test and error-handling block.
19 years ago
Luigi Rizzo acd1073909 simplify logic in preparation to reduce indentation
19 years ago
Joshua Colp 85625f3505 Merged revisions 44605 via svnmerge from
19 years ago
Joshua Colp 1ddda62208 Merged revisions 44581 via svnmerge from
19 years ago
Luigi Rizzo 3f641c6048 make sure sockets are blocking when they should be blocking.
19 years ago
Joshua Colp 3dd0ce45fd Merged revisions 44502 via svnmerge from
19 years ago
Kevin P. Fleming 8f1fc1ca08 Merged revisions 44476 via svnmerge from
19 years ago
Steve Murphy 3d323f5345 As per ToDo list, I have made it so that Wait(), WaitExten(), Congestion(), Busy(), Read(), WaitForRing(), will now either actually handle a floating point argument as advertised, or has been upgraded to accept a floating point [timeout] arg.
19 years ago
Kevin P. Fleming c28461197b Merged revisions 44390 via svnmerge from
19 years ago
Kevin P. Fleming 3c876af5cf Merged revisions 44378 via svnmerge from
19 years ago
Kevin P. Fleming 41eb95e055 Merged revisions 44322 via svnmerge from
19 years ago
Joshua Colp b5f2589e33 Add Masquerade manager event which trips when a masquerade happens (issue #7840 reported by moy)
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp 3e4a081e1c Make callerid fields in Manager events more consistent. CallerIDNum for number and CallerIDName for name. (issue #7976 reported by suhler)
19 years ago
Joshua Colp e5203bb283 Add option to logger to rename log files with timestamp (issue #8020 reported by jmls)
19 years ago
Joshua Colp 21b3254437 Merged revisions 44169 via svnmerge from
19 years ago
Kevin P. Fleming bda306fa96 clean up formatting and conformance to code guidelines
19 years ago
Mark Spencer 461f6f8b23 Uhm yah, not sure who committed this into trunk... Anyway, I think this
19 years ago
Paul Cadach 3cea4702a3 Merged revisions 44090 via svnmerge from
19 years ago
Luigi Rizzo 8d6d166b14 merge compile fixes from 44080:
19 years ago
Kevin P. Fleming e92c34cc38 Merged revisions 44055 via svnmerge from
19 years ago
Jason Parker 3ca6a02f89 Merged revisions 44053 via svnmerge from
19 years ago
Kevin P. Fleming 89050169c8 Merged revisions 43996-43997,44008,44011-44012 via svnmerge from
19 years ago
Kevin P. Fleming 9892363a64 Merged revisions 43978 via svnmerge from
19 years ago
Joshua Colp 0dbe81383f Cache the application pointer so we don't have to needlessly search for it over and over. This should yield a suitable performance increase.
19 years ago
Joshua Colp 29d27bfe0d Merged revisions 43933 via svnmerge from
19 years ago
Joshua Colp 550a4dab79 Merged revisions 43913 via svnmerge from
19 years ago
Kevin P. Fleming 8677abe99b Merged revisions 43898 via svnmerge from
19 years ago
Paul Cadach 47a0e0807c Merged revisions 43635,43843-43844,43846 via svnmerge from
19 years ago
Joshua Colp 4116cfc387 Add ability to set high ToS bits as non-root on Linux using libcap (issue #7047 reported by maddison)
19 years ago
Jason Parker 47abf96957 Add BACKGROUNDSTATUS to Background()
19 years ago
Jason Parker 5a45352f3a Merged revisions 43803 via svnmerge from
19 years ago
Joshua Colp 6df7c274d8 Merged revisions 43798 via svnmerge from
19 years ago
Russell Bryant d2c57c5f4f Merged revisions 43779 via svnmerge from
19 years ago
Russell Bryant 09536f91bf Merged revisions 43710 via svnmerge from
19 years ago
Joshua Colp 98873d34bd Merged revisions 43707 via svnmerge from
19 years ago
Joshua Colp becd11ddb8 Merged revisions 43695 via svnmerge from
19 years ago
Jason Parker 456f3ead57 Merged revisions 43674 via svnmerge from
19 years ago
Jason Parker fe1a3b8877 Add optional queue_log_name config option for logger.conf, to change the
19 years ago
Paul Cadach 04cf782862 Small Cisco's RTP DTMF update
19 years ago
Paul Cadach 1d50a8e881 Correct behavior on Cisco's DTMF
19 years ago
Jason Parker c2f9a779ac Merged revisions 43492 via svnmerge from
19 years ago
Kevin P. Fleming acf824fe5e Merged revisions 43486 via svnmerge from
19 years ago
Russell Bryant deb78618b4 Merged revisions 43477 via svnmerge from
19 years ago
Tilghman Lesher f14dc5fab4 And some deprecated APIs and modifications to documentation
19 years ago
Kevin P. Fleming f1d824aaba Merged revisions 43450 via svnmerge from
19 years ago
Tilghman Lesher 2b55678e1f Remove deprecated CLI apps from the core
19 years ago
Tilghman Lesher 4a58847fe2 Remove 1.4 changes from UPGRADE.txt, remove deprecated callerid field, remove deprecated SetGlobalVar app
19 years ago
Joshua Colp 1c764935f2 SS7 marked the start of an open season for trunk again but here's something minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it.
19 years ago
Kevin P. Fleming 7e4c790a3e Merged revisions 43405 via svnmerge from
19 years ago
Russell Bryant c2f22172dc Merged revisions 43383 via svnmerge from
19 years ago
Russell Bryant 28ffdcc783 Fix the memory summary so that it doesn't print the first file in the list over
19 years ago
Russell Bryant 6f442c4a3c fix some breakage from the CLI command changes
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming 9ae105df1d don't let symbols from included static libraries (like codec/ilbc) pollute the global namespace when those modules are embedded
19 years ago
Joshua Colp 3c6d5053ba Totally break a P2P bridge upon going on hold, and re-establish it upon going off hold.
19 years ago
Joshua Colp 659d467720 Expand codec check so that raw formats must be equal for a Packet2Packet bridge to occur
19 years ago
Jason Parker 4c2874b994 Commit the changes from issue #5240.
19 years ago
Kevin P. Fleming 1485fa4c24 move this header to include where it belongs
19 years ago
Jason Parker fc60c151d3 After discussing this with other people, we decided we'd like to try to do this a little differently.
19 years ago
Anthony LaMantia 3f3402d69e 5240 update
19 years ago
Matthew Fredrickson 2cc96500bd Mergeing in Paul Cadach's chan_h323 changes *holds breath*
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Joshua Colp d544223d02 Warning be gone!
19 years ago
Matt O'Gorman 465adf2bf1 allow for packetization on rtp channel drivers, need to add
19 years ago
Jason Parker 998ac5cab1 Only use alloca.h on OSes that have it.
19 years ago
Kevin P. Fleming c97841dbf7 always use fork() when available
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming 5cf1c12796 it appears that current Mac OS/X does not need the poll compatibility module at all, and platforms that do need it also need -DPOLLCOMPAT (or they wouldn't have compiled at all)
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Jason Parker f18cbf77df Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.c
19 years ago
Anthony LaMantia e421b69ce6 reveting modifaction to __ast_module_user_remove
19 years ago
Joshua Colp 10e6fbc3bc Tweak changes that went in on revision 42891
19 years ago
Anthony LaMantia 09d8972be6 small fix for 7944
19 years ago
Joshua Colp 0f3eaaf703 Merged revisions 42600 via svnmerge from
19 years ago
Joshua Colp d2a359e57f Optimize a bit
19 years ago
Joshua Colp 10e361763c It's another round of RTP updates!
19 years ago
Joshua Colp 160cea6139 Merged revisions 42452 via svnmerge from
19 years ago
Joshua Colp d597b76c36 whentohangup is already in seconds, just need to convert to milliseconds
19 years ago
Joshua Colp 8a2dd45283 Merged revisions 42260 via svnmerge from
19 years ago
Steve Murphy 11a7e38930 Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
19 years ago
Kevin P. Fleming d5f812e0b1 don't try to get the length of the string in the ast_dynamic_str object unless we know there is actually one there
19 years ago
Joshua Colp bc5924120d Remove old unused functions
19 years ago
Joshua Colp 55d594e9da Make the difference clear about what the responsibilities of the core and a spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job.
19 years ago
Russell Bryant 4de3c0e447 Add the ability to specify that a frame should not be considered for caching
19 years ago
Russell Bryant 3057660a79 when calling this function to append to a dynamic string and the buffer was not
19 years ago
BJ Weschke ffd9281db9 Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
19 years ago
BJ Weschke bbc9c049ab Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
19 years ago
Joshua Colp 6fdd2ef790 Tweak the if statement a bit
19 years ago
Russell Bryant e576ac0930 Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
19 years ago
Joshua Colp f912c9e69f Unbridge the RTP streams at the correct place
19 years ago
Joshua Colp 0be2884d80 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
19 years ago
Joshua Colp b4d0f26d2b You see nothing...
19 years ago
Steve Murphy a845587805 Another formatting update for PCadach.
19 years ago
Joshua Colp 043a01e6bd 0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
19 years ago
Joshua Colp 9edf55b64d Merged revisions 41690 via svnmerge from
19 years ago
Steve Murphy 2ff2b02eae PCadach wanted better formatting of those 'if' conditions for 7859.
19 years ago
Steve Murphy cd8635b9b5 This small tweek will hopefully fix 7859, and silence all possible others
19 years ago
Joshua Colp f2b836ff4f Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
19 years ago
Joshua Colp faf4975122 Ignore DTMF begin frames in the waitstream core so that we don't get duplicate digits in our extension match
19 years ago
Joshua Colp d6096858d0 Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
19 years ago
Joshua Colp aaaec0e917 Add new frame types for DTMF
19 years ago
Joshua Colp 29ee02bfce Only write a received packet out if we are actually bridged to something
19 years ago
Joshua Colp c6977b9983 Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
19 years ago
Kevin P. Fleming b281acf0f8 change default setting for autofallthrough
19 years ago
Russell Bryant 1ffff64e66 fix a bug introduced when I merged my frame caching branch. Queue the
19 years ago
Joshua Colp 11b5db3d61 Clarify what show translations is displaying a bit more (issue #7772 reported by Mithraen)
19 years ago
Joshua Colp 3028eb1c15 Print what read-only variable is being set so that the user doesn't have to guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards)
19 years ago
Joshua Colp 0855df6a5a Only feed a DTMF frame into the core if we need to
19 years ago
Joshua Colp 245aa1a62d Only switch the second alert fd (which is RTCP) to callback mode if it is in use
19 years ago
Joshua Colp 12b6ec4e11 Use an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking
19 years ago
Joshua Colp da7d969ae1 If the RTP stack is already being operated in callback mode, then suspend it upon switching to P2P callback bridging. Once P2P callback bridging has ended, then restore callback mode.
19 years ago
Joshua Colp ca33d2ecc6 This is the last round of RTP bridge optimizations. Basically it introduces a way that under a straight bridge (ie: no transcoding and no DTMF detection) the core is not touched at all and no frames pass through (not even null frames). This is accomplished by stealing the file descriptors from the channel and using the provided IO context with a custom callback. When a channel is placed on hold this bridge is broken so audio can flow from the core to the other side. When a channel is off hold this bridge is re-established.
19 years ago
Joshua Colp a2e2a51d8d Move the direct bridge write to after the NAT handling code
19 years ago
Steve Murphy 299465336a This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.
19 years ago
Russell Bryant f7e7161607 Merge team/russell/frame_caching
19 years ago
Joshua Colp c70ed7614a Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
19 years ago
Kevin P. Fleming d12f54f90b GNU make already knows how to quietly ignore non-existent files in 'include' directives
19 years ago
Kevin P. Fleming a757ca2947 ensure that unload_dynamic_module won't continue dereferencing a module pointer after the module has been unloaded from memory
19 years ago
Kevin P. Fleming 3ba8e0a973 ensure that cross-compiler info is removed from the enviroment before configuring menuselect
19 years ago
Kevin P. Fleming aa7b32d175 more optimizations for embedded systems:
19 years ago
Russell Bryant d770396e23 Identify what the columns mean in the output of "show profile"
19 years ago
Tilghman Lesher d2b7882788 Off by one error in buffer length (issue 7379)
19 years ago
Kevin P. Fleming 970c6876c5 instead of reverting this supposedly 'stupid' change, let's try to get it working properly
19 years ago
Russell Bryant 1ff5a0988d Merged revisions 40994 via svnmerge from
19 years ago
Matthew Fredrickson 16157e26d6 Revert stupid RTLD_NOLOAD change that breaks module loading on some systems.
19 years ago
Joshua Colp 3f7b10eab6 Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk-bugs)
19 years ago
Kevin P. Fleming 7eecf0bfbc use RTLD_NOLOAD if it's available to make loading dynamic modules a little faster and less resource-intensive
19 years ago
Kevin P. Fleming e0df1dfd7c generate a message when a module cannot be found and loadable modules are disabled
19 years ago
Kevin P. Fleming 950b3fb070 make platforms that use mutexes in stdio.h happy
19 years ago
Kevin P. Fleming e274fc0b54 minor improvements
19 years ago
Kevin P. Fleming 804f49e2c9 when loadable modules are disabled, if someone tries to load a module that does not exist, don't dereference a NULL pointer, just stop trying to load it...
19 years ago
Jason Parker ec23dcb172 Solaris didn't like this.
19 years ago
Jason Parker 0264c362b6 a couple Solaris tweaks, to help build properly.
19 years ago
Kevin P. Fleming 26fa229138 restore 'preload' functionality in loader
19 years ago
Kevin P. Fleming a394f4ad64 use a customized configure macro to tell the script that uCLinux does not have fork() that works
19 years ago
Kevin P. Fleming ca0a1d3842 don't initialize global variables list twice
19 years ago
Kevin P. Fleming 61755115c2 restore printing of module name during loading
19 years ago
Russell Bryant 283bcf4c9f - simplify and improve astmm by using thread storage instead of a dynamic
19 years ago
Russell Bryant 389c605a67 - use the atomic operations for incrementing the unique int
19 years ago
Russell Bryant 5d3869a1c8 various cleanups, including ...
19 years ago
Kevin P. Fleming 5b03b3449b use a safer process for checking if a module wants to export symbols into the global namespace
19 years ago
Kevin P. Fleming f3c518a70f don't declare these variables unless needed
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago