To have autostart OBiapps in Linux, you need the following
1. a working linux server
2. install vncserver and have it start upon booting.
e.g. chkconfig on vncserver
3. I am using root to start asterisk and hence, the obiapps should be started by root
There should be other way to start as different users, but I don't know the answer yet.
4. in your favorite x-windows environment, I like gnome. You need to install wine.
In Centos 5.5, yum install wine should do
5. copy the Obiappsetup application from windows PC or download directly from the internet
6. use wine to install obiapp. Using the default program position should be ok
7. use wine to run obiapp the first time to enter your login information.
Or create a scripts to run it as below
#!/bin/bash
Xvfb :4 -screen 0 800x600x24&
export DISPLAY=localhost:4.0 &
DISPLAY=localhost:4.0 wine "C:\\Program Files\\OBIHAI\\obiapp.exe" > /dev/null
sleep 300
asterisk -rx "reload"
Remember sometimes, it takes a while for wine obiapps to start up. Asterisk may show failure to register, timeout or rejected.
Do a "asterisk -rx reload" will update the status
Please note that while your asterisk registers the Obiapp soft client as the usual lan IP, but in the outgoing context you need to have another IP address. I.e. what I described before to use webmin to create a virtual network interface for your linux server.
Great illustrated tutorial with detailed explanation. Thanks ckleea for so generous sharing such that we can have an easy way to get the OPiAPP work in Linux Server with Asterisk.
My pleasure. This is especially for those with a linux server.
I think OBi110 should be placed at place where people not reading understand ATA/VOIP. They pick up the phone and press a few speed dial to connect their friends and relatives.
For us, with an asterisk server or IP01, we should work to integrate into our system.
OPiAPP can autostart with Linux Server boot-up now. However, it goes back to use its own default sip port 5060 to register every time I reboot the machine. I still have to manually change it to other port (say 15062) to match my configuration in sip.conf.
Don't get me wrong! I'm not challenging the correctness to your great tutorial. It is very useful indeed. The sound quality is very good and it works smoothly during the course of installation.
I just want to see if OBiApp can remember my port setting changed to the one other than its original port 5060.
I did it after 3 more trials to re-install the OBiApp. It finally remembers my sip ports with unknown reasons. Above all, it works now. Try and try and try is the best way to resolve the problem.
Thanks again for ckleea c-hing's tutorial. For me, the sound quality from OBiApp is of no much difference from that of OBi110. A very good learning and usage experience.
I just asked bubblestar CHing for calling me to evalue performance of the Linux + OBiAPP by calling my OBi110. The performance was very good that I did not find any difference between the OBi110 and Linux + OBiAPP. The following figure shows the call status of my OBi110.