December 15, 2017, 09:43:10 am *
Welcome, Guest. Please login or register.
News:
 
   Forum Home   Search Login Register OBiTALK  
Pages: [1] 2
  Print  
Author Topic: Simple config OBi110 to Mac Softphone  (Read 866 times)
042DYA
Newbie
*
Posts: 7


« on: October 29, 2017, 06:24:41 am »

Hello,

Thank you in advance for your help.  I am a noob /hobbyist /techno-junky trying to get a simple setup to work.  I just want to be able to use my Mac to make calls while I am working.  I have an OBi110 and I am very knowledgeable of networking etc. but not so much with VoIP and telecom.  My ask is two parts...

1.) What is the best softphone for Mac compatible with OBi110?
2.) What is the configuration for this scenario?

I am trying to use the POTS interface so I can answer incoming home calls too.  Once I get this working - the POTS line - I would like to Google Voice on SP2.

I have tried a few adaptations I could find but none are working.  I keep getting the 486 error.  I am currently using the Zoiper5 client.

I am hoping this is a very simple ask.  I really appreciate any help.

Best regards!
« Last Edit: October 29, 2017, 06:27:27 am by 042DYA » Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2724


« Reply #1 on: October 29, 2017, 07:20:19 am »

It isn't simple because the OBi110 is really intended to connect to SIP servers, not SIP clients.

Will the OBi110 and your Mac always be on the same LAN or are you hoping to leave the OBi110 at home and be able to make and receive calls using your Mac anywhere you have an internet connection?
Logged
042DYA
Newbie
*
Posts: 7


« Reply #2 on: October 29, 2017, 07:29:14 am »

No, just a home based iMac.  Same LAN - 192.168.1.x.
Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2724


« Reply #3 on: October 29, 2017, 08:53:34 am »

OK, the following should get incoming POTS calls ringing on your Mac and the CLI showing there too.

I don't (on principle) have any Apple stuff so cannot advise you on a specific soft client.  You need to know the IP address of the Mac and the port number that your softphone is listening on.  The IP address needs to be unchanging; either set a static one on the Mac itself or, if DHCP, configure the router to always give it the same one.  By convention the default SIP port is usually 5060.

The Obi110, like all Obis, can be configured either using its onboard web server or via the portal dashboard of your account at obihai.com.  Decide which method you are going to use and stick to it.  If you are going to have Google Voice, then you MUST use the portal to configure that so it makes sense to start and continue with the portal.  The changes you will make are only available from the Expert Mode mode of the portal. You need to clear any ticks in both boxes at the right hand end of a line before you can edit the field. Click the Submit button at the bottom and wait for the OBi to reboot before moving to a different page.

If you don't already have a SIP based Service Provider configured on the OBi you need to set up a dummy one.
Service Providers, ITSP Profile A, SIP, ProxyServer: 127.0.0.1
Voice Services, SP1 Service, AuthUserName: (any userid)
Voice Services, SP1 Service, X_RegisterEnable: (unchecked)
Voice Services, SP1 Service, X_ServProvProfile: A

To forward the CallerID
Service Providers, ITSP Profile A, SIP, X_SpoofCallerID: checked

Under Physical Interfaces, Line Port there is the InboundCallRoute.  The default setting is ph which means the PHONE jack.  If you want incoming calls from the POTS line to ring only the softphone change that field to
sp1(@192.168.1.xyz:port)
where the xyz completes the IP address of your Mac and port is that of the softphone. If the port is 5060 then ':port' can be omitted.
If you want incoming calls to ring both a physical phone plugged in to the PHONE jack and the softphone then change the field to
ph,sp1(@192.168.1.xyz:port)
« Last Edit: October 29, 2017, 08:56:22 am by drgeoff » Logged
SteveInWA
Hero Member & Beta Tester
*****
Posts: 3970



« Reply #4 on: October 29, 2017, 10:07:45 am »

You can also use Google Hangouts to make and receive calls with a Google Voice telephone number.  Simply use Google Chrome Browser and go to this web page:  https://hangouts.google.com/

No extra software programs are needed to do this.
Logged

042DYA
Newbie
*
Posts: 7


« Reply #5 on: October 29, 2017, 12:00:37 pm »

Thanks DRGEOFF.  I did what you said but no luck.  I reset the OBi110 to factory defaults and then changed only what you stated in the post.  I have use of a Windows PC too to check configuration, so under Windows, do you have a softphone client and config for that to recommend?
Logged
SteveInWA
Hero Member & Beta Tester
*****
Posts: 3970



« Reply #6 on: October 29, 2017, 12:50:48 pm »

The SIP 486 error you are getting means "Busy here".  Ignoring the softphone for the moment, if your POTS line is plugged into the LINE port on the OBi, can you make and answer calls on it, using a standard analog telephone plugged into the phone jack on the OBi?
Logged

042DYA
Newbie
*
Posts: 7


« Reply #7 on: October 29, 2017, 02:29:18 pm »

Yes, using a standard analog phone, I can both dial and answer using the phone port on the OBi110.
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #8 on: October 29, 2017, 06:55:51 pm »

I have use of a Windows PC too to check configuration, so under Windows, do you have a softphone client and config for that to recommend?

I already had written the following for another user and didn't feel like changing it to SP1. If you are going to define GV on the OBi110, I think it makes more sense defining GV on SP1.

OBi110:
Service Providers -> ITSP Profile B -> SIP -> ProxyServer: 127.0.0.1
Service Providers -> ITSP Profile B SIP -> X_SpoofCallerID: Checked
Voice Services -> SP2 Service -> AuthUserName: OBi110
Voice Services -> SP2 Service -> X_RegisterEnable: unchecked
Voice Services -> SP2 Service -> X_ServProvProfile: B
Voice Services -> SP2 Service -> X_InboundCallRoute:
{OBi110:li},{ph}

Physical Interfaces -> Line Port -> InboundCallRoute:
ph,sp2(0@192.168.1.100:5060)
Change 192.168.1.100 to the IP address of the computer running Phonerlite.
5060 is the Port number for Phonerlite

Download and install Phonerlite:
http://www.phoner.de/PhonerLiteSetup.exe
When you start Phonerlite I think a wizard will popup because no accounts are defined.
Proxy: 192.168.1.100:5061      (IP addr & Port of SP2 on the OBi110)
Click right arrow.
User Name: OBi110
Click right arrow.
Change Profile Name: OBi110
Click check mark
Uncheck box next to Register
Save

Dial a number and click the green phone symbol.
You can use the keyboard to dial a number.
Click red phone symbol to hang up.
« Last Edit: October 30, 2017, 07:35:15 am by azrobert » Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #9 on: October 29, 2017, 07:25:43 pm »

Thanks DRGEOFF.  I did what you said but no luck.

drgeoff forgot the SP1 X_InboundCallRoute. When making a call with that config, the phone port will ring instead of routing the call to Line. If you don't have a phone plugged into the OBi110, a flashing phone port LED will indicate ringing. This will prove you are communicating with the OBi110.

I have Zoiper installed on Windows and I had more trouble getting it to work properly than any other softphone.

Here is my config:
SIP
Domain: 192.168.1.xxx:5061  (OBi110 IP and SP2 port)
UserName: OBi110
Password: anything
Outbound
Auth UserName: OBi110
Use outbound proxy: checked
Outbound proxy: 192.168.1.xxx:5061  

Zoiper can't register to an OBi110, so click the tab "Unregister"

This configuration should allow you to make outbound calls, but with audio problems. I had a one-way audio problem. I don't have time right now, maybe later tonight. I have to think about what I did to correct the audio problems.
« Last Edit: October 29, 2017, 09:28:31 pm by azrobert » Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2724


« Reply #10 on: October 29, 2017, 09:46:58 pm »

I hadn't forgotten about making outbound calls from the softphone.  The first sentence of my post did say "OK, the following should get incoming POTS calls ringing on your Mac and the CLI showing there too."  I hadn't got around to figuring out and testing the method for outbound calls.

For troubleshooting, some ideas and tips:

Even though you should not use a mix of the portal and the local interface to change settings it is perfectly OK to look at them using the local interface.  Indeed the Call History can only be viewed via the local interface.  The other useful tool is Call Status which gives a snapshot of the situation.  Note that this does not auto-update.  You need to click the Call Status link to get an update.

Split the problem in two by not using the softphone.  Change the LINE X_InboundCallRoute to spx(2233435945@sip2sip.info) where the x in spx is 1 or 2 depending on which one you are setting up with the 127.0.0.1.  Use your cellphone or whatever to call your POTS number and LENNY should answer.  ("Hello, this is Lenny".)  If that works revert back to the string for the softphone.

I have Zoiper on an Android device and haven't found there, or on the internet, how to make it call without SIP registration.
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #11 on: October 29, 2017, 10:51:33 pm »

A softphone can't register to an OBi110, therefore you need a phone that can call without registration. If it can't then outbound calls won't work.  Zoiper for Windows has this function, under Preferences just click on the tab "Unregister". Zoiper for Android doesn't have this option and I don't see any other way to turn off registration. Does Zoiper for MAC look like the Android or Windows version? If it looks like the Android version then you are SOL. You can register a softphone to an OBi200 or OBi202. I assume the new OBi212 that has a FXO port will also support registration.

Edit:
I just re-read your original post and it doesn't say anything about outbound calls. Maybe everything I posted was for nothing and drgeoff's post will meet your requirements.
« Last Edit: October 29, 2017, 10:58:33 pm by azrobert » Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #12 on: October 30, 2017, 07:53:44 am »

The default for Zoiper is to assign random Listening and RTP ports. You need to set a fixed Listening port for inbound OBi110 POTS calls to work. I had audio problems on Zoiper for Windows and needed to also set a fixed RTP port then used Port Forwarding in my router. I also set Port Forwarding for the listening and RTP ports on my OBi110.

These settings are accessed differently depending on OS. I don't know how these are accessed on a MAC. Here is how on other platforms.
Windows:
Settings -> Preferences Advanced -> Network

Under SIP and RTP uncheck box (Open random port)

iPad:
Settings -> Advanced
Slide SIP and RTP ports to Random Port off

Android:
Config -> Connectivity -> Listening Ports
Uncheck Random Port for SIP and RTP

I also recommend changing the Zoiper fixed Listening port to something other than the default 5060. If you need port forwarding it will need to be different than the OBi110 and also it will be harder for SIP Scanners to ring Zoiper.

OBi110:
Physical Interfaces -> Line Port -> InboundCallRoute:
ph,sp2(0@192.168.1.100:port)

Port is the Listening port on Zoiper.

Try testing without Port Forwarding and only set it if you have audio problems
________________________________

I had an error in my above post #8. I had SP1 routing inbound calls to Phonerlite. I changed it to the Line port.
« Last Edit: October 30, 2017, 07:56:55 am by azrobert » Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2724


« Reply #13 on: October 30, 2017, 09:22:20 am »

If the OBi110 and the softphone are on the same LAN subnet then the traffic between the two does not encounter the NAT in the router. So why would port forwarding be necessary?
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #14 on: October 30, 2017, 10:02:50 am »

If the OBi110 and the softphone are on the same LAN subnet then the traffic between the two does not encounter the NAT in the router. So why would port forwarding be necessary?

I can't explain it. All I know is it fixed my problem. That is why I recommended first testing without call forwarding and only use it if having audio problems.
Logged
042DYA
Newbie
*
Posts: 7


« Reply #15 on: October 30, 2017, 04:22:25 pm »

Everyone on this thread - thank you very much.  Your support and response has been nothing short of amazing.  My apologies for not being more clear in my opening ask...  yes, I definitely want to make and receive calls via the POTS line.  I will try the configuration guidance and let you all know how I make out.

Thank you again!
Logged
042DYA
Newbie
*
Posts: 7


« Reply #16 on: October 31, 2017, 01:40:41 pm »

Silly question... should I just buy the OBi212?  Would that make this easier?   At the end of the day all I want to do is use a softphone client to make and receive calls from my computer (Mac preferred) via my POTS line while at home.  It would be great to extend this beyond my firewall and have the same capability while I travel but that's a cool /nice to have.

Again, thank you for your help.  This forum is awesome.
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #17 on: October 31, 2017, 02:29:17 pm »

The OBi212 is basically the same setup except all the port numbers automatically get resolved with registration, so it is an easier setup. One example is you can route inbound calls to Local_Client instead of IP address and port.

I don't think you can use this method when travelling. Outbound calls might work, but I don't think inbound will. You can use another method when travelling.

Did you try using Phonerlite or Zoiper with the OBi110? How far did you get?
Logged
042DYA
Newbie
*
Posts: 7


« Reply #18 on: November 01, 2017, 07:13:18 pm »

Again, thank you all very much for your help and patience - especially drgeoff and azrobert.

I am up and running!!!  I am using X-Lite softphone on my Mac.  Setup was easy using the examples you provided for Phoner and Zoiper.

I am amazed that with all the various settings available it only took less than 10 to make this work.

Giving back, here is my config:

OBi110 @ 192.168.1.29
iMac @ 192.168.1.100

OBi110 Configuration
ITSP Profile B > SIP > ProxyServer > 127.0.0.1
ITSP Profile B > SIP > X_SpoofCallerID > Checked
SP2 Service > X_ServProvProfile > B
SP2 Service > X_InboundCallRoute > {OBi110:li},{ph}
SP2 Service > X_RegisterEnable > UnChecked
SP2 Service > AuthUserName > OBi110
SP2 Service > AuthPassword > password
LINE Port > InboundCallRoute > ph,sp2(0@192.168.1.100:5060)

X-Lite Configuration
Sip Account > Account Name > OBi110
Sip Account > General> User Details > User ID > OBi110
Sip Account > General> User Details > Domain > 192.168.1.29:5061
Sip Account > General> User Details > Authorization name > OBi110
Sip Account > General> Domain Proxy > Register with domain and receive calls > Unchecked
Sip Account > General> Domain Proxy > Send outbound via > Domain > Checked
Sip Account > General> Domain Proxy > Send outbound via > Address > 192.168.1.29:5061
Sip Account > Topology > Firewall traversal method > None > Checked
Sip Account > Topology > Range of ports used on local computer > Checked
Sip Account > Topology > Range of ports used on local computer > 5060 - 5060
Sip Account > Advanced > Use SIP Outbound > Checked

All else defaults.

I can make and receive calls on my iMac!!!

Thank you again.
Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3203


« Reply #19 on: November 01, 2017, 09:26:12 pm »

Once I get this working - the POTS line - I would like to Google Voice on SP2.
It's very easy to include GV. After you define the GV trunk, you just need to modify the inbound route. You need to identify the numbers for each trunk. You can use a prefix or something like 10 digits to GV and everything else to Line.

SP2 Service > X_InboundCallRoute > {OBi110>(xxxxxxxxxx):sp1},{OBi110:li},{ph}
or
SP2 Service > X_InboundCallRoute >  {OBi110>(<**1:>xx.):sp1},{OBi110:li},{ph}
This will remove the prefix before sending to SP1
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC