返回列表 發帖

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

successful registration by asterisk to OBiApps (all within my linux server) made

screenshot.24-03-2011 06.32.50.jpg (55.9 KB)

screenshot.24-03-2011 06.32.50.jpg

TOP

Further testing in dialing in and out will be made later

TOP

我估計已經解決

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

Enjoy.

TOP

Result as shown

screenshot.24-03-2011 07.17.53.jpg (80.8 KB)

screenshot.24-03-2011 07.17.53.jpg

TOP

I tried further. I can call in via my OBiOn -> asterisk -> what ever thing you want.

TOP

Basically it works very well, but I need fine tuning and redesign of the dialplan.

TOP

本帖最後由 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]

  1. register = 290XXXXXXX@192.168.xxx.xxx:15062/290XXXXXXX
複製代碼


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
  1. [obitalk]
  2. disallow = all
  3. allow = ulaw
  4. allow = alaw
  5. allow = gsm
  6. host = 192.168.xxx.yyy
  7. insecure = port,invite
  8. dtmf = rfc2833
  9. secret =
  10. type = friend
  11. fromuser = 290XXXXXXX
  12. username = 290XXXXXXX
  13. context = from-obitalk
  14. 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
  1. [CallingRule_obitalk]
  2. exten => _815.,1,Dial(SIP/**9${EXTEN:3}@obitalk,60)
  3. exten => _815.,n,Hangup()
複製代碼


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.

screenshot.1.jpg (47.32 KB)

Success

screenshot.1.jpg

11032406454ed3e2df6c5cd73f.jpg (55.9 KB)

11032406454ed3e2df6c5cd73f.jpg

TOP

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

TOP

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

TOP

回復 4# ckleea

register => 29xxxxxxxx@127.0.0.1/29xxxxxxxx (/29xxxxxxxx is very important)

The local IP 127.0.0.1 does not work. It should be replaced by the exact IP of the Asterisk server.

YH

TOP

My ObiApp configuration is

sip.conf
  1. register => 290xxxyyy@192.168.1.103:5060/290xxxyyy

  2. [obitalk]
  3. type = friend
  4. host = 192.168.1.103
  5. fromuser = 290xxxyyy
  6. username = 290xxxyyy
  7. secret =
  8. port = 5060
  9. disallow = all
  10. allow = ulaw
  11. allow = alaw
  12. allow = gsm
  13. dtmf = rfc2833
  14. context = from-obitalk
複製代碼
extensions.conf
  1. [trunk-obitalk]
  2. exten => _105.,1,Dial(SIP/${EXTEN:3}@obitalk,60)
  3. exten => _105.,n,Hangup()
  4. [internal]
  5. include => trunk-obitalk

  6. exten => 3000,1,Dial(SIP/3000,,r)
  7. exten => 3001,1,Dial(SIP/3001,,r)

  8. [from-obitalk]
  9. exten => 290xxxyyy,1,DIAL(SIP/3000,,r)
複製代碼

TOP

返回列表