Hi, Thanks Benny I will do it that way. About the DNS it's working well know. Thanks once again but the problem was really mine because I didn't specify the P-CSCF's port (5070) when using the its url and when using the IP address I did specify the port. As soon as I tried registering using the P-CSCF's url as well as its port the problem was fixed. I don't know if all P-CSCFs require this information but as long as I know this one does. Best regards, Jorge Quoting Benny Prijono <bennylp at pjsip.org>: > Thanks for the info, Jorge. I'll add this to the IMS wiki shortly. > > For the PJSIP_HAS_DIGEST_AKA_AUTH configuration, rather than changing > sip_config.h, the official way to do this is to override the setting > in your config_site.h, so that you'll not get conflicts next time you > do "svn update". So add this to your config_site.h instead: > > #define PJSIP_HAS_DIGEST_AKA_AUTH 1 > > And for the DNS, what if you put the DNS server in --nameserver > option in pjsua? > > cheers, > -benny > > On 2/8/08, jorge.amador at withus.pt <jorge.amador at withus.pt> wrote: >> Hi Benny, >> >> In fact I didn't need to change much. After getting the latest svn >> version I only changed the file sip_config.h where I changed the >> definition of PJSIP_HAS_DIGEST_AKA_AUTH from 0 to 1. Then I use the >> following configuration: >> >> acc_cfg[0].id = >> pj_str("sip:yoursipurl at sipserver"); >> >> acc_cfg[0].reg_uri = pj_str("sip:sipserver"); >> >> acc_cfg[0].proxy[0] = pj_str("sip:sipproxy;lr"); >> >> acc_cfg[0].proxy_cnt = 1; >> >> acc_cfg[0].cred_count = 1; >> >> acc_cfg[0].cred_info[0].realm = pj_str("*"); >> >> acc_cfg[0].cred_info[0].scheme = pj_str("digest"); >> >> acc_cfg[0].cred_info[0].username = pj_str("yourusername"); >> >> acc_cfg[0].cred_info[0].data = pj_str("yourpassword"); >> >> acc_cfg[0].cred_info[0].data_type = >> PJSIP_CRED_DATA_PLAIN_PASSWD | PJSIP_CRED_DATA_EXT_AKA; >> >> app_config.acc_cfg[0].cred_info[0].ext.aka.k = pj_str("yourpassword"); >> >> app_config.acc_cfg[0].cred_info[0].ext.aka.cb = >> &pjsip_auth_create_aka_response; >> >> >> This was enough to solve my problem. Hope it helps. Relating the issue >> I told you about in the last e-mail I forgot to mention that the my >> dns is correctly configured in /etc/resolv_conf. Still if I configure >> the proxy's address with the IP address it works fine but if I use its >> url it doesn't register. Any idea what could be wrong? Best regards, >> >> Jorge Amador >> >> >> Quoting Benny Prijono <bennylp at pjsip.org>: >> >> > Hi Jorge, >> > >> > that's good news! Would you mind sharing your configuration to us? I >> > wanted to write a small doc on configuring PJSIP to work with IMS, but >> > unfortunately I forgot most of the settings. :D >> > >> > cheers. >> > -benny >> > >> > On 2/7/08, jorge.amador at withus.pt <jorge.amador at withus.pt> wrote: >> >> Hi everyone, >> >> >> >> Thank you all for your hints. I'm now able to register to the P-CSCF. >> >> I had to get the latest svn version and use aka authentication as well >> >> as loose routing. Still I have a curious situation going on. If I >> >> configure the proxy's address with the IP address it works fine but if >> >> I use its url it doesn't register. In both cases I configure the >> >> server's address with its url. Any clue what might be wrong? Best >> >> regards, >> >> >> >> Jorge Amador >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip at lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >