SIP trunk to PBX

Hey everyone.

I was thinking that now that I got a GSM stick connected to my openwrt router with a internet connection and openwrt support asterisk, will it then be possible to make a SIP trunk from the router to my PBX box?

I have been searching around on Google and it seems like I only can find a setup on either the router og the PBX box and not a combination of them.

You should be able to configure Asterisk on OpenWrt as any other device. It's been a while since I used Asterisk, but as I recall configuring a trunk is possible.

You would edit the conf file as normal.

To be clear,

  • Are you registering to a 3rd device, and wanting to double register (SIP <registration> OpenWrt <registration> PBX), or
  • Are you trying to to forward a bilnd IP call entering the router without registration (Internet > OpenWrt <registration> PBX)

My hope is to be able to forward the connection so that it's the PBX server on my raspberry pi that functions as tho only PBX server.

It's just so I can spare a SIM card and a mobile Contract.

That was already explained.

Perhaps I'm rusty - but I'm not sure that answers my inquiry regarding how OpenWrt is receiving/initiating the call, or if it has to register, or perform registration to a 3rd SIP server on the Interent.

You lost me. Perhaps another user can reply.

Maybe my idea just ain't possible with the GSM USB stick in my router and a pi as PBX server.

OK, I understand.

  • Is your USB stick compatible with Asterisk - how does it operate?
  • What's the model number of this stick?
  • Also, I inquired about how you want to connect the PBX and OpenWrt, but you seem slightly confused about the question

To be honest.
I do not know much about what I am doing here.

I just have a PBX server I use for fun in my home and I have a Huawei 3372 key that I use as a failover for my internet connection.

My thoughts was that it could be fun to combine the setup somehow so that my failover key also could be used as a SIP trunk for my PBX.

And when you are limit in knowledge is it also problematic to know what to search specific on to get the information needed to proceed.

But maybe I just need to keep them separately and get another cellphone plan to the PBX.

USB modems usually don't have a way to make voice calls. Of course for that to have any possibility of working the SIM would need to be subscribed to a voice plan not data only.

You could of course trunk out to a third party VoIP provider like you can with any Internet connection.

Some older mobile broadband cards used to work with chan_dongle, but I haven't tried that for years.

If your goal is to have a failover for your PBX, i.e. that you have an Asterisk instance running on OpenWrt, then this is going to work fine. I used to have an IAX trunk between two Asterisk over Wireguard, all running on OpenWrt.

I have been reading about the chan_dongle for my PBX.

The plan was to get a cell plan with both data and voice call service.
Then there was a data connection for the internet as a failover (already configured) and then I was hoping there was a way to redirect the voice part from the dongle in my router to my PBX on my pi as the primary SIP.