[Live-devel] playSIP Authentication Error

Simon Maddox simon at simonmaddox.com
Mon Sep 10 01:04:42 PDT 2012


I came across playSIP, and it appears to do exactly what I'm after. However…

No matter what I do, I always get a 407 Proxy Authentication Required.

I've checked around line 493 of SIPClient.cpp, and confirmed that the realm and nonce are being parsed correctly.

Assuming this might be the fault of my SIP provider, I ran a default installation of Freeswitch on my local machine, and I'm still having issues.

I've logged into the account "1000" with a SIP client, and that rings when I run playSIP, but I still get the same issue. Logging into "1001" with a SIP client and calling 1000 produces the correct outcome (rings, answer, media is transferred).

I've included my console output below - does anyone know what's going on?

Cheers,

Simon

------

$ playSIP -u 1001 1234 sip:1000 at 192.168.1.14
Sending request: INVITE sip:1000 at 192.168.1.14 SIP/2.0
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
Via: SIP/2.0/UDP 192.168.1.14:34553
To: sip:1000 at 192.168.1.14
Contact: sip:1001 at 192.168.1.14:34553
Call-ID: 1545070494 at 192.168.1.14
CSeq: 1 INVITE
Content-Type: application/sdp
User-Agent: playSIP (LIVE555 Streaming Media v2011.07.21)
Content-Length: 116

v=0
o=- 1545070494 0 IN IP4 192.168.1.14
s=playSIP session
c=IN IP4 192.168.1.14
t=0 0
m=audio 8000 RTP/AVP 0

Received INVITE response: SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.14:34553
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
To: <sip:1000 at 192.168.1.14>
Call-ID: 1545070494 at 192.168.1.14
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20120906T224301Z~a7c791d2de
Content-Length: 0


Received INVITE response: SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.14:34553
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
To: <sip:1000 at 192.168.1.14>;tag=Dj9FF476vey0p
Call-ID: 1545070494 at 192.168.1.14
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20120906T224301Z~a7c791d2de
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Proxy-Authenticate: Digest realm="192.168.1.14", nonce="a9cc8540-f8d8-11e1-a32f-97553ec22995", algorithm=MD5, qop="auth"
Content-Length: 0


Sending request: INVITE sip:1000 at 192.168.1.14 SIP/2.0
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
Via: SIP/2.0/UDP 192.168.1.14:34553
To: sip:1000 at 192.168.1.14
Contact: sip:1001 at 192.168.1.14:34553
Call-ID: 1545070494 at 192.168.1.14
CSeq: 2 INVITE
Content-Type: application/sdp
Proxy-Authorization: Digest username="1001", realm="192.168.1.14", nonce="a9cc8540-f8d8-11e1-a32f-97553ec22995", response="ce3a0885091a2c89d60257fa9e564273", uri="sip:1000 at 192.168.1.14"
User-Agent: playSIP (LIVE555 Streaming Media v2011.07.21)
Content-Length: 116

v=0
o=- 1545070494 1 IN IP4 192.168.1.14
s=playSIP session
c=IN IP4 192.168.1.14
t=0 0
m=audio 8000 RTP/AVP 0

Received INVITE response: SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.14:34553
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
To: <sip:1000 at 192.168.1.14>
Call-ID: 1545070494 at 192.168.1.14
CSeq: 2 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20120906T224301Z~a7c791d2de
Content-Length: 0


Received INVITE response: SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.14:34553
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
To: <sip:1000 at 192.168.1.14>;tag=eU28gZratQmKj
Call-ID: 1545070494 at 192.168.1.14
CSeq: 2 INVITE
Contact: <sip:1000 at 192.168.1.14:5060;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20120906T224301Z~a7c791d2de
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 191
Remote-Party-ID: "1000" <sip:1000 at 192.168.1.14>;party=calling;privacy=off;screen=no

v=0
o=FreeSWITCH 1346991036 1346991037 IN IP4 192.168.1.14
s=FreeSWITCH
c=IN IP4 192.168.1.14
t=0 0
m=audio 23488 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - -
a=ptime:20

Received INVITE response: SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.14:34553
From: 1001 <sip:1001 at 192.168.1.14>;tag=758580961
To: <sip:1000 at 192.168.1.14>;tag=Dj9FF476vey0p
Call-ID: 1545070494 at 192.168.1.14
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20120906T224301Z~a7c791d2de
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Proxy-Authenticate: Digest realm="192.168.1.14", nonce="a9cc8540-f8d8-11e1-a32f-97553ec22995", algorithm=MD5, qop="auth"
Content-Length: 0


Failed to get a SDP description from URL "sip:1000 at 192.168.1.14": (NULL)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120910/b9780b04/attachment-0001.html>


More information about the live-devel mailing list