<div dir="ltr">Check if you are manipulating contact with some function like fix_contact() or usage of media proxy solutions like rtpproxy, rtpengine or mediaproxy.<div><br></div><div>Opensips doesn't change Contact if you don't tell to do it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 1, 2023 at 12:57 PM nutxase <<a href="mailto:nutxase@proton.me">nutxase@proton.me</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">even with a stateless forward asterisk see's this</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div style="font-family:Arial,sans-serif;font-size:14px"><span> Contact: 1000/sip:609q2255@opensipsip:5060 ee32101394 NonQual nan</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>but i wanted it to be</span></div><div style="font-family:Arial,sans-serif;font-size:14px"><span><span> Contact: 1000/sip:609q2255@uacip:5060 ee32101394 NonQual nan</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>
<div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div>
------- Original Message -------<br>
On Thursday, June 1st, 2023 at 3:00 PM, nutxase via Users <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>> wrote:<br><br>
<blockquote type="cite">
<div style="font-family:Arial,sans-serif;font-size:14px">Hi Daniel</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div style="font-family:Arial,sans-serif;font-size:14px">Thanks for the reply</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div style="font-family:Arial,sans-serif;font-size:14px">So it seems asterisk pjsip shows the contact as the ip of opensips not the uac</div><div style="font-family:Arial,sans-serif;font-size:14px">i will try with stateless as i just want to forward it via opensips and asterisk to not know opensips</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></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 rel="noreferrer nofollow noopener" href="https://proton.me/" target="_blank">Proton Mail</a> secure email.
</div>
</div>
<div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div>
------- Original Message -------<br>
On Thursday, June 1st, 2023 at 1:59 PM, Daniel Zanutti <<a href="mailto:daniel.zanutti@gmail.com" target="_blank">daniel.zanutti@gmail.com</a>> wrote:<br><br>
<blockquote type="cite">
<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 rel="noreferrer nofollow noopener" href="https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17" target="_blank">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 rel="noreferrer nofollow noopener" href="mailto:users@lists.opensips.org" target="_blank">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="noreferrer nofollow noopener" target="_blank">Proton Mail</a> secure email.
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a rel="noreferrer nofollow noopener" 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 nofollow noopener" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote><br>
</div>
</blockquote><br>
</div></blockquote></div>