[Spce-user] Fwd: subscriber offline

Роман Кубів tarrok2009 at gmail.com
Wed May 25 05:09:27 EDT 2016


Hi! When I'm trying to register a softphone from the other network, I have
no problems:
May 25 10:07:37 spce proxy[4348]: NOTICE: <script>: New request on proxy -
M=REGISTER R=sip:10.200.10.6 F=sip:testuser at 10.200.10.6 T=
sip:testuser at 10.200.10.6 IP=192.168.1.227:5060 (127.0.0.1:5060)
ID=795380a3-36cf-4d2d-b247-740be0afc338 UA='SFLphone/1.3.0'

root at spce:/etc/ngcp-config/templates/etc/kamailio/proxy# ngcp-kamctl proxy
ul show
Domain:: location table=512 records=1 max_slot=1
    AOR:: testuser at 10.200.10.6
        Contact:: sip:testuser at 192.168.1.227:5060 Q=
            Expires:: 19
            Callid:: 795380a3-36cf-4d2d-b247-740be0afc338
            Cseq:: 30265
            User-agent:: SFLphone/1.3.0
            Received:: sip:192.168.1.227:5060
            Path:: <sip:lb at 127.0.0.1;lr;received=sip:192.168.1.227:5060
;socket=sip:10.200.10.6:5060>
            State:: CS_SYNC
            Flags:: 0
            Cflag:: 320
            Socket:: udp:127.0.0.1:5062
            Methods:: 16351
            Ruid:: uloc-57397f65-10fa-a2
            Reg-Id:: 0
            Last-Keepalive:: 1464163657
            Last-Modified:: 1464163657

But when I register a subscriber in Asterisk from the same network as the
softphone (192.168.1.0/24), then M=REGISTER doesn't send and log
kamailio-proxy.log is empty.

2016-05-23 19:29 GMT+03:00 Daniel Grotti <dgrotti at sipwise.com>:

> User is definitely offline, not registered.
> You should check your reilgistration call flow.
>
> Daniel
> On May 23, 2016 6:25 PM, Роман Кубів <tarrok2009 at gmail.com> wrote:
>
> Hi,
> my kamailio.location table is empty:
> mysql> select * from kamailio.location where username='testuser';
> Empty set (0.00 sec)
>
> kamailio-proxy.log when a call to user:
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Call from PSTN -
> R=sip:0962823167 at X.X.X.X:5060 ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060
> UA='Asterisk PBX 1.8
> .32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: User-Provided CLI
> '0962823167' taken from From-User - R=sip:0962823167 at X.X.X.X:5060
> ID=0f2442ae5b2bc81b2ed385811106365b at Y
> .Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Network-Provided CLI
> '0962823167' taken from From-User - R=sip:0962823167 at X.X.X.X:5060
> ID=0f2442ae5b2bc81b2ed385811106365b@
> Y.Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Setting
> '0962823167 at Y.Y.Y.Y' as initiating user-provided CLI -
> R=sip:0962823167 at X.X.X.X:5060 ID=0f2442ae5b2bc81b2ed3
> 85811106365b at Y.Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Setting
> '0962823167 at Y.Y.Y.Y' as initiating network-provided CLI -
> R=sip:0962823167 at X.X.X.X:5060 ID=0f2442ae5b2bc81b2
> ed385811106365b at Y.Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Rewriting called party
> '0962823167' to '2100' - R=sip:0962823167 at X.X.X.X:5060
> ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060 UA='Asterisk PBX
> 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Callee was aliased
> with base '2100' - R=sip:testuser at 10.200.10.6:5060
> ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060 UA=
> 'Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Callee is local,
> uuid='2434fc2e-5983-48a2-a3d4-3eeec3f2dd58' - R=
> sip:testuser at 10.200.10.6:5060 ID=0f2442ae5b2bc81b2ed385811106365
> b at Y.Y.Y.Y:5060 UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Local user offline - R=
> sip:testuser at 10.200.10.6:5060 ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060
> UA='Asterisk PBX 1.8
> .32.2'
> 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|||||||
> ||||' - R=sip:testuser at 10.200.10.6:5060
> ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060 UA='Asterisk PBX
> 1.8.32.2'
> 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
> 58|testuser|10.200.10.6|2100|X.X.X.X|87|||||||||||' - R=
> sip:testuser at 10.200.10.6:5060 ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060
> UA='Asterisk PBX 1.8.32.2'
> May 23 10:34:48 spce proxy[4359]: NOTICE: <script>: New request on proxy -
> M=ACK R=sip:0962823167 at X.X.X.X:5060 F=sip:0962823167 at Y.Y.Y.Y
> T=sip:0962823167 at X.X.X.X:5060 IP=Y.Y.Y.Y:5060 (127.0.0.1:5060)
> ID=0f2442ae5b2bc81b2ed385811106365b at Y.Y.Y.Y:5060 UA='Asterisk PBX
> 1.8.32.2'
>
> 2016-05-23 16:39 GMT+03:00 Daniel Grotti <dgrotti at sipwise.com>:
>
> Hi,
> please check NGCP side:
>
> mysql > select * from kamailio.location where username='testuser';
>
> Then please provide the kamailio-proxy.log related to the REGISTER and to
> the call to this user.
>
> Thanks,
> Daniel
>
>
>
> On 05/23/2016 03:31 PM, Роман Кубів wrote:
>
>
> Thank you for the quick response.
>
> Yes 10.200.10.0/24 is reachable from 192.168.1.0/24 network:
>
> [root at localhost 4]# ping 10.200.10.6
> PING 10.200.10.6 (10.200.10.6) 56(84) bytes of data.
> 64 bytes from 10.200.10.6: icmp_seq=1 ttl=64 time=0.842 ms
> 64 bytes from 10.200.10.6: icmp_seq=2 ttl=64 time=0.719 ms
> 64 bytes from 10.200.10.6: icmp_seq=3 ttl=64 time=1.75 ms
>
> And peer is online:
> [root at localhost 4]# asterisk -rnx 'sip show peers'
> Name/username             Host                                    Dyn
> Forcerport ACL Port     Status
> 20external/testuser
> 10.200.10.6                                                5060     OK (2
> ms)
>
> But registration is not:
> [root at localhost 4]# asterisk -rnx 'sip show registry'
> Host                                    dnsmgr Username       Refresh
> State                Reg.Time
> 0 SIP registrations.
>
> My registration rule in sip.conf:
> register => testuser at 10.200.10.6:M
> <http://yPassWd1:testuser@10.200.10.6:5060/2100%7E3600>
> yPassWd1:testuser at 10.200.10.6:5060/2100~3600
>
> 2016-05-23 12:09 GMT+03:00 Daniel Grotti < <dgrotti at sipwise.com>
> dgrotti at sipwise.com>:
>
> Hi,
> it means that your user is not registered.
> Check you REGISTRATION, and make sure that the user can really reach and
> register in the platform.
> Are you sure that 10.200.10.0/24 is reachable from 192.168.1.0/24 network
> ?
>
>
> Daniel
>
>
>
> On 05/23/2016 10:41 AM, Роман Кубів wrote:
>
> Hello! I have 2 interfaces on my sipwise server: 1 with public IP and
> other looking in my internal network (10.200.10.0/24). When i try
> register subscriber in the same network (10.200.10.0/24) all its ok, but
> when i try register from other network (192.168.1.0/24) and call to
> subscriber, then i get massage:
>
> May 23 10:34:48 spce proxy[4353]: NOTICE: <script>: Local user offline - R=
> <http://sip:testuser@10.200.10.6:5060>sip:testuser at 10.200.10.6:5060 ID=
> 0f2442ae5b2bc81b2ed385811106365b at 194.44.209.149:5060 UA='Asterisk PBX
> 1.8.32.2
>
>
> _______________________________________________
> Spce-user mailing listSpce-user at lists.sipwise.comhttps://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
>
>
>
>
>
> _______________________________________________
> Spce-user mailing listSpce-user at lists.sipwise.comhttps://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20160525/13840978/attachment-0001.html>


More information about the Spce-user mailing list