aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_jabber.c
AgeCommit message (Collapse)AuthorFilesLines
2007-11-07In response to 10578, I just ran 1.4 thru valgrind; some of the config ↵murf1-0/+1
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/branches/1.4@89088 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Make sure we free some allocated memory before returning.qwell1-0/+1
Issue 11131, patch by eliel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87908 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Presence packets from a client who's connected with our Jabber ID arephsultan1-2/+6
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/branches/1.4@84902 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Prevent Asterisk from crashing when receiving a presence packetphsultan1-9/+4
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/branches/1.4@84890 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06According to both RFC 3920 - section 9.1.2 - and Google's XMPP serverphsultan1-1/+1
complaint, if set, the 'from' attribute must be set to the user's full JID. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81650 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16A fix for two critical problems detected while working with Danielphsultan1-0/+27
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/branches/1.4@79665 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Fix 1.4 breakagetilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72554 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Adding a few Todo's to res_jabber so we don't forget.oej1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68030 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Ok, we found out that this is not about if you have any *active* clients ↵oej1-13/+7
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/branches/1.4@68028 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07If you have a jabber client that uses TLS, refuse unload. Bad fix, but will ↵oej1-0/+28
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/branches/1.4@68027 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Issue #9738 - Make sure we can unload res_jabber. Patch by phsultan - thanks!oej1-7/+17
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/branches/1.4@67993 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Issue 9739 - Malformed jid causes a crashtilghman1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67021 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25handle the GNUTLS library properly in the configure script and build systemkpfleming1-0/+1
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/branches/1.4@66157 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue 8409 - phsultan - Fix "login" as component to jabber server.oej1-2/+3
...and, by accident, fix a bug in chan_sip for stopping a loop on retransmits of BYE requests. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65836 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-04Fix a crash when checking version attribute in an incoming XML caps element.qwell1-2/+14
Issue 9667, patch by phsultan. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63099 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Add final new line after JabberEventoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60984 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-29When building a response to a subscription, the "from" must be the full Jabberrussell1-1/+1
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/branches/1.4@59363 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-05Don't reference a potentially NULL pointer. (issue #9199 reported by klolik)file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20No need to cast nor free with strdupa (thanks file)qwell1-2/+2
55555! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55555 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-19- Not sending arguments to an application is not "out of memory"oej1-27/+25
- Making error messages a bit more clear git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55483 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-07Text fix for jabber reload command (reported by bkruse via IRC)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53294 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most ↵kpfleming1-8/+7
cases git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49676 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02More changes making the CLI more consistent with "category verb arguments" ↵tilghman1-2/+2
(continuation of issue 8236) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47053 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23don't crash when an incoming message has no "from" (issue #8205, jmls)russell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@45999 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19Let's remember to unregister JabberStatus too (issue #8184 reported by jmls)file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@45694 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-12change some debug output to use LOG_DEBUG instead of verbose outputrussell1-12/+12
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44911 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04update thread creation code a bitkpfleming1-1/+1
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03fix issue with dialing client without resource.mogorman1-7/+19
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44312 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03updated res_jabber for even better component support, soon will be jep-0100 ↵mogorman1-54/+73
compliant. also removed chan_jingle and infromed info from jingle.txt, chan_gtalk still works and should be used in this version. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44240 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21updates for better compontent supportmogorman1-41/+67
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43466 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20thats odd, but just in case it happens again i want to see it.mogorman1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43305 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19fixed timeout issue as well as some other minor issuesmogorman1-13/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-8/+22
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03remove leading space in Packet manager event headerrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41849 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31everything that loads a config that needs a config file to runmogorman1-15/+18
now reports AST_MODULE_LOAD_DECLINE when loading if config file is not there, also fixed an error in res_config_pgsql where it had a non static function when it should. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-16/+8
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-08some code clean up and catch for a act_hook being calledmogorman1-4/+8
without a packet. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39351 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07This patch allows for a user to send messages and mogorman1-1/+55
monitor a jabber connection over manager. patches from 7673 and 7666 with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39248 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07Many many code cleanup changes given to me by Oejmogorman1-211/+204
Thanks, sorry I didn't put this in forever ago. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39229 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-07eliminate a pointer signedness warningrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37289 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-05solves issue with bug 7468. but with a patch that worksmogorman1-33/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37087 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-27Missing parenthesistilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36176 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-27dont copy an id or a message if they dont exist.mogorman1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36175 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-18handle ast_calloc failure and tweak some formatting to comply with codingrussell1-5/+8
guidelines (issue #7341, casper) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34667 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09oops moved block without renaming a variable correctly.mogorman1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33299 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09convert one of my linked lists to ast_linklistmogorman1-46/+36
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33263 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07solves some bugs with memory allocation, and addsmogorman1-34/+81
a message stack. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32918 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-3/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-06fixes some issues with description loggin on presencemogorman1-2/+7
as well as some typos. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32675 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-06fix a potential segfaultmogorman1-2/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32674 f38db490-d61c-443f-a65b-d21fe96a405b