And are you 100% sure you didn;t use any fix_nated_contact() before ? or are you doing any other contact manipulation from script before doing the mid_registrar stuff ?

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

On 10/31/2017 01:48 PM, Aqs Younas wrote:
Yes, i had tried it but i was getting error like this.

ERROR:mid_registrar:overwrite_all_contact_hostports: SCRIPT BUG - second attempt to change URI Contact
ERROR:mid_registrar:mid_reg_req_fwded: failed to overwrite Contact URI

This is what I found in archive.
http://opensips-open-sip-server.1449251.n2.nabble.com/nathelper-and-mid-register-td7608807.html#a7608826

Any workaround for this?

Thanks.

On 31 October 2017 at 16:37, Bogdan-Andrei Iancu <bog...@opensips.org <mailto:bog...@opensips.org>> wrote:

    Sorry, there is a type in the prev email, it should be "So, have
    you actually tried the *fix_nated_regis**trar**()* +
    mid_registrar_save() ?"

    Bogdan-Andrei Iancu
       OpenSIPS Founder and Developer
       http://www.opensips-solutions.com <http://www.opensips-solutions.com>

    On 10/31/2017 01:25 PM, Bogdan-Andrei Iancu wrote:
    Hi,

    Actually fix_nated_registrar() does not rewrite the contact (it
    is adding a "received" field into user location). So, have you
    actually tried the fix_nated_contact()  + mid_registrar_save() ?

    Regards,
    Bogdan-Andrei Iancu
       OpenSIPS Founder and Developer
       http://www.opensips-solutions.com <http://www.opensips-solutions.com>
    On 10/28/2017 02:30 PM, Aqs Younas wrote:
    Anything?

    
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
        Virus-free. www.avast.com
    
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>



    On 27 October 2017 at 17:26, Aqs Younas <aqsyou...@gmail.com
    <mailto:aqsyou...@gmail.com>> wrote:

        Greeting list,

        I am using mid-registrar to forward register requests to
        freeswitch server. I see i can't call fix_nated_register
        and  mid_registrar_save("location") both, since they both
        are doing contact rewrite.

        Also i can't use modparam("mid_registrar", "insertion_mode", 1)
        since it will insert path header instead of re-writing contact.

        My purpose of using mid-registrar was to get rid of path header.

        It there any work around? Anything doable using memcache.
        Saving information on register and using that info to
        populate $du upon lookup.

        Best Regards,




    _______________________________________________
    Users mailing list
    Users@lists.opensips.org <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>



    _______________________________________________
    Users mailing list
    Users@lists.opensips.org <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to