News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

How to setup for VoIP -> PSTN calls?

Started by helloworld, May 19, 2017, 11:28:24 AM

Previous topic - Next topic

helloworld

Hi all, I want to connect to my OBI202 using some VoIP method and make PSTN calls from it.

I have:

- OBi202
- Static IP on the Internet and ability to open incoming ports
- OBiLINE and PSTN connection
- OBiBT and Bluetooth-enabled cellphone
- Raspberry Pi that I can load with RasPBX or whatever it required

My OBi202 setup and myself are in different countries.

Example method: I was able to make a call using the green "Call OBi" button in OBITALK to make an outgoing call from OBiBT.

Challenge: This call though went from my browser to OBiHai's server on the Internet and then to my OBi202. This could introduce latency. How do I make this work by making a VoIP call from my location directly to the OBi202 location? Do I need to setup something like this:

SIP phone at my location -> RasPBX on the RPi -> OBi202?

Or does the OBi202 has other methods I can "speak" to it directly?

Thanks!

drgeoff

You can make a SIP call directly from the softphone or through Raspbx into the IP address of the Obi202. If the 202 is behind a NAT router you need to forward the SIP signalling port, usually 5060.

After you get it working you probably want to add some security restriction to the OBi to prevent anyone else anywhere in the world from doing the same.  :)

helloworld

#2
I got incoming calls into OBi via SIP working, without really knowing what I am doing. See the two attached screenshots.

To make sure no-one else can make calls from my OBi I pointed SP2 to the Auto Attendant and set up a PIN. Any  other methods? Only allowing incoming connections from specific IPs will not do because the IP I am calling from is not static.

azrobert

You can check for the UserID of the calling device.

X_InboundCallRoute:
{helloworld:aa}

You can send the call directly to a trunk:
{helloworld:sp1}

You can check the format of the dialed number:
{helloworld>(1xxxxxxxxxx):sp1}
or
{helloworld>(Msp1):sp1}

drgeoff

It isn't clear to me what you are doing.

You have disabled the SIP registration for SP2.  That is a how a Service Provider knows the IP address to which it should calls to you.  So it looks like you are not using an ITSP but calling directly in to your OBi.  In that case I'm not sure that the SP2 settings - including aa in the InboundCallRoute - come into play at all.  However if incoming calls hear the AA announcements and need to enter a PIN then obviously the AA and PIN are being invoked somewhere, somehow.  ;)

You can further improve security by not using port 5060.  Pick another number not near 5060.