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

iax не работает

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

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

Ответить
music-sf
Сообщения: 22
Зарегистрирован: 23 окт 2012, 14:31

iax не работает

Сообщение music-sf »

Всем здравствуйте.

Сразу скажу, что с астериском вообще первый раз столкнулся.. доки почитал, но пока очень немного. И тут случилась засада - перестал работать астериск в одном из удалённых магазинов
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

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

[Oct 22 16:51:56] WARNING[2097] res_phoneprov.c: Unable to load users.conf 
[Oct 22 16:51:56] WARNING[2097] app_festival.c: No such configuration file festival.conf 
[Oct 22 16:51:56] WARNING[2097] res_snmp.c: Could not load res_snmp.conf 
[Oct 22 17:23:18] WARNING[2971] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 22 17:25:01] WARNING[3092] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 22 17:28:03] WARNING[3156] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 22 18:00:54] WARNING[3332] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 22 21:01:56] WARNING[3698] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 22 21:02:05] WARNING[3709] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) 
[Oct 23 11:34:46] WARNING[2110] indications.c: Can't find indications config file indications.conf. 
[Oct 23 11:34:46] WARNING[2110] res_odbc.c: Unable to load config file res_odbc.conf 
[Oct 23 11:34:46] WARNING[2110] res_jabber.c: No such configuration file jabber.conf 
[Oct 23 11:34:46] WARNING[2110] res_config_pgsql.c: Unable to load config res_pgsql.conf 
[Oct 23 11:34:47] WARNING[2110] cdr_sqlite3_custom.c: Failed to load configuration file. Module not activated. 
[Oct 23 11:34:47] WARNING[2110] cel_tds.c: cel_tds module had config problems; declining load 
[Oct 23 11:34:47] WARNING[2110] cdr_manager.c: Failed to load configuration file. Module not activated. 
[Oct 23 11:34:47] WARNING[2110] cdr_adaptive_odbc.c: Unable to load cdr_adaptive_odbc.conf.  No adaptive ODBC CDRs. 
[Oct 23 11:34:47] WARNING[2110] cdr_pgsql.c: Unable to load config for PostgreSQL CDR's: cdr_pgsql.conf 
[Oct 23 11:34:47] WARNING[2110] cel_pgsql.c: CEL pgsql config file missing global section. 
[Oct 23 11:34:47] WARNING[2110] cdr_odbc.c: cdr_odbc: Unable to load config for ODBC CDR's: cdr_odbc.conf 
[Oct 23 11:34:47] WARNING[2110] app_followme.c: No follow me config file (followme.conf), so no follow me 
[Oct 23 11:34:47] WARNING[2110] app_minivm.c: Failed to load configuration file. Module activated with default settings. 
[Oct 23 11:34:47] WARNING[2110] res_phoneprov.c: Unable to load users.conf 
[Oct 23 11:34:47] WARNING[2110] app_festival.c: No such configuration file festival.conf 
[Oct 23 11:34:47] WARNING[2110] res_snmp.c: Could not load res_snmp.conf

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

TGGW*CLI> iax2 show peers 
Name/Username    Host                 Mask             Port          Status    
office/gostinni  192.168.253.90  (S)  255.255.255.255  4569 (T)      OK (19 ms) 
1 iax2 peers [1 online, 0 offline, 0 unmonitored] 
TGGW*CLI>
Соответственно звонки не проходят. Во время попытки позвонить выскакивает

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

app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
Со стороны другого сервера

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

magaz/offic  192.168.7.254   (S)  255.255.255.255  4569 (T)      UNREACHABLE
В магазине
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

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

cat syslog | grep WARNING 
Oct 23 11:34:46 TGGW asterisk[2110]: WARNING[2110]: indications.c:1057 in load_indications: Can't find indications config file indications.conf. 
Oct 23 11:34:46 TGGW asterisk[2110]: WARNING[2110]: res_odbc.c:782 in load_odbc_config: Unable to load config file res_odbc.conf 
Oct 23 11:34:46 TGGW asterisk[2110]: WARNING[2110]: res_jabber.c:4553 in aji_load_config: No such configuration file jabber.conf 
Oct 23 11:34:46 TGGW asterisk[2110]: WARNING[2110]: res_config_pgsql.c:1425 in parse_config: Unable to load config res_pgsql.conf 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cdr_sqlite3_custom.c:163 in load_config: Failed to load configuration file. Module not activated. 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cel_tds.c:557 in load_module: cel_tds module had config problems; declining load 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cdr_manager.c:79 in load_config: Failed to load configuration file. Module not activated. 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cdr_adaptive_odbc.c:100 in load_config: Unable to load cdr_adaptive_odbc.conf.  No adaptive ODBC CDRs. 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cdr_pgsql.c:379 in config_module: Unable to load config for PostgreSQL CDR's: cdr_pgsql.conf 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cel_pgsql.c:390 in process_my_load_module: CEL pgsql config file missing global section. 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: cdr_odbc.c:178 in odbc_load_module: cdr_odbc: Unable to load config for ODBC CDR's: cdr_odbc.conf 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: app_followme.c:340 in reload_followme: No follow me config file (followme.conf), so no follow me 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: app_minivm.c:2876 in load_config: Failed to load configuration file. Module activated with default settings. 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: res_phoneprov.c:922 in set_config: Unable to load users.conf 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: app_festival.c:544 in load_module: No such configuration file festival.conf 
Oct 23 11:34:47 TGGW asterisk[2110]: WARNING[2110]: res_snmp.c:57 in load_config: Could not load res_snmp.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: indications.c:1057 in load_indications: Can't find indications config file indications.conf. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: res_odbc.c:782 in load_odbc_config: Unable to load config file res_odbc.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: res_jabber.c:4553 in aji_load_config: No such configuration file jabber.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: res_config_pgsql.c:1425 in parse_config: Unable to load config res_pgsql.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cdr_sqlite3_custom.c:163 in load_config: Failed to load configuration file. Module not activated. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cel_tds.c:557 in load_module: cel_tds module had config problems; declining load 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cdr_manager.c:79 in load_config: Failed to load configuration file. Module not activated. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cdr_adaptive_odbc.c:100 in load_config: Unable to load cdr_adaptive_odbc.conf.  No adaptive ODBC CDRs. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cdr_pgsql.c:379 in config_module: Unable to load config for PostgreSQL CDR's: cdr_pgsql.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cel_pgsql.c:390 in process_my_load_module: CEL pgsql config file missing global section. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: cdr_odbc.c:178 in odbc_load_module: cdr_odbc: Unable to load config for ODBC CDR's: cdr_odbc.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: app_followme.c:340 in reload_followme: No follow me config file (followme.conf), so no follow me 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: app_minivm.c:2876 in load_config: Failed to load configuration file. Module activated with default settings. 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: res_phoneprov.c:922 in set_config: Unable to load users.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: app_festival.c:544 in load_module: No such configuration file festival.conf 
Oct 23 13:40:13 TGGW asterisk[3641]: WARNING[3641]: res_snmp.c:57 in load_config: Could not load res_snmp.conf
music-sf
Сообщения: 22
Зарегистрирован: 23 окт 2012, 14:31

Re: iax не работает

Сообщение music-sf »

Если у вас один пир office/gostinni, то другой должен быть gostinni/office, а никак не magaz/offic .

Невнимательность. Хотел везде magaz написать. Вы правы, это ошибка в посте и к поломке отношения не имеет.


С другой стороны

toatc*CLI> iax2 show peers
Name/Username Host Mask Port Status
makarenko/offic 192.168.8.254 (S) 255.255.255.255 4569 (T) UNREACHABLE
sh/sh 192.168.253.3 (S) 255.255.255.255 4569 UNREACHABLE

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

[b]gostinniy/offic  192.168.7.254   (S)  255.255.255.255  4569 (T)      UNREACHABLE[/b]
sunlink/tutanho  87.244.0.21     (S)  255.255.255.255  4569 (T)      OK (3 ms) 
sovetskaya/offi  192.168.6.254   (S)  255.255.255.255  4569 (T)      OK (2 ms) 
intersity/offic  192.168.4.254   (S)  255.255.255.255  4569 (T)      OK (1 ms) 
oktyabrskaya/of  192.168.2.254   (S)  255.255.255.255  4569 (T)      OK (2 ms) 
lenina/office    192.168.5.254   (S)  255.255.255.255  4569 (T)      OK (13 ms)
8 iax2 peers [5 online, 3 offline, 0 unmonitored]

Пинги проходят БЕЗ проблемм в обе стороны.
music-sf
Сообщения: 22
Зарегистрирован: 23 окт 2012, 14:31

Re: iax не работает

Сообщение music-sf »

С центральной

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

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00005ms  SCall: 05302  DCall: 00000 [192.168.7.254:4569]

Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00005ms  SCall: 05302  DCall: 00000 [192.168.7.254:4569]
С магазина

[spoiler]

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

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00003ms  SCall: 12031  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00003ms  SCall: 00001  DCall: 12031 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00003ms  SCall: 12031  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00003ms  SCall: 00001  DCall: 12031 [192.168.253.90:1976]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 06078  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 06078 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 06078  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 06078 [192.168.253.90:1976]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 06761  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 06761 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 06761  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 06761 [192.168.253.90:1976]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00011ms  SCall: 00315  DCall: 00000 [192.168.253.90:4569]

Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00011ms  SCall: 00001  DCall: 00315 [192.168.253.90:4569]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK    
   Timestamp: 00011ms  SCall: 00315  DCall: 00001 [192.168.253.90:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00001ms  SCall: 10772  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00001ms  SCall: 00001  DCall: 10772 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00001ms  SCall: 10772  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00001ms  SCall: 00001  DCall: 10772 [192.168.253.90:1976]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 08057  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 08057 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00002ms  SCall: 08057  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00002ms  SCall: 00001  DCall: 08057 [192.168.253.90:1976]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00001ms  SCall: 03688  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00001ms  SCall: 00001  DCall: 03688 [192.168.253.90:1976]
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00001ms  SCall: 03688  DCall: 00000 [192.168.253.90:1976]

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00001ms  SCall: 00001  DCall: 03688 [192.168.253.90:1976]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE   
   Timestamp: 00010ms  SCall: 00857  DCall: 00000 [192.168.253.90:4569]

Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00010ms  SCall: 00001  DCall: 00857 [192.168.253.90:4569]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK    
   Timestamp: 00010ms  SCall: 00857  DCall: 00001 [192.168.253.90:4569]
[/spoiler]
ded
Сообщения: 15626
Зарегистрирован: 26 авг 2010, 19:00

Re: iax не работает

Сообщение ded »

1) На 192.168.7.254 файервол не отвечает на qualify пакеты
2) На 192.168.7.254 маршрутизация VPN ответы шлёт не туда и/или не через тот интерфейс.
На 192.168.7.254 включите tcpdump и всё увидите. А на центральной уберите qualify для этого пира и вообще для всех пиров. Он вам не нужен
music-sf
Сообщения: 22
Зарегистрирован: 23 окт 2012, 14:31

Re: iax не работает

Сообщение music-sf »

Проблема решена, дело было в маршрутизации.
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH