<div dir="ltr">Hi<div><br></div><div>By standard, opensips does not change the Contact and your asterisk box should receive the original Contact, sent by UAC. Are you sure the contact is being changed by Opensips? I saw asterisk ignoring the contact and putting source IP and origin some times. Long time I don't work with asterisk...</div><div><br></div><div>Also, you can check the stateless forward, it may be enough for you (not sure):</div><div><a href="https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17">https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17</a><br></div><div><br></div><div>Suggestion:</div><div><br></div><div>Monitore SIP trace and confirm if Opensips is changing the contact (probably not)</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 31, 2023 at 10:54 AM nutxase via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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 rel="noreferrer nofollow noopener" href="http://node3.sipalto.com:5080" target="_blank">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 style="font-family:Arial,sans-serif;font-size:14px">
<div>
</div>
<div>
Sent with <a href="https://proton.me/" rel="noopener noreferrer" target="_blank">Proton Mail</a> secure email.
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>