<div style="font-family: Arial, sans-serif; font-size: 14px;">So i now have only</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>if (is_method("REGISTER")) {</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>forward("myasterisk.server.com<a target="_blank" rel="noreferrer nofollow noopener" href="http://node3.sipalto.com:5080">:5060</a>");</span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>exit;</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>}</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>but the contact shows as</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><table style="box-sizing:border-box;border-collapse:separate !important;width:1557px;margin-bottom:0px !important;color:rgb(33, 37, 41);border-top:none;border-right:0px solid rgb(219, 228, 236);border-bottom:1px solid rgb(219, 228, 236);border-left:1px solid rgb(219, 228, 236);clear:both;border-spacing:0px;margin-top:0px !important;max-width:none !important;font-family:Roboto, "Helvetica Neue", Helvetica, Arial;font-size:13px;font-weight:300;letter-spacing:0.1px;text-align:left;background-color:rgb(255, 255, 255)"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box;background-color:rgb(246, 248, 249);box-shadow:rgb(218, 220, 224) 1px 0px 0px inset, rgb(218, 220, 224) -1px 0px 0px inset, rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;z-index:1"><td style="box-sizing:content-box;padding:0.75rem;vertical-align:top;border-top:none;border-right:1px solid rgb(219, 228, 236);border-bottom:0px solid rgb(219, 228, 236);border-left:0px solid rgb(219, 228, 236)"><span title="sip:zyq5d7rf@45.89.59.52:5060^3Bx-ast-orig-host=063567h41751.invalid:0" style="box-sizing:border-box">sip:zyq5d7rf@opensips-ip:5060^...</span></td></tr></tbody></table>so i need it to be</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>sip:extensionnumber@deviceip:5060xxx</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><br></span></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>
<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 9:31 PM, Daniel Zanutti <daniel.zanutti@gmail.com> wrote:<br><br>
        <blockquote class="protonmail_quote" type="cite">
            <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 class="gmail_attr" dir="ltr">On Thu, Jun 1, 2023 at 12:57 PM nutxase <<a href="mailto:nutxase@proton.me" rel="noreferrer nofollow noopener" target="_blank">nutxase@proton.me</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">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 target="_blank" rel="noreferrer nofollow noopener" href="https://proton.me/">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 target="_blank" href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener">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 target="_blank" href="https://proton.me/" rel="noreferrer nofollow noopener">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 target="_blank" href="mailto:daniel.zanutti@gmail.com" rel="noreferrer nofollow noopener">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 target="_blank" href="https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17" rel="noreferrer nofollow noopener">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 target="_blank" href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener">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>
        </blockquote><br>
    </div></blockquote></div>

        </blockquote><br>
    </div>