aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_jabber.c
AgeCommit message (Collapse)AuthorFilesLines
2007-11-19include "logger.h" and errno.h from asterisk.h - usage shows that theyrizzo1-1/+0
were included almost everywhere. Remove some of the instances. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo1-2/+0
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14One more typo in config.c; and missed conversions due to the constifying of ↵tilghman1-1/+1
ast_variable_new parameters git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08improve linked-list macros in two ways:kpfleming1-2/+2
- the *_CURRENT macros no longer need the list head pointer argument - add AST_LIST_MOVE_CURRENT to encapsulate the remove/add operation when moving entries between lists git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89106 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07Merged revisions 89088 via svnmerge from murf1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89088 | murf | 2007-11-07 14:40:28 -0700 (Wed, 07 Nov 2007) | 1 line In response to 10578, I just ran 1.4 thru valgrind; some of the config leakage I've already fixed, but it doesn't hurt to double check. I found and fixed leaks in res_jabber, cdr_tds, pbx_ael. Nothing major, tho. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89089 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06Allow gtalk and jingle to use TLS connections again.qwell1-36/+35
Closes issue #9972 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01Switch res_jabber to use openssl rather than gnutls.qwell1-84/+353
Closes issue #9972, patch by phsultan. Copied from branch at http://svn.digium.com/svn/asterisk/team/phsultan/res_jabber-openssl/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88164 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Merged revisions 87908 via svnmerge from qwell1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #11131) ........ r87908 | qwell | 2007-10-31 16:23:11 -0500 (Wed, 31 Oct 2007) | 4 lines Make sure we free some allocated memory before returning. Issue 11131, patch by eliel. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87909 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former ↵qwell1-6/+6
didn't make much sense git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19Convert NEW_CLI to AST_CLI.qwell1-6/+6
Closes issue #11039, as suggested by seanbright. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86536 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15Allocate more space for the base64 output we need to generate.phsultan1-2/+2
Closes issue #10913, reported by tootai, who graciously granted us access to his Asterisk server, thanks! Daniel, feel free to reopen the bug in case you can reproduce this on 1.4. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Make the status and priority configurable.phsultan1-5/+48
Closes issue #10785, patch by Luke-Jr, thanks! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84939 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Merged revisions 84902 via svnmerge from phsultan1-2/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84902 | phsultan | 2007-10-07 18:15:39 +0200 (Sun, 07 Oct 2007) | 5 lines Presence packets from a client who's connected with our Jabber ID are valid, therefore, those clients must be considered as buddies. The resource string helps us make the distinction between clients. Closes issue #10707, reported by yusufmotiwala. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84918 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Fix indentationphsultan1-31/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84892 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Merged revisions 84890 via svnmerge from phsultan1-9/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84890 | phsultan | 2007-10-07 17:52:44 +0200 (Sun, 07 Oct 2007) | 5 lines Prevent Asterisk from crashing when receiving a presence packet without resource from a buddy that is known to have a resource list. Revert a change I previously made, where Asterisk could point to a freed memory location. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84891 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-04Update to current coding standards, also changing the argument delimiter to ↵tilghman1-106/+159
',' (Closes issue #10876) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84671 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-25Added a CLI command that shows our buddy list, as suggested by Daniel ↵phsultan1-1/+49
McKeehan, thanks! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83804 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18(issue #10724)qwell1-89/+101
Reported by: eliel Patches: res_features.c.patch uploaded by eliel (license 64) res_agi.c.patch uploaded by seanbright (license 71) res_musiconhold.c.patch uploaded by seanbright (license 71) pbx.c.patch uploaded by moy (license 222) logger.c.patch uploaded by moy (license 222) frame.c.patch uploaded by moy (license 222) manager.c.patch uploaded by moy (license 222) http.c.patch uploaded by moy (license 222) dnsmgr.c.patch uploaded by moy (license 222) res_realtime.c.patch uploaded by eliel (license 64) res_odbc.c.patch uploaded by seanbright (license 71) res_jabber.c.patch uploaded by eliel (license 64) chan_local.c.patch uploaded by eliel (license 64) chan_agent.c.patch uploaded by eliel (license 64) chan_alsa.c.patch uploaded by eliel (license 64) chan_features.c.patch uploaded by eliel (license 64) chan_sip.c.patch uploaded by eliel (license 64) RollUp.1.patch (includes all of the above patches) uploaded by seanbright (license 71) Convert many CLI commands to the NEW_CLI format. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82930 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06Merged revisions 81650 via svnmerge from phsultan1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81650 | phsultan | 2007-09-06 16:20:54 +0200 (Thu, 06 Sep 2007) | 3 lines According to both RFC 3920 - section 9.1.2 - and Google's XMPP server complaint, if set, the 'from' attribute must be set to the user's full JID. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81651 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-05Doxygen cleanups/fixes.qwell1-1/+2
Closes issue #10654, patch by snuffy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81560 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16Don't reload a configuration file if nothing has changed.tilghman1-10/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16Merged revisions 79665 via svnmerge from phsultan1-0/+27
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79665 | phsultan | 2007-08-16 11:37:10 +0200 (Thu, 16 Aug 2007) | 21 lines A fix for two critical problems detected while working with Daniel McKeehan in issue #10184. Upon priority change, the resource list is not NULL terminated when moving an item to the end of the list. This makes Asterisk endlessy loop whenever it needs to read the list. Jids with different resource and priority values, like in Gmail's and GoogleTalk's jabber clients put that problem in evidence. Upon reception of a 'from' attribute with an empty resource string, Asterisk crashes when trying to access the found->cap pointer if the resource list for the given buddy is not empty. This situation is perfectly valid and must be handled. The Gizmoproject's jabber client put that problem in evidence. Also added a few comments in the code as well as a handle for the capabilities from Gmail's jabber client, which are stored in a caps:c tag rather than the usual c tag. Closes issue #10184. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79666 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Do a massive conversion for using the ast_verb() macrorussell1-23/+17
(closes issue #10277, patches by mvanbaak) Basically, this changes ... if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3, "Something\n"); to ... ast_verb(3, "Something\n"); git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Correct an issue where the wrong type was being used to start sasl.qwell1-1/+1
Pointed out by and patch provided by mog. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72987 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28Fix building with -Wdeclaration-after-statementqwell1-3/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72490 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26Simplify some code in res_jabber relating to SASL support.qwell1-70/+92
Issue 9988, patch by phsultan. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71830 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Add a massive set of changes for converting to use the ast_debug() macro.russell1-18/+9
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Doxygenify a lot of the functions in res_jabberrussell1-51/+145
(issue #9886, snuffy) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68289 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Minor formatting change ... testing mantis stuff to see if we're donerussell1-1/+1
(issue #9790) (closes issue #9816) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 68030 via svnmerge from oej1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r68030 | oej | 2007-06-07 12:00:17 +0200 (Thu, 07 Jun 2007) | 2 lines Adding a few Todo's to res_jabber so we don't forget. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68040 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 68028 via svnmerge from oej1-13/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r68028 | oej | 2007-06-07 11:55:13 +0200 (Thu, 07 Jun 2007) | 4 lines Ok, we found out that this is not about if you have any *active* clients using TLS, but if you have initialized TLS at all during the lifetime of the module. So if you reload to disable TLS, it won't help. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68031 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 68027 via svnmerge from oej1-0/+28
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r68027 | oej | 2007-06-07 11:42:26 +0200 (Thu, 07 Jun 2007) | 8 lines If you have a jabber client that uses TLS, refuse unload. Bad fix, but will prevent crashes while we are trying to find a workaround. Iksemel development seems to have stalled and we might have to stop using the TCP/TLS connections in that library and use our own, which would scale better from a poll/select perspective I guess. It would also make it easier to migrate to OpenSSL and stop Asterisk from depending on both OpenSSL and GnuTLS. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68029 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 67993 via svnmerge from oej1-7/+17
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67993 | oej | 2007-06-07 11:00:44 +0200 (Thu, 07 Jun 2007) | 6 lines Issue #9738 - Make sure we can unload res_jabber. Patch by phsultan - thanks! Due to a bug in the iksemel library, this will not work if you are using GTLS in the connection. That's being investigated. If you figure out a way to handle that without us having to patch iksemel, let us know in the bug report. Thanks. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68026 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Simplification of res_jabber code (done at Inria, Paris with Philippe)oej1-32/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67992 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Issue 9869 - replace malloc and memset with ast_calloc, and other coding ↵tilghman1-31/+26
guidelines changes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Merged revisions 67021 via svnmerge from tilghman1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67021 | tilghman | 2007-06-04 10:50:16 -0500 (Mon, 04 Jun 2007) | 2 lines Issue 9739 - Malformed jid causes a crash ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67023 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31Issue #9842 - Doxygen updates by snuffy. Thanks!oej1-1/+1
(Committed from Media Plaza in Utrecht, Netherlands - Open Source VoIP conference) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66705 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25Merged revisions 66157 via svnmerge from kpfleming1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r66157 | kpfleming | 2007-05-25 10:28:46 -0400 (Fri, 25 May 2007) | 3 lines handle the GNUTLS library properly in the configure script and build system don't build in OSP support unless we have found and are allowed to use SSL support ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66158 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue #8409 and accidentally a fix to chan_sip that wasn't supposed to be thereoej1-2/+3
but is still ok... Sorry. Lack of Tea, really. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65838 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-07Adding external referenses for doxygenoej1-0/+2
See http://www.asterisk.org/doxygen/trunk/extref.html git-svn-id: http://svn.digium.com/svn/asterisk/trunk@63230 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-04Merged revisions 63099 via svnmerge from qwell1-2/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r63099 | qwell | 2007-05-04 15:03:49 -0500 (Fri, 04 May 2007) | 4 lines Fix a crash when checking version attribute in an incoming XML caps element. Issue 9667, patch by phsultan. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@63104 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Fix JabberEventsoej1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60986 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Fix missing newline in JabberEventoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60985 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-29Merged revisions 59363 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59363 | russell | 2007-03-29 12:43:52 -0500 (Thu, 29 Mar 2007) | 6 lines When building a response to a subscription, the "from" must be the full Jabber ID. This fixes some problems where jabber users are not able to add their Asterisk account to their user list, since they are unable to get Asterisk to approve their subscription. (issue #8210, reported by caspy, and verified by bradtem) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59364 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-05Merged revisions 57770 via svnmerge from file1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r57770 | file | 2007-03-04 22:35:03 -0500 (Sun, 04 Mar 2007) | 2 lines Don't reference a potentially NULL pointer. (issue #9199 reported by klolik) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20Merged revisions 55555 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r55555 | qwell | 2007-02-20 10:53:45 -0600 (Tue, 20 Feb 2007) | 4 lines No need to cast nor free with strdupa (thanks file) 55555! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55556 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20I like it when trunk builds, so let's make res_jabber compile again!file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55534 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20Merged revisions 55483 via svnmerge from oej1-27/+28
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r55483 | oej | 2007-02-19 22:12:55 +0100 (Mon, 19 Feb 2007) | 3 lines - Not sending arguments to an application is not "out of memory" - Making error messages a bit more clear ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55514 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-07Merged revisions 53294 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53294 | tilghman | 2007-02-06 23:24:31 -0600 (Tue, 06 Feb 2007) | 2 lines Text fix for jabber reload command (reported by bkruse via IRC) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53297 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05Merged revisions 49676 via svnmerge from kpfleming1-8/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49676 | kpfleming | 2007-01-05 16:16:33 -0600 (Fri, 05 Jan 2007) | 2 lines reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49678 f38db490-d61c-443f-a65b-d21fe96a405b