We turn a "landline" number from MGTS into a mobile connection

Working with the MGTS provider for individuals is discussed on many resources on the network. One of the options, in addition to traditional Internet access and television, is a home phone with an area code (499 in my case). I will share my experience in transforming "fixed" communication into mobile and I hope it will be useful for those interested in this issue.





I must say right away that I have MGTS connected via Mikrotik 960PGS and the D-Link DPN-100 SFP module. Perhaps later I will write about the connection itself using such hardware, but now I will tell you about setting up a home phone that will be with you wherever there is an Internet or mobile connection.





MGTS connects telephony subscribers using SIP technology through its servers with "gray" IP addresses. The support of this provider, as everyone knows, answers all questions - that this is a landline connection, period! This is not true. In my case, the SIP registration server has the address 192.168.69.9, other SIP servers from the address space 192.168.0.0/16 are also involved in the process of functioning. SIP Telephony works via VLAN-5, we get the address via DHCP. On my router, MGTS issues one of two addresses to this VLAN, which, of course, have been known to me for a long time. Therefore, two static routes are registered on the router and there are no problems with changing the address. Below is an excerpt from the config of my Mikrotik, which relate directly to VLAN-5:





/interface vlan
add interface="sfp1 - mgts" name="vlan.5/5(VID/PRI)" vlan-id=5
/ip dhcp-client
add add-default-route=no dhcp-options=clientid,clientid disabled=no \
    interface="vlan.5/5(VID/PRI)" use-peer-dns=no use-peer-ntp=no
/ip firewall filter
add action=accept chain=forward in-interface="vlan.5/5(VID/PRI)"
/ip route
#     DHCP.  
add distance=1 dst-address=10.*.*.*/19 gateway="vlan.5/5(VID/PRI)" \
    pref-src=10.*.*.11 scope=10
#
add distance=1 dst-address=10.*.*.*/19 gateway="vlan.5/5(VID/PRI)" \
    pref-src=10.*.*.12 scope=10
      
      



#         ,   .

add distance=1 dst-address=10.*.*.1/32 gateway=10.*.*.1 pref-src=\
    10.*.*.11 scope=10
add distance=1 dst-address=192.168.0.0/16 gateway=10.*.*.1 pref-src=\
    10.*.*.11
add distance=1 dst-address=10.*.*.1/32 gateway=10.*.*.1 pref-src=\
    10.*.*.12 scope=10
add distance=1 dst-address=192.168.0.0/16 gateway=10.*.*.1 pref-src=\
    10.*.*.12
      
      



SIP . NAT , Free-PBX. wireshark SIP- Free-PBX SIP (.. ) IP-.





Free PBX Hyper-V. :





1- LAN SIP-





2- WAN "" IP ( ), .





VoIP-GSM , .





FreePBX SIP-





sip_registrations.conf

register=+7499*******@msk.ims.mgts.ru:password:+7499*******@msk.ims.mgts.ru@192.168.69.9/+7499*******

sip_additional.conf

[mgts-in]

context=from-trunk-sip-mgts-out

[mgts-out]

type=peer

host=192.168.69.9

fromuser=+7499*******

fromdomain=msk.ims.mgts.ru

context=from-trunk-sip-mgts-out
      
      



Free-PBX IP4 192.168.0.0/16





FreePBX - , VoIP-GSM - , .





VoIPGSM- SIP, ) ( ), . .





SIP . "grep". root GPON- (RV6699 V3), , SIP- , :





grep -c 3 user=+7499*******@msk.ims.mgts.ru ./dev/ram
      
      



Xaomi MI MIX 2S, SIP- , . Free-PBX VoIP-GSM - .





:





https://forummikrotik.ru





https://4pda.ru





https://forum.ixbt.com





http://ws-e.ru/index.php/unix-os/5-freepbx-i-mgts ( SIP )





! , ! GPON Mikrotik SFP-.





, Mikrotik Free-PBX .








All Articles