<div style="font-family: Arial, sans-serif; font-size: 14px;">Hey guys</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I have set opensips to take registrations and pass them through to asterisk using the below</div><div style="font-family: Arial, sans-serif; font-size: 14px;">but my question is how can i make it set the contact to the ip of the uac and not the ip of opensips ?</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>if (is_method("REGISTER")) {</span><div><span> sethostport("<a target="_blank" rel="noreferrer nofollow noopener" href="http://node3.sipalto.com:5080">sip.asterisk.xyz:50</a>60");</span></div><div><span> route(toasterisk);</span></div><span>}</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>route[toasterisk] {</span><div><span> if (!t_relay()) {</span></div><div><span> xlog("(Rewriting) t_relay 1 - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");</span></div><div><span> sl_reply_error();</span></div><span> }</span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">
Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
</div>
</div>