Firstly, an apology. This subject has been changing as we have been posting, so there has been some confusion. Secondly, please bear with me. On this forum we are all amateur OBi users like yourself just helping each other out, we do not work for Obihai. This is a big subject for someone new to OBi – you are diving into the deep end. Hey, penguins are good swimmers, you should be ok
The principles:
Calls from OBi to CSipSimple via sip2sip, leave OBi as:
aaaaaaaa@sip2sip.info
Where aaaaaaaa is your sip2sip username.
sp3(aaaaaaaa@sip2sip.info) tells the OBi to send the call out via sp3.
Calls from CSipSimple to OBi via sip2sip, leave CSipSimple as:
**7xxxxxxxxxxx@yourpublicipaddress:5062
Where **7 is for routing in OBi. xxxxxxxxxxx is the number dialled. @yourpublicipaddress is your router public WAN address. (This may be in format
xx.xxx.xxx.xxx. If this is likely to change you may consider using a free dynamic dns provider to get a fixed address something like @penguin.ddns.com). 5062 is the port number associated with sp3 in the OBi, so it tells the router to send the call there.
On arrival at your router, the router will remove the @yourpublicaddress and use 5062 to route the call to sp3 InboundCallRoute. OBi will remove the **7 and route the call according to the InboundCallRoute rules.
CSipSimple:
Assumes a sip2sip account set up already.
Settings > User Interface > Dialer integration : check
Settings > User Interface > Call logs integration : check
Settings > Filters > sip2sip > Add filter / rewrite rule > Rewrite > All > Prefix by : **7
Settings > Filters > sip2sip > Add filter / rewrite rule > Rewrite > All > Suffix with : @yourpublicipaddress:5062
Yes, I agree filters are a bit hard to get the hang of!
Now, using the native android dial pad (not the CSipSimple dial pad), when you select a contact or input digits, you will be given a choice to send using mobile or sip2sip.
Router:
Obihai recommends that you port forward the following ports:
Allow Outgoing:
TCP Ports: 6800, 5222, 5223
UDP Ports: 5060 to 5063, 10000 to 11000, 16600 to 16998, 19305
Allow Incoming on UDP Port: 10000
I'm sorry I'm not much of a router expert. Under "Open Port" mine has fields "Start Port", "End Port" , "Local Host". "Local Host" is the OBi address such as 192.168.x.xx
OBi202:
We do not need the sip2sip account set up on the OBi. Please remove those settings and replace with the following:
Service Providers -> ITSP Profile C -> SIP -> ProxyServer : 127.0.0.1
Service Providers -> ITSP Profile C -> SIP -> X_SpoofCallerID : checked
Voice Services -> SP3 Service -> Enable : (checked)
Voice Services -> SP3 Service -> AuthUserName : (any letters or numbers)
Voice Services -> SP3 Service -> X_RegisterEnable : (unchecked)
Voice Services -> SP3 Service -> X_ServProvProfile : C
Voice Services -> SP3 Service -> X_UserAgentPort : 5062
Voice Services -> SP3 Service -> CallerIDName : Whatever
Voice Services -> SP3 Service -> MaxSessions : 4
Voice Services -> SP3 Service -> X_InboundCallRoute (Assumes Primary Line is set to sp2):
{(Mcot)>(<**7**1:>(Msp1)),(Mcot)>(<**1:>(Msp1)):sp1},{(Mcot)>(<**7**2:>(Msp2)),(Mcot)>(<**2:>(Msp2)):sp2},{(Mcot)>(<**7**3:>(Msp3)),(Mcot)>(<**3:>(Msp3)):sp3},{(Mcot)>(<**7**4:>(Msp4)),(Mcot)>(<**4:>(Msp4)):sp4},{(Mcot)>(<**7**9:>(Mpp)),(Mcot)>(<**9:>(Mpp)):pp},{(Mcot)>(<**7:>(**0)),(Mcot)>**0:aa},{(Mcot)>(<**7:>(***)),(Mcot)>***:aa2},{(Mcot)>(<**7:>(Msp2)),(Mcot)>(Msp2):sp2},{(Mcot)>(<**7:>(0)),(Mcot)>0:ph,ph2},{ph,ph2}
User Settings > User Defined Digit Maps > User Defined Digit Map2 > Label : cot
User Settings > User Defined Digit Maps > User Defined Digit Map2 > DigitMap : (aaaaaaaa)
Where aaaaaaaa is your sip2sip username.
No need to change any "Mcot"s, OBi will substitute your sip2sip username by using the cot DigitMap.
Dialling from your android phone native key pad, selecting the sip2sip option to send:
**1xxxxxxxxxxx > Acrovoice on sp1
xxxxxxxxxxx > GV on sp2 (no need for ** code as this is your Primary Line)
**0 > Obi auto attendant
0 > Rings both OBI phones
I'm not sure why your speed dial did not work. No digit maps etc are involved with this format:
sp3(aaaaaaaa@sip2sip.info)
It is a lot of information all in one go. Feel free to come back for more.