Hi,<br><br><div class="gmail_quote">On Dec 11, 2007 12:12 AM, Edward Rudd <<a href="mailto:erudd@netfor.com">erudd@netfor.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Rajesh Dharmalingam wrote:<br>> Hi,<br>><br>> Thanks for the updates. Yes. I added the others presence. The following<br>> are the detailed steps that am doing from client (Windows /Linux pidgin):
<br>><br></div>[snip]<br><div class="Ih2E3d"><br>> Adding the user as buddy:<br>> By "Add Buddy", i am adding the other user. After selecting the<br>> proper account, i am giving the screen name as the user whom we want to
<br>> add (he is online as well). I discarded the alias and group.<br><br></div>By Discarded the alias and group, do you mean you left them empty?? You<br>may need to set the group name to something.</blockquote><div><br>
Yes. I left group as default "Buddy". I tried with the alias same as i provided while creating an account for the user but the same behavior. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="Ih2E3d"><br>> Once I added the other user as buddy, i see his status as offline<br>> (though he is online). When I try to send a message to other user, the<br>> message is sent but the receiver is not getting the message. I confirmed
<br>> the message sent reaches server.<br><br></div>That means the subscriptiong didn't work right. Can you provide a dump<br>of your roster database?<br> sqlite3 roster.sqlite .dump</blockquote><div>This is the output:
<br><br>BEGIN TRANSACTION;<br>CREATE TABLE jidmap (<br> jidid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,<br> jid VARCHAR(255) NOT NULL,<br> UNIQUE (jid)
<br> );<br>INSERT INTO "jidmap" VALUES(1,'<a href="mailto:rajesh@abc.com">rajesh@abc.com</a>');<br>INSERT INTO "jidmap" VALUES(2,'a');<br>INSERT INTO "jidmap" VALUES(3,'test');
<br>INSERT INTO "jidmap" VALUES(4,'<a href="mailto:a@abc.com">a@abc.com</a>');<br>INSERT INTO "jidmap" VALUES(5,'rajesh');<br>DELETE FROM sqlite_sequence;<br>INSERT INTO "sqlite_sequence" VALUES('jidmap',5);
<br>CREATE TABLE roster (<br> userid INTEGER REFERENCES jidmap NOT NULL,<br> contactid INTEGER REFERENCES jidmap NOT NULL,<br> name VARCHAR(255),
<br> subscription INTEGER NOT NULL REFERENCES substates DEFAULT 0,<br> PRIMARY KEY (userid, contactid)<br> );<br>CREATE TABLE rostergroup (
<br> groupid INTEGER PRIMARY KEY NOT NULL,<br> userid INTEGER REFERENCES jidmap NOT NULL,<br> name VARCHAR(255),
<br> UNIQUE (userid, name)<br> );<br>INSERT INTO "rostergroup" VALUES(1,1,'Buddies');<br>INSERT INTO "rostergroup" VALUES(2,4,'Buddies');
<br>CREATE TABLE groupitem (<br> groupid INTEGER REFERENCES jidmap NOT NULL,<br> contactid INTEGER REFERENCES jidmap NOT NULL,<br> PRIMARY KEY (groupid, contactid)
<br> );<br>COMMIT;<br></div></div><br><br>-- <br>Regards,<br>-Rajesh<br><br>"Stick to our roots and not to forget where we come from"