<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 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>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
------- Original Message -------<br>
On Thursday, June 1st, 2023 at 1:59 PM, Daniel Zanutti <daniel.zanutti@gmail.com> wrote:<br><br>
<blockquote class="protonmail_quote" 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 href="https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17" rel="noreferrer nofollow noopener" 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 class="gmail_attr" dir="ltr">On Wed, May 31, 2023 at 10:54 AM nutxase via Users <<a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener" target="_blank">users@lists.opensips.org</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><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" href="http://node3.sipalto.com:5080" rel="noreferrer nofollow noopener">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 target="_blank" rel="noreferrer nofollow noopener" href="https://proton.me/">Proton Mail</a> secure email.
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a target="_blank" href="mailto:Users@lists.opensips.org" rel="noreferrer nofollow noopener">Users@lists.opensips.org</a><br>
<a target="_blank" rel="noreferrer nofollow noopener" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote><br>
</div>