標題: Windows client - OBiApps and Centos Linux Server connection - success [打印本頁] 作者: ckleea 時間: 2011-3-23 09:09 標題: Windows client - OBiApps and Centos Linux Server connection - success
本帖最後由 ckleea 於 2011-3-24 14:06 編輯
Success has been made to use OBiApps in Centos with Wine support.
My softphone can connect and register the OBiApps proxy from my remote Windows PC.
Dial in and out are ok.
But I do not have a native softclient in linux to test out.
Also as reported somewhere, I am not able to make asterisk to register
It either says 404 not found, do not implement 'Register' or time out作者: ckleea 時間: 2011-3-24 06:45
successful registration by asterisk to OBiApps (all within my linux server) made
Further testing in dialing in and out will be made later作者: ckleea 時間: 2011-3-24 07:29
我估計已經解決
1. you need a linux server
2. install wine support
3. 2 network card or virtual network card.
4. install OBiApps and run by wine
5. change your default OBiApps sip port to other
6. start OBiApps to register
7. in sip.conf [General]
register => 29xxxxxxxx@127.0.0.1/29xxxxxxxx (/29xxxxxxxx is very important)
8 add a context for dial out, using a different network port. Otherwise you will receive loopback detect
9. a context in extension to dial out
I tried further. I can call in via my OBiOn -> asterisk -> what ever thing you want.作者: ckleea 時間: 2011-3-24 08:03
Basically it works very well, but I need fine tuning and redesign of the dialplan.作者: ckleea 時間: 2011-3-24 13:07
本帖最後由 ckleea 於 2011-3-24 13:55 編輯
Set up as follow
I assume you have a centos linux server set up for asterisk
1. yum install wine
(you also need XWindows, either gnome or KDE; and also install VNC server)
2. copy the OBiApps middleware from here http://www.obihai.com/firmware/OBiAPPsetup.exe and copy to your linux server
3. I use VNC remotely to do the following
a. install OBiApps by running wine explorer first at linux terminal, look for OBiAPPsetup.exe and install it as usual windows PC program
b. run the OBiApps from the explorer. It is located at the c-drive Programs Files/OBiHai
c. configure the login and user account, change the SIP port to other
d. once login, you can see the client just the same as what you see in Windows PC environment
4. Next is use webmin to enable/add virtural network interface (this is very important)
Alternatively, if you an extra network card, you may bind the OBiApps incoming to this address.
5. in sip.conf, have the following added in [General]
192.168.xxx.xxx is the physical ip of your server
15062 is different sip port to avoid conflict with my asterisk server
/290XXXXXXX is also important to allow you to register asterisk as a sip client at OBiApps
6. add a context in sip.conf
[obitalk]
disallow = all
allow = ulaw
allow = alaw
allow = gsm
host = 192.168.xxx.yyy
insecure = port,invite
dtmf = rfc2833
secret =
type = friend
fromuser = 290XXXXXXX
username = 290XXXXXXX
context = from-obitalk
port = 15062
複製代碼
Please note that a virtual network ip at 192.168.xxx.yyy is important here to avoid loopback detected. Otherwise you can't dial out.
7. In extensions.conf, add a outbound calling rule as
For inbound, you need something like this in extensions.conf
exten => 290XXXXXXX,Goto(default,1001,1)
or
exten => 290XXXXXXX,DIAL(SIP/6ZZZ,r)
8. at the end, do an reload in asterisk CLI or in linux terminal execute service asterisk restart
9. OBiApps may require to logout and login again.
10. At the end you can have this
I have not figured out how to auto start a wine application in linux. So in case of reboot, I need to relaunch the OBiApps each time.
I also have not figured out if I can start more than one copies of OBiApps under wine in linux. It will be very useful if you want to have 2 or more OBiTALK soft client accounts.
I use OBiOn apps to test again few minutes ago. Quality is generally acceptable.
Pathway is
OBiOn (3G connection) --> OBiApps at my linux server --> Asterisk server --> HKBN 2b out --> HK mobile作者: ckleea 時間: 2011-3-24 14:04
The latency between OBiApps and Asterisk is 1 ms. For your information,
my siptosis skype generally has 2 to 3 ms, my Siemens IPphone has 60 - 80 ms.
For IPtel, it is about 266 ms
OBi110 SP2 which registered with asterisk is 9 ms作者: 角色 時間: 2011-10-9 22:56