SFP ONU + Mikrotik + Asterisk

Very briefly, in addition to the following articles:

https://habr.com/ru/companies/ruvds/articles/547442/

https://habr.com/ru/articles/724566/

https://habr.com/ru/articles/553118/

MGTS GPON and IPv6

According to http://version6.ru/isp/mts – no static ip4, only ip4 cgnat + ip6 works. From the settings, you should only keep in mind that in the DHCP client you only need to enable the prefix request (do not include the address request).

IMS VLAN

Let's move straight to the problem that everyone is banging their heads about: the list of servers arrives in DHCP option 120. Fortunately, this problem is completely solved by a DHCP script. 🙂 Here he is – https://gist.github.com/cyanide-burnout/433bb6678a5de7824ead68b27cab879c
The script parses the option and edits the route commented as ims-core. Naturally, the default route setting should be abandoned. Along the way, the script uploads a list of SIP servers to the host with Asterisk.

Automating Asterisk settings

Now the response part has arrived – https://gist.github.com/cyanide-burnout/a7dadea75b18a3c8edc00106ad4f0cca
Mikrotik initiates the launch of this script by passing a list of SIP servers. The script goes SSH to the ONU and takes the username and password received from the operator, digests everything and creates a small configuration file that needs to be included using #include in pjsip.conf.
If the parameters have changed, it will also politely ask Asterisk to reload the pjsip configuration via the AMI.

As promised, briefly. I hope you'll figure it out on your own.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *