LINUX.ORG.RU

Непонятное поведение Asterisk - новые абоненты не регистрируются

 ,


0

1

Господа, такая проблема. Не регистрируются новые трубки, хотя еще в пятницу все было ок и конфиги не менялись. В консоли астериска - wrong password, а на трубе Sip register failed.

При этом, если использовать уже существующие пары логин:пароль (от старого абонента), трубка регистрируется и полностью работоспособна.

Пароль ввожу верно, проверял несколько раз. Пробовал так же и с md5secret, эффект один - новые абоненты не регистрируются, а старые без проблем. Reload, конечно, делаю. Труба Fanvil 52HP (пробовал разные аппараты + софтфон). В пирах регистрируемого номера нет. Сравнивал побайтово файлы конфигураций работающего абонента и моего нового, отличий нет (кроме номера).

Вывод sip debug, логин 87802142

<--- SIP read from UDP:10.*:5060 ---> 
REGISTER sip:voip.server.ru SIP/2.0 
Via: SIP/2.0/UDP 10.*:5060;branch=z9hG4bK1598921066181206113 
From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=200431319 
To: 87802142 <sip:87802142@voip.server.ru:5060> 
Call-ID: 137111353831427-1811475567488@10.* 
CSeq: 1 REGISTER 
Contact: <sip:87802142@10.*:5060> 
Max-Forwards: 70 
Expires: 3600 
Supported: path 
User-Agent: F52H/F52HP 2.5.348.66 
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK, UPDATE, MESSAGE 
Content-Length: 0 


<-------------> 
--- (14 headers 0 lines) --- 
Sending to 10.*:5060 (no NAT) 

<--- Transmitting (no NAT) to 10.*:5060 ---> 
SIP/2.0 403 Forbidden 
Via: SIP/2.0/UDP 10.*:5060;branch=z9hG4bK17407100461886920367;received=10.* 
From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=200431319 
To: 87802142 <sip:87802142@voip.server.ru:5060>;tag=as127f7172 
Call-ID: 137111353831427-1811475567488@10.* 
CSeq: 2 REGISTER 
Server: Asterisk PBX 13.11.2 
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE 
Supported: replaces, timer 
Content-Length: 0 

<------------> 
[Dec 11 10:21:49] NOTICE[100699]: chan_sip.c:28462 handle_request_register: Registration from '87802142 <sip:87802142@voip.server.ru:5060>' failed for '10.*:5060' - Wrong password 
Scheduling destruction of SIP dialog '137111353831427-1811475567488@10.*' in 32000 ms (Method: REGISTER) 
    -- SIP/6160353-0001a4bd is ringing 
    -- SIP/6160353-0001a4bd is making progress passing it to SIP/87802414-0001a4bc 
       > 0x804027000 -- Probation passed - setting RTP source address to 10.11.25.12:10016 
       > 0x833fd2000 -- Probation passed - setting RTP source address to 10.46.23.118:10050 
    -- SIP/6160353-0001a4ba answered SIP/87802089-0001a4b9 
    -- Channel SIP/6160353-0001a4ba joined 'simple_bridge' basic-bridge <7af6fc24-6c2f-48b3-9337-d02c49174511> 
    -- Channel SIP/87802089-0001a4b9 joined 'simple_bridge' basic-bridge <7af6fc24-6c2f-48b3-9337-d02c49174511> 
       > Bridge 7af6fc24-6c2f-48b3-9337-d02c49174511: switching from simple_bridge technology to native_rtp 
       > Locally RTP bridged 'SIP/87802089-0001a4b9' and 'SIP/6160353-0001a4ba' in stack 
       > Locally RTP bridged 'SIP/87802089-0001a4b9' and 'SIP/6160353-0001a4ba' in stack 
    -- Channel SIP/87802105-0001a4b6 left 'native_rtp' basic-bridge <1fba8d24-8345-49a7-866f-dedfda52f192> 
    -- Channel SIP/707-0001a4b7 left 'native_rtp' basic-bridge <1fba8d24-8345-49a7-866f-dedfda52f192> 
  == Spawn extension (office, 359, 1) exited non-zero on 'SIP/87802105-0001a4b6' 
    -- Channel SIP/87802446-0001a4af left 'native_rtp' basic-bridge <e4f195dc-e463-44b2-bbf6-f369530d70f7> 
    -- Channel SIP/6160353-0001a4b0 left 'native_rtp' basic-bridge <e4f195dc-e463-44b2-bbf6-f369530d70f7> 
  == Spawn extension (405, 89110940461, 2) exited non-zero on 'SIP/87802446-0001a4af' 
    -- Executing [6160353@6160353:1] Set("SIP/6160353-0001a4be", "CALLERID(num)=+79214217680") in new stack 
    -- Executing [6160353@6160353:2] Answer("SIP/6160353-0001a4be", "") in new stack 
       > 0x806db5000 -- Probation passed - setting RTP source address to 10.11.25.12:10030 
    -- Executing [6160353@6160353:3] BackGround("SIP/6160353-0001a4be", "m1") in new stack 
    -- <SIP/6160353-0001a4be> Playing 'm1.slin' (language 'ru') 
Really destroying SIP dialog '631194298810-2673371741528@10.*' Method: REGISTER
 uname -a 
FreeBSD r7888voip.main.server.ru 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
root@r7888voip:/usr/local/etc/asterisk/server # tcpdump -i xn0 -vvv host 10.46.20.199 and port 5060 
tcpdump: listening on xn0, link-type EN10MB (Ethernet), capture size 262144 bytes 
12:01:20.501143 IP (tos 0x0, ttl 63, id 7945, offset 0, flags [none], proto UDP (17), length 561) 
    10.46.20.199.sip > r7888voip.sip: [udp sum ok] SIP, length: 533 
        REGISTER sip:voip.server.ru SIP/2.0 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK22191154812322210720 
        From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=2272812517 
        To: 87802142 <sip:87802142@voip.server.ru:5060> 
        Call-ID: 15291286986596-99391152519468@10.46.20.199 
        CSeq: 1 REGISTER 
        Contact: <sip:87802142@10.46.20.199:5060> 
        Max-Forwards: 70 
        Expires: 3600 
        Supported: path 
        User-Agent: F52H/F52HP 2.5.348.66 
        Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK, UPDATE, MESSAGE 
        Content-Length: 0 

12:01:20.501458 IP (tos 0x0, ttl 64, id 38425, offset 0, flags [none], proto UDP (17), length 597) 
    r7888voip.sip > 10.46.20.199.sip: [bad udp cksum 0x2c7b -> 0x074e!] SIP, length: 569 
        SIP/2.0 401 Unauthorized 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK22191154812322210720;received=10.46.20.199 
        From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=2272812517 
        To: 87802142 <sip:87802142@voip.server.ru:5060>;tag=as69139559 
        Call-ID: 15291286986596-99391152519468@10.46.20.199 
        CSeq: 1 REGISTER 
        Server: Asterisk PBX 13.11.2 
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE 
        Supported: replaces, timer 
        WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="03a67714" 
        Content-Length: 0 

12:01:20.506406 IP (tos 0x0, ttl 63, id 7947, offset 0, flags [none], proto UDP (17), length 725) 
    10.46.20.199.sip > r7888voip.sip: [udp sum ok] SIP, length: 697 
        REGISTER sip:voip.server.ru SIP/2.0 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK322051568763884386 
        From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=2272812517 
        To: 87802142 <sip:87802142@voip.server.ru:5060> 
        Call-ID: 15291286986596-99391152519468@10.46.20.199 
        CSeq: 2 REGISTER 
        Contact: <sip:87802142@10.46.20.199:5060> 
        Authorization: Digest username="87802142", realm="asterisk", nonce="03a67714", uri="sip:voip.server.ru", response="04a1f4c076cfca314d2ae5667d59aca6", algorithm=MD5 
        Max-Forwards: 70 
        Expires: 3600 
        Supported: path 
        User-Agent: F52H/F52HP 2.5.348.66 
        Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK, UPDATE, MESSAGE 
        Content-Length: 0 

12:01:20.506656 IP (tos 0x0, ttl 64, id 38427, offset 0, flags [none], proto UDP (17), length 516) 
    r7888voip.sip > 10.46.20.199.sip: [bad udp cksum 0x2c2a -> 0x0f74!] SIP, length: 488 
        SIP/2.0 403 Forbidden 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK322051568763884386;received=10.46.20.199 
        From: 87802142 <sip:87802142@voip.server.ru:5060>;tag=2272812517 
        To: 87802142 <sip:87802142@voip.server.ru:5060>;tag=as69139559 
        Call-ID: 15291286986596-99391152519468@10.46.20.199 
        CSeq: 2 REGISTER 
        Server: Asterisk PBX 13.11.2 
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE 
        Supported: replaces, timer 
        Content-Length: 0

Если полностью убираю пароль (в конфиге абонента комментирую secret), регистрации так же не происходит. В консоли астера при подключении телефона ничего нет. По пакетам:

tcpdump: listening on xn0, link-type EN10MB (Ethernet), capture size 262144 bytes 
13:31:06.355096 IP (tos 0x0, ttl 63, id 12008, offset 0, flags [none], proto UDP (17), length 560) 
    10.46.20.199.sip > r7888voip.sip: [udp sum ok] SIP, length: 532 
        REGISTER sip:voip.server.ru SIP/2.0 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK4803292273201824383 
        From: 87802666 <sip:87802666@voip.server.ru:5060>;tag=1422915386 
        To: 87802666 <sip:87802666@voip.server.ru:5060> 
        Call-ID: 11095914012582-32010700516717@10.46.20.199 
        CSeq: 1 REGISTER 
        Contact: <sip:87802666@10.46.20.199:5060> 
        Max-Forwards: 70 
        Expires: 3600 
        Supported: path 
        User-Agent: F52H/F52HP 2.5.348.66 
        Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK, UPDATE, MESSAGE 
        Content-Length: 0 

13:31:06.355419 IP (tos 0x0, ttl 64, id 50426, offset 0, flags [none], proto UDP (17), length 596) 
    r7888voip.sip > 10.46.20.199.sip: [bad udp cksum 0x2c7a -> 0x7c70!] SIP, length: 568 
        SIP/2.0 401 Unauthorized 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK4803292273201824383;received=10.46.20.199 
        From: 87802666 <sip:87802666@voip.server.ru:5060>;tag=1422915386 
        To: 87802666 <sip:87802666@voip.server.ru:5060>;tag=as77e5b415 
        Call-ID: 11095914012582-32010700516717@10.46.20.199 
        CSeq: 1 REGISTER 
        Server: Asterisk PBX 13.11.2 
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE 
        Supported: replaces, timer 
        WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3899c5d6" 
        Content-Length: 0 

13:31:44.152977 IP (tos 0x0, ttl 63, id 12014, offset 0, flags [none], proto UDP (17), length 563) 
    10.46.20.199.sip > r7888voip.sip: [udp sum ok] SIP, length: 535 
        REGISTER sip:voip.server.ru SIP/2.0 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK14085125222383532609 
        From: 87802666 <sip:87802666@voip.server.ru:5060>;tag=1422915386 
        To: 87802666 <sip:87802666@voip.server.ru:5060> 
        Call-ID: 306971453018073-197403194430008@10.46.20.199 
        CSeq: 1 REGISTER 
        Contact: <sip:87802666@10.46.20.199:5060> 
        Max-Forwards: 70 
        Expires: 3600 
        Supported: path 
        User-Agent: F52H/F52HP 2.5.348.66 
        Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY, INFO, PRACK, UPDATE, MESSAGE 
        Content-Length: 0 

13:31:44.153367 IP (tos 0x0, ttl 64, id 57844, offset 0, flags [none], proto UDP (17), length 599) 
    r788voip.sip > 10.46.20.199.sip: [bad udp cksum 0x2c7d -> 0xbd14!] SIP, length: 571 
        SIP/2.0 401 Unauthorized 
        Via: SIP/2.0/UDP 10.46.20.199:5060;branch=z9hG4bK14085125222383532609;received=10.46.20.199 
        From: 87802666 <sip:87802666@voip.server.ru:5060>;tag=1422915386 
        To: 87802666 <sip:87802666@voip.server.ru:5060>;tag=as088687e2 
        Call-ID: 306971453018073-197403194430008@10.46.20.199 
        CSeq: 1 REGISTER 
        Server: Asterisk PBX 13.11.2 
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE 
        Supported: replaces, timer 
        WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="51584807" 
        Content-Length: 0 

В какую сторону копать? У меня уже нет идей. До меня эту проблему исправляли откатом до предыдущего снапшота + забиванием актуальных конфигов вручную, лол.