osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [osip-dev] How Send 401 response with WWW-Authenticate option


From: Aymeric Moizard
Subject: Re: [osip-dev] How Send 401 response with WWW-Authenticate option
Date: Tue, 21 May 2013 10:04:50 +0200

Hi,

The stack can automatically handle authentication as clients and thus can
automatically send credentials in REQUESTs. This is the purpose of
"eXosip_add_authentication_info".

If you wish to add a WWW-Authenticate header, you need to use the
"osip_www_authenticate_xxxx" APIs and add the header yourself in
the SIP answer after your called eXosip_message_build_answer and
before your call eXosip_message_send_answer.

The stack is first made for clients, so there is nothing automatic
for such authentication.

Regards
Aymeric



2013/5/20 yikaikai <address@hidden>
 


Hello all,
 
     I want use exosip send 401 to client with WWW-Authenticate option, but I do not know how to do it?
 
 
I try this butfailed:
 
    eXosip_add_authentication_info(context_eXosip,"103", "103", "103", "md5", NULL);
     eXosip_message_build_answer (context_eXosip,event->tid, 401,&answer); 
      eXosip_message_send_answer (context_eXosip,event->tid, 401,answer);

_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev




--
Antisip - http://www.antisip.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]