dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

43 Commits

Author SHA1 Message Date
eliel 228212e7d5 Move function PP_EACH_USER and PP_EACH_EXTENSION documentation to XML.
Move function PP_EACH_USER and PP_EACH_EXTENSION documentation to the new
AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      res_phoneprov_static_conversion.txt uploaded by lmadsen (license 10)
	(with PP_EACH_USER add by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199411 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 22:45:42 +00:00
jpeeler 18563c920b fix typos
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@191213 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-29 22:56:55 +00:00
tilghman 8fc2c0f724 Merge str_substitution branch.
This branch adds additional methods to dialplan functions, whereby the result
buffers are now dynamic buffers, which can be expanded to the size of any
result.  No longer are variable substitutions limited to 4095 bytes of data.
In addition, the common case of needing buffers much smaller than that will
enable substitution to only take up the amount of memory actually needed.
The existing variable substitution routines are still available, but users
of those API calls should transition to using the dynamic-buffer APIs.
Reviewboard: http://reviewboard.digium.com/r/174/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@191140 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-29 18:53:01 +00:00
tilghman 23d5f93d74 Support HTTP digest authentication for the http manager interface.
(closes issue #10961)
 Reported by: ys
 Patches: 
       digest_auth_r148468_v5.diff uploaded by ys (license 281)
       SVN branch http://svn.digium.com/svn/asterisk/team/group/manager_http_auth
 Tested by: ys, twilson, tilghman
 Review: http://reviewboard.digium.com/r/223/
 Reviewed by: tilghman,russellb,mmichelson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190349 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-23 20:36:35 +00:00
kpfleming 8e77cd3e6e a few more namespace updates... res_ael_share still needs some work before this can be merged to other release branches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@182848 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18 02:39:36 +00:00
twilson f002c96f00 Don't leak memory if phoneprov.conf does not exist
(closes issue #14203)
Reported by: jamesgolovich
Patches: 
      asterisk-phoneprovleak.diff.txt uploaded by jamesgolovich (license 176)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168142 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-09 20:25:25 +00:00
twilson 5171d4a7f4 Fix some svn:keywords
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@166908 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-30 20:50:05 +00:00
twilson 88555f85cc Polycom phones close the connection after reading a little bit of the firmware files, we should stop sending in that case. Also, make that case print out a debug statement instead of a scary WARNING.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165219 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-17 19:55:10 +00:00
seanbright 3ce5f8f4ee This is basically a complete rollback of r155401, as it was determined that
it would be best to maintain API compatibility.  Instead, this commit introduces
ao2_callback_data() which is functionally identical to ao2_callback() except
that it allows you to pass arbitrary data to the callback.

Reviewed by Mark Michelson via ReviewBoard:
	http://reviewboard.digium.com/r/64


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158959 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25 01:01:49 +00:00
twilson ec2602aeb3 Cleanup whitespace issues
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156918 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14 17:35:33 +00:00
twilson 3eb1d5a741 Use Mark's new ast_str_case_hash function instead of jumping through hoops to do insensitive case lookups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156916 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14 17:29:05 +00:00
dbailey 82b615e21f Add LINEKEYS variable to allow for a user to set the number of keys assigned to a line on a polycom phone
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155934 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-11 16:46:17 +00:00
seanbright a7a95954c8 Add ability to pass arbitrary data to the ao2_callback_fn (called from
ao2_callback and ao2_find).  Currently, passing OBJ_POINTER to either
of these mandates that the passed 'arg' is a hashable object, making
searching for an ao2 object based on outside criteria difficult.

Reviewed by Russell and Mark M. via ReviewBoard:
    http://reviewboard.digium.com/r/36/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-07 22:39:30 +00:00
kpfleming cc1b2c100f bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153616 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02 18:52:13 +00:00
twilson 4d38ee3cc7 func_strings isn't a dependency of this module anymore
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150118 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-16 15:41:40 +00:00
kpfleming 42f29dc262 inter-module dependencies should be included in the source code, not just in sample config files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@149920 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-16 08:56:35 +00:00
kpfleming afbcd1548d correct file name in message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@149918 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-16 08:31:13 +00:00
twilson 88cae64b08 Make phoneprov case-insensitive to remove the func_strings dependency of the default config
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147854 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09 17:04:11 +00:00
dbailey 1a77d75092 Blanch the 404 error message for those with no sense of humor
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@144314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-24 22:05:44 +00:00
tilghman 95bae85759 Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
when a file is invalid from when a file is missing.  This is most important when
we have two configuration files.  Consider the following example:

Old system:
sip.conf     users.conf     Old result               New result
========     ==========     ==========               ==========
Missing      Missing        SIP doesn't load         SIP doesn't load
Missing      OK             SIP doesn't load         SIP doesn't load
Missing      Invalid        SIP doesn't load         SIP doesn't load
OK           Missing        SIP loads                SIP loads
OK           OK             SIP loads                SIP loads
OK           Invalid        SIP loads incompletely   SIP doesn't load
Invalid      Missing        SIP doesn't load         SIP doesn't load
Invalid      OK             SIP doesn't load         SIP doesn't load
Invalid      Invalid        SIP doesn't load         SIP doesn't load

So in the case when users.conf doesn't load because there's a typo that
disrupts the syntax, we may only partially load users, instead of failing with
an error, which may cause some calls not to get processed.  Worse yet, the old
system would do this with no indication that anything was even wrong.

(closes issue #10690)
 Reported by: dtyoo
 Patches: 
       20080716__bug10690.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12 23:30:03 +00:00
mmichelson 91df49dd46 Merged revisions 140488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140488 | mmichelson | 2008-08-29 12:34:17 -0500 (Fri, 29 Aug 2008) | 22 lines

After working on the ao2_containers branch, I noticed
something a bit strange. In all cases where we provide
a callback function to ao2_container_alloc, the callback
function would only return 0 or CMP_MATCH. After inspecting
the ao2_callback() code carefully, I found that if you're
only looking for one specific item, then you should return
CMP_MATCH | CMP_STOP. Otherwise, astobj2 will continue
traversing the current bucket until the end searching for
more matches.

In cases like chan_iax2 where in 1.4, all the peers are
shoved into a single bucket, this makes for potentially
terrible performance since the entire bucket will be
traversed even if the peer is one of the first ones come
across in the bucket.

All the changes I have made were for cases where the 
callback function defined was passed to ao2_container_alloc
so that calls to ao2_find could find a unique instance
of whatever object was being stored in the container.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140489 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-29 17:47:17 +00:00
seanbright 1013afa1ad All of the res/ stuff (other than res_jabber) from the RSW branch.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137028 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-10 00:47:56 +00:00
twilson 7da3ee1c47 Need a new buffer for each loop
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14 19:58:52 +00:00
twilson 27d1870f0d 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...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114124 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14 19:12:27 +00:00
twilson dfa6c29ac8 Make sure that ${LINE} is set even if linenumber is not set in users.conf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114080 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11 22:23:34 +00:00
twilson b82bff44a5 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().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114067 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11 21:04:46 +00:00
twilson e786f36ebf atoi(NULL) is bad
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113170 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-07 18:57:21 +00:00
twilson dd4ab250b1 Clean up some memory leak/ref counting issues
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05 07:58:42 +00:00
twilson f103c6d199 Multi-line support for phoneprov
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112906 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05 04:59:25 +00:00
twilson 03c243323c Re-add HTTP post support by moving to res_http_post.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112426 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-02 15:25:48 +00:00
kpfleming c1b27d1622 ensure that res_phoneprov's HTTP handler tells the dispatcher what method it can handle
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109926 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19 16:21:36 +00:00
kpfleming 93531c68a2 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
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109762 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 22:32:26 +00:00
twilson 9e8ebe6a94 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
actual problems, per se.  I also added format attributes to any printf wrapper functions I found that didn't have them.  -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109447 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 15:43:34 +00:00
russell f5ce5710ec Rename ast_tcptls_server_instance to session_instance, since this pertains to
server and client usage.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108295 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-12 22:13:18 +00:00
russell 8ef91aad9e Rename public object server_instance to ast_tcptls_server_instance
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105773 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 22:15:18 +00:00
twilson 737272b1c0 Set username to default to the category name if it isn't overridden by a usernmae= setting in users.conf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105733 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 20:32:55 +00:00
russell 9e80211f69 fix this module, too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104260 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26 20:30:50 +00:00
qwell 2d7e70ff01 Fix up some doxygen issues.
(closes issue #11996)
Patches:
      bug_11996_doxygen.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103723 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15 17:29:08 +00:00
qwell ce1bf7ffa2 Merged revisions 100138 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r100138 | qwell | 2008-01-24 10:41:29 -0600 (Thu, 24 Jan 2008) | 6 lines

Fix compilation on Solaris.

(closes issue #11832)
Patches:
      bug-11832.diff uploaded by snuffy (license 35)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100139 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-24 16:47:10 +00:00
twilson 7918f534be Update res_phoneprov to default to setting the SERVER variable to the IP
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-17 03:09:32 +00:00
twilson ce69792484 Make users list static
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98962 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-16 16:06:06 +00:00
twilson c46162bb4c Attempt at making lookup_iface work under FreeBSD. Not yet tested, but it 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-10 00:22:50 +00:00
twilson 11f6af8c7b Added a new module, res_phoneprov, which allows auto-provisioning of phones
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-09 21:37:26 +00:00