Не работает потключение к sipnet.ru
Настраивал как написано тут: http://wiki.sipnet.ru/index.php/%D0%9F%D ... terisk_1.4
И не работает.
Фаервола нет, порты открыты, учётка на sipnet.ru активна (с X-Lite) нормально всё работает
У меня такая же связка и работает
| Code: |
| [sipnet] secret = мой_пароль username = мой_логин trunkname = sipnet callerid = hasexten = no hassip = yes hasiax = no registeriax = registersip = yes host = sipnet.ru context = from-sipnet insecure = invite fromuser = мой_sip_id fromdomain = sipnet.ru type = peer contact = мой_sip_id disallow = all allow = alaw allow = ulaw allow = g729 nat = no canreinvite = nonat dtmfmode = rfc2833 |
в sip.conf это:
| Code: |
| context=default allowguest=no allowoverlap=no bindport=5060 srvlookup=yes externip = мой_внешний_IP_шлюза localnet=172.16.0.0/255.255.255.0 nat=no canreinvite=nonat [200] type=friend host=dynamic username=200 qualify=yes secret=200 nat=no callerid=Secretar allow=gsm allow=ulaw allow=alaw [201] type=friend host=dynamic username=201 qualify=yes secret=201 nat=no callerid=User allow=gsm allow=ulaw allow=alaw |
И в extensions.conf
| Code: |
| exten => 200,1, Dial(SIP/200) exten => 200,2, Playback(vm-nobodyavail) exten => 201,1, Dial(SIP/201) exten => 201,2, Playback(vm-nobodyavail) |
Added after 8 minutes:
В логах вот что:
[Nov 3 14:47:30] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #50)
[Nov 3 14:47:50] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #51)
[Nov 3 14:48:10] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #52)
[Nov 3 14:48:30] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #53)
[Nov 3 14:48:50] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #54)
[Nov 3 14:49:10] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #55)
[Nov 3 14:49:30] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #56)
[Nov 3 14:49:50] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #57)
[Nov 3 14:49:53] NOTICE[80936]: chan_sip.c:16218 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2893
[Nov 3 14:50:10] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #5
[Nov 3 14:50:30] NOTICE[80936]: chan_sip.c:8062 sip_reg_timeout: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #59)
А логин и пароль правильно указали?
Last edited by fantomas000 on Wed Nov 03, 2010 10:17
и где строка с регистрацией?
http://wiki.sipnet.ru/index.php/%D0%9F%D ... terisk_1.4
Тут строка с регистрацией закоментированна.
И написано что нат no
externip = мой_внешний_IP_шлюза
localnet=172.16.0.0/255.255.255.0
следовательно вы за натом
а нат ставите no
эта инструкция вообще не для людей. каждый второй, кто ей пользуется, приходит сюда и просит помощи
http://asteriskforum.ru/viewtopic.php?t=789 - вот верная инструкция,
только про нат ничего не сказано и не conext, а context
Всё что вносил в users.conf удалил
в sip.conf это:
| Code: |
| [sipnet] dtmfmode=rfc2833 type=friend host=sipnet.ru fromuser=мой_sip_id fromdomain=sipnet.ru secret=мой_пароль username=мой_логин canreinvite=no insecure=very context=local disallow=all allow=g729 allow=g723 allow=g723.1 allow=gsm allow=ulaw allow=alaw [200] type=friend host=dynamic username=200 qualify=yes secret=200 nat=no callerid=Secretar allow=gsm allow=ulaw allow=alaw [201] type=friend host=dynamic username=201 qualify=yes secret=201 nat=no callerid=User allow=gsm allow=ulaw allow=alaw |
в extensions.conf ни чего не менял
И теперь при sip show registry выдаёт вот что:
| Code: |
| Host Username Refresh State Reg.Time |
А раньше выдавал
| Code: |
| Host Username Refresh State Reg.Time sipnet.ru:5060 мой_логин 120 Request Sent |
Т.е. всё равно не работает.
В логах
[Nov 3 15:47:12] NOTICE[80936]: chan_sip.c:16218 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2893
externip = мой_внешний_IP_шлюза
localnet=172.16.0.0/255.255.255.0
nat=yes
Нужно удалить и эти 2 строки?
Added after 1 minutes:
Закоментил не работает.
Раскоментил, добавил nat=yes всё равно не работает.
Added after 3 minutes:
Попробовал nat=no НЕ РАБОТАЕТ
nat=yes добавить в настройки сипнета
а нет строки в sip show registry, потому как и нет register в в sip.conf в [general]
так как нету этого
| Code: |
| Host Username Refresh State Reg.Time sipnet.ru:5060 мой_логин 120 Request Sent |
Добпавил в sip.conf в раздел [general]
| Code: |
| register => мой_логин:мой_пароль@sipnet.ru/мой_sip_id |
Появилось
| Code: |
| Host Username Refresh State Reg.Time sipnet.ru:5060 мой_логин 120 Request Sent |
НО НЕ РАБОТАЕТ
в личном кабинете я вижу это:
| Code: |
| Подключенные устройства Не найдено подключенных устройств. |
Вот какой на настоящий момент у меня конфиг sip.conf
| Code: |
| context=default allowguest=no allowoverlap=no bindport=5060 srvlookup=yes externip = мой_внешний_IP_шлюза localnet=172.16.0.0/255.255.255.0 register => мой_логин:мой_пароль@sipnet.ru/мой_sip_id [sipnet] dtmfmode=rfc2833 type=friend host=sipnet.ru fromuser=мой_sip_id fromdomain=sipnet.ru secret=мой_пароль username=мой_логин nat=yes canreinvite=no insecure=very context=local disallow=all allow=g729 allow=g723 allow=g723.1 allow=gsm allow=ulaw allow=alaw [200] type=friend host=dynamic username=200 qualify=yes secret=200 nat=no callerid=Secretar allow=gsm allow=ulaw allow=alaw [201] type=friend host=dynamic username=201 qualify=yes secret=201 nat=no callerid=User allow=gsm allow=ulaw allow=alaw |
В логах это:
| Code: |
| [Nov 3 16:05:26] NOTICE[80936] chan_sip.c: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #6) [Nov 3 16:05:46] NOTICE[80936] chan_sip.c: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #7) [Nov 3 16:06:06] NOTICE[80936] chan_sip.c: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #8) [Nov 3 16:06:26] NOTICE[80936] chan_sip.c: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #9) [Nov 3 16:06:46] NOTICE[80936] chan_sip.c: -- Registration for 'мой_логин@sipnet.ru' timed out, trying again (Attempt #10 |