summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-01config: Speed up ACO & sorcery initializationSean Bright
When starting Asterisk in the foreground, there is a perceptible delay when loading modules that use the ACO and sorcery config frameworks. For example, a lightly configured res_pjsip took 853ms to load on my VM. I tracked down the slowness to the XPath queries used to associate the relevant documentation with the config options. One improvement was adding a call to xmlXPathOrderDocElems after loading an XML document. From the libxml2 docs: Call this routine to speed up XPath computation on static documents. The second change was to remove recursive descent and wildcard operators from the XPath queries. After these changes, res_pjsip takes 85ms to load on my VM and there is no longer a perceptible delay when starting Asterisk in the foreground. Change-Id: I45d457f1580e26bf5a2b0dab16e8e9ae46dcbd82
2017-12-01res_http_post: Not all versions of gmime have GMIME_MAJOR_VERSION.Joshua Colp
This change makes the presence of the GMIME_MAJOR_VERSION definition optional, as not all versions of gmime actually define it. ASTERISK-27454 Change-Id: I01d99590045971ed6787899147170a5954077238
2017-11-30README-SERIOUSLY.bestpractices.txt: Convert to markdownCorey Farrell
Follow-up to conversion of README.md. Change-Id: I17ee7cf25bc027ece844efa2c1dfe613aff1e35b
2017-11-30Merge "translate: Transcode siren14, speex32, silk24, and silk12 via slin16."Jenkins2
2017-11-30Merge "autoconf: Use m4 conditionals where possible."Jenkins2
2017-11-30Merge "autoconf: Fix call to AC_CONFIG_AUX_DIR."Jenkins2
2017-11-28Merge "CLI: Remove compatibility code."Jenkins2
2017-11-28Merge "translate: Show sample rate for silk, speex, and slin in translation ↵Joshua Colp
table."
2017-11-28autoconf: Use m4 conditionals where possible.Corey Farrell
Change-Id: I530c0a72f965437acef6a9a4fbfe5c487f078b65
2017-11-28autoconf: Fix call to AC_CONFIG_AUX_DIR.Corey Farrell
The `pwd` parameter to AC_CONFIG_AUX_DIR is unnecessary, the default value is $srcdir. Additionally remove the AC_REVISION call. It only added a comment and is pointless without SVN tag replacements. Change-Id: I99299a3217f095bddcb2edefb3b9af0ab147bc29
2017-11-27Merge "res_ari: Fix inverted test giving wrong error message."Joshua Colp
2017-11-27Merge "res_rtp_asterisk.c: Fix rtp source address learning for broken clients"Jenkins2
2017-11-27CLI: Remove compatibility code.Corey Farrell
Previous commits maintained compatibility with older remote console clients as well as maintaining all API's. Remove the following compatibility code: * ast_cli_generatornummatches. * Remote command "_command nummatches". * Sorting / duplicate removal by remote console. Change-Id: I59e6ce94fa57ae564888442049695f7e46746437
2017-11-27Merge "features.conf.sample: Clarify ActivatedBy documentation wording."Jenkins2
2017-11-27Merge "CLI: Finish conversion of completion handling to vectors."Jenkins2
2017-11-27Merge "CLI: Refactor cli_complete."George Joseph
2017-11-27Merge "CLI: Rewrite ast_el_strtoarr to use vector's internally."Joshua Colp
2017-11-27Merge "CLI: Create ast_cli_completion_add function."George Joseph
2017-11-27Merge "CLI: Refactor ast_cli_display_match_list."Jenkins2
2017-11-27Merge "CLI: Remove calls to ast_cli_generator."George Joseph
2017-11-27Merge "add cmd connection creation on creation ooh323 call data structure"Jenkins2
2017-11-27Merge "pjsip: 183 without To tag does not negotiate media"George Joseph
2017-11-27Merge "Add defaultbranch to .gitreview."Joshua Colp
2017-11-26translate: Transcode siren14, speex32, silk24, and silk12 via slin16.Alexander Traud
When a format has no pre-recorded sound files, Asterisk has to transcode between formats. For this, Asterisk has a fixed translation table. If the pre-recorded sound files are not available in the same sample rate, Asterisk has not only to transcode but also to resample. Asterisk has pre-recorded files for SLN (8000 kHz) and SLN16 (16000 kHz). However before this change, Asterisk did not take the sample rate into account, because the translation paths to SLN and SLN16 got the same score/weight in the table. Consequently, you might have got narrow-band audio with siren14, speex32, silk24, and silk12 although those are (ultra) wide-band audio codecs. With this change, the distance in sample-rates is taken into account. Now on the Command-Line interface (CLI) 'core show channels', you should see: (slin@16000)->(slin@32000)->(speex@32000). ASTERISK-23735 Reported by: Richard Kenner Change-Id: I9448295c1978be26f8633b6066395e7bbbe2e213
2017-11-26res_ari: Fix inverted test giving wrong error message.Richard Mudgett
The patch for ASTERISK_24560 inverted a test checking if the bridge name is being updated to a different name. * Fix the test to return "Changing bridge name is not implemented" when someone attempts to change the bridge name. ASTERISK-27445 Change-Id: I4b70bf08b0e02e016108b077ff75b345dec12fc9
2017-11-25translate: Show sample rate for silk, speex, and slin in translation table.Alexander Traud
ASTERISK-24662 Change-Id: I3822956984292c99c48bca8e97807e498ccc0e88
2017-11-23features.conf.sample: Clarify ActivatedBy documentation wording.Richard Mudgett
Change-Id: Id2899331fe05d1909a862ea879742879d086bc64
2017-11-23Merge "res_parking: Set load_pri more appropriately."Joshua Colp
2017-11-23Merge "res_mwi_external_ami: Remove incorrect load priority."Joshua Colp
2017-11-23Merge "Loader: Remove unneeded load_pri declarations."Joshua Colp
2017-11-23Merge "README: Convert to README.md."Joshua Colp
2017-11-23Merge "res_rtp_asterisk: ICE server-reflexive candidates (srflx) with ↵Joshua Colp
Dual-Stack."
2017-11-23Merge "chan_sip: ICE contained square brackets around IPv6 addresses."Joshua Colp
2017-11-22Add defaultbranch to .gitreview.Corey Farrell
Although the default value of defaultbranch is master I'm adding it anyways. This way when new major branches are being created the value can be updated instead of having to remember the name of the key. Change-Id: I3db009217c5ae399fb84bee95076f4dbb7fa52d2
2017-11-23add cmd connection creation on creation ooh323 call data structureAlexander Anikin
ASTERISK-27353 #close Reported by: Marco Giordani Change-Id: I455096bd7da016b871afe09af86067c2c7c9f33f
2017-11-22pjsip: 183 without To tag does not negotiate mediaKevin Harwell
If a 183 with sdp response is receive without a To tag the sdp is not negotiated. According to RFC 3261 section 12.1.2 while a To tag is required, the client needs to still be able to handle the missing tag case for backwards compatibility. This patch, accepted by and applied to pjproject, makes it so if an incoming 180/183 with SDP comes in without a To tag it gets appropriately handled. ASTERISK-27442 #close Change-Id: Ic9d6b01e05e8f4874eebbd7adfe05d932025d203
2017-11-22res_rtp_asterisk: ICE server-reflexive candidates (srflx) with Dual-Stack.Alexander Traud
Previously, Asterisk sent srflx only when configured exclusively for IPv4. Now, srflx is gathered and sent via SDP, even when Asterisk is enabled for Dual Stack (IPv4+IPv6) and an IPv4 interface is available/used. ASTERISK-27437 Change-Id: Ie07d8e2bfa7b6fe06fcdc73d390a7a9a4d8c0bc1
2017-11-21res_parking: Set load_pri more appropriately.Corey Farrell
res_parking had an inplicit load_pri of 0 meaning it was one of the very first modules loaded after modules with global symbols. Set it to AST_MODPRI_DEVSTATE_PROVIDER as it provides device state for parking lots. Change-Id: I297b6fb3ff6993ec004e667b22a74f5925906259
2017-11-21Merge "aoc: Remove silly usage of RAII_VAR."Joshua Colp
2017-11-21Merge "abstract_jb: Remove silly usage of RAII_VAR."Joshua Colp
2017-11-21Merge "BuildSystem: pjsip_evsub_set_uas_timeout was not used."Joshua Colp
2017-11-21Merge "app: Remove silly usage of RAII_VAR."Joshua Colp
2017-11-21Merge "ccss: Remove silly usage of RAII_VAR."Joshua Colp
2017-11-21README: Convert to README.md.Corey Farrell
Convert the README file to markdown format, remove the old README. This causes websites like github to display the README in a much nicer format with live links. The raw file is still very readable from plain text editors and terminals. Change-Id: I7d13131764a9a9026e5f8a6ddb245a01bbd788e7
2017-11-21CLI: Finish conversion of completion handling to vectors.Corey Farrell
Change-Id: Ib81318f4ee52a5e73b003316e13fe9be1dd897a1
2017-11-21CLI: Refactor cli_complete.Corey Farrell
* Stop using "_COMMAND NUMMATCHES" on remote consoles. Using this command had doubled the amount of work needed from the Asterisk daemon for each completion request. * Fix code formatting. * Remove static buffer used to send the command, use the same buffer that will receive the results. * Move sort from ast_cli_display_match_list. Change-Id: Ie2211b519a3d4bec45bf46e0095bdd01d384cb69
2017-11-21CLI: Rewrite ast_el_strtoarr to use vector's internally.Corey Farrell
This rewrites ast_el_strtoarr to use vector's internally, but still return the original NULL terminated array of strings. Change-Id: Ibfe776cbe14f750effa9ca360930acaccc02e957
2017-11-21CLI: Refactor ast_cli_display_match_list.Corey Farrell
* Stop estimating line count, just print until we run out of matches. * Stop freeing entries, the caller does that anyways. * Stop calculating / returning numoutput, it was ignored. Change-Id: I7f92afa8bea92241a95227587367424c8c32a5cb
2017-11-21CLI: Create ast_cli_completion_add function.Corey Farrell
Some completion generators are very inefficent due to the way CLI requests matches one at a time. ast_cli_completion_add can be called multiple times during one invokation of a CLI generator to add all results without having to reinitialize the search state for each match. Change-Id: I73d26d270bbbe1e3e6390799cfc1b639e39cceec
2017-11-21CLI: Remove calls to ast_cli_generator.Corey Farrell
The ability to add to localized storage cannot be supported by ast_cli_generator. The only calls to ast_cli_generator should be by functions that need to proxy the CLI generator, for example 'cli check permissions' or 'core show help'. * ast_cli_generatornummatches now retrieves the vector of matches and reports the number of elements (not including 'best' match). * test_substitution retrieves and iterates the vector. Change-Id: I8cd6b93905363cf7a33a2d2b0e2a8f8446d9f248