[pjsip] Trouble with pjsua_register_acc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 

 Olivier Beytrison
 Telecommunication Engineer
 Mobile: +41 (0)78 619 73 53
 Mail: olivier at heliosnet.org
 GPG: 0x4FB83528 http://pgp.mit.edu/



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux