aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_phoneprov.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-14Need a new buffer for each looptwilson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Don't unref user twice on failure. Also, when adding sorted list of users, ↵twilson1-2/+1
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-11Make sure that ${LINE} is set even if linenumber is not set in users.conftwilson1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114080 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Fix the fact that global_variables 1) weren't being updated on reload ↵twilson1-24/+51
(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-07atoi(NULL) is badtwilson1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113170 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05Clean up some memory leak/ref counting issuestwilson1-22/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05Multi-line support for phoneprovtwilson1-138/+343
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112906 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-02Re-add HTTP post support by moving to res_http_post.ctwilson1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112426 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19ensure that res_phoneprov's HTTP handler tells the dispatcher what method it ↵kpfleming1-0/+1
can handle git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109926 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18start the process of changing HTTP request dispatching to do it based on ↵kpfleming1-2/+3
*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-18Go through and fix a bunch of places where character strings were being ↵twilson1-1/+1
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-12Rename ast_tcptls_server_instance to session_instance, since this pertains torussell1-1/+1
server and client usage. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108295 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Rename public object server_instance to ast_tcptls_server_instancerussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105773 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Set username to default to the category name if it isn't overridden by a ↵twilson1-1/+7
usernmae= setting in users.conf git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105733 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26fix this module, toorussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104260 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15Fix up some doxygen issues.qwell1-1/+1
(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-01-24Merged revisions 100138 via svnmerge from qwell1-1/+3
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-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-16Make users list statictwilson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98962 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-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