Commit Graph

1357 Commits (96e4e31eeb728c89a971b63a140506ddce3c0305)

Author SHA1 Message Date
Sean Bright 357bf3e90b All of the res/ stuff (other than res_jabber) from the RSW branch.
17 years ago
Tilghman Lesher c5a119d86d Update documentation as to the behavior of AGI in 1.6.0 and higher. Also, add
17 years ago
Steve Murphy a40f1cc1c5 Merged revisions 136726 via svnmerge from
17 years ago
Olle Johansson a4436cb2ff - Formatting
17 years ago
Kevin P. Fleming 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Tilghman Lesher aca394bf0c HTTP module memory leaks
17 years ago
Terry Wilson 671627028c Fix mime parsing by re-adding support for passing headers to callback functions
17 years ago
Tilghman Lesher e682d4c67e Switch command order, to meet with current specs
17 years ago
Tilghman Lesher 52b2aeb679 Increase column size beyond the minimum required, since PostgreSQL won't let
17 years ago
Tilghman Lesher c4131d9752 Two errors:
17 years ago
Tilghman Lesher b6de2967df Merged revisions 134480 via svnmerge from
17 years ago
Tilghman Lesher 57ffc548bc Add adaptive capabilities to the sqlite realtime driver
17 years ago
Michiel van Baak fe246aa673 fix a couple of comments in sqlite resource driver.
18 years ago
Tilghman Lesher 941599ce64 Fix memory leaks
18 years ago
Tilghman Lesher 38f7641c93 Fix memory leak.
18 years ago
Mark Michelson 255a968023 Don't try to dereference the dbfile pointer if
18 years ago
Steve Murphy 37001f58ff Merged revisions 131242 via svnmerge from
18 years ago
Russell Bryant 5ac03d340f Fix a couple of places in res_agi where the agi_commands lock would not be
18 years ago
Michiel van Baak 0d49cdae3e Make all sed calls Posix sed compatible.
18 years ago
Steve Murphy b247dcf432 a small change to make things compile
18 years ago
Tilghman Lesher caf226d50e Don't copy on NULL.
18 years ago
Tilghman Lesher bead8cd6f0 Add some debug code and add a missing release
18 years ago
Sean Bright 729df81a57 Fix some usages of snprintf, and clarify a couple variable names.
18 years ago
Tilghman Lesher 8b0f38cc57 Merged revisions 129741 via svnmerge from
18 years ago
Tilghman Lesher 4ff527903e Code wasn't ready to be merged - see -dev list discussion
18 years ago
Brett Bryant d185405755 Janitor project to convert sizeof to ARRAY_LEN macro.
18 years ago
Olle Johansson 45e79490ba Implement flags for AGI in the channel structure so taht "show channels" and
18 years ago
Tilghman Lesher 638a720eee Add AMI events for start/stop of MOH
18 years ago
Kevin P. Fleming 00696f5f37 make the AIS checking a little more generic, and have a more useful configure script command line option for OpenAIS
18 years ago
Philippe Sultan e08829764c Fix a compile time error that occurs if OpenSSL is not installed. Reported by Noel Morais on the users mailing list
18 years ago
Russell Bryant 02b1317d0f - add get_max_rate timing API call
18 years ago
Kevin P. Fleming b71f8ac66a fix compile failure found by buildbot (go, buildbot!)
18 years ago
Kevin P. Fleming fd4a60c459 Merged revisions 125132 via svnmerge from
18 years ago
Tilghman Lesher 41e496980b Separate the global initialization routines for cURL into its own separate
18 years ago
Philippe Sultan 6be95a8a8a Subscribe to buddy's presence only if we really need to. That is, if
18 years ago
Philippe Sultan c8688bd9b2 Code simplification
18 years ago
Russell Bryant ed289fd3aa fix a memory leak.
18 years ago
Tilghman Lesher 0660207614 Reduce warning to debug, otherwise we flood the log when we (legitimately)
18 years ago
Michiel van Baak 8e8359465b Older versions of GNU gcc do not allow 'NULL' as sentinel.
18 years ago
Russell Bryant fa4bce7c43 - Make res_timing_pthread allow a max rate of 100/sec instead of 50/sec
18 years ago
Tilghman Lesher 5791b6680d Don't change pointers that need to be later passed back for deallocation.
18 years ago
Sean Bright 9c62626a52 Whitespace only
18 years ago
Russell Bryant 5aeb6a6cbb Fix the check against the max supported rate
18 years ago
Russell Bryant 9a301b9f20 Merge res_timing_pthread. This is a timing interface for Asterisk that
18 years ago
Tilghman Lesher 4d322f7bd3 Properly detect the size of char/varchar fields
18 years ago
Russell Bryant 3c8b9bc6c4 Do not allow res_timing_dahdi to be unloaded. We can re-enable this once we
18 years ago
Russell Bryant b6457ecf4c Merge changes from timing branch
18 years ago
Jeff Peeler ef3b214728 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
18 years ago
Tilghman Lesher 97fe3abeec Move the table cache routines to res_odbc, so they can be used from other
18 years ago
Russell Bryant e9d72e0cb2 Merge another big set of changes from team/russell/events
18 years ago
Tilghman Lesher 53459f86b2 Expand RQ_INTEGER type out to multiple types, one for each precision
18 years ago
Tilghman Lesher 9471b87d27 Merge the adaptive realtime branch, which will make adding new required fields
18 years ago
Philippe Sultan 6bb4c9cde0 Merged revisions 120675 via svnmerge from
18 years ago
Tilghman Lesher 90d75af346 Conditionally load the AGI command gosub, depending on whether or not res_agi
18 years ago
Tilghman Lesher 76506b7baa Move compatibility options into asterisk.conf, default them to on for upgrades,
18 years ago
Steve Murphy 7372474c94 Merged revisions 119929 via svnmerge from
18 years ago
Philippe Sultan 001c95b595 Do not link the guest account with any configured XMPP client (in
18 years ago
Tilghman Lesher 6006f40c14 When binding anonymously, credentials are still needed.
18 years ago
Tilghman Lesher ebb4ba3b9a Protect the object from changing while the 'odbc show' CLI command is running
18 years ago
Philippe Sultan de98d48a0d - remove whitespaces between tags in received XML packets before giving
18 years ago
Michiel van Baak f1e9371da8 - revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
18 years ago
Tilghman Lesher 6353bddc57 Increase limit of unshared connections from 1023 to 4.2 billion.
18 years ago
Tilghman Lesher 01e2bd1e2f Revert part of previous fix, and heavily comment the logic for object
18 years ago
Joshua Colp a5cb416c86 Merged revisions 117135 via svnmerge from
18 years ago
Joshua Colp 872eaba11d Remove a premature mutex destroy (the destruction callback will end up destroying it) and use a callback to purge remaining classes.
18 years ago
Tilghman Lesher c51989a309 Merged revisions 116466 via svnmerge from
18 years ago
Joshua Colp ac876a8e4e Make the ldap version setting work without having both version and protocol set.
18 years ago
Olle Johansson e4c544cd5a Formatting changes (coding guidelines) while thinking about something else...
18 years ago
Russell Bryant dcbc0aab3f Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
18 years ago
Tilghman Lesher 842df68a1f Don't free the object on destroy, as astobj2 takes care of that for you
18 years ago
Russell Bryant 60f877ad5f Only save a password if a username exists.
18 years ago
Russell Bryant aeb41dbdf4 Use the default that the log output claims will be used for the basedn
18 years ago
Jason Parker d63b790247 Merged revisions 115418 via svnmerge from
18 years ago
Tilghman Lesher bbab1a6d2f Merge refcounting of res_odbc
18 years ago
Mark Michelson 1235d47242 Make res/snmp/agent.c build
18 years ago
Tilghman Lesher b5a127daac Modify TIMEOUT() to be accurate down to the millisecond.
18 years ago
Russell Bryant 44af1e23d0 Merge changes from team/russell/smdi-msg-searching
18 years ago
Jason Parker 1ba4d31854 Merged revisions 114829 via svnmerge from
18 years ago
Jason Parker 8e26876b3e Merged revisions 114594 via svnmerge from
18 years ago
Joshua Colp 6d5290a85b Only print out the error message if ldap_modify_ext_s actually returns an error, and not success.
18 years ago
Joshua Colp 116859bd19 If the parsing of the config file fails make sure we unlock ldap_lock.
18 years ago
Doug Bailey 30aa3d7059 Add g__object_unref to clean up gmime message object
18 years ago
Philippe Sultan 60a9d14d56 Merged revisions 114198 via svnmerge from
18 years ago
Tilghman Lesher 9809a31bb5 Merged revisions 114195 via svnmerge from
18 years ago
Tilghman Lesher 123ac5fd64 Standardized routines for forking processes (keeps all the specialized code in one place).
18 years ago
Terry Wilson 91de4e9cea Need a new buffer for each loop
18 years ago
Terry Wilson 6d34b5fafe Don't unref user twice on failure. Also, when adding sorted list of users, it is best to check the entry already in the list for a "next" entry instead of the newly created entry...
18 years ago
Tilghman Lesher 7128ba0bb8 Use the correct function for free'ing objects, and maybe we won't crash.
18 years ago
Terry Wilson ef8007f630 Make sure that ${LINE} is set even if linenumber is not set in users.conf
18 years ago
Terry Wilson e276ccea11 Fix the fact that global_variables 1) weren't being updated on reload (thanks for the report, Doug), and 2) weren't actually being appended to the list of profile variables because build_profile was called before the list was populated. Also needed to free the contents returned by load_file().
18 years ago
Tilghman Lesher d304a88457 Errors are all greater than 0
18 years ago
Terry Wilson c36e37aa6f atoi(NULL) is bad
18 years ago
Tilghman Lesher eb930d5edd AsyncAGI should not close the manager session on error.
18 years ago
Terry Wilson 75c6945d92 Clean up some memory leak/ref counting issues
18 years ago
Terry Wilson 2abff11905 Multi-line support for phoneprov
18 years ago
Terry Wilson 1eb31edde2 Re-add HTTP post support by moving to res_http_post.c
18 years ago
Joshua Colp e5c4deace3 Initialize all these here tmp pointers at declaration. They confused some compilers a wee bit.
18 years ago
Steve Murphy 2427603eaf Merged revisions 111341 via svnmerge from
18 years ago
Russell Bryant 3c6cf5dcc5 Add some fixes that I made in regards to wideband codec handling to get
18 years ago
Joshua Colp db0c6576d2 Merged revisions 110035 via svnmerge from
18 years ago
Kevin P. Fleming 521b193eff ensure that res_phoneprov's HTTP handler tells the dispatcher what method it can handle
18 years ago
Tilghman Lesher 58fa8e6e9e Change back to using ldap_initialize() and let the user specify a URL directly,
18 years ago
Kevin P. Fleming e191b51a08 start the process of changing HTTP request dispatching to do it based on *both* URI and method, so that POST support can move into a module; move http.c's private function prototypes into _private.h
18 years ago
Tilghman Lesher 92ecf53d44 Set protocol version, port number correctly.
18 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
18 years ago
Steve Murphy 4e29ae8806 Merged revisions 109309 via svnmerge from
18 years ago
Jason Parker 71e3883f9f Merged revisions 108682 via svnmerge from
18 years ago
Russell Bryant 8bbef5f996 Rename ast_tcptls_server_instance to session_instance, since this pertains to
18 years ago
Tilghman Lesher d02f74ebfe An offhand comment from Russell made me realize that the configuration file
18 years ago
Kevin P. Fleming 79c3038ee5 Merged revisions 107352 via svnmerge from
18 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
18 years ago
Donny Kavanagh 4aadd3c770 trivial fix for an agi error when attempting to use EAGI on a dead/hungup channel, we now print an error that makes sense
18 years ago
Tilghman Lesher 8afeb7df4b Missing braces, fix parsing
18 years ago
Tilghman Lesher 8a411ccf83 Create a centralized configuration option for silencethreshold
18 years ago
Russell Bryant efb1e30a38 Rename public object server_instance to ast_tcptls_server_instance
18 years ago
Terry Wilson 7bf9f46774 Set username to default to the category name if it isn't overridden by a usernmae= setting in users.conf
18 years ago
Jason Parker 3c594ab9fa Merged revisions 105572 via svnmerge from
18 years ago
Philippe Sultan 6ef8831aab Merged revisions 105326 via svnmerge from
18 years ago
Philippe Sultan 7293986e44 Remove unnecessary if statements before calling iks_delete (redundant check is
18 years ago
Philippe Sultan 265f5cd62c Automatically create new buddy upon reception of a presence stanza of
18 years ago
Joshua Colp 71e0880478 Merged revisions 104536 via svnmerge from
18 years ago
Steve Murphy 6bb33538e1 small change to allow this file to compile. No problem if you don't install the libsnmp package.
18 years ago
Russell Bryant 910b9f8a2c fix this module, too
18 years ago
Russell Bryant 0036cde5f3 Rename version.h to ast_version.h. Next, I will be re-adding version.h as an
18 years ago
Russell Bryant e2e24a1bed Add a \todo to convert this module to the event system
18 years ago
Russell Bryant 3a8756c9b4 Merged revisions 104119 via svnmerge from
18 years ago
Joshua Colp 559870fd8a Fix building of trunk. dbpass is always going to exist.
18 years ago
Steve Murphy 14529764d7 On a 64-bit machine, with dev-mode turned on, and pgsql installed, I get warnings that stops the compile. They are fixed now.
18 years ago
Tilghman Lesher 9392dae2d6 Allow database password to be NULL and several other cleanups.
18 years ago
Mark Michelson 7fa044f86f Instead of a notice, make the message about a hung-up channel a debug message, and revert the original
18 years ago
Mark Michelson b403e214b1 Don't print the fact that we are using dead mode in AGI if called from the
18 years ago
Mark Michelson aaff057e5c Fix another spot where a hard-coded '|' hadn't been converted to ','
18 years ago
Jason Parker 72bc8a7c7d Fix up some doxygen issues.
18 years ago
Olle Johansson 9cf6138725 Formatting fixes
18 years ago
Mark Michelson 8c3cf89933 1. Deprecate SetMusicOnHold and WaitMusicOnHold.
18 years ago
Philippe Sultan f98f90af49 Use an ast_flags structure in aji_client and aji_buddy rather than an
18 years ago
Joshua Colp cc0c25c76c Remove ast_module_user usage from res_agi. This is taken care of in the core.
18 years ago
Russell Bryant 1ec8cb41a8 Merge changes from team/mvanbaak/cli-command-audit
18 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
18 years ago
Joshua Colp 38164fecad Merged revisions 102378 via svnmerge from
18 years ago
Tilghman Lesher 320174cd4b Fix multi, when using the LIKE query.
18 years ago
Tilghman Lesher de0d0ad137 Clarify the pooling functionality by changing the config file keyword
18 years ago
Mark Michelson 6ea87be942 Merged revisions 101531 via svnmerge from
18 years ago
Tilghman Lesher d7660733bf Oops, a sizeof error
18 years ago
Jason Parker e88241c45b Merged revisions 100138 via svnmerge from
18 years ago
Jason Parker 3bd33214b9 Move code from res_features into (new file) main/features.c
18 years ago
Tilghman Lesher 65e31e0741 Merged revisions 99775 via svnmerge from
18 years ago
Tilghman Lesher b0426aad08 Coding guidelines cleanup
18 years ago
Tilghman Lesher cfa0ec1f97 Add res_config_ldap for realtime LDAP engine.
18 years ago
Olle Johansson 949bb30d03 Merged revisions 99594 via svnmerge from
18 years ago
Tilghman Lesher 6181e386b5 Merged revisions 99341 via svnmerge from
18 years ago
Terry Wilson d673f848c0 This should at least temporarily fix a problem where the 't' Dial
18 years ago
Tilghman Lesher 8dd48a5e7c Permit username and password to be NULL (which enables pass-through from the layer above).
18 years ago
Kevin P. Fleming b0c271eb31 resolve (valid) compiler warning about variable that could be used before being initialized
18 years ago
Terry Wilson 417c6dcb1d Update res_phoneprov to default to setting the SERVER variable to the IP
18 years ago
Tilghman Lesher 81e421284d New module res_config_curl (closes issue #11747)
18 years ago
Terry Wilson 3e9ed0d40b Make users list static
18 years ago
Tilghman Lesher fa4f7d3727 Merged revisions 98467 via svnmerge from
18 years ago
Joshua Colp 5186035990 Merged revisions 98317 via svnmerge from
18 years ago
Steve Murphy 3f152e5ff0 Merged revisions 97889 via svnmerge from
18 years ago
Terry Wilson 84e25e15cf Attempt at making lookup_iface work under FreeBSD. Not yet tested, but it compiles under OS X. And still works under linux.
18 years ago
Tilghman Lesher 857e3412f4 Several manager changes:
18 years ago
Terry Wilson 3570ad103d Added a new module, res_phoneprov, which allows auto-provisioning of phones
18 years ago
Russell Bryant 8ac62a7a59 Merged revisions 97529 via svnmerge from
18 years ago
Olle Johansson 67439d7f0d Iksemel is alive in a new home. Release 1.3 is out with bug fixes.
18 years ago
Russell Bryant c6d573c836 Merged revisions 96884 via svnmerge from
18 years ago
Russell Bryant 4f0cb30f4a Convert this file over the new method of getting the Asterisk version.
18 years ago
Russell Bryant 54bc2c20b6 Now that the version.h file was getting properly regenerated every time the svn
18 years ago
Jason Parker 98726c08af Merged revisions 96573 via svnmerge from
18 years ago
Philippe Sultan cc00602238 Use SASL DIGEST-MD5 authentication over unsecured network connections only.
18 years ago
Tilghman Lesher 5e066908c8 Merged revisions 96318 via svnmerge from
18 years ago
Tilghman Lesher 9c00db7c16 Add coordination between AMI and AGI applications, with an asyncagi method
18 years ago
Kevin P. Fleming 04a10c145b go back to including libresample in the main Asterisk binary, but this time including a small hack to ensure that it does get linked in (and also modify the strip_nonapi script to leave the resample_<foo> symbols alone)
18 years ago
Philippe Sultan c08a968cb4 Set stream flags to zero upon initialization.
18 years ago
Russell Bryant 04db372bf3 Don't make libresample print out debugging output
18 years ago
Russell Bryant 78f4b28552 Instead of linking libresample into the main Asterisk binary, build it as
18 years ago
Russell Bryant 9adfa79141 Merged revisions 94793 via svnmerge from
18 years ago
Tilghman Lesher ba57c36bbb Add channel thread ID to the information passed to AGI.
18 years ago
Mark Michelson 269db42c02 Store dates using local time instead of UTC
18 years ago
Luigi Rizzo 5e24835995 modify http://svn.digium.com/view/asterisk?view=rev&rev=93603
18 years ago
Mark Michelson 16df336a72 Merged revisions 94122 via svnmerge from
18 years ago
Luigi Rizzo 094ec6521d make netsmp build under AST_DEVMODE. Description, included in the source,
18 years ago
Luigi Rizzo 10f70a8321 make configuration variable const so they are not accidentally
18 years ago
Luigi Rizzo fd88390af7 remove unnecessary (char *) casts for ast_config_AST_* variables.
18 years ago
Kevin P. Fleming 100ef27af9 Merged revisions 93180 via svnmerge from
18 years ago
Tilghman Lesher 0fc70140a5 Publish the AGI events to manager.
18 years ago
Tilghman Lesher 05dc95d302 Merged revisions 92933 via svnmerge from
18 years ago
Tilghman Lesher d5b454bf8d Convert ast_verbose to ast_verb.
18 years ago
Joshua Colp e941bbad0f Move usage of the old LOCAL_USER_* macros to the new ast_module_user_* functions in a few documentation places.
18 years ago
Russell Bryant bae82679a6 Merged revisions 92556 via svnmerge from
18 years ago
Mark Michelson b01f947025 Same change to trunk as revision 92510. I'm not sure why I merged
18 years ago
Mark Michelson 27cebd1d5c Removing a pointless memset. The memory was just calloc'd, so the
18 years ago
Joshua Colp 270bf4804e Only look to see if options are set if some have been provided.
18 years ago
Joshua Colp 9ebf3afe02 Only send a SIGHUP if the pid is greater than -1, otherwise all PIDs greater than -1 will get the SIGHUP... and that is bad.
18 years ago
Luigi Rizzo 5490889153 Put into Makefile.moddir_rules the common instructions used to
18 years ago
Luigi Rizzo d652be0930 normalize subdirs' Makefile by using ASTTOPDIR and not .. to reference
18 years ago
Jason Parker 02ea9face7 Add count of total number of calls processed by asterisk during it's lifetime.
18 years ago
Russell Bryant 3509415be1 Use ast_free() instead of free().
18 years ago
Tilghman Lesher 4aff884622 Pass the Asterisk version to AGI scripts as part of the initial dump of info
18 years ago
Luigi Rizzo 6c11deeffb fix build on cygwin
18 years ago
Jason Parker 2a65719773 Add manager events for when a monitor is started or stopped.
18 years ago
Tilghman Lesher ecaaa14f46 Merged revisions 90736 via svnmerge from
18 years ago
Joshua Colp 8bfdea3160 Add AGI commands for speech recognition. These mirror the dialplan applications mostly but present the information in a nicer fashion. The SPEECH RECOGNIZE command for example will return the results instead of having to query the dialplan functions.
18 years ago
Jason Parker 63342693ae Merged revisions 90607 via svnmerge from
18 years ago
Jason Parker 7bf4fc6c2a Only reload if the config file has changed.
18 years ago
Mark Michelson 6b08c442c7 Adding support for the "automixmonitor" dial and queue options.
18 years ago
Tilghman Lesher a31a852dbc Merged revisions 90160 via svnmerge from
18 years ago
Joshua Colp 48da910225 Merged revisions 90101 via svnmerge from
18 years ago
Jason Parker aa0f63d65f Remove "old"-style CLI handler, since nothing uses it anymore.
18 years ago
Joshua Colp 6aad89b97d Fix a few log messages.
18 years ago
Mark Michelson a42259c3ff Adding support for realtime music on hold. The following are the main points:
18 years ago
Olle Johansson 5ac0f923b3 A few more "moremanager" fixes
18 years ago
Steve Murphy ab92fc1f35 made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.
18 years ago
Joshua Colp 0619fb1248 Perform some module use counting audits. This is now done outside the scope of the application/dialplan function so they do not need to worry about it.
18 years ago
Joshua Colp 23eecf8c61 Merged revisions 89599 via svnmerge from
18 years ago
Tilghman Lesher f1de129e5f Merged revisions 89559 via svnmerge from
18 years ago
Tilghman Lesher c7e931eacf Merged revisions 89545 via svnmerge from
18 years ago
Tilghman Lesher 6792b619f7 Merged revisions 89534 via svnmerge from
18 years ago
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
18 years ago
Luigi Rizzo 3fc2646808 remove a number of #include <fcntl.h> which are either
18 years ago
Steve Murphy 86476c607f closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
18 years ago
Terry Wilson ff6b2ad8de Simplify comparison in parking fix
18 years ago
Terry Wilson 348025fd0b Merged revisions 89491 via svnmerge from
18 years ago
Steve Murphy 837b8ef417 OOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.
18 years ago
Steve Murphy 4670e38aac closes issue #11265; Thanks to snuffy for his work on neatening up the code and removing duplicated code.
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 6938f4b2b0 Fix building of modules under cygwin.
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Joshua Colp 1affda12a2 Merged revisions 89419 via svnmerge from
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Terry Wilson 38ebd439f7 Fix broken parking dial-back
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Steve Murphy 542f29ea0e This fixes a problem with pattern ranges; and corrects a situation in res_features, where an extension would be created with the name Zap/51, as an example. THe / is bad because it would tend to mean that the 51 is to be cid matched.
18 years ago
Luigi Rizzo 09d9cce1d8 access channel locks through ast_channel_lock/unlock/trylock and not
18 years ago
Tilghman Lesher 0f6892419e One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant 51377db4a5 - Use the ARRAY_LEN macro in a couple places
18 years ago
Russell Bryant 799fc3b99f Fix a typo pointed out by outtolunc, thanks :)
18 years ago
Russell Bryant fa39f74761 Update the ParkedCall application to grab the first available parked call if no
18 years ago
Jason Parker d24cee9a81 Merged revisions 89248 via svnmerge from
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
18 years ago
Steve Murphy a897556f7f This is the perhaps the biggest, boldest, most daring change I've ever committed to trunk. Forgive me in advance any disruption this may cause, and please, report any problems via the bugtracker. The upside is that this can speed up large dialplans by 20 times (or more). Context, extension, and priority matching are all fairly constant-time searches. I introduce here my hashtables (hashtabs), and a regression for them. I would have used the ast_obj2 tables, but mine are resizeable, and don't need the object destruction capability. The hashtab stuff is well tested and stable. I introduce a data structure, a trie, for extension pattern matching, in which knowledge of all patterns is accumulated, and all matches can be found via a single traversal of the tree. This is per-context. The trie is formed on the first lookup attempt, and stored in the context for future lookups. Destruction routines are in place for hashtabs and the pattern match trie. You can see the contents of the pattern match trie by using the 'dialplan show' cli command when 'core set debug' has been done to put it in debug mode. The pattern tree traversal only traverses those parts of the tree that are interesting. It uses a scoreboard sort of approach to find the best match. The speed of the traversal is more a function of the length of the pattern than the number of patterns in the tree. The tree also contains the CID matching patterns. See the source code comments for details on how everything works. I believe the approach general enough that any issues that might come up involving fine points in the pattern matching algorithm, can be solved by just tweaking things. We shall see. The current pattern matcher is fairly involved, and replicating every nuance of it is difficult. If you find and report problems, I will try to resolve than as quickly as I can. The trie and hashtabs are added to the existing context and exten structs, and none of the old machinery has been removed for the sake of the multitude of functions that use them. In the future, we can (maybe) weed out the linked lists and save some space.
18 years ago
Jason Parker 8b6c511200 Change a warning to a notice. Issue #11195, patch by eliel
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Steve Murphy a87efea3c4 Merged revisions 89088 via svnmerge from
18 years ago
Russell Bryant 4afb905cf0 Print out the channel name as a prefix to the "agi debug" output. This makes
18 years ago
Mark Michelson 1d0687dc2c Instead of trying to callback a local channel on a failed attended transfer, call
18 years ago
Russell Bryant 4e871ae483 Merged revisions 89053 via svnmerge from
18 years ago