<div dir="ltr">Hi,<div><br></div><div>Call comes over external gateway and pass to another external gateway via outbound proxy (no authentication nor registration), but on b-leg contact header is not as expected username from tag &#39;From:&#39; of a-leg.</div>
<div><br></div><div>a-leg works correct for inbound calls via external gateway:</div><div><br></div><div>  Contact: &lt;sip:1001@1.2.3.4:5060;transport=udp&gt;</div><div><br></div><div>but b-leg (outbound calls) has header set to:</div>
<div><br></div><div><div> Contact: &lt;sip:auto_to_user@1.2.3.4:5060;transport=udp;gw=mygw&gt;</div><div><br></div><div>I tried to set empty value or comment this line of external gateway:</div><div><br></div><div>&lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;<br>
</div><div><br></div><div>but then call failed.</div><div><br></div><div>How to set user in contact header on b-leg or/and what to export from dial plan to populate user in contact header on external gateway?</div><div><br>
</div><div>Regards,</div>Seudin </div></div>