Cisco Unified Presence APIs Developer Forums

« Back to Cisco Unified Presence SIP/SIMPLE Interface

RE: SIP/2.0 407 Proxy Authentication Required

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi,
I'm using Jain sip stack or connecting against CUP 8.5.
 
When I try to call a SUBSCRIBE like:
SUBSCRIBE sip:CUP90001@CUP8SERVER SIP/2.0
Call-ID: fba06e16ffd236a9c03d984f7d185a3a@MY_HOST
CSeq: 1 SUBSCRIBE
From: <sip:CUP90000@CUP8SERVER>;tag=tagtesttest
To: <sip:CUP90001@CUP8SERVER>
Via: SIP/2.0/UDP MY_HOST:5051;branch=udpbranchtesttest,SIP/2.0/TCP MY_HOST:5060;branch=tcpbranchtesttest
Max-Forwards: 70
Proxy-Authorization: Basic Q1VQOTAwMDA6c25hcHdhcmU
Contact: <sip:CUP90000@MY_HOST:5060>
Event: presence
Expires: 3600
Accept: application/pidf+xml
P-Asserted-Identity: <sip:CUP90000@CUP8SERVER>
Content-Length: 0
 
Then I get the following response:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP MY_HOST:5051;received=MY_HOST;branch=udpbranchtesttest,SIP/2.0/TCP MY_HOST:5060;branch=tcpbranchtesttest
Call-ID: 604e44da83ec7f4c79d749d1d0d908f4@MY_HOST
From: <sip:CUP90000@CUP8SERVER>;tag=tagtesttest
To: <sip:CUP90001@CUP8SERVER>
CSeq: 1 SUBSCRIBE
Proxy-Authenticate: DIGEST realm="DOMAIN.NOT.SET",nonce="4ee9ee80",qop="auth",algorithm=MD5
Content-Length: 0
 
What I have to do?
 

Hi Bernd,

The easiest way to get by this is to add your clients hostname/ip to the CUP SIP Proxy's Incoming ACL. This can be done from the CUP Administration GUI under System > Security > Incoming ACL. This will let the proxy bypass SIP Digest Authentication for your clients hostname/ip. Although not recommended for production, you can also add an entry of "All" to allow all hosts bypass SIP Digest Authentication.


Regards,
Donal

Hi Donald,

Thanks a lot ;-)

Now I get a response like:
SIP/2.0 200 OK
Via: SIP/2.0/UDP MY_HOST:5051;received=MY_HOST;branch=udpbranchtesttest,SIP/2.0/TCP MY_HOST:5060;branch=tcpbranchtesttest
CSeq: 1 SUBSCRIBE
Call-ID: c9ed0d0743a26c68a2dc989d934aae30@10.103.228.175
From: <sip:CUP90000@MY_HOST:5060>;tag=tagtesttest
To: <sip:CUP90001@CUP8SERVER>;tag=ae901357
Contact: <sip:CUP8SERVER:5070;transport=tcp>
Expires: 3600
Record-Route: <sip:CUP90001@CUP8SERVER:5060;maddr=CUP8SERVER;transport=udp;lr>
Content-Length: 0

So it looks much better, but I get no NOTIFY events when I change the present state of user "CUP90001"?
What could be the problem?
Do you know any useful detailed documentation that describes the SIMPLE interface of the CUP server?

Best regards
Bernd

Hi Bernd,

The "Cisco Unified Presence Developer Guide" describes the SIP/SIMPLE interface, and includes sample requests and request flowcharts.

It can be downloaded from here: http://developer.cisco.com/web/cupapi/documentation

Regards,
Donal

Hi Donal

This is the one I aways have.

Do you have maybe an idea why I don't get NOTIFY events?

Best regards
Bernd

Hi Bernd,

You would need to examine the "Cisco UP Presence Engine" logs at debug level to find out why the Notify is not being returned. These can be downloaded from the server using RTMT.

Regards,
Donal