Offline Instant Messaging v2

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(created)
 
 
(One intermediate revision by one user not shown)
Line 22: Line 22:
 
     ; OfflineMessageURL = http://yourserver/Offline.php or http://yourrobustserver:8003
 
     ; OfflineMessageURL = http://yourserver/Offline.php or http://yourrobustserver:8003
  
     ;# {StorageProvider} {Offline Message Module V2:Offline Message Module V2} {DLL that provides the storage interface} {OpenSim.Addons.OfflineIM}
+
     ;# {StorageProvider} {Offline Message Module V2:Offline Message Module V2} {DLL that provides the storage interface} {OpenSim.Data.MySQL.dll}
;; For standalones, use the service directly. This is the storage dll.
+
;; For standalones, this is the storage dll.
; StorageProvider = OpenSim.Addons.OfflineIM.dll
+
; StorageProvider = OpenSim.Data.MySQL.dll
  
 
     ;# {MuteListModule} {OfflineMessageModule:OfflineMessageModule} {} {} MuteListModule
 
     ;# {MuteListModule} {OfflineMessageModule:OfflineMessageModule} {} {} MuteListModule
Line 56: Line 56:
 
[Messaging]
 
[Messaging]
 
     ; OfflineIM
 
     ; OfflineIM
    StorageProvider = "OpenSim.Addons.OfflineIM.dll"
 
 
     OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
 
     OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
 
</source>
 
</source>
Line 73: Line 72:
 
[Messaging]
 
[Messaging]
 
     ; OfflineIM
 
     ; OfflineIM
    StorageProvider = "OpenSim.Addons.OfflineIM.dll"
 
 
     OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
 
     OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
 
</source>
 
</source>
  
 
== MySQL Database ==
 
== MySQL Database ==
The Offline Instant Messaging v2 Module uses the following MySQL storage:
+
The Offline Instant Messaging v2 Module uses the following MySQL storage and migrations:
 
  <source lang="sql">
 
  <source lang="sql">
 
:VERSION 1        # --------------------------
 
:VERSION 1        # --------------------------
Line 101: Line 99:
 
INSERT INTO `im_offline` SELECT * from `diva_im_offline`;
 
INSERT INTO `im_offline` SELECT * from `diva_im_offline`;
 
DROP TABLE `diva_im_offline`;
 
DROP TABLE `diva_im_offline`;
 +
DELETE FROM `migrations` WHERE name='diva_im_Store';
  
 
COMMIT;
 
COMMIT;
 
</source>
 
</source>

Latest revision as of 17:05, 20 February 2013

Contents

[edit] Offline Instant Messaging v2

Diva Canto has contributed a new Offline Instant Messaging v2 module for OpenSim 0.7.6-dev r/22086 and later.

To configure this, instead of the Offline Messaging module which requires an external PHP script.

[edit] OpenSim.ini

Enabled the chosen instant messaging module in the [Messaging] block:

[Messaging]
    ;# {OfflineMessageModule} {} {Module to use for offline message storage} {OfflineMessageModule "Offline Message Module V2" *}
    ;; Module to handle offline messaging. The core module requires an external
    ;; web service to do this. See OpenSim wiki.
    ; OfflineMessageModule = OfflineMessageModule
	;; Or, alternatively, use this one, which works for both standalones and grids
    ; OfflineMessageModule = "Offline Message Module V2"
 
    ;# {OfflineMessageURL} {OfflineMessageModule:OfflineMessageModule Offline Message Module V2:Offline Message Module V2} {URL of offline messaging service} {}
    ;; URL of web service for offline message storage. Leave it commented if your service is local to the sim.
    ; OfflineMessageURL = http://yourserver/Offline.php or http://yourrobustserver:8003
 
    ;# {StorageProvider} {Offline Message Module V2:Offline Message Module V2} {DLL that provides the storage interface} {OpenSim.Data.MySQL.dll}
	;; For standalones, this is the storage dll.
	; StorageProvider = OpenSim.Data.MySQL.dll
 
    ;# {MuteListModule} {OfflineMessageModule:OfflineMessageModule} {} {} MuteListModule
    ;; Mute list handler (not yet implemented). MUST BE SET to allow offline
    ;; messages to work
    ; MuteListModule = MuteListModule
 
    ;# {MuteListURL} {OfflineMessageModule:OfflineMessageModule} {} {} http://yourserver/Mute.php
    ;; URL of the web service that serves mute lists. Not currently used, but
    ;; must be set to allow offline messaging to work.
    ; MuteListURL = http://yourserver/Mute.php
 
    ;; Control whether group messages are forwarded to offline users.
    ;; Default is true.
    ;; This applies to the core groups module (Flotsam) only.
    ; ForwardOfflineGroupMessages = true

[edit] Robust.ini

If you use a Robust server, the Robust.ini needs the following updates:

[ServiceList]
... initial INI stuff
 
;; Uncomment this if you want offline IM to work
;OfflineIMServiceConnector = "8003/OpenSim.Addons.OfflineIM.dll:OfflineIMServiceRobustConnector"
 
... more INI stuff deleted ...
 
[Messaging]
    ; OfflineIM
    OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"

[edit] Robust.HG.ini

If you use a Robust server with Hypergrid enabled, the Robust.HG.ini needs the following updates:

[ServiceList]
... initial INI stuff
 
;; Uncomment this if you want offline IM to work
;OfflineIMServiceConnector = "8003/OpenSim.Addons.OfflineIM.dll:OfflineIMServiceRobustConnector"
 
... more INI stuff deleted ...
 
[Messaging]
    ; OfflineIM
    OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"

[edit] MySQL Database

The Offline Instant Messaging v2 Module uses the following MySQL storage and migrations:

:VERSION 1         # --------------------------
 
BEGIN;
 
CREATE TABLE `im_offline` (
  `ID` MEDIUMINT NOT NULL AUTO_INCREMENT,
  `PrincipalID` char(36) NOT NULL DEFAULT '',
  `Message` text NOT NULL,
  `TMStamp` timestamp NOT NULL,
  PRIMARY KEY  (`ID`),
  KEY `PrincipalID` (`PrincipalID`)
) ENGINE=MyISAM;
 
COMMIT;
 
:VERSION 2         # --------------------------
 
BEGIN;
 
INSERT INTO `im_offline` SELECT * FROM `diva_im_offline`;
DROP TABLE `diva_im_offline`;
DELETE FROM `migrations` WHERE name='diva_im_Store';
 
COMMIT;
Personal tools
General
About This Wiki