Hi, I executed the simple_pjsua.c program and I had an error that I wasn't able to solve. Using digest authentication, the proxy (Asterisk) responds two times with 407 Proxy Authentication Required (and authorization failed). Next, you find the messages transmitted. For sure I need same help. Thank you for your time. 12:04:54.697 pjsua_acc.c Account sip:131 at 196.168.1.10 added with id 0 12:04:54.697 pjsua_core.c TX 357 bytes Request msg REGISTER/cseq=64678 (tdta0x8184c5c) to UDP 196.168.1.10:5060: REGISTER sip:196.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000367458b6bc623 Max-Forwards: 70 From: ;tag=2519000267458b6bc623 To: Call-ID: 2519000167458b6bc623 CSeq: 64678 REGISTER Contact: Expires: 55 Content-Length: 0 --end msg-- 12:04:54.697 pjsua_acc.c Registration sent 12:04:54.697 pjsua_call.c Making call with acc #0 to sip:131 at 192.168.1.10 12:04:54.698 pjsua_core.c TX 925 bytes Request msg INVITE/cseq=1714636915 (tdta0x8187ea4) to UDP 192.168.1.10:5060: INVITE sip:131 at 192.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000667458b6bc623 Max-Forwards: 70 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10 Contact: Call-ID: 2519000567458b6bc623 CSeq: 1714636915 INVITE Allow: INVITE, ACK, BYE, CANCEL, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE, OPTIONS Supported: replaces, norefersub Content-Type: application/sdp Content-Length: 427 v=0 o=- 3402749094 3402749094 IN IP4 192.168.1.209 s=pjmedia c=IN IP4 192.168.1.209 t=0 0 m=audio 4008 RTP/AVP 103 102 104 117 3 0 8 101 a=rtcp:4009 IN IP4 192.168.1.209 a=rtpmap:103 speex/16000 a=rtpmap:102 speex/8000 a=rtpmap:104 speex/32000 a=rtpmap:117 iLBC/8000 a=fmtp:117 mode=20 a=rtpmap:3 GSM/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- 12:04:54.698 APP Call 0 state=CALLING Press 'q' to quit 12:04:54.706 pjsua_core.c RX 515 bytes Response msg 407/INVITE/cseq=1714636915 (rdata0x8173884) from UDP 192.168.1.10:5060: SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.1.209:5060;branch=z9hG4bKPj2519000667458b6bc623;received=192.168.1.209;rport=5060 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10;tag=as1c377a0c Call-ID: 2519000567458b6bc623 CSeq: 1714636915 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7654d85d" Content-Length: 0 --end msg-- 12:04:54.706 pjsua_core.c TX 301 bytes Request msg ACK/cseq=1714636915 (tdta0x818a65c) to UDP 192.168.1.10:5060: ACK sip:131 at 192.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000667458b6bc623 Max-Forwards: 70 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10;tag=as1c377a0c Call-ID: 2519000567458b6bc623 CSeq: 1714636915 ACK Content-Length: 0 --end msg-- 12:04:54.706 pjsua_core.c TX 1093 bytes Request msg INVITE/cseq=1714636916 (tdta0x8187ea4) to UDP 192.168.1.10:5060: INVITE sip:131 at 192.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000767458b6bc623 Max-Forwards: 70 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10 Contact: Call-ID: 2519000567458b6bc623 CSeq: 1714636916 INVITE Allow: INVITE, ACK, BYE, CANCEL, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE, OPTIONS Supported: replaces, norefersub Proxy-Authorization: Digest username="131", realm="asterisk", nonce="7654d85d", uri="sip:131 at 192.168.1.10", response="9fcbfcce3d8884c64eb0f4d24bb8ab63", algorithm=md5 Content-Type: application/sdp Content-Length: 427 v=0 o=- 3402749094 3402749094 IN IP4 192.168.1.209 s=pjmedia c=IN IP4 192.168.1.209 t=0 0 m=audio 4008 RTP/AVP 103 102 104 117 3 0 8 101 a=rtcp:4009 IN IP4 192.168.1.209 a=rtpmap:103 speex/16000 a=rtpmap:102 speex/8000 a=rtpmap:104 speex/32000 a=rtpmap:117 iLBC/8000 a=fmtp:117 mode=20 a=rtpmap:3 GSM/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- 12:04:54.706 APP Call 0 state=CALLING 12:04:54.707 pjsua_core.c RX 515 bytes Response msg 407/INVITE/cseq=1714636916 (rdata0x8173884) from UDP 192.168.1.10:5060: SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.1.209:5060;branch=z9hG4bKPj2519000767458b6bc623;received=192.168.1.209;rport=5060 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10;tag=as1c377a0c Call-ID: 2519000567458b6bc623 CSeq: 1714636916 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7654d85d" Content-Length: 0 --end msg-- 12:04:54.707 pjsua_core.c TX 301 bytes Request msg ACK/cseq=1714636916 (tdta0x818be6c) to UDP 192.168.1.10:5060: ACK sip:131 at 192.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000767458b6bc623 Max-Forwards: 70 From: sip:131@196.168.1.10;tag=2519000467458b6bc623 To: sip:131 at 192.168.1.10;tag=as1c377a0c Call-ID: 2519000567458b6bc623 CSeq: 1714636916 ACK Content-Length: 0 --end msg-- 12:04:54.707 sip_auth_clien Authorization failed for 131 at asterisk: server rejected with stale=false 12:04:54.708 APP Call 0 state=DISCONNCTD 12:04:55.197 pjsua_core.c TX 357 bytes Request msg REGISTER/cseq=64678 (tdta0x8184c5c) to UDP 196.168.1.10:5060: REGISTER sip:196.168.1.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.209:5060;rport;branch=z9hG4bKPj2519000367458b6bc623 Max-Forwards: 70 From: ;tag=2519000267458b6bc623 To: Call-ID: 2519000167458b6bc623 CSeq: 64678 REGISTER Contact: Expires: 55 Content-Length: 0 _________________________________________________________________ T?l?chargez le nouveau Windows Live Messenger ! http://get.live.com/messenger/overview