Aug 29, 2007 4:34 AM
Asterisk-IM configuration
-
Like (0)
Hi to all... I've a problem with Asterisk-IM configuration.
On my LAN i've two PC: one with Asterisk 1.4.9 on Debian Etch (192.168.0.4); other of these with openfire 3.3.2 on WinXP (192.168.0.2; database embedded).
Now, i'd run integration through Astererisk-IM, but it doesn't work.
When openfire start, i've message in openfire console:
Missing database schema for asterisk-im. Attempting to install...
asterisk-im - Database update failed. Please manually upgrade your database.
What means??
And then, when i try to add server in asterisk-IM tab, it says "Server created successfully"... but it isn't true:
in the next screen message is always "No Servers Configured". WHY??? Help me!
and i've another message:
29-ago-2007 13.18.49 org.asteriskjava.util.internal.JavaLoggingLog info
INFO: Connecting to 192.168.0.4:5038
29-ago-2007 13.18.49 org.asteriskjava.util.internal.JavaLoggingLog info
INFO: Connected via Asterisk Call Manager/1.0
29-ago-2007 13.18.49 org.asteriskjava.util.internal.JavaLoggingLog info
INFO: Successfully logged in
29-ago-2007 13.18.49 org.asteriskjava.util.internal.JavaLoggingLog info
INFO: Determined Asterisk version: Asterisk 1.2
29-ago-2007 13.18.49 org.asteriskjava.util.internal.JavaLoggingLog info
INFO: Initializing done
My manager.conf is:
secret=admin
permit=192.168.0.2/255.255.255.0
read =.......all.......
write = .......all...........
Thank you!
Hello,
I'm very new to this but I found that if you are using the embedded (HSQL) database then the tables are not created correctly.
Modify /plugins/asterisk-im/database/asterisk-im_hsqldb.sql to read as below, restart openfire and try to add a server again - hopefully it will work for you.
C.
create table phoneServer (
serverID bigint not null,
serverName varchar(255) not null,
hostname varchar(255) not null,
port integer not null,
username varchar(255) not null,
password varchar(255) not null,
constraint phoneServer_pk primary key(serverID)
);
create table phoneDevice (
deviceID bigint not null,
device varchar(255) not null,
extension varchar(255) not null,
callerID varchar(255),
isPrimary integer not null,
userID integer,
serverID bigint not null,
constraint phoneDevice_pk primary key (deviceID)
);
create table phoneUser (
userID bigint not null,
username varchar(255) not null,
constraint phoneUser_pk primary key (userID)
);
create unique index phoneUser_username_idx on phoneUser(username);
INSERT INTO jiveVersion (name, version) VALUES ('asterisk-im', 2);
Thank you very much! Now it's running correctly!
GREAT GREAT!
I just finished a new install of Openfire and was trying to get the embedded DB working. The fix to the DB install worked 100%.
I was having the same problem on 3.3.x and forgot about it when I decided to go with MySQL. Obviously this is still an issue for Asterisk-IM and the embedded DB.
This really needs to be in 1.4.1 or 1.4.0a or something.
Thanks!!
I've created
PHONE-71 for this. The fix will be part of the next release.
Hello!
Is there any rough estimate about when the next release will happen?
Bye
Starry
IT WORKS!!!
Thanks a lot Chris Stone! you're the man! ![]()
jonie e