Configured VoIP from BSNL Fibre on Opnenvox Asterisk IPPBX with Huawei HG8546M ONT in standard configuration without Bridge Mode in Chhattisgarh.

Yes!!! Finally I was able to do it.
For long , I had been trying to configure the VoIP from my BSNL fiber connection on my Open Vox UC501 Asterisk based home IPPBX.
Now to start with , this article was the basis for my efforts.
My Huawei HG8546M ONT has standard configurations for Internet WAN. Regarding the VoIP WAN I configured it in Voice-Internet form in route mode.
In the ONT I also set static routes to the VoIP server domain cg.ftth.ims.bsnl.in and also to ip 10.0.0.0 (as cg.ftth.ims.bsnl.in resolves to 10.191.177.49).

Fortunately, on my IPPBX I have separate WAN and LAN ports. LAN port is connected to my router (which is situated downstream from the ONT) on the Local Network . The WAN port is connected directly to the ONT LAN port and configured in DHCP mode. Here, I kept the ONT (192.168.100.1) as Primary DNS server and 8.8.8.8 as the secondary DNS server. On the IPPBX , I also created a static route to 10.0.0.0 with gateway as 10.146.24.1 (this is the gateway for voice on my ONT).

Next, I configured the Voice as PJSIP trunk on my IPPBX with credentials as were there on my ONT.

Bingo..... it works.

Instead of IPPBX, one can use the same method to configure the VoIP on a Soft Client or IP Phone . I have tested these as well. it works.
 
Last edited:
My issue as solved my using chan_sip instead of pjsip, now all are working good.


My config:


Using raspbx (FreePBX 15.0.38), running on Pi 4, 8GB RAM.
My trunk settings:

GENERAL Tab

Trunk Name :bsnlout(any name)
Hide CallerID: No
Outbound CallerID: 91XXXXXXXXXX, where X's are your landline number given by BSNL without 0.
CID Options: Allow Any CID
Maximum Channels: NIL
Asterisk Trunk Dial Options NIL, System
Continue if Busy: No
Disable Trunk: No
Monitor Trunk Failures: No

sip Setting Tab:
Outgoing:
Trunk Name: bsnlout(for reference in setting outbound)
PEER Details:
host=kl.ftthvoip.bsnl.in(Registrar Address given by BSNL, varies by circle)
username=91XXXXXXXXXX, where X's are your landline number given by BSNL without 0.
secret= password for sip(telephone/VoIP) given by BSNL
type=peer
qualify=yes
canreinvite=no
insecure=port,invite
session-timers=refuse
session-expires=600
session-minse=90

Incoming:
User Context: bsnlin(for reference in setting inbound)
USER Details:
host=kl.ftthvoip.bsnl.in(Registrar Address given by BSNL, varies by circle)
username=91XXXXXXXXXX, where X's are your landline number given by BSNL without 0.
secret=password for sip(telephone/VoIP) given by BSNL
type=peer&user
qualify=yes
canreinvite=no
insecure=port,invite
context=from-trunk

Register String: 91XXXXXXXXXX:[email protected]/91XXXXXXXXXX
 
Back