<div class="gmail_quote"><div>Hi Ovidiu,</div><div>Thanks for the reply. I still dont get the expected behaviour, may be I am missing something obvious. Below is the trace of my call:</div><div>203.XXX.XXX.186 is the caller; 203.XXX.XXX.188 is the B2B Opensips and 203.XXX.XXX.189 is the upstream proxy which asks for Proxy Authentication.</div>
<div><br></div><div><div><div><div>U 203.XXX.XXX.186:5035 -> 203.XXX.XXX.188:5060</div><div>INVITE sip:9212121212@203.XXX.XXX.188 SIP/2.0.</div><div>Via: SIP/2.0/UDP 203.XXX.XXX.186:5035;rport;branch=z9hG4bK105036.</div>
<div>From: <sip:1000146@203.XXX.XXX.186>;tag=57086.</div><div>To: <sip:9212121212@203.XXX.XXX.188>.</div><div>Call-ID: 554fd84d69db52b2aec859f2beb0ba30@203.XXX.XXX.186.</div><div>CSeq: 20 INVITE.</div><div>Contact: <sip:1000146@203.XXX.XXX.186:5035>.</div>
<div>Content-Type: application/sdp.</div><div>Max-Forwards: 70.</div><div>User-Agent: Novanet C2D.</div><div>Subject: click2call.</div><div>X-Src-IP: 203.153.53.222.</div><div>Content-Length: 180.</div><div>.</div><div>v=0.</div>
<div>o=click2dial 0 0 IN IP4 203.XXX.XXX.186.</div><div>s=click2dial call.</div><div>c=IN IP4 203.XXX.XXX.186.</div><div>t=0 0.</div><div>m=audio 8000 RTP/AVP 0 8 18 3 4 97 98.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:18 G729/8000.</div>
<div><br></div><div><br></div><div>U 203.XXX.XXX.188:5060 -> 203.XXX.XXX.189:5060</div><div>INVITE sip:9212121212@203.XXX.XXX.189 SIP/2.0.</div><div>Via: SIP/2.0/UDP 203.XXX.XXX.188;branch=z9hG4bK0d56.a7833ad2.0.</div>
<div>To: sip:9212121212@203.XXX.XXX.189.</div><div>From: <sip:1000146@203.XXX.XXX.189>;tag=3302461778a934c5cb938a0d66c7bfc5.</div><div>CSeq: 21 INVITE.</div><div>Call-ID: B2B.236.911335.</div><div>Content-Length: 180.</div>
<div>User-Agent: OpenSIPS (1.7.0-beta-notls (x86_64/linux)).</div><div>Content-Type: application/sdp.</div><div>Max-Forwards: 69.</div><div>Contact: <sip:203.XXX.XXX.188:5060>.</div><div>.</div><div>v=0.</div><div>o=click2dial 0 0 IN IP4 203.XXX.XXX.186.</div>
<div>s=click2dial call.</div><div>c=IN IP4 203.XXX.XXX.186.</div><div>t=0 0.</div><div>m=audio 8000 RTP/AVP 0 8 18 3 4 97 98.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:18 G729/8000.</div><div><br></div><div><br></div>
<div>U 203.XXX.XXX.189:5060 -> 203.XXX.XXX.188:5060</div><div>SIP/2.0 407 Proxy Authentication Required.</div><div>Via: SIP/2.0/UDP 203.XXX.XXX.188;branch=z9hG4bK0d56.a7833ad2.0.</div><div>To: sip:9212121212@203.XXX.XXX.189;tag=7dbab1763f29ae55bdba397633ed7fa1.cc60.</div>
<div>From: <sip:1000146@203.XXX.XXX.189>;tag=3302461778a934c5cb938a0d66c7bfc5.</div><div>CSeq: 21 INVITE.</div><div>Call-ID: B2B.236.911335.</div><div>Proxy-Authenticate: Digest realm="203.XXX.XXX.189", nonce="4e1592530000000af0fc7ee76e7c0844c564a2dcbaf21e00".</div>
<div>Server: SipTrunk 1.6.4.6.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U 203.XXX.XXX.188:5060 -> 203.XXX.XXX.189:5060</div><div>ACK sip:9212121212@203.XXX.XXX.189 SIP/2.0.</div>
<div>Via: SIP/2.0/UDP 203.XXX.XXX.188;branch=z9hG4bK0d56.a7833ad2.0.</div><div>From: <sip:1000146@203.XXX.XXX.189>;tag=3302461778a934c5cb938a0d66c7bfc5.</div><div>Call-ID: B2B.236.911335.</div><div>To: sip:9212121212@203.XXX.XXX.189;tag=7dbab1763f29ae55bdba397633ed7fa1.cc60.</div>
<div>CSeq: 21 ACK.</div><div>User-Agent: OpenSIPS (1.7.0-beta-notls (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U 203.XXX.XXX.188:5060 -> 203.XXX.XXX.186:5035</div>
<div>SIP/2.0 407 Proxy Authentication Required.</div><div>Via: SIP/2.0/UDP 203.XXX.XXX.186:5035;rport=5035;branch=z9hG4bK105036.</div><div>From: <sip:1000146@203.XXX.XXX.186>;tag=57086.</div><div>To: <sip:9212121212@203.XXX.XXX.188>;tag=B2B.151.477.</div>
<div>Call-ID: 554fd84d69db52b2aec859f2beb0ba30@203.XXX.XXX.186.</div><div>CSeq: 20 INVITE.</div><div>Proxy-Authenticate: Digest realm="203.XXX.XXX.189", nonce="4e1592530000000af0fc7ee76e7c0844c564a2dcbaf21e00".</div>
<div>Contact: <sip:203.XXX.XXX.188:5060>.</div><div>Server: OpenSIPS (1.7.0-beta-notls (x86_64/linux)).</div><div>Content-Length: 0.</div></div></div></div><div><br></div><div>My uac_auth is loaded before the b2b modules and the paramter in it is as follows:</div>
<div>modparam("uac_auth", "credential", "1000146:203.XXX.XXX.189:ede488")</div><div><br></div><div>The realm sent in Proxy Authenticate is 203.XXX.XXX.189 only but still 203.XXX.XXX.188 relays the 407 back to 203.XXX.XXX.186 :(</div>
<div>Any pointers to figure this out?</div><div><br></div><div>Thanks in advance !!</div><div><br></div><div>--- Jayesh </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If no credentials are found, then the 407 is relayed back to the caller.<br>
Make sure that the realm in the challenge matches the realm in<br>
uac_auth credentials list.<br>
Also make sure that uac_auth is loaded before the b2b modules.<br>
<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Thu, Jul 7, 2011 at 5:34 AM, Jayesh Nambiar <<a href="mailto:jayesh.voip@gmail.com">jayesh.voip@gmail.com</a>> wrote:<br>
> Hi,<br>
> I was referring to the email posted by Ovidiu<br>
> here?<a href="http://lists.opensips.org/pipermail/news/2011-June/000142.html" target="_blank">http://lists.opensips.org/pipermail/news/2011-June/000142.html</a>. I am<br>
> trying this but the b2b opensips does not reply back with credentials to the<br>
> 407 response. It just proxies back the 407 to the call initiator. I have<br>
> downloaded the latest revision from the SVN. Am i missing something here?<br>
> Just for information, I have loaded the refer scenario in the<br>
> b2b_init_request. The upstream proxy replies back with 407 Proxy<br>
> Authentication Required and I expected the client side of B2B to reply back<br>
> with the credentials mentioned in the uac_auth parameter list.<br>
> Any help in regards to testing this will be very useful.<br>
> Thanks,<br>
> --- Jayesh<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 36, Issue 15<br>
*************************************<br>
</blockquote></div><br>