It's strange indeed, I run your code and it worked fine. I assume you call pjsua_acc_config_default() first? If that doesn't work, maybe it's best to "svn update". cheers, -benny Olivier Beytrison wrote: > Hello all, Monday, back to work ;) > > And already a new question for you. I'm trying to register to my SIP > Server, but yet it doesn't work. I get the EINVALIDURI with pjsua_acc_add > > Here's the code : > > acfg.id = pj_str("sip:spv at 169.254.2.2"); > acfg.reg_timeout = 3600; > acfg.reg_uri = pj_str("sip:169.254.2.2"); > acfg.cred_count = 1; > acfg.cred_info[0].username = pj_str("spv"); > acfg.cred_info[0].realm = pj_str("169.254.2.2"); > acfg.cred_info[0].scheme = pj_str("digest"); > acfg.cred_info[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD; > acfg.cred_info[0].data = pj_str("dummypass"); > > and the error obtained. > > 09:28:48.000 pjsua_acc.c Invalid local URI: Invalid URI > (PJSIP_EINVALIDURI) [status=171039] > 09:28:48.000 pjsua_acc.c Error adding account: Invalid URI > (PJSIP_EINVALIDURI) [status=171039] > > looks rather weird, cause that's the code used in many examples. But > maybe pjsip doesn't accept "ip-adress" domains ? > > Thx in advance for your answers :) > > Regards, > Olivier B. > -- Benny Prijono http://www.pjsip.org