I am sorry. It was my mistake. Instead of passing the account id to the function, I passed its address. Now I have corrected it. ? But, now I have a new problem. ? When I use ? pjsua_acc_set_online_status ? I get this error message ? pjsua_pres.c? Client publication (PUBLISH) failed (503/Service Unavailable) Is this an error message from the server ? ? and when I try ? pjsua_acc_set_online_status2 ? I get ? except.c? !!!FATAL: unhandled exception PJLIB/No memory! ? Could anyone clarify on these? ? Thanks, Srikanth Rajagopalan --- On Fri, 17/7/09, Srikanth Rajagopalan <srikanth_r17 at yahoo.co.in> wrote: From: Srikanth Rajagopalan <srikanth_r17@xxxxxxxxxxx> Subject: Regarding pjsua_acc_set_online_status To: pjsip at lists.pjsip.org Date: Friday, 17 July, 2009, 1:55 AM Hi, ? I am trying to publish presence information of my client. I first register the client and then use this command ? pjsua_acc_set_online_status(&acc_id, 1) ? This line causes my program to abort. I found this message in the log ? Assertion failed: acc_id>=0 && acc_id<(int)(sizeof(pjsua_var.acc)/sizeof(pjsua_var.acc[0])) Could anyone advice me what is wrong here? ? Thanks, Srikanth Rajagopalan See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090717/a19c4765/attachment.html>