Possible to use the SIP/Voip from voice on FTTH with Freepbx or something similar?

Rajneesh Rana

[OP]
Regulars
Sep 17, 2016
74
21
Shimla, India
Hi,
I was thinking abut the voice setup with FTTH on BSNL.
They use SIP and voip connections on the ONT to setup voice.

Is it possible to make the connection from a server (freepbx or similar softphone for SIP account) and take the voice calling to be totally digital in LAN?

If anyone has any experience or suggestions on this that would be really helpful.

thanks
 
  • Like
Reactions: shankar29
Dec 30, 2014
30
15
Even me too! Not sure how to use IP Telephony with LAN connection using my Airtel FTTH connection.
 


abbyck

Member
Oct 20, 2018
23
10
Me too looking for the same info,
AFAIK there is an option in ONT to set the VOIP Connection to bridge mode which will enable us to dial it manually.
Also, the SIP settings can be found under Application tab-> VOIP.
But there is a catch, SIP registration IP address is in the range of 192.168.xxx.xxx which makes it impossible to connect to this IP inside the NATed LAN. If anyone has any idea please tell me.
 

shankar29

New Member
Nov 20, 2018
2
0
BSNL has provided the Alphion FTTH Modem, it doesnt have a page for VOIP Settings, or atleast its not visible
 

varkey

Newbie
Regulars
Jun 11, 2006
313
81
Me too looking for the same info,
AFAIK there is an option in ONT to set the VOIP Connection to bridge mode which will enable us to dial it manually.
Also, the SIP settings can be found under Application tab-> VOIP.
But there is a catch, SIP registration IP address is in the range of 192.168.xxx.xxx which makes it impossible to connect to this IP inside the NATed LAN. If anyone has any idea please tell me.
So I was thinking of the same thing the other day, and I think it's feasible. You would just need to add a custom route on your router to use the voice bridged interface to reach 192.168.149.0/24 or something.

On those Netlink ONT devices, you can bind a port for each WAN connection. So internet WAN connection should be bound to say LAN 1 and voice WAN connection should be bound to say LAN 2. You'd also a need a router with multiple WAN ports or configurable WAN ports like a OpenWRT device for example.

Then on your main router, the voice interface can be configured with static IP and also add a custom route for the SIP registration address. After this we ideally should be able to use any SIP application to make calls.

This of course would need the MAC address binding to be reset, but certainly is a great idea.
 


varkey

Newbie
Regulars
Jun 11, 2006
313
81
I actually got this working partially. Luckily the VOIP connection is not MAC bound, so I was able to just bridge the 1830 voice VLAN. Also the ONT leaves it VLAN tagged as well, so all I did was enabled tagged mode for that port for VLAN ID 1830 on my OpenWRT router. I didn't even need to use two cables. I then created a new interface in OpenWRT and used the 1830 VLAN tagged interface eth0.1830.



The internet connection is in router mode as BSNL has MAC bound it and I can't get it working without BSNL resetting the binding.

Anyway, then I added a static route to the 192.168.x.x SIP server IP address to use the VOIP WAN interface, enabled NAT for that interface. That's it.

I downloaded a SIP client and configured it using the username/password, dialled my mobile number and it worked! :D But I couldn't hear anything, I'm think its the codec being used, will need some tweaking.
 
Last edited:

Rajneesh Rana

[OP]
Regulars
Sep 17, 2016
74
21
Shimla, India
@varkey I had got to this point as well but faced same issues.
I think the issue is because there's no route from BSNL to the 2nd local lan network we are using and thus won't work.

I was able to put ONT in bridge mode and then connect it the lan port directly to a pc. Then if it's configured with same ip's on PC it works great but if there's routing involved with ip's then calls work but unable to receive any data back from BSNL.
 
  • Like
Reactions: varkey

varkey

Newbie
Regulars
Jun 11, 2006
313
81
There is no need for anything from BSNL right, cause once it reaches the main router, its upto our router on how the return traffic is routed. So if anything it would just need changes/tweaks on our router.

Are you saying that when connected to the PC directly, when in bridge mode, you were able to make and receive calls, but when it went through the router you couldn't? What were the symptoms when going through the router? It doesn't register with the SIP server at all?
 

varkey

Newbie
Regulars
Jun 11, 2006
313
81
Ok, so I figured it out. The issue is that, SIP doesn't work so well when behind NAT, that's the reason when there is NAT involved, it fails.

To fix that, I used something called siproxd which is installed on my OpenWRT router. This acts like a proxy and works around the NAT issues by modifying the SIP requests and stuff on the fly.

Now I am able to make and receive calls with any SIP client, in fact I am able to make calls from Bangalore through my BSNL VOIP connection in Kerala (I use Zerotier for the remote connectivity) 🕺