On 2/13/06, Colin Whittaker <[EMAIL PROTECTED]> wrote:
> I am working on an inter operation with a switch which requires all
> setup messages to be authenticated, and uses reliable provisional responses.
> Here is their call flow:
> sofia-sip   Switch
> INVITE
>              401
> ACK
> INVITE(auth)
>              100
>              183
> PRACK
>              401
> PRACK(auth)
>              200 (PRACK)
>              200 (INVITE)
> ACK
>
> I can't seem to get sofia to send the Authenticated PRACK.

Looking from the source code, we do not save the challenge for PRACK. 
It looks like that  while handling the response to PRACK we have
botched the O/A, too.

> Why is there no nua_r_prack event ? ( This would be useful to get the
> WWW-Authenticate: header )

It has been left out probably because there is no nua_prack() function
either. Currently PRACK is always sent automatically, which is OK if
you do things like RFC 3312 but not very handy if PRACK should do an
extra O/A exchange.

I have dusted around in nua_stack.c and added some 100rel tests to test_nua.c.

> The event I do get is a nua_i_state with status 401.
> I tried sending the same NUATAG_AUTH() to a nua_authenticate().
> The stack appears to crash in ua_authenticate() after doing this ?
> Is this the proper thing to do ?

This is the way it is supposed to work. Or rather, the credentials
using username and password that were used with INVITE should be
automatically added to the re-sent PRACK request without any
intervention from the application.

> Is this a bug I should be trying to track down, or am I doing something
> wrong ?

More like a missing feature...

--
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