add client field to chatpresence - which will give us a place to put IP addresses for webRTC. Might as well allow for that since we'll (soon) have presence. Then we wouldn't need SIP and folks can "just" p2p each other using any mechanism they wish if they have permission to do so.
This commit is contained in:
@@ -232,6 +232,7 @@ CREATE TABLE IF NOT EXISTS `chatpresence` (
|
||||
`cp_xchan` char(255) NOT NULL DEFAULT '',
|
||||
`cp_last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`cp_status` char(255) NOT NULL,
|
||||
`cp_client` char(128) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`cp_id`),
|
||||
KEY `cp_room` (`cp_room`),
|
||||
KEY `cp_xchan` (`cp_xchan`),
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1093 );
|
||||
define( 'UPDATE_VERSION' , 1094 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -1054,3 +1054,9 @@ function update_r1092() {
|
||||
|
||||
|
||||
|
||||
function update_r1093() {
|
||||
$r = q("ALTER TABLE `chatpresence` ADD `cp_client` CHAR( 128 ) NOT NULL DEFAULT ''");
|
||||
if($r)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user