News:

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

Main Menu

Simple case - Can I use sip app on my Android cell phone as extension for 202?

Started by ericw12, May 18, 2015, 10:45:35 PM

Previous topic - Next topic

ericw12

I have an Obi202 and I have SP4 free not used for anything.

I just want to be able to use the sip app on my Android phone as an extension for my Obi202, so I can make and receive calls on my Android phone through Obi202 when I am connected to my home network.

Obi is best VOIP ATA, right? I should be able to do this... somehow? I just could not find any information on this.

Any help would be greatly appreciated!

azrobert

Create a free Sip2Sip account here:
https://mdns.sipthor.net/register_sip_account.phtml

Install CSipSimple on your Android.

In CsipSimple:
Select Add Account
Select the Basic Wizard. It's near the end of the list.

Account Name: Anything
User: Sip2Sip_ID
Server: sip2sip.info
Password: Sip2Sip_PW
Save

Select Menu on phone
Select Settings
Select Filters
Select your newly created Account
Select add filter
Select 1st entry (Can't call) and change it to Rewrite.
Select 2nd entry (Starts with) and change it to All.
Select 3rd entry (Replace...) and change it to Suffix With.
4th entry: @xx.xx.xx.xx:5061
save

Sip2Sip_ID and Sip2Sip_PW are the name and password you selected when you created your account.
xx.xx.xx.xx is your public IP address assigned to your modem by your ISP.
5061 is the UserAgentPort of SP2.
If you're not using SP2 then change 5061 to the corresponding SP port#.
You MUST dial from the Android Dialer and not the CSipSimple Dialer.
Filters won't work from the CSipSimple dialer.

Configure OBi
Voice Services -> SP1 Service
X_InboundCallRoute: {ph,sp2(Sip2Sip_ID@sip2sip.info;ui=$1)}

Voice Services -> SP2 Service
X_InboundCallRoute: {Sip2Sip_ID>0:ph},{Sip2Sip_ID>(1xxxxxxxxxx):sp1},{ph}

This assumes your service provider is defined on SP1 and SP2 is defined as SIP.
You need to port forward 5061 in your router to the OBi's IP address.
IF you have audio problems you will also have to port forward RTP ports 16800 thru 16998.
That's 199 ports.
See: Service Providers -> ITSP Profile A -> RTP -> LocalPortMin/Max
Use Port Range Forwarding to avoid having 199 entries in you router.

Dialing 14805551212 will be routed out SP1.
You can change "(1xxxxxxxxxx)" in the inbound route to anything you want including "(Msp1)" to point to the ITSP A DigitMap.

Dialing 0 will ring the OBi phone port.
Inbound calls will ring the OBi phone port and your Android.

If SP2 is not defined, setup a dummy SIP definition like this:
Service Providers -> ITSP Profile B -> SIP -> ProxyServer : 127.0.0.1
Voice Services -> SP2 Service -> AuthUserName : (any userid)
Voice Services -> SP2 Service -> X_RegisterEnable : (unchecked)
Voice Services -> SP2 Service -> X_ServProvProfile : B

Edit:
This setup will work anywhere.

azrobert

This setup is when CSipSimple is used on the same LAN as the OBi.
CSipSimple is setup without registration.
You must use the Expert wizard to set no registration, but I find it easier to define an account with the Basic wizard then switch to the Expert Wizard.
CSipSimple requires a password.
Use any dummy password.
This example uses SP2 on the OBi and it must be defined as SIP.

In CSipsimple add a new account.
Select the BASIC wizard
Account name = OBixxx
User = OBixxx
Server = xx.xx.xx.xx:5061        (OBi IP address and SP2 port#)
Password = anything
SAVE

Press and hold on the account name.
When a new screen appears, select "Choose Wizard".
Select Expert.
Select your account again.
Select Registration URI and blank it out, then ok.
SAVE

Return to the dial pad
Press Menu on the phone
Select Settings
Press Menu on the phone again
Select Expert Mode
Select Network
Select UDP Port
It should be zero, change it to 5060
OK
This did not change the port for me
I had to go into Settings/Apps and force a stop on CSipSimple
The port changed when I restarted CSipSimple
Maybe if you do this 1st before defining the account you won't have to do a restart

OBi Setup:

If SP2 is not defined, setup a dummy SIP definition like this:

Service Providers -> ITSP Profile B -> SIP -> ProxyServer : 127.0.0.1
Voice Services -> SP2 Service -> AuthUserName : (any userid)
Voice Services -> SP2 Service -> X_RegisterEnable : (unchecked)
Voice Services -> SP2 Service -> X_ServProvProfile : B

This will process outbound calls and route them to SP1:
Voice Services -> SP2 Service -> X_InboundCallRoute:
{OBixxx>(1xxxxxxxxxx):sp1},{ph}       (OBixxx must match User in CSipSimple)

This will send inbound SP1 calls to CSipSimple:
Voice Services -> SP1 Service -> X_InboundCallRoute:
ph,sp2(anything@xx.xx.xx.xx:5060)       

xx.xx.xx.xx is the IP address of your Android
5060 is the UDP port defined in the Android setup

This will pass callerid and cnam:
Service Providers -> ITSP Profile B -> SIP -> X_SpoofCallerID : Checked

Dial 18005551212 to route a call toSP1
Dial 0 or anything other than 1xxxxxxxxxx to ring the phone port



ericw12

Hi azrobert,

Thank you for instruction.

I got my phone registered with the SP4 on my 202 as extension 1001

However, if I make call, I got an error 404.


Any idea?

Thanks!

azrobert

404 response code means "Not Found".
I don't know what would cause this error.

Is this how you setup the OBi202?
ProxyServer: 127.0.0.1
X_Proxy: Checked
AuthUserName: 1001
AuthPassword: password
X_RegisterEnable: Unchecked

In OBi Expert go to Status/System Status
The SP4 Status should look like this:
Registration Not Required;local_client=xx.xx.xx.xx:5060
Where xx.xx.xx.xx is the IP address of your Android.

For a test change SP4 X_InboundCallRoute to: ph
Now try a call.
Does the OBi202 phone port ring?  

Edit:
What softphone are you using?

OzarkEdge

Quote from: ericw12 on May 18, 2015, 10:45:35 PM
I just want to be able to use the sip app on my Android phone as an extension for my Obi202, so I can make and receive calls on my Android phone through Obi202 when I am connected to my home network.

Other options...

Pair your smartphone with your OBi using an OBiBluetooth USB adapter.

Register a softphone like CSIPSimple on your smartphone with a sub-account with your ITSP.
Route your DID to a ring group that includes your OBi and your softphone.  Use the softphone over any WiFi, home or away.

OE

ericw12

I am using CSipSimple.

Screenshots of my configuration are attached.


The only things in my System Status are: ModelName, MacAddress, SerialNumber, OBiNumber.  There is a link called "SP Service Stats" under it, but it always returns "Cannot retrieve requested information from the device now. Please try again later."

gsmlnx

Shouldn't X_ServProvProfile be set to D if you want to link SP4 to ITsp D

azrobert

You are using UserAgentPort=5061
Did you also change SP2's UserAgentPort?
I don't know what will happen if SP2 and SP4 use the same port

azrobert

QuoteThere is a link called "SP Service Stats" under it, but it always returns "Cannot retrieve requested information from the device now. Please try again later."

This is not good.
Log directly into the OBi using the local interface.
Key the IP address of the OBi into a Web Browser.
Hit Enter
The UserID and default Password are both "admin".
You will be presented the System Status.