<div dir="ltr">Hi All ,<div><br></div><div>      I am not able to take incoming call from a gateways with tls connection in opensips-1.11. </div><div>my config file looks like bellow .</div><div><br></div><div><br></div><div>listen=udp:107.170.x.y:5508<br></div><div>listen=tls:107.170.x.y:5063<br></div><div><div>tls_verify_server = 1</div><div>tls_verify_client = 1</div><div>tls_require_client_certificate = 0</div><div>tls_method = TLSv1</div><div>tls_certificate = "/usr/etc/opensips/tls/user/user-cert.pem"</div><div>tls_private_key = "/usr/etc/opensips/tls/user/user-privkey.pem"</div><div>tls_ca_list = "/usr/etc/opensips/tls/user/user-calist.pem"</div><div><br></div><div>alias="107.170.x.y"<br></div><div>alias="107.170.x.y:5508"<br></div><div>alias="107.170.x.y:5063"</div><div><br></div><div>NOTE: All other necessary modules are loaded here .....</div><div><br></div><div><br></div><div>if (is_method("INVITE")) {</div><div><br></div><div>  if(is_from_gw() ||  (to_uri=~"@<a href="http://1.1.1.1">1.1.1.1</a>"))</div><div>                        {</div><div><br></div><div>                    xlog( "L_WARN", "Source IP sas : $Ri To Uri : $tu From : $fU Request URI: $oU Call ID:$ci" );</div><div>                 #           alias_db_lookup("dbaliases");</div><div>                            if ( !lookup("location")){</div><div>                                sl_send_reply("404","NO Match Found");</div><div>                                    xlog( "L_WARN", "Source IP : $si To Uri : $tu From : $fU Request URI: $oU Call ID:$ci: NO Match Found" );</div><div>                                                exit;</div><div>                            }</div><div>                            #do lcr</div><div>                            if ( !serialize_branches(1)){</div><div>                                sl_send_reply("500","Internal Server Error");</div><div>                                exit;</div><div>                            }else{</div><div>                                next_branches();</div><div>                                t_on_failure("3");</div><div>                                route(1);</div><div>                                exit;</div><div>                             }</div><div>                         }</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                 </span>route(10);<span class="gmail-Apple-tab-span" style="white-space:pre">    </span> </div><div>}</div></div><div><br></div><div>     When I am taking an incoming call from a gateways , with udp its getting processed properly . But when I am taking call through TLS it not going inside the is_from_gw() block , Its directly going to the route(10) . Why this is happening . Am I missing something . </div><div><br></div><div>   Please help me , I am in middle of my development  .</div><div><br></div><div>Thanks in advance .</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Mon, Feb 13, 2017 at 10:19 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <tt>Hi, Sasmita!<br>
      <br>
      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&port</tt><tt> the message was received
      from.</tt><br>
    <tt>
      
      <br>
      [1] <a class="m_2888516620278126519moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2" target="_blank">http://www.opensips.org/<wbr>Documentation/Tutorials-<wbr>WebSocket-2-2</a><br>
      <br>
      Best regards,<br>
    </tt><span class="">
    <pre class="m_2888516620278126519moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_2888516620278126519moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
    </span><div><div class="h5"><div class="m_2888516620278126519moz-cite-prefix">On 02/13/2017 03:15 PM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I think path is not getting saved in the location
        table in oepnsips-2.2 but its getting saved in opensips-1.11  . 
        <div><br>
        </div>
        <div>Is there any difference saving path in the location table
          on case of opensips-2.2 . If yes then what ?</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="m_2888516620278126519gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr"><b><i>Thanks & Regards</i></b>
              <div><i>Sasmita Panda</i></div>
              <div><i>Network Testing and Software Engineer</i></div>
              <div><i>3CLogic , ph:07827611765</i></div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Mon, Feb 13, 2017 at 1:00 PM,
          Sasmita Panda <span dir="ltr"><<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi All ,
              <div><br>
              </div>
              <div>      The wss authentication is working now . Thank
                you for your suggestion  . </div>
              <div><br>
              </div>
              <div>     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) .</div>
              <div><br>
              </div>
              <div>
                <div>ERROR:core:do_action: next_branches failed</div>
                <div>ERROR:core:sip_resolvehost: forced proto 6 not
                  matching sips uri</div>
                <div>CRITICAL:core:mk_proxy: could not resolve hostname:
                  "df7jal23ls0d.invalid"</div>
              </div>
              <div>ERROR:tm:uri2proxy: bad host name in URI<br>
              </div>
              <div><br>
              </div>
              <div>    </div>
              <div>        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 . </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>      Is this a known issue or I need to set any
                parameter for this . If yes then what . My usrloc module
                looks like bellow .</div>
              <div>
                <div>loadmodule "usrloc.so"</div>
              </div>
              <div>
                <div>modparam("usrloc", "db_mode", 2)</div>
                <div>modparam("usrloc", "use_domain", 1)</div>
                <div>modparam("usrloc", "matching_mode", 1)</div>
              </div>
              <div><br>
              </div>
              <div>     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 .</div>
              <div><br>
              </div>
              <div>Thanks </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>   </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
            <div class="gmail_extra"><span><br clear="all">
                <div>
                  <div class="m_2888516620278126519m_-2537272874133733371gmail_signature" data-smartmail="gmail_signature">
                    <div dir="ltr"><b><i>Thanks & Regards</i></b>
                      <div><i>Sasmita Panda</i></div>
                      <div><i>Network Testing and Software Engineer</i></div>
                      <div><i>3CLogic , ph:07827611765</i></div>
                    </div>
                  </div>
                </div>
                <br>
              </span>
              <div>
                <div class="m_2888516620278126519h5">
                  <div class="gmail_quote">On Fri, Feb 10, 2017 at 7:04
                    PM, Tito Cumpen <span dir="ltr"><<a href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Sasmita,
                        <div><br>
                        </div>
                        <div>I am using the following which works well
                          with sipml5 and sipjs</div>
                        <div>
                          <div> loadmodule "proto_wss.so"</div>
                          <div>  modparam("proto_wss",
                            "wss_max_msg_chunks", 8)</div>
                          <div>   modparam("tls_mgm",
                            "certificate","/etc/opensips/t<wbr>ls/domain.com.crt")</div>
                          <div>   modparam("tls_mgm",
                            "private_key","/etc/opensips/t<wbr>ls/domain.com.key")</div>
                          <div>  modparam("tls_mgm", "ca_list",
                            "/etc/opensips/tls/<a href="http://domain.com" target="_blank">domain.com</a>.<wbr>pem")</div>
                          <div>  </div>
                          <div>  modparam("tls_mgm", "tls_method",
                            "tlsv1")</div>
                          <div>  modparam("tls_mgm", "verify_cert", "0")</div>
                          <div>  modparam("tls_mgm", "require_cert",
                            "0")</div>
                        </div>
                      </div>
                      <div class="m_2888516620278126519m_-2537272874133733371HOEnZb">
                        <div class="m_2888516620278126519m_-2537272874133733371h5">
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">On Thu, Feb 9, 2017
                              at 5:37 AM, Sasmita Panda <span dir="ltr"><<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>></span>
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div dir="ltr">Hi All ,
                                  <div><br>
                                  </div>
                                  <div>       I am running opensips-2.2
                                    with , tls_mgm , proto_tls ,
                                    proto_wss . </div>
                                  <div>my config look like bellow .</div>
                                  <div><br>
                                  </div>
                                  <div>
                                    <div><br>
                                    </div>
                                    <div>
                                      <div>listen=udp:x.x.x.x.:5507</div>
                                      <div>listen=tcp:x.x.x.x:5060</div>
                                      <div>listen=tls:x.x.x.x:5061</div>
                                      <div>listen=<a class="m_2888516620278126519moz-txt-link-freetext">wss:x.x.x.x:5062</a></div>
                                      <div>listen=<a class="m_2888516620278126519moz-txt-link-freetext">ws:x.x.x.x:5063</a></div>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>alias="<a href="http://domain.com" target="_blank">domain.com</a>"</div>
                                    <div>alias="<a href="http://domain.com:5507" target="_blank">domain.com:5507</a>"</div>
                                    <div>alias="<a href="http://domain.com:5061" target="_blank">domain.com:5061</a>"</div>
                                    <div>alias="<a href="http://domain.com:5061" target="_blank">domain.com:5061</a>"</div>
                                    <div>alias="<a href="http://domain.com:5062" target="_blank">domain.com:5062</a>"</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>#### WebSocket and
                                      WebSocketSecure protocol</div>
                                    <div>loadmodule "proto_tls.so"<br>
                                    </div>
                                    <div>loadmodule "proto_wss.so"</div>
                                    <div>loadmodule "proto_ws.so"</div>
                                    <div><br>
                                    </div>
                                    <div># Certificate management</div>
                                    <div>loadmodule "tls_mgm.so"</div>
                                    <div><br>
                                    </div>
                                    <div>modparam("tls_mgm",
                                      "tls_method", "TLSv1")</div>
                                    <div>modparam("tls_mgm",
                                      "certificate",
                                      "/usr/local/etc/opensips/tls/u<wbr>ser/user-cert.pem")</div>
                                    <div>modparam("tls_mgm",
                                      "private_key",
                                      "/usr/local/etc/opensips/tls/u<wbr>ser/user-privkey.pem")</div>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>        When I am making tls
                                    connection with  " <a href="http://domain.com:5061" target="_blank">domain.com:5061</a>
                                    " , then the connection is get
                                    established .</div>
                                  <div><br>
                                  </div>
                                  <div>But from sipml5 phone when I am
                                    making wss connection in browser i
                                    am getting error </div>
                                  <div> " failed: Error in connection
                                    establishment:
                                    net::ERR_INSECURE_RESPONSE "<br>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>      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
                                    . </div>
                                  <div><br>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>Thanks </div>
                                  <span class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116HOEnZb"><font color="#888888">
                                      <div>Sasmita </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                    </font></span></div>
                                <div class="gmail_extra"><span><br clear="all">
                                    <div>
                                      <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107gmail_signature" data-smartmail="gmail_signature">
                                        <div dir="ltr"><b><i>Thanks
                                              & Regards</i></b>
                                          <div><i>Sasmita Panda</i></div>
                                          <div><i>Network Testing and
                                              Software Engineer</i></div>
                                          <div><i>3CLogic ,
                                              ph:07827611765</i></div>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
                                  </span>
                                  <div>
                                    <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116h5">
                                      <div class="gmail_quote">On Tue,
                                        Feb 7, 2017 at 2:34 PM, Sasmita
                                        Panda <span dir="ltr"><<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>></span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                          <div dir="ltr">Thank you so
                                            much .</div>
                                          <div class="gmail_extra"><span><br clear="all">
                                              <div>
                                                <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691gmail_signature" data-smartmail="gmail_signature">
                                                  <div dir="ltr"><b><i>Thanks
                                                        & Regards</i></b>
                                                    <div><i>Sasmita
                                                        Panda</i></div>
                                                    <div><i>Network
                                                        Testing and
                                                        Software
                                                        Engineer</i></div>
                                                    <div><i>3CLogic ,
                                                        ph:07827611765</i></div>
                                                  </div>
                                                </div>
                                              </div>
                                              <br>
                                            </span>
                                            <div>
                                              <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107h5">
                                                <div class="gmail_quote">On
                                                  Tue, Feb 7, 2017 at
                                                  2:30 PM, Răzvan
                                                  Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
                                                  wrote:<br>
                                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                    <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,
                                                        Sasmita!<br>
                                                        <br>
                                                        Yes, both
                                                        proto_ws,
                                                        proto_wss and
                                                        rtpengine
                                                        modules are
                                                        mature enough
                                                        and are ready to
                                                        use.<br>
                                                        <br>
                                                        Best regards,<br>
                                                      </tt>
                                                      <pre class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
                                                      <div>
                                                        <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691h5">
                                                          <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999moz-cite-prefix">On
                                                          02/07/2017
                                                          10:47 AM,
                                                          Sasmita Panda
                                                          wrote:<br>
                                                          </div>
                                                        </div>
                                                      </div>
                                                      <blockquote type="cite">
                                                        <div>
                                                          <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691h5">
                                                          <div dir="ltr">Hi
                                                          All ,
                                                          <div><br>
                                                          </div>
                                                          <div>       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 .</div>
                                                          <div><br>
                                                          </div>
                                                          <div>      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 .</div>
                                                          <div><br>
                                                          </div>
                                                          <div>     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 .</div>
                                                          <div><br>
                                                          </div>
                                                          <div><br clear="all">
                                                          <div>
                                                          <div class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999gmail_signature" data-smartmail="gmail_signature">
                                                          <div dir="ltr"><b><i>Thanks
                                                          & Regards</i></b>
                                                          <div><i>Sasmita
                                                          Panda</i></div>
                                                          <div><i>Network
                                                          Testing and
                                                          Software
                                                          Engineer</i></div>
                                                          <div><i>3CLogic
                                                          ,
                                                          ph:07827611765</i></div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <fieldset class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999mimeAttachmentHeader"></fieldset>
                                                          <br>
                                                          </div>
                                                        </div>
                                                        <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_2888516620278126519m_-2537272874133733371m_-97434891044401116m_725492127920500107m_295904660818497691m_5931716180448031999moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

Users mailing list

<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div></div></div>
</blockquote></div>
</div></div></div>

______________________________<wbr>_________________

Users mailing list

<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div>
</div></div>
______________________________<wbr>_________________

Users mailing list

<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div></div></div>
</blockquote></div>
</div>


<fieldset class="m_2888516620278126519mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_2888516620278126519moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_2888516620278126519moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>

</blockquote>
</div></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>