Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2021-02-26 22:30:14 +0400

andreyspb Gravatar andreyspb

Как определить DID номер

Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry Host dnsmgr Username Refresh State Reg.Time
sip.freeconet.pl:5060 Y login 105 Registered Fri, 26 Feb 2021 18:02:16 1 SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Как определить DID номер

Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry registry Host
dnsmgr Username Refresh State
Reg.Time
sip.freeconet.pl:5060
Y login 105 Registered
Fri, 26 Feb 2021 18:02:16 18:02:16 1 SIP registrations. SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Как определить DID номер

Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry Host
dnsmgr Username Refresh State
Reg.Time
sip.freeconet.pl:5060
Y login 105 Registered
Fri, 26 Feb 2021 18:02:16 1 SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Инструкция https://fcn.pl/pomoc/konfiguracja-asterisk-fcn/ но там сказано как изменить DID в конф файлах, а у меня FreePBX...

Как определить DID номер

UPD. Решил проблему путем разрешения анонимных звонков, насколько это небезопасно и где нужно прописать (разрешить) нужный IT адрес?


Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry Host
dnsmgr Username Refresh State
Reg.Time
sip.freeconet.pl:5060
Y login 105 Registered
Fri, 26 Feb 2021 18:02:16 1 SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Инструкция https://fcn.pl/pomoc/konfiguracja-asterisk-fcn/ но там сказано как изменить DID в конф файлах, а у меня FreePBX...

Как определить DID номер

UPD. Решил проблему путем разрешения анонимных звонков, насколько это небезопасно и где нужно прописать (разрешить) нужный IT адрес?


Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry Host
dnsmgr Username Refresh State
Reg.Time
sip.freeconet.pl:5060
Y login 105 Registered
Fri, 26 Feb 2021 18:02:16 1 SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Инструкция https://fcn.pl/pomoc/konfiguracja-asterisk-fcn/ но там сказано как изменить DID в конф файлах, а у меня FreePBX...

UPD. Решил проблему путем разрешения анонимных звонков, насколько это небезопасно и где нужно прописать (разрешить) нужный IT адрес?

Как определить DID номер

UPD. Решил проблему путем разрешения анонимных звонков, насколько это небезопасно и где нужно прописать (разрешить) нужный IT адрес?


Здравствуйте, пытаюсь подключить новый сервис телефонии к астериску, прописал транк так:

USER Details:

type=user context=from-trunk

Register String: login:pass@sip.freeconet.pl/221121028

Транк подниматься,

freepbxCLI> sip show registry Host
dnsmgr Username Refresh State
Reg.Time
sip.freeconet.pl:5060
Y login 105 Registered
Fri, 26 Feb 2021 18:02:16 1 SIP registrations. freepbx
CLI>

но при попытке дозвониться number is not in service asterisk

Inbound Routes с DID 221121028 и с пустным полем не работает, направлял на экстеншен и на эхо тест.

 2  [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP TOS bits 184  
3   [2021-02-26 18:23:39] VERBOSE[2451][C-00000010] netsock2.c: Using SIP RTP CoS mark 5    
4   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:1] NoOp("SIP/sip.freeconet.pl-0000000d", "Received incoming SIP connection from unknown peer to 221121028") in new stack  
5   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "DID=221121028") in new stack 
6   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [221121028@from-sip-external:3] Goto("SIP/sip.freeconet.pl-0000000d", "s,1") in new stack  
7   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,1)    
8   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?setlanguage:checkanon") in new stack    
9   [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,2)    
10  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:2] Set("SIP/sip.freeconet.pl-0000000d", "CHANNEL(language)=en") in new stack  
11  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/sip.freeconet.pl-0000000d", "1?noanonymous") in new stack  
12  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx_builtins.c: Goto (from-sip-external,s,5)    
13  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:5] Set("SIP/sip.freeconet.pl-0000000d", "TIMEOUT(absolute)=15") in new stack  
14  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] func_timeout.c: Channel will hangup at 2021-02-26 18:23:54.118 UTC. 
15  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:6] Set("SIP/sip.freeconet.pl-0000000d", "receveip=recvip") in new stack   
16  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:7] Log("SIP/sip.freeconet.pl-0000000d", "WARNING,"Rejecting unknown SIP connection from 213.218.116.65"") in new stack    
17  [2021-02-26 18:23:39] WARNING[7923][C-00000010] Ext. s: "Rejecting unknown SIP connection from 213.218.116.65"  
18  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/sip.freeconet.pl-0000000d", "") in new stack   
19  [2021-02-26 18:23:39] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/sip.freeconet.pl-0000000d", "2") in new stack    
20  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/sip.freeconet.pl-0000000d", "ss-noservice") in new stack    
21  [2021-02-26 18:23:41] VERBOSE[7923][C-00000010] file.c: <SIP/sip.freeconet.pl-0000000d> Playing 'ss-noservice.ulaw' (language 'en') 
22  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/sip.freeconet.pl-0000000d", "") in new stack   
23  [2021-02-26 18:23:44] VERBOSE[7923][C-00000010] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/sip.freeconet.pl-0000000d'

Где мой косяк? :(

Спасибо.

Инструкция https://fcn.pl/pomoc/konfiguracja-asterisk-fcn/ но там сказано как изменить DID в конф файлах, а у меня FreePBX...

UPD. Решил проблему путем разрешения анонимных звонков, насколько это небезопасно и где нужно прописать (разрешить) нужный IT адрес?

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.