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:[email protected]
Sending request: INVITE sip:[email protected] SIP/2.0
From: 1001 <sip:[email protected]>;tag=758580961
Via: SIP/2.0/UDP 192.168.1.14:34553
To: sip:[email protected]
Contact: sip:[email protected]:34553
Call-ID: [email protected]
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:[email protected]>;tag=758580961
To: <sip:[email protected]>
Call-ID: [email protected]
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:[email protected]>;tag=758580961
To: <sip:[email protected]>;tag=Dj9FF476vey0p
Call-ID: [email protected]
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:[email protected] SIP/2.0
From: 1001 <sip:[email protected]>;tag=758580961
Via: SIP/2.0/UDP 192.168.1.14:34553
To: sip:[email protected]
Contact: sip:[email protected]:34553
Call-ID: [email protected]
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:[email protected]"
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:[email protected]>;tag=758580961
To: <sip:[email protected]>
Call-ID: [email protected]
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:[email protected]>;tag=758580961
To: <sip:[email protected]>;tag=eU28gZratQmKj
Call-ID: [email protected]
CSeq: 2 INVITE
Contact: <sip:[email protected]: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:[email protected]>;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:[email protected]>;tag=758580961
To: <sip:[email protected]>;tag=Dj9FF476vey0p
Call-ID: [email protected]
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:[email protected]": (NULL)
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to