Telegram - . ? :)

SIP IP . , IP , . , IP Asterisk FreePBX 13 .


, , 1 SIP IP. 33.33.44.45. , 11.22.33.44/30. :

  1. 11.22.33.47 -
  2. 11.22.33.46 -
  3. 11.22.33.45 - , Asterisk
  4. 11.22.33.44 - IP

Asterisk NIC (Network Interface Card, ). IP, , (, eth0:0). , , Asterisk VmWare, , vNIC.

, IP 11.22.33.45 , 33.33.44.45 (eth1). , .


(CLI) IP . , . :

[root@asterisk ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1

o :

DEVICE=eth1
BOOTPROTO=static
ONBOOT='yes'
IPADDR=11.22.33.45 //   IP - 
NETMASK=255.255.255.252
GATEWAY=11.22.33.46 //  
HWADDR=00:15:5d:01:02:00 //mac   NIC
ZONE=trusted

:x! . :

[root@asterisk ~]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                      [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Determining if ip address 192.168.1.2 is already in use for device eth0...
[  OK  ]
Bringing up interface eth1:  Determining if ip address 11.22.33.45 is already in use for device eth1...
[  OK  ]

. . eth1. , :

[root@asterisk ~]# touch /etc/sysconfig/network-scripts/route-eth1
[root@asterisk ~]# vim /etc/sysconfig/network-scripts/route-eth1

:

33.33.44.44/30 via 11.22.33.45 dev eth1

service network restart :

[root@asterisk ~]# ip route
33.33.44.44/30 via 11.22.33.45 dev eth1

, . , traceroute 33.33.44.45


FreePBX

, CentOS, FreePBX. , ConnectivityTrunks + Add Trunk, SIP . Trunk Name General SIP SettingsOutgoing. , Trunk Name out, PEER Details :

Asterisk:     IP
type=peer
port=5060
insecure=invite,port
host=33.33.44.45 //IP   
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=alaw,ulaw
qualify=yes

Submit Apply Config. , :)


, :

[2017-01-13 18:12:40] NOTICE[25200] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '' failed for 33.33.44.45:5060' (callid: bj0zumbjn89299ssddjj991nx9uk8m@Some) - No matching endpoint found

SettingsAsterisk SIP Settings, Chan SIP Settings , Bind Port 5060.


?

 .

P.S. , :)

"",