VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

ЧТО ЭТО ?

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

gofer_k
Сообщения: 275
Зарегистрирован: 08 апр 2011, 16:27

ЧТО ЭТО ?

Сообщение gofer_k »

Буквально сейчас наблюдаю вот такое в логе что это вообще ???

Код: Выделить всё

[2013-12-12 14:05:29] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:29] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:29] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:29] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:29] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:29] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:29] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:29] ERROR[18562]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 14:05:29] WARNING[18562]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 14:05:30] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:30] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:30] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:30] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:30] ERROR[18562]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 14:05:30] WARNING[18562]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 14:05:31] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:31] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:31] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:31] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:31] ERROR[18562]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 14:05:31] WARNING[18562]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 14:05:33] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:33] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:33] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:33] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:33] ERROR[18562]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 14:05:33] WARNING[18562]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 14:05:37] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:37] ERROR[18562]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 14:05:37] WARNING[18562]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 14:05:37] ERROR[18562]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 14:05:37] ERROR[18562]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 14:05:37] WARNING[18562]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
sip.conf

Код: Выделить всё

[general]

callevents=yes
alwaysauthreject=yes
context=fuckOFF
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0
srvlookup=yes
allowsubscribe = yes
subscribecontext = subscriptions
disallow=all
allow=alaw
allow=ulaw
language=ru
dtmfmode = auto
canreinvite=no
allowguest=no
;nat=yes
t38pt_udptl=no
t38pt_rtp=no
t38pt_tcp=no
avpf=yes
encryption=yes
transport=udp,ws,wss
Моя бабка еще помнит беспроводные утюги.
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: ЧТО ЭТО ?

Сообщение ded »

ТО что написано в sip.conf ещё не значит, что это понимает Asterisk.
CLI> sip show settings ?

# netstat -nlp |grep :5060 ?
gofer_k
Сообщения: 275
Зарегистрирован: 08 апр 2011, 16:27

Re: ЧТО ЭТО ?

Сообщение gofer_k »

Так работало 2 года все нормально я в sip.conf вообще давно не заглядывал
Моя бабка еще помнит беспроводные утюги.
awsswa
Сообщения: 2390
Зарегистрирован: 09 июн 2012, 10:52
Откуда: Россия, Пермь skype: yarick_perm

Re: ЧТО ЭТО ?

Сообщение awsswa »

dns не работает ?
платный суппорт по мере возможностей
gofer_k
Сообщения: 275
Зарегистрирован: 08 апр 2011, 16:27

Re: ЧТО ЭТО ?

Сообщение gofer_k »

Код: Выделить всё

srv01*CLI> sip show settings


Global Settings:
----------------
  UDP Bindaddress:        0.0.0.0:5060
  TCP SIP Bindaddress:    0.0.0.0:5060
  TLS SIP Bindaddress:    Disabled
  Videosupport:           No
  Textsupport:            No
  Ignore SDP sess. ver.:  No
  AutoCreate Peer:        Off
  Match Auth Username:    No
  Allow unknown access:   No
  Allow subscriptions:    Yes
  Allow overlap dialing:  No
  Allow promisc. redir:   No
  Enable call counters:   No
  SIP domain support:     No
  Realm. auth:            No
  Our auth realm          asterisk
  Use domains as realms:  No
  Call to non-local dom.: Yes
  URI user is phone no:   No
  Always auth rejects:    Yes
  Direct RTP setup:       No
  User Agent:             Asterisk PBX 11.5.1
  SDP Session Name:       Asterisk PBX 11.5.1
  SDP Owner Name:         root
  Reg. context:           (not set)
  Regexten on Qualify:    No
  Trust RPID:             No
  Send RPID:              No
  Legacy userfield parse: No
  Send Diversion:         Yes
  Caller ID:              asterisk
  From: Domain:
  Record SIP history:     Off
  Call Events:            On
  Auth. Failure Events:   Off
  T.38 support:           No
  T.38 EC mode:           Unknown
  T.38 MaxDtgrm:          -1
  SIP realtime:           Disabled
  Qualify Freq :          60000 ms
  Q.850 Reason header:    No
  Store SIP_CAUSE:        No

Network QoS Settings:
---------------------------
  IP ToS SIP:             CS0
  IP ToS RTP audio:       CS0
  IP ToS RTP video:       CS0
  IP ToS RTP text:        CS0
  802.1p CoS SIP:         4
  802.1p CoS RTP audio:   5
  802.1p CoS RTP video:   6
  802.1p CoS RTP text:    5
  Jitterbuffer enabled:   No

Network Settings:
---------------------------
  SIP address remapping:  Enabled using externaddr
  Externhost:             <none>
  Externaddr:             XX.XX.XX.XX:0
  Externrefresh:          10
  Localnet:               192.168.10.0/255.255.255.0
                          192.168.8.0/255.255.255.0

Global Signalling Settings:
---------------------------
  Codecs:                 (ulaw|alaw)
  Codec Order:            alaw:20,ulaw:20
  Relax DTMF:             No
  RFC2833 Compensation:   No
  Symmetric RTP:          No
  Compact SIP headers:    No
  RTP Keepalive:          0 (Disabled)
  RTP Timeout:            0 (Disabled)
  RTP Hold Timeout:       0 (Disabled)
  MWI NOTIFY mime type:   application/simple-message-summary
  DNS SRV lookup:         Yes
  Pedantic SIP support:   Yes
  Reg. min duration       60 secs
  Reg. max duration:      3600 secs
  Reg. default duration:  120 secs
  Sub. min duration       60 secs
  Sub. max duration:      3600 secs
  Outbound reg. timeout:  20 secs
  Outbound reg. attempts: 0
  Notify ringing state:   Yes
    Include CID:          No
  Notify hold state:      No
  SIP Transfer mode:      open
  Max Call Bitrate:       384 kbps
  Auto-Framing:           No
  Outb. proxy:            <not set>
  Session Timers:         Accept
  Session Refresher:      uas
  Session Expires:        1800 secs
  Session Min-SE:         90 secs
  Timer T1:               500
  Timer T1 minimum:       100
  Timer B:                32000
  No premature media:     Yes
  Max forwards:           70

Default Settings:
-----------------
  Allowed transports:     UDP,WS,WSS
  Outbound transport:     UDP
  Context:                fuckOFF
  Record on feature:      automon
  Record off feature:     automon
  Force rport:            Auto (No)
  DTMF:                   auto
  Qualify:                0
  Keepalive:              0
  Use ClientCode:         No
  Progress inband:        Never
  Language:               ru
  Tone zone:              <Not set>
  MOH Interpret:          default
  MOH Suggest:
  Voice Mail Extension:   asterisk

----

Код: Выделить всё

root@srv01:/etc/asterisk# netstat -nlp |grep :5060
tcp        0      0 0.0.0.0:5060            0.0.0.0:*               LISTEN      -
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           18527/asterisk
Моя бабка еще помнит беспроводные утюги.
gofer_k
Сообщения: 275
Зарегистрирован: 08 апр 2011, 16:27

Re: ЧТО ЭТО ?

Сообщение gofer_k »

DNS работает
Моя бабка еще помнит беспроводные утюги.
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: ЧТО ЭТО ?

Сообщение ded »

Вот судя по выхлопу
root@srv01:/etc/asterisk# netstat -nlp |grep :5060
tcp 0 0 0.0.0.0:5060 0.0.0.0:* LISTEN
Астериск не может занять ТСР порт 5060, на нём нет номера процесса астериск, это глюк.
Либо sip reload, либо по тяжёлому - выгрузить модуль chan_sip и загрузить, или вообще перестартовать Астериск.
gofer_k
Сообщения: 275
Зарегистрирован: 08 апр 2011, 16:27

Re: ЧТО ЭТО ?

Сообщение gofer_k »

Не помогает

Код: Выделить всё

root@srv01:~# netstat -nlp |grep :5060
tcp        0      0 0.0.0.0:5060            0.0.0.0:*               LISTEN      1892/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           1892/asterisk
root@srv01:~# asterisk -r
Asterisk 11.5.1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.5.1 currently running on srv01 (pid = 1892)
[2013-12-12 15:18:51] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:51] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:51] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:51] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:51] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:51] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:51] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:51] ERROR[1923]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 15:18:51] WARNING[1923]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 15:18:52] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:52] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:52] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:52] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:52] ERROR[1923]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 15:18:52] WARNING[1923]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 15:18:53] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:53] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:53] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:53] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:53] ERROR[1923]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 15:18:53] WARNING[1923]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 15:18:55] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:55] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:55] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:55] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:55] ERROR[1923]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 15:18:55] WARNING[1923]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
[2013-12-12 15:18:59] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:59] ERROR[1923]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
[2013-12-12 15:18:59] WARNING[1923]: chan_sip.c:18015 check_via: Could not resolve socket address for ''
[2013-12-12 15:18:59] ERROR[1923]: sip/reqresp_parser.c:2318 parse_via: missing sent-by in Via header
[2013-12-12 15:18:59] ERROR[1923]: chan_sip.c:8788 process_via: error processing via header
[2013-12-12 15:18:59] WARNING[1923]: chan_sip.c:11823 respprep: error processing via header, will send response to originating address
srv01*CLI>
Моя бабка еще помнит беспроводные утюги.
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: ЧТО ЭТО ?

Сообщение ded »

Тогда в платный суппорт.
Аватара пользователя
Wapo
Сообщения: 795
Зарегистрирован: 02 мар 2011, 17:53

Re: ЧТО ЭТО ?

Сообщение Wapo »

Проверьте файл /etc/host

Должно быть что-то типа:

Код: Выделить всё

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               linux localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH