Hi, Sasmita!

Did you follow the WS tutorial[1]? You need to use the fix_nated_register(); function for REGISTER messages, to overwrite the contact with the IP&portthe message was received from.

[1] http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 02/13/2017 03:15 PM, Sasmita Panda wrote:
I think path is not getting saved in the location table in oepnsips-2.2 but its getting saved in opensips-1.11 .

Is there any difference saving path in the location table on case of opensips-2.2 . If yes then what ?



*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Feb 13, 2017 at 1:00 PM, Sasmita Panda <spa...@3clogic.com <mailto:spa...@3clogic.com>> wrote:

    Hi All ,

          The wss authentication is working now . Thank you for your
    suggestion  .

         But now I am facing another issue . When I am registering a
    number from SIPML5 in contact the hostname is somehow
     "df7jal23ls0d.invalid"  like this . And when I am dialing that
    number opensips is giving error . I am getting "476  Unresolvable
    hostname ". Bellow is the error in opensips logs . What should I
    do for this . This is coming with version: opensips 2.2.2
    (x86_64/linux) .

    ERROR:core:do_action: next_branches failed
    ERROR:core:sip_resolvehost: forced proto 6 not matching sips uri
    CRITICAL:core:mk_proxy: could not resolve hostname:
    "df7jal23ls0d.invalid"
    ERROR:tm:uri2proxy: bad host name in URI

            There is another setup of mine , opensips-1.11 with ovesip
    for wss gateway . that was working fine . rather the hostname in
    that case is also the same but there is no such problem .


          Is this a known issue or I need to set any parameter for
    this . If yes then what . My usrloc module looks like bellow .
    loadmodule "usrloc.so"
    modparam("usrloc", "db_mode", 2)
    modparam("usrloc", "use_domain", 1)
    modparam("usrloc", "matching_mode", 1)

         I have tried with other options also . But yet its not
    working . Still I am trying . If anybody can help me with this
    then It will be helpful .

    Thanks






    */Thanks & Regards/*
    /Sasmita Panda/
    /Network Testing and Software Engineer/
    /3CLogic , ph:07827611765/

    On Fri, Feb 10, 2017 at 7:04 PM, Tito Cumpen <t...@xsvoce.com
    <mailto:t...@xsvoce.com>> wrote:

        Sasmita,

        I am using the following which works well with sipml5 and sipjs
         loadmodule "proto_wss.so"
          modparam("proto_wss", "wss_max_msg_chunks", 8)
           modparam("tls_mgm",
        "certificate","/etc/opensips/tls/domain.com.crt")
           modparam("tls_mgm",
        "private_key","/etc/opensips/tls/domain.com.key")
          modparam("tls_mgm", "ca_list", "/etc/opensips/tls/domain.com
        <http://domain.com>.pem")
          modparam("tls_mgm", "tls_method", "tlsv1")
          modparam("tls_mgm", "verify_cert", "0")
          modparam("tls_mgm", "require_cert", "0")

        On Thu, Feb 9, 2017 at 5:37 AM, Sasmita Panda
        <spa...@3clogic.com <mailto:spa...@3clogic.com>> wrote:

            Hi All ,

                   I am running opensips-2.2 with , tls_mgm ,
            proto_tls , proto_wss .
            my config look like bellow .


            listen=udp:x.x.x.x.:5507
            listen=tcp:x.x.x.x:5060
            listen=tls:x.x.x.x:5061
            listen=wss:x.x.x.x:5062
            listen=ws:x.x.x.x:5063

            alias="domain.com <http://domain.com>"
            alias="domain.com:5507 <http://domain.com:5507>"
            alias="domain.com:5061 <http://domain.com:5061>"
            alias="domain.com:5061 <http://domain.com:5061>"
            alias="domain.com:5062 <http://domain.com:5062>"


            #### WebSocket and WebSocketSecure protocol
            loadmodule "proto_tls.so"
            loadmodule "proto_wss.so"
            loadmodule "proto_ws.so"

            # Certificate management
            loadmodule "tls_mgm.so"

            modparam("tls_mgm", "tls_method", "TLSv1")
            modparam("tls_mgm", "certificate",
            "/usr/local/etc/opensips/tls/user/user-cert.pem")
            modparam("tls_mgm", "private_key",
            "/usr/local/etc/opensips/tls/user/user-privkey.pem")


                    When I am making tls connection with  "
            domain.com:5061 <http://domain.com:5061> " , then the
            connection is get established .

            But from sipml5 phone when I am making wss connection in
            browser i am getting error
             " failed: Error in connection establishment:
            net::ERR_INSECURE_RESPONSE "

                  In opensips side I am not getting any error . What
            should I do to resolve the problem .Please help me . I
            have tried every possible way .


            Thanks
            Sasmita




            */Thanks & Regards/*
            /Sasmita Panda/
            /Network Testing and Software Engineer/
            /3CLogic , ph:07827611765/

            On Tue, Feb 7, 2017 at 2:34 PM, Sasmita Panda
            <spa...@3clogic.com <mailto:spa...@3clogic.com>> wrote:

                Thank you so much .

                */Thanks & Regards/*
                /Sasmita Panda/
                /Network Testing and Software Engineer/
                /3CLogic , ph:07827611765/

                On Tue, Feb 7, 2017 at 2:30 PM, Răzvan Crainea
                <raz...@opensips.org <mailto:raz...@opensips.org>> wrote:

                    Hi, Sasmita!

                    Yes, both proto_ws, proto_wss and rtpengine
                    modules are mature enough and are ready to use.

                    Best regards,

                    Răzvan Crainea
                    OpenSIPS Solutions
                    www.opensips-solutions.com
                    <http://www.opensips-solutions.com>

                    On 02/07/2017 10:47 AM, Sasmita Panda wrote:
                    Hi All ,

                           I am quite intrested to use opensips-2.2
                    with rtpengine . Is this working good or there is
                    any open issue till now with this module .

                          And what about proto_ws and proto_wss . Are
                    these modules working fine ? Please let me know
                    if any precausion I need to take before using this .

                         Till now I was using opensips-1.11 .  So
                    this will be very new for me . Please let me know
                    if there is any open issue or any link on which I
                    will get the details .


                    */Thanks & Regards/*
                    /Sasmita Panda/
                    /Network Testing and Software Engineer/
                    /3CLogic , ph:07827611765/


                    _______________________________________________
                    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
            <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
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to