Commit Graph

59 Commits

Author SHA1 Message Date
paulc 1dc8d69a8e Added a helper class SocketRef and use it instead of all ad-hoc similar classes.
Fixed a memory leak in Jabber SSL listeners.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6299 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-20 11:58:02 +00:00
paulc 37a72e4bc1 Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014.
Fixed end of lines in many files.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
marian e0942e7e65 Changed im.execute relay id. Removed im.route message relay. Route chat using call.route message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5618 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 07:54:00 +00:00
paulc cf5d0fd71a Changed license terms in each source file to reference an external file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
marian d4b5beaa08 Fixed conversion from boolean false to pointer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5598 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 07:10:00 +00:00
paulc 78201aa0be Added unHexify version that automatically detects separator presence.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5596 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 14:52:52 +00:00
paulc 3cf42e2828 Use Alarm() in places that could prevent normal operation.
This allows sending SNMP traps when parts of the service become non-operational.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5569 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-08 12:21:26 +00:00
paulc 3b49b78ecb Added a shared static list of Atom strings and an YATOM macro.
This speeds up signifficantly the Yate RTTI on compilers that HAVE_BLOCK_RETURN.
Made the String comparison operator inline to shave off a few cycles.
Fast handle the comparison in identity case.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5449 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:19:14 +00:00
andrei 2a08c45703 Differentiate "No component could process the command" and "The component failed to process the command" in rmanager control output.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5396 acf43c95-373e-0410-b603-e72c3f656dc1
2013-02-08 15:23:06 +00:00
marian ac2d54e471 Added configurable parameter (defaults to disabled) used to offer only plain password authentication on c2s streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5376 acf43c95-373e-0410-b603-e72c3f656dc1
2013-01-08 12:30:38 +00:00
paulc bf57830c7f Added possibility to track message progress through handlers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5107 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-12 23:47:01 +00:00
marian f47656f1fd Changed component domain configuration parameter name to avoid conflict with optional connect address.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4981 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-26 15:02:40 +00:00
marian dbab3197ee Added support for outgoing jabber component streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4980 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-26 14:44:01 +00:00
marian 6dc556a891 The entity capabilities cache file is now configurable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4577 acf43c95-373e-0410-b603-e72c3f656dc1
2011-08-29 14:09:32 +00:00
marian 177051a1a6 Signal and handle hierarchical (NamedPointer usage) support in user.roster query message for faster processing.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4529 acf43c95-373e-0410-b603-e72c3f656dc1
2011-07-28 11:59:46 +00:00
marian 3f447874fc Don't return true when completing a command, let other modules handle the message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4515 acf43c95-373e-0410-b603-e72c3f656dc1
2011-07-20 15:04:37 +00:00
paulc 1ae0546b45 Added class for pseudo random number generation.
Replace library ::random() and ::rand() calls with shared Random method.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4470 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-29 11:19:02 +00:00
marian ac2de218ea Advertise session feature on c2s streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4469 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-29 09:35:49 +00:00
marian 3e43e22823 Enqueue user.authfail when failed to authenticate an user or incoming s2s stream dialback fails.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4467 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-29 08:54:06 +00:00
marian 4d7c61ec5e Always set the correct message stanza type in dispatched msg.execute/route messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4295 acf43c95-373e-0410-b603-e72c3f656dc1
2011-04-14 09:00:22 +00:00
marian 11bbf9208f Advertise external components in the list of server items when requested. Match server target for stanzas received on component streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4266 acf43c95-373e-0410-b603-e72c3f656dc1
2011-04-05 15:56:13 +00:00
marian d63591560e Use a NamedIterator (faster) to build a roster item from a list of parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4129 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-24 12:31:52 +00:00
marian c1c69036fb Create yate cluster listener and connections. Send/receive yate messages on cluster streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4127 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-23 12:40:40 +00:00
marian 7de78fed32 Allow specifiying stream parameters in stream create command.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4111 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-15 16:12:20 +00:00
marian 9b6c70e895 Make sure the stream is locked while accessing its local and remote party jid or checking its id.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4065 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-25 15:01:27 +00:00
marian 4df6bc7214 Fixed memory leak: release database query messages after use.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4054 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-21 14:53:46 +00:00
marian 91b4480cec Fixed bug: avoid sending entity caps request on s2s incoming stream.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4018 acf43c95-373e-0410-b603-e72c3f656dc1
2010-12-23 15:48:12 +00:00
marian df94c86555 Removed sender and recipient resource check when sending presence error.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3704 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-08 13:17:59 +00:00
marian 3a2bb71e0f Roster item updates containing group names with reserved characters can now be refused or the unacceptable group can be ignored.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3673 acf43c95-373e-0410-b603-e72c3f656dc1
2010-09-28 15:06:34 +00:00
marian 7f13563d83 Added jabber stream compression support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3436 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-16 11:11:50 +00:00
marian 7a63eb5bd1 The jabber server is now keeping features and capabilities for each serviced domain. Check if TLS is available before offerring it on incoming streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3428 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-09 15:05:58 +00:00
marian 0661acda5c Check TLS availability before using it on outgoing streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3427 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-09 14:37:19 +00:00
paulc 78d100265f Got rid of some long standing conversion warning by providing the proper casts.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3377 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 18:07:17 +00:00
marian a0ff2b3b28 Add message stanza id to msg.route.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3258 acf43c95-373e-0410-b603-e72c3f656dc1
2010-04-30 08:37:48 +00:00
marian 2a25d4b173 Fixed
git-svn-id: http://yate.null.ro/svn/yate/trunk@3247 acf43c95-373e-0410-b603-e72c3f656dc1
2010-04-27 15:05:48 +00:00
marian 5621a88ebb Fixed debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3131 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-18 14:32:37 +00:00
marian c34ac0af90 Fixed bug: check if the resource is already used by an user when processing a bind request.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3127 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-17 14:19:15 +00:00
marian cba07a3ca3 Fixed deadlock: outgoing jabber stream id is now checked by the engine event processor to avoid locking engine's stream list(s) while the stream is locked.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3126 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-17 13:06:54 +00:00
marian 1b5c9878ec Optionally dump received 'iq' xml string in dispatched jabber.iq message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3104 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-03 09:51:02 +00:00
marian 69e15604d0 Implemented support for multiple remote domains on incoming s2s streams. Implemented XEP 0185 and 0220. Added module option and stream flag used to disable RFC3920 features advertising on incoming s2s streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3085 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 11:40:24 +00:00
marian 916730a921 Try harder to set the from attribute of an offline chat before storing it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3072 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-05 21:11:05 +00:00
marian 4c81f9cb3c Add destination instance when sending messages on non c2s streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2988 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-16 14:45:58 +00:00
marian 7803d9af83 Handle directed chat with resource not found and groupchat/error without full jid target. Store only chat/normal message stanzas in offline messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2987 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:51:28 +00:00
marian 516b0aa9ef Route presence stanzas with type error.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2981 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-09 14:53:39 +00:00
marian fa5280c020 Add stream type prefix to stream name. Added account to client streams. A client stream can now be retrieved by account from the jabber client engine.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2976 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-27 12:17:17 +00:00
marian 7d32d0e9b7 Avoid adding empty name attribute to roster items. Fixed some comments.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2967 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-26 13:35:55 +00:00
marian 2746c622ab Fixed offline messages delivering bug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2955 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-19 08:07:42 +00:00
marian d7a9336994 Added local/remote ip to stream detail status.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2944 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-13 12:31:43 +00:00
marian 3aa98bfd98 Implemented c2s non sasl authentication. Added listener for direct c2s SSL connections. Restrict client resources with the same name while authenticating using non sasl.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2943 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-13 11:36:05 +00:00
marian 7b122c9741 Added resource to jid when sending user.unregister.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2932 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 16:11:48 +00:00