<div id="gwp10423112"><div id="gwp10423112h"><div data-message-body="true" class="gwp10423112b"><div>Hi,<br></div><div><div><br></div></div><div>I started my journey with Opensips 3weeks ago so please forgive me if I will ask for something too basic...<br></div><div><div><br></div></div><div>I read manual for Opensips 3.3.4 and followed basic installation and configuration. It worked for internal calls so I can call from one sip to another sip. I followed the tutorial to make outbound call and configured everything like it was shown but I'm not able to make a mobile phone call.<br></div><div><div><br></div></div><div>I try to understand what I'm doing wrong.<br></div><div><div><br></div></div><div>My configuration:<br></div><div>(A)Softphone at home behind nat ------> B(VPS server with public IP address) -------> (C) voip provider<br></div><div><div><br></div></div><div>B: Debian with Opensips 3.3.4<br></div><div>C: voip account with public telephone number. I've got username and password<br></div><div><div><br></div></div><div>When I make a call from A to mobile just via C it workes in both sides.<br></div><div>When I a call from A to mobile via B and C it replies with 407 status.<br></div><div>I've lookied into sngrep and I see that 407 comes from voip provider and asks for realm of B.<br></div><div><div><br></div></div><div>Shouldn't it ask for realm of C?<br></div><div>Should I change from header and/or to header?<br></div><div><div><br></div></div><div>Thanks to Bogdan I know that I have to use uac_auth in failure route to authenticate request to voip provider. But still don't understand all the details of that process.<br></div><div>Could You clarify me how packet with authentication to voip provider should look like?<br></div><div><div><br></div></div><div>If I don't change 'from' or 'to' headers it gives me 407 status.<br></div><div>If I change from and to headers like it is a request from softphone directly xonnected to voip provider it gives me bad request status.<br></div><div><div><br></div></div><div>If I change headers isn't it a b2bua scenerio?<br></div><div>If not changing headers how voip provider choose for which realm it should be authenticated? By domain part of uri?<br></div><div><div><br></div></div><div>I can attach config file and screen shots from sngrep if it will be simpler to undersyand what's going on.<br></div><div><div><br></div></div><div>Regards,<br></div><div>Radek<br></div></div></div></div><div><br></div>