On Thu, Jan 15, 2009 at 5:25 AM, Samuel Vinson <samuelv at laposte.net> wrote: > Hello Benny, and everybody > > Happy to read again you !! ;-) > > I found sip provider that try to ask authenticate when it receive an Invite > message > but pjsip replies by Ack and not a new Invite with authentication > information. > > Is it a bug in pjsip or server? Is it possible to follow this process, > whereas the registration has been done ? > Maybe I forgot to enable an option too. > > Currently: > Client ---- Service Provider > Invite --> > <-- 100 Trying > <-- 401 Unauthorized > Ack --> > > Waited > Client ---- Service Provider > Invite --> > <-- 100 Trying > <-- 401 Unauthorized > Invite --> > Hi Samuel, have you set credentials in your code? In the simpleua.c we can read this: /* If we expect the outgoing INVITE to be challenged, then we should * put the credentials in the dialog here, with something like this: * { pjsip_cred_info cred[1]; cred[0].realm = pj_str("sip.server.realm"); cred[0].username = pj_str("theuser"); cred[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD; cred[0].data = pj_str("thepassword"); pjsip_auth_clt_set_credentials( &dlg->auth_sess, 1, cred); } * */ I didn't use credentials to outgoing calls yet, but I'm pretty sure it will work. regards, mayama -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090115/c8beabb6/attachment.html>