Hi Marcin,

Could you provide us a copy the 401 response you get?

--Pekka

On 2/17/06, Marcin Michalak <[EMAIL PROTECTED]> wrote:
> Hello,
>  I'm getting further with the simple application, although its still
> not working...
>  I'm trying to register with authentication, but it doesn't work...
> I prepare the structures, and then send register:
>
> nua_register(asig_operation->handle,
>                           NUTAG_REGISTRAR("sip:192.168.19.129:5060"),
>                                    SIPTAG_CONTACT_STR("<sip:[EMAIL 
> PROTECTED]:8080>"),
>                                    TAG_END());
>
> Register gets sent, then I get the callback, here's what I call:
>
>         switch(event)
>         {
>         case nua_r_register :
>                 printf("reg\n");
>                 if (status == 401 && !authorizing)
>                 {
>                         /* Unauthorized - auth required */
>                         authorizing = 1;
>                         printf("authorizing\n");
>                         nua_authenticate(nh,
> NUTAG_AUTH("Digest:\"telscom.ch\":marcin:marcin"),
>                 TAG_END());
>                 }
> ......
> Here's the debugs (NUA_DEBUG=9)
> reg
> authorizing
> event 28: 401 Unauthorized
>    ::tag_null: 0
> nua(00346C58): signal r_authenticate
> nua(00346C58): r_authenticate 200 OK
> ----------------------
> The problem is: authentication response never gets sent...
>  Any hints?
>   Marcin
> ----------------------------------------------------------
> Marcin Michalak         Research Engineer
> Mobile: +41 79 330 83 51        Telscom AG
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Sofia-sip-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>


--
Pekka.Pessi mail at nokia.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to