[pjsip] pjsip_regc_set_credentials

Mike Roberts mike at switch.co
Mon Oct 26 15:49:44 EDT 2015


Ok, so I found an example in the sip_auth_client which shows that you just
... well fill out the struct. However, one problem I'm running into is that
the challenge I get from the server has a realm like "blah.net". Everything
that pjsip does with the data I passed in via the pjsip_cred_info object is
correct except I need to be able to reply to the challenge with a new realm
like "foo.blah.net".

Is this possible? It looks like I can set a pjsip_cred_cb callback
function, but then the framework won't actually do all of the calculations
with respect to the digest/nonce/other things I don't really understand. Is
there a way to get a callback after the framework is done so that I can
just modify the realm? Or some other way to do this without having to
implement the entirety of the authentication algorithm myself?

On Fri, Oct 23, 2015 at 3:27 PM, Mike Roberts <mike at switch.co> wrote:

> I'm looking through the pjsua source and I can't figure out how the
> pjsip_cred_info object(s) being passed into pjsip_regc_set_credentials are
> being initialized. Where is an example of how this is done in the source?
>
> Thanks,
> Mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151026/5d8aec93/attachment-0002.html>


More information about the pjsip mailing list