aboutsummaryrefslogtreecommitdiffstats
path: root/res
AgeCommit message (Collapse)AuthorFilesLines
2008-01-18This should at least temporarily fix a problem where the 't' Dialtwilson1-4/+4
option is incorrectly passed to the transferee when built-in attended transfers are used. There is still a problem with 'T', but better to fix some problems than no problems while we work on it. (closes issue #7904) Reported by: k-egg Patches: transfer-fix-trunk-r97657.diff uploaded by sergee (license 138) Tested by: sergee, otherwiseguy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99026 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-18Permit username and password to be NULL (which enables pass-through from the ↵tilghman1-7/+29
layer above). Reported by: lurcher Patch by: tilghman (Closes issue #11739) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99017 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-17resolve (valid) compiler warning about variable that could be used before ↵kpfleming1-1/+1
being initialized git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98989 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-17Update res_phoneprov to default to setting the SERVER variable to the IPtwilson1-21/+44
the HTTP request for the config came in on and the SERVER_PORT to the bindport setting in sip.conf. I've left in the ability to override these options, because I can't always guess how someone might decide to do something weird with what is available to them--although needing to is pretty unlikely. Documentation was updated to reflect preference for not setting serveraddr, serveriface, or serverport. Tested on Linux and OS X. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98988 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-16New module res_config_curl (closes issue #11747)tilghman1-0/+503
Reported by: Corydon76 Patches: res_config_curl.c uploaded by Corydon76 (license 14) 20080116__bug11747.diff.txt uploaded by Corydon76 (license 14) Tested by: jmls git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98981 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-16Make users list statictwilson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98962 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12Merged revisions 98467 via svnmerge from tilghman1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r98467 | tilghman | 2008-01-11 18:05:08 -0600 (Fri, 11 Jan 2008) | 4 lines Add a connection timeout attribute, as that was what was intended with the login timeout, but ODBC divides it up into 2 different timeouts. (Closes issue #11745) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98487 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11Merged revisions 98317 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r98317 | file | 2008-01-11 15:28:30 -0400 (Fri, 11 Jan 2008) | 6 lines If the channel is hungup during RECORD FILE send a result code of -1 to be uniform with everything else. (closes issue #11743) Reported by: davevg Patches: res_agi.diff uploaded by davevg (license 209) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98318 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-10Merged revisions 97889 via svnmerge from murf3-76/+90
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97889 | murf | 2008-01-10 14:37:10 -0700 (Thu, 10 Jan 2008) | 1 line Applied the same fixes for ael.flex as was done in 97849 for ast_expr2.fl; overrode the normally generate yyfree func with our own version that checks the pointer for non-null before passing to free(). Also takes care of a little problem with 2.5.33 and the use of the __STDC_VERSION__ macro. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97890 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-10Attempt at making lookup_iface work under FreeBSD. Not yet tested, but it ↵twilson1-11/+9
compiles under OS X. And still works under linux. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97653 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-10Several manager changes:tilghman1-1/+1
1) Add the Dialplan class, for NewExten and VarSet events, which should cut down on the volume of traffic in the Call class. 2) Permit some commands to be run from multiple classes, such as allowing DBGet to be run from either the System or the Reporting class. 3) Heavily document each class in the sample config, as there were several that made no sense to be in the write= line, and two that made no sense to be in the read= line (since they controlled no permissions there). (Closes issue #10386) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97651 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Added a new module, res_phoneprov, which allows auto-provisioning of phonestwilson1-0/+1012
based on configuration templates that use Asterisk dialplan function and variable substitution. It should be possible to create phone profiles and templates that work for the majority of phones provisioned over http. It is currently only intended to provision a single user account per phone. An example profile and set of templates for Polycom phones is provided. NOTE: Polycom firmware is not included, but should be placed in AST_DATA_DIR/phoneprov/configs to match up with the included templates. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97634 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Merged revisions 97529 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97529 | russell | 2008-01-09 12:02:08 -0600 (Wed, 09 Jan 2008) | 2 lines Fix saying the parking space number to the caller doing the parking ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97531 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-08Iksemel is alive in a new home. Release 1.3 is out with bug fixes.oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97199 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07Merged revisions 96884 via svnmerge from russell1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96884 | russell | 2008-01-07 10:39:23 -0600 (Mon, 07 Jan 2008) | 3 lines Don't crash if something happens when setting up an SMDI interface and it gets destroyed before the SMDI port handling thread gets created. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96885 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-05Convert this file over the new method of getting the Asterisk version.russell1-3/+6
(I don't have this building on this machine, so caio1982 on IRC is going to test it for me. :) ) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96743 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-05Now that the version.h file was getting properly regenerated every time the svnrussell1-1/+1
revision changed, every module that used the version was getting rebuilt after every svn update. This severly annoyed me pretty quickly, so I have improved the situation. Now, instead of generating version.h, main/version.c is generated. version.c includes the version information, as well as a couple of API calls for modules to retrieve the version. So now, only version.c will get rebuilt, and the main asterisk binary relinked, which is must faster than rebuilding http.c, manager.c, asterisk.c, relinking the asterisk binary, chan_sip.c, func_version.c, res_agi ... The only minor change in behavior here is that the version information reported by chan_sip, for example, is the version of the Asterisk core, and not necessarily the Asterisk version that the chan_sip module came from. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96717 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-04Merged revisions 96573 via svnmerge from qwell1-3/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 (Closes issue #11237) ........ r96573 | qwell | 2008-01-04 16:55:56 -0600 (Fri, 04 Jan 2008) | 4 lines Properly continue in the dialplan if using PARKINGEXTEN and the slot is full. Issue 11237, patch by me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96574 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-04Use SASL DIGEST-MD5 authentication over unsecured network connections only.phsultan1-26/+16
This authentication mechanism is implemented under the iksemel API, which makes use of GnuTLS, whereas we use OpenSSL. Note : there's ongoing dicsussion at the SASL IETF WG in order to deprecate SASL DIGEST-MD5, see http://ietfreport.isoc.org/ids-wg-sasl.html. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96499 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03Merged revisions 96318 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96318 | tilghman | 2008-01-03 15:37:02 -0600 (Thu, 03 Jan 2008) | 4 lines Missed initialization caused crash. Reported and fixed by: tiziano (Closes issue #11671) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96332 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03Add coordination between AMI and AGI applications, with an asyncagi methodtilghman1-3/+391
Feature proposed and patched by: moy (Closes issue #11282) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02go back to including libresample in the main Asterisk binary, but this time ↵kpfleming23-10235/+0
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) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95816 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02Set stream flags to zero upon initialization.phsultan1-1/+6
When the XMPP over TLS/SSL connection resets for some reason, it is wrongly believed as being secured, which makes the re-connection process endlessly fail. This was reported by mvanbaak in issue #11644. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95794 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02Don't make libresample print out debugging outputrussell2-5/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95746 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02Instead of linking libresample into the main Asterisk binary, build it asrussell23-0/+10237
res_resample, and mark codec_resample as dependent upon res_resample. This prevents the linker from optimizing away libresample, and also makes it so the libresample code isn't linked in to multiple places. (I have another module in a branch that needs it, too.) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95697 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26Merged revisions 94793 via svnmerge from russell1-4/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94793 | russell | 2007-12-26 11:24:17 -0600 (Wed, 26 Dec 2007) | 3 lines Don't try to send a parked call back to itself. (closes issue #11622, reported by djrodman, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94794 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25Add channel thread ID to the information passed to AGI.tilghman1-0/+2
Reported by: dror99 Patch by: tilghman (Closes issue #11162) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21Store dates using local time instead of UTCmmichelson1-3/+3
(closes issue #11610, reported and patched by rbraun_performatique) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94548 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-20modify http://svn.digium.com/view/asterisk?view=rev&rev=93603rizzo1-3/+1
so that paths and filename are writable by asterisk.c without causing segfaults. This involves defining the variables as const char *, and having them point to as static, writable buffer defined in asterisk.c On passing, fix some errors in using these variables in some files in utils/ , and in res/snmp/agent.c which was redefining a variable without using paths.h (not applicable to 1.4) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94168 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-19Merged revisions 94122 via svnmerge from mmichelson1-1/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94122 | mmichelson | 2007-12-19 17:02:22 -0600 (Wed, 19 Dec 2007) | 6 lines Sox versions 13.0.0 and newer do not have "soxmix" and instead use sox -m. res_monitor needs to use this if the user does not have soxmix. (closes issue #11589, reported by amessina, patch inspired by amessina but with a flourish from me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94123 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-19make netsmp build under AST_DEVMODE. Description, included in the source,rizzo1-0/+29
is below. I should note that the PACKAGE_* macros that asterisk defines in autoconfig.h are not used anywhere in the tree so they should just be removed. /* * There is some collision collision between netsmp and asterisk names, * causing build under AST_DEVMODE to fail. * * The following PACKAGE_* macros are one place. * Also netsnmp has an improper check for HAVE_DMALLOC_H, using * #if HAVE_DMALLOC_H instead of #ifdef HAVE_DMALLOC_H * As a countermeasure we define it to 0, however this will fail * when the proper check is implemented. */ No git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93875 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-18make configuration variable const so they are not accidentallyrizzo2-2/+2
modified. This requires casting the strings in asterisk.c when writing to them, so we do it through a macro to do it consistently. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93603 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-18remove unnecessary (char *) casts for ast_config_AST_* variables.rizzo1-4/+4
There are some left in the .flex files, left to the maintainer... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93582 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17Merged revisions 93180 via svnmerge from kpfleming1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93180 | kpfleming | 2007-12-16 22:44:51 -0800 (Sun, 16 Dec 2007) | 23 lines In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html, rizzo brought up some issues related to the way that the metadata required for menuselect and the rest of the build system is extracted from the source files. Since I had a few hours to kill on an airplane today, I decided to improve this situation... so now the system caches the extracted metadata and uses it to build the menuselect 'tree' as much as it can. The result of this is that when a single source file is changed, only the metadata for that file needs to be extracted again, and the rest is used from the cache files. I also reduced the number of forked processes required to do the metadata extraction; it was actually possible to do most of what we needed in the Makefiles themselves without using any shell scripts at all! On my laptop, these changes resulted in an 80% decrease in the time required for the 'menuselect.makeopts' automatic check to occur after editing a single source file. While doing this work I also cleaned up a few minor things in the Makefiles, adding a check for 'awk' to the configure script and changed all remaining places we use 'grep' or 'awk' to use the ones found by the configure script, and changed the 'prep_tarball' script to build the menuselect metadata so that tarballs of Asterisk will include it and won't require the user to wait while it is extracted after unpacking. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14Publish the AGI events to manager.tilghman1-1/+37
Reported by: moy Patch by: moy,tilghman (Closes issue #11337) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92999 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14Merged revisions 92933 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r92933 | tilghman | 2007-12-14 09:01:10 -0600 (Fri, 14 Dec 2007) | 5 lines Change help documentation to match actual behavior (FAILURE vs FAILED). Reported by: angeloxx-sir Patch by: tilghman (Closes issue #11548) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92936 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14Convert ast_verbose to ast_verb.tilghman2-9/+5
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13Move usage of the old LOCAL_USER_* macros to the new ast_module_user_* ↵file1-1/+1
functions in a few documentation places. (closes issue #11533) Reported by: IgorG Patches: oldmacroclean.v1.diff uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92811 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12Merged revisions 92556 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r92556 | russell | 2007-12-12 13:40:02 -0600 (Wed, 12 Dec 2007) | 1 line resolve compiler warning ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92562 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12Same change to trunk as revision 92510. I'm not sure why I mergedmmichelson1-4/+8
this way, but I did. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11Removing a pointless memset. The memory was just calloc'd, so the mmichelson1-1/+0
memory is already zeroed out git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92402 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11Only look to see if options are set if some have been provided.file1-8/+10
(closes issue #11505) Reported by: Mike Anikienko git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92365 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10Only send a SIGHUP if the pid is greater than -1, otherwise all PIDs greater ↵file1-1/+2
than -1 will get the SIGHUP... and that is bad. (closes issue #11453) Reported by: alanmcmillan git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92199 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10Put into Makefile.moddir_rules the common instructions used torizzo1-9/+1
generate loadable and embedded module lists. Individual Makefiles now are a lot simpler, possibly as simple as this: -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps MODULE_PREFIX=cdr_ all: _all include $(ASTTOPDIR)/Makefile.moddir_rules and also more flexible because in a single directory we can combine various types of modules (app_, cdr_, func_, ... ) by simply listing them in the MODULE_PREFIX variable. The individual Makefiles can also create list of modules to be excluded by listing them in the variablel MODULE_EXCLUDE (see an example in channels/Makefile). With this change it becomes trivial to integrate a directory with locally created/modified sources into the main build. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92082 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-09normalize subdirs' Makefile by using ASTTOPDIR and not .. to referencerizzo1-1/+1
the top level directory. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92022 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-07Add count of total number of calls processed by asterisk during it's lifetime.qwell1-0/+10
Add number of total calls and current calls to SNMP. Closes issue #10057, patch by jcmoore. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05Use ast_free() instead of free().russell1-1/+1
(closes issue #11309) Reported by: Laureano Patches: res_odbc.c.patch uploaded by Laureano (license 265) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91131 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04Pass the Asterisk version to AGI scripts as part of the initial dump of infotilghman1-0/+2
Reported by: acunningham Patch by: acunningham (Closes issue #11398) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04fix build on cygwinrizzo1-2/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90834 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03Add manager events for when a monitor is started or stopped.qwell1-0/+14
Closes issue #10191, patch by dgradecak. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90738 f38db490-d61c-443f-a65b-d21fe96a405b