<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    Can you send Asterisk registration and check kamailio-lb.log as well
    ?<br>
    Do you see something ?<br>
    <br>
    If not, means that REGISTER didn't reach your server. Network issue
    ?<br>
    <br>
    Daniel<br>
    <br>
    <br>
    <br>
    On 05/25/2016 11:09 AM, Роман Кубів wrote:<br>
    <blockquote
cite="mid:CAASimAM_GJJs=0z+YgXgb5tqNRseWaLHKU0svoaxT4oUu4MO-A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi! When I'm trying to register a softphone from
        the other network, I have no problems:<br>
        May 25 10:07:37 spce proxy[4348]: NOTICE: <script>: New
        request on proxy - M=REGISTER R=sip:10.200.10.6 F=<a
          moz-do-not-send="true"
          href="mailto:sip%3Atestuser@10.200.10.6"><a class="moz-txt-link-abbreviated" href="mailto:sip:testuser@10.200.10.6">sip:testuser@10.200.10.6</a></a>
        T=<a moz-do-not-send="true"
          href="mailto:sip%3Atestuser@10.200.10.6">sip:testuser@10.200.10.6</a>
        IP=<a moz-do-not-send="true" href="http://192.168.1.227:5060">192.168.1.227:5060</a>
        (<a moz-do-not-send="true" href="http://127.0.0.1:5060">127.0.0.1:5060</a>)
        ID=795380a3-36cf-4d2d-b247-740be0afc338 UA='SFLphone/1.3.0'<br>
        <br>
        root@spce:/etc/ngcp-config/templates/etc/kamailio/proxy#
        ngcp-kamctl proxy ul show<br>
        Domain:: location table=512 records=1 max_slot=1<br>
            AOR:: <a moz-do-not-send="true"
          href="mailto:testuser@10.200.10.6">testuser@10.200.10.6</a><br>
                Contact:: <a moz-do-not-send="true"
          href="http://sip:testuser@192.168.1.227:5060">sip:testuser@192.168.1.227:5060</a>
        Q=<br>
                    Expires:: 19<br>
                    Callid:: 795380a3-36cf-4d2d-b247-740be0afc338<br>
                    Cseq:: 30265<br>
                    User-agent:: SFLphone/1.3.0<br>
                    Received:: sip:<a moz-do-not-send="true"
          href="http://192.168.1.227:5060">192.168.1.227:5060</a><br>
                    Path:: <<a moz-do-not-send="true"
          href="mailto:sip%3Alb@127.0.0.1">sip:lb@127.0.0.1</a>;lr;received=sip:192.168.1.227:5060;socket=sip:<a
          moz-do-not-send="true" href="http://10.200.10.6:5060">10.200.10.6:5060</a>><br>
                    State:: CS_SYNC<br>
                    Flags:: 0<br>
                    Cflag:: 320<br>
                    Socket:: udp:<a moz-do-not-send="true"
          href="http://127.0.0.1:5062">127.0.0.1:5062</a><br>
                    Methods:: 16351<br>
                    Ruid:: uloc-57397f65-10fa-a2<br>
                    Reg-Id:: 0<br>
                    Last-Keepalive:: 1464163657<br>
                    Last-Modified:: 1464163657<br>
        <br>
        But when I register a subscriber in Asterisk from the same
        network as the softphone (<a moz-do-not-send="true"
          href="http://192.168.1.0/24">192.168.1.0/24</a>), then
        M=REGISTER doesn't send and log kamailio-proxy.log is empty.<br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">2016-05-23 19:29 GMT+03:00 Daniel
            Grotti <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <p dir="ltr">User is definitely offline, not registered.<br>
                You should check your reilgistration call flow.</p>
              <span class="HOEnZb"><font color="#888888">
                  <p dir="ltr">Daniel </p>
                </font></span>
              <div class="HOEnZb">
                <div class="h5">
                  <div class="gmail_quote">On May 23, 2016 6:25 PM,
                    Роман Кубів <<a moz-do-not-send="true"
                      href="mailto:tarrok2009@gmail.com" target="_blank">tarrok2009@gmail.com</a>>
                    wrote:<br type="attribution">
                    <blockquote style="margin:0 0 0 .8ex;border-left:1px
                      #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>Hi,<br>
                        </div>
                        my kamailio.location table is empty: <br>
                        mysql> select * from kamailio.location where
                        username='testuser';<br>
                        Empty set (0.00 sec)<br>
                        <br>
                        kamailio-proxy.log when a call to user:<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Call from PSTN -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8<br>
                        .32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: User-Provided CLI '0962823167'
                        taken from From-User -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        ID=0f2442ae5b2bc81b2ed385811106365b@Y<br>
                        .Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Network-Provided CLI
                        '0962823167' taken from From-User -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        ID=0f2442ae5b2bc81b2ed385811106365b@<br>
                        Y.Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Setting '<a class="moz-txt-link-abbreviated" href="mailto:0962823167@Y.Y.Y.Y">0962823167@Y.Y.Y.Y</a>' as
                        initiating user-provided CLI -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        ID=0f2442ae5b2bc81b2ed3<br>
                        <a class="moz-txt-link-abbreviated" href="mailto:85811106365b@Y.Y.Y.Y:5060">85811106365b@Y.Y.Y.Y:5060</a> UA='Asterisk PBX
                        1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Setting '<a class="moz-txt-link-abbreviated" href="mailto:0962823167@Y.Y.Y.Y">0962823167@Y.Y.Y.Y</a>' as
                        initiating network-provided CLI -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        ID=0f2442ae5b2bc81b2<br>
                        <a class="moz-txt-link-abbreviated" href="mailto:ed385811106365b@Y.Y.Y.Y:5060">ed385811106365b@Y.Y.Y.Y:5060</a> UA='Asterisk PBX
                        1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Rewriting called party
                        '0962823167' to '2100' -
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Callee was aliased with base
                        '2100' - R=<a moz-do-not-send="true"
                          href="http://sip:testuser@10.200.10.6:5060"
                          target="_blank">sip:testuser@10.200.10.6:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA=<br>
                        'Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Callee is local,
                        uuid='2434fc2e-5983-48a2-a3d4-3eeec3f2dd58' - R=<a
                          moz-do-not-send="true"
                          href="http://sip:testuser@10.200.10.6:5060"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:testuser@10.200.10.6:5060">sip:testuser@10.200.10.6:5060</a></a>
                        ID=0f2442ae5b2bc81b2ed385811106365<br>
                        <a class="moz-txt-link-abbreviated" href="mailto:b@Y.Y.Y.Y:5060">b@Y.Y.Y.Y:5060</a> UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Local user offline - R=<a
                          moz-do-not-send="true"
                          href="http://sip:testuser@10.200.10.6:5060"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:testuser@10.200.10.6:5060">sip:testuser@10.200.10.6:5060</a></a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8<br>
                        .32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Setting acc source-leg for uuid
                        '0':
'0|0962823167|Y.Y.Y.Y|0962823167|||0|||0|call|Y.Y.Y.Y|1463992488.095186|||||||<br>
                        ||||' - R=<a moz-do-not-send="true"
                          href="http://sip:testuser@10.200.10.6:5060"
                          target="_blank">sip:testuser@10.200.10.6:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4353]: NOTICE:
                        <script>: Setting acc destination-leg for
                        uuid '2434fc2e-5983-48a2-a3d4-3eeec3f2dd58':
                        '0|||2|0962823167|2434fc2e-5983-48a2-a3d4-3eeec3f2dd<br>
                        58|testuser|10.200.10.6|2100|X.X.X.X|87|||||||||||'
                        - R=<a moz-do-not-send="true"
                          href="http://sip:testuser@10.200.10.6:5060"
                          target="_blank">sip:testuser@10.200.10.6:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8.32.2'<br>
                        May 23 10:34:48 spce proxy[4359]: NOTICE:
                        <script>: New request on proxy - M=ACK
                        <a class="moz-txt-link-abbreviated" href="mailto:R=sip:0962823167@X.X.X.X:5060">R=sip:0962823167@X.X.X.X:5060</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:F=sip:0962823167@Y.Y.Y.Y">F=sip:0962823167@Y.Y.Y.Y</a>
                        <a class="moz-txt-link-abbreviated" href="mailto:T=sip:0962823167@X.X.X.X:5060">T=sip:0962823167@X.X.X.X:5060</a> IP=Y.Y.Y.Y:5060 (<a
                          moz-do-not-send="true"
                          href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>)
                        <a class="moz-txt-link-abbreviated" href="mailto:ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060">ID=0f2442ae5b2bc81b2ed385811106365b@Y.Y.Y.Y:5060</a>
                        UA='Asterisk PBX 1.8.32.2'<br>
                        <div>
                          <div>
                            <div><br>
                              <div>2016-05-23 16:39 GMT+03:00 Daniel
                                Grotti <span dir="ltr"><<a
                                    moz-do-not-send="true"
                                    href="mailto:dgrotti@sipwise.com"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a></a>></span>:<br>
                                <blockquote style="margin:0px 0px 0px
                                  0.8ex;border-left:1px solid
                                  rgb(204,204,204);padding-left:1ex">
                                  <div> Hi,<br>
                                    please check NGCP side:<br>
                                    <br>
                                    mysql > select * from
                                    kamailio.location where
                                    username='testuser';<br>
                                    <br>
                                    Then please provide the
                                    kamailio-proxy.log related to the
                                    REGISTER and to the call to this
                                    user.<br>
                                    <br>
                                    Thanks,<br>
                                    Daniel
                                    <div>
                                      <div><br>
                                        <br>
                                        <br>
                                        <div>On 05/23/2016 03:31 PM,
                                          Роман Кубів wrote:<br>
                                        </div>
                                        <blockquote>
                                          <div dir="ltr"><br>
                                            <div>
                                              <div dir="ltr">Thank you
                                                for the quick response.<br>
                                                <br>
                                                Yes <a
                                                  moz-do-not-send="true"
href="http://10.200.10.0/24" target="_blank">10.200.10.0/24</a> is
                                                reachable from <a
                                                  moz-do-not-send="true"
href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> network:<br>
                                                <br>
                                                [root@localhost 4]# ping
                                                10.200.10.6<br>
                                                PING 10.200.10.6
                                                (10.200.10.6) 56(84)
                                                bytes of data.<br>
                                                64 bytes from <a
                                                  moz-do-not-send="true"
href="http://10.200.10.6" target="_blank">10.200.10.6</a>: icmp_seq=1
                                                ttl=64 time=0.842 ms<br>
                                                64 bytes from <a
                                                  moz-do-not-send="true"
href="http://10.200.10.6" target="_blank">10.200.10.6</a>: icmp_seq=2
                                                ttl=64 time=0.719 ms<br>
                                                64 bytes from <a
                                                  moz-do-not-send="true"
href="http://10.200.10.6" target="_blank">10.200.10.6</a>: icmp_seq=3
                                                ttl=64 time=1.75 ms<br>
                                                <br>
                                                And peer is online:<br>
                                                [root@localhost 4]#
                                                asterisk -rnx 'sip show
                                                peers'<br>
                                                Name/username            

                                                Host                                   
                                                Dyn Forcerport ACL
                                                Port     Status     <br>
                                                20external/testuser      

                                                10.200.10.6                                               

                                                5060     OK (2 ms) <br>
                                                <br>
                                                But registration is not:<br>
                                                [root@localhost 4]#
                                                asterisk -rnx 'sip show
                                                registry'<br>
                                                Host                                   
                                                dnsmgr Username      
                                                Refresh
                                                State               
                                                Reg.Time                
                                                <br>
                                                0 SIP registrations.<br>
                                                <br>
                                                My registration rule in
                                                sip.conf:<br>
                                                register => <a
                                                  moz-do-not-send="true"
href="mailto:testuser@10.200.10.6:M" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:testuser@10.200.10.6:M">testuser@10.200.10.6:M</a></a><a
                                                  moz-do-not-send="true"
href="mailto:yPassWd1:testuser@10.200.10.6:5060/2100%7E3600"
                                                  target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:yPassWd1:testuser@10.200.10.6:5060/2100~3600">yPassWd1:testuser@10.200.10.6:5060/2100~3600</a></a><br>
                                              </div>
                                              <div>
                                                <div>
                                                  <div><br>
                                                    <div>2016-05-23
                                                      12:09 GMT+03:00
                                                      Daniel Grotti <span
                                                        dir="ltr"><<a
moz-do-not-send="true" href="mailto:dgrotti@sipwise.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a></a>></span>:<br>
                                                      <blockquote
                                                        style="margin:0px
                                                        0px 0px
                                                        0.8ex;border-left:1px
                                                        solid
                                                        rgb(204,204,204);padding-left:1ex">
                                                        <div> Hi,<br>
                                                          it means that
                                                          your user is
                                                          not
                                                          registered.<br>
                                                          Check you
                                                          REGISTRATION,
                                                          and make sure
                                                          that the user
                                                          can really
                                                          reach and
                                                          register in
                                                          the platform.<br>
                                                          Are you sure
                                                          that <a
                                                          moz-do-not-send="true"
href="http://10.200.10.0/24" target="_blank">10.200.10.0/24</a> is
                                                          reachable from
                                                          <a
                                                          moz-do-not-send="true"
href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> network
                                                          ?<br>
                                                          <br>
                                                          <br>
                                                          Daniel<br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          <div>On
                                                          05/23/2016
                                                          10:41 AM,
                                                          Роман Кубів
                                                          wrote:<br>
                                                          </div>
                                                          <blockquote>
                                                          <div dir="ltr">Hello!
                                                          I have 2
                                                          interfaces on
                                                          my sipwise
                                                          server: 1 with
                                                          public IP and
                                                          other looking
                                                          in my internal
                                                          network (<a
                                                          moz-do-not-send="true"
href="http://10.200.10.0/24" target="_blank">10.200.10.0/24</a>). When i
                                                          try register
                                                          subscriber in
                                                          the same
                                                          network (<a
                                                          moz-do-not-send="true"
href="http://10.200.10.0/24" target="_blank">10.200.10.0/24</a>) all its
                                                          ok, but when i
                                                          try register
                                                          from other
                                                          network (<a
                                                          moz-do-not-send="true"
href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a>) and
                                                          call to
                                                          subscriber,
                                                          then i get
                                                          massage:<br>
                                                          <br>
                                                          May 23
                                                          10:34:48 spce
                                                          proxy[4353]:
                                                          NOTICE:
                                                          <script>:
                                                          Local user
                                                          offline - R=<a
moz-do-not-send="true" href="mailto:sip:testuser@10.200.10.6:5060"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:testuser@10.200.10.6:5060">sip:testuser@10.200.10.6:5060</a></a>
                                                          ID=<a
                                                          moz-do-not-send="true"
href="http://0f2442ae5b2bc81b2ed385811106365b@194.44.209.149:5060"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:0f2442ae5b2bc81b2ed385811106365b@194.44.209.149:5060">0f2442ae5b2bc81b2ed385811106365b@194.44.209.149:5060</a></a>
                                                          UA='Asterisk
                                                          PBX 1.8.32.2</div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          <pre>_______________________________________________
Spce-user mailing list
<a moz-do-not-send="true" href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a moz-do-not-send="true" href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
                                                          </blockquote>
                                                          <br>
                                                        </div>
                                                        <br>
_______________________________________________<br>
                                                        Spce-user
                                                        mailing list<br>
                                                        <a
                                                          moz-do-not-send="true"
href="mailto:Spce-user@lists.sipwise.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a></a><br>
                                                        <a
                                                          moz-do-not-send="true"
href="https://lists.sipwise.com/listinfo/spce-user" target="_blank"><a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a></a><br>
                                                        <br>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                            <br>
                                          </div>
                                          <br>
                                          <fieldset></fieldset>
                                          <br>
                                          <pre>_______________________________________________
Spce-user mailing list
<a moz-do-not-send="true" href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a moz-do-not-send="true" href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
                                        </blockquote>
                                        <br>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  Spce-user mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Spce-user@lists.sipwise.com"
                                    target="_blank">Spce-user@lists.sipwise.com</a><br>
                                  <a moz-do-not-send="true"
                                    href="https://lists.sipwise.com/listinfo/spce-user"
                                    target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
                                  <br>
                                </blockquote>
                              </div>
                              <br>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>