News:

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

Main Menu

OBi with devices requiring registration

Started by azrobert, June 16, 2013, 08:27:10 AM

Previous topic - Next topic

azrobert

A device that requires registration will not work directly with an OBi. This setup will allow any device that requires registration to access trunks on an OBi via a Yate Server. Yate server is free and is licensed under General Public License. I setup mine on a Windows machine, but Yate will run on several platforms. Yate is very easy to setup and only requires 2 configuration files which I supply.

The Yate install process took 1 1/2 minutes. Including the config files and the OBi changes you could be up in 15 minutes.

This guide is for an OBi110, but can be modified for any OBi model.
GV is assumed to be defined on SP1.

Download Yate Windows binary here:
http://yate.null.ro/pmwiki/index.php?n=Main.Download

Run Setup taking the defaults. Select "Create Desktop Icon".

Create file regexroute.conf (Dial Plan) using Notepad with following code:
[priorities]

[$once]

[$init]

[extra]

[contexts]

[default]

${rtp_forward}possible=;rtp_forward=yes

^100$=;called=100
^100$=return

^1\?\([0-9]\{10\}\)$=sip/sip:1\1@192.168.1.100:5061
^\([0-9]\{7\}\)$=sip/sip:1480\1@192.168.1.100:5061
^\(2[0-9]\{10\}\)$=sip/sip:\1@192.168.1.100:5061
^\(9[0-9]\{10\}\)$=sip/sip:\1@192.168.1.100:5061
^\(9[0-9]\{7\}\)$=sip/sip:\1@192.168.1.100:5061
^\(011[0-9]\{5,\}\)$=sip/sip:\1@192.168.1.100:5061
^\(110\)$=sip/sip:\1@192.168.1.100:5061

^.*$=tone/info


192.168.1.100 is the IP address of the OBi110.
480 on 2nd rule is your local area code for 7 digit dialing.
You will get an Info Tone if you dial an invalid number.

Create file regfile.conf (Extension Def.) using Notepad with following code:
[general]

[100]
password=password


If you want to change the default listening port 5060,
Create file ysipchan.conf using Notepad with following code:
[general]
port=xxxx


Change xxxx to any port you want. Also, use this port number instead of 5060 in this guide.

Do NOT save these files as .txt files.
Move the above files to:
Program Files -> Yate -> conf.d

A Desktop Icon was created in the install process.

To start Yate double click the yate-console Desktop Icon.
To auto-start on boot move or copy the Desktop Icon to the Startup folder.

You can alternately run Yate as a service.
The install automatically defines Yate as a service.
Go to Control Panel -> Admin Tools -> Services and start "Yet Another Telephony Engine".
To auto-start on boot right click on "Y A T E", click Properties, Startup Type=Auto

On the OBi110

This setup requires SP2 to be defined as SIP.
If SP2 is not configured, 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

Route calls from Yate to the trunks
Voice Services ==> SP2 Service
X_InboundCallRoute:
{100>(1xxxxxxxxxx):sp1},{100>(<2:1>xxxxxxxxxx|011xx.):sp2},{100>(<9:1>xxxxxxxxxx|<9:>xxxxxxx):li},{ph}

Do following to allow CID to pass:
Service Providers ==> ITSP Profile B ==> SIP
X_SpoofCallerID: Checked

Setup OBi110 to call extn 100.
Add after the beginning  parenthesis of your Phone Port DigitMap:
100|

Add to the beginning of your Phone Port OutboundCallRoute:
{100:sp2(100@192.168.1.100:5060)},

192.168.1.100 is the IP address of the computer running the Yate Server.

Inbound SP1 calls forked to Yate extension 100.
Voice Services ==> SP1 Service
Replace X_InboundCallRoute:
{ph,sp2(100@192.168.1.100:5060;ui=$1)}

Register your device as extension 100 on Yate.
Credentials for the softphone/device:
ProxyServer: xx.xx.xx.xx:5060
UserName: 100
Password: password

For devices on the WAN xx.xx.xx.xx is your public IP address assigned by your ISP.
Port forward 5060 in your router to the IP address of the computer running the Yate Server.

For devices on the LAN xx.xx.xx.xx is the IP address of the computer running Yate.



Dialed numbers 1xxxxxxxxxx, xxxxxxxxxx and xxxxxxx will be routed out SP1.
Dialed numbers 2xxxxxxxxxx will be routed out SP2 as 1xxxxxxxxxx.
Dialed numbers 011xx. will be routed out SP2.
Dialed numbers 9xxxxxxxxxx and 9xxxxxxx  will be routed out the line port without prefix.
Dialing 110 will ring the phone port on the OBi.
Dialing 100 on the OBi110 Phone port will ring extension 100.

Inbound calls on SP1 will be forked to extension 100. You can do the same for SP2 and Line.

Atrocia

Hi,

Thanks for this. I'm trying to get my softphone to work with Yate. I've set up Yate on a Debian system, trying to follow your instructions. It's running, but I'm not sure I've done everything right. I can't get the Yate client to talk to the server (on the same machine). Can you please provide more detailed instructions for how to configure the client?