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

Sure, but it is cheaper to use Pi or such low power devices or get a router which supports custom firmware.

You may not see upfront costs with an old PC, but long term running cost would be way higher.
 
Just adding it here for my own future reference 😅

In GS Wave, you could use the following settings

Code:
SIP Server: 192.168.149.78 or kl.ftthvoip.bsnl.in (Please note only one of these would work, depending on how your VOIP account is provisioned)
SIP User Id and authentication Id: 91<std code><voip number> (for example 9148429xxxxxx)
Password: 0000 (yes it's stupid)

View attachment 1261

However, please note that, to get calls to work properly, you need to install siproxd on your router. From a siproxd perspective, the config is really simple, all you need to give is the inbound and outbound interface names. In OpenWRT this is how it would be, where lan is as the name suggests the LAN network, you wouldn't have to change this. And wan_voip is the VOIP interface, this you would need to change as necessary.

Code:
    option interface_inbound lan
    option interface_outbound wan_voip

You'd also need to add static routes to that the VOIP traffic goes via the VOIP interface and not through the main internet gateway. In addition to the route to the SIP server, you'd also need to add the route for the destination 10.191.0.0/16 to go via the VOIP interface.

View attachment 1710

Now in GS Wave, you need to set the IP address of your router where siproxd runs as an outbound proxy.

View attachment 1262

With this, you would be able to make and receive calls as required.

You could also use the built-in SIP client in Android, screenshots from my phone below.

View attachment 1263View attachment 1264

@philip
I am still getting SIP Registration Failed (Timeout) .
Here are my settings:
Just adding it here for my own future reference 😅

In GS Wave, you could use the following settings

Code:
SIP Server: 192.168.149.78 or kl.ftthvoip.bsnl.in (Please note only one of these would work, depending on how your VOIP account is provisioned)
SIP User Id and authentication Id: 91<std code><voip number> (for example 9148429xxxxxx)
Password: 0000 (yes it's stupid)

View attachment 1261

However, please note that, to get calls to work properly, you need to install siproxd on your router. From a siproxd perspective, the config is really simple, all you need to give is the inbound and outbound interface names. In OpenWRT this is how it would be, where lan is as the name suggests the LAN network, you wouldn't have to change this. And wan_voip is the VOIP interface, this you would need to change as necessary.

Code:
    option interface_inbound lan
    option interface_outbound wan_voip

You'd also need to add static routes to that the VOIP traffic goes via the VOIP interface and not through the main internet gateway. In addition to the route to the SIP server, you'd also need to add the route for the destination 10.191.0.0/16 to go via the VOIP interface.

View attachment 1710

Now in GS Wave, you need to set the IP address of your router where siproxd runs as an outbound proxy.

View attachment 1262

With this, you would be able to make and receive calls as required.

You could also use the built-in SIP client in Android, screenshots from my phone below.

View attachment 1263View attachment 1264

@philip

Still not able to get this to work. I am getting SIP registration Failed ( Timeout Error)

Here are my settings:

I connect to BSNL is in Bridge Mode. Port 3 in My Alphion Modem to my Pfsense Box.

SIP Settings:
Username: 914429xxxxxx
Password: tried both "0000' and 'password' - > my PPPoE password
Server: 192.168.149.78

i have setup SIProxd, Rules and the Static Routes. Not Able to get it to work.
 

Attachments

  • Rules.webp
    Rules.webp
    28.5 KB · Views: 308
  • SIProxd.webp
    SIProxd.webp
    44 KB · Views: 254
  • Static Routes.webp
    Static Routes.webp
    17.5 KB · Views: 280
Heyy @varkey @Elavarasan!
I've been trying to do this for a couple of days. I don't have an OpenWRT Router, but i do have a Raspberry Pi. Instead of deleting the already existing Voice Interface on my Netlink ONT I created a new Bridged Voice connection and did not bind it to any port. I tested on my PC, Changing its Interface Config to the Configuration of BSNL SIP with the Static IP, Gateway and DNS Servers given, and I tested calling on Zoiper and it worked! But obviously, I wasn't able to connect to the Internet on my PC.

So I took my Raspberry Pi which had Raspbian, and installed siproxd but had no idea how to configure it. So then, I installed an OpenWRT Image on RPi and thought of using it as a Router, but nop! I tried creating a new interface through LuCI with the Static IP, but then I'm not able to ping the Gateway which is 10.111.172.1 through the Pi,probably because the default route gateway is still my Netlink ONT. I also created a Static Route as you told, to kl.ftthvoip.bsnl.in (10.187.6.12) but that also didn't let me ping. I can use Internet on my Pi, as my default route goes to the ONT.

I have no idea how to configure siproxd and its inbound and outbound interfaces. Should I switch back to Raspbian and use siproxd, if so, how? or should i make changes in the OpenWRT Config?
 

Attachments

  • Screenshot from 2020-07-20 13-06-40.webp
    Screenshot from 2020-07-20 13-06-40.webp
    19.1 KB · Views: 255
@alokme123 i am unaware of openwrt too much.
what i did is simply installed siproxd in the rasbian os iteslf and did the configuration.i used both the wifi and lan interface for achieving this.

WiFi is used to get my pi internet and lan interface used to get connected to the BSNL private sip network (that 10.x.x.x services ip ) in the siproxd config inbound and outbound interfaces i just added up the eth0 and wlan0 not more than that.one more thing is assigning the static ip for the pi eth0 interface because the bsnl private network didn't have any DHCP. So i just assigned the static 10.x.x.x series ip for that.
Hope you know the bridging part in ont port 2 or port 1.

Check this post this may help you for the siproxd configuration.
 
@Elavarasan THANK YOU!! I knew there should be two interfaces to the Pi, as you really can't connect to two networks using an interface..! I used a Pi 2B so didn't have built-in wifi. I'll get a dongle then..! So configuring siproxd would be enough? So like, in the configuration of the SIP settings, you just set the Outbound Proxy as Pi's IP? and it should work?
 

Top