Installing Sangoma cards under Linux

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux this being the necessary piece of software needed in ...")
 
Line 6: Line 6:
 
* Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
 
* Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
 
* Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
 
* Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
* Next you’ll determine the processor type by running the uname ¬–m command. Consider this string item number 3.
+
* Next you’ll determine the processor type by running the uname –m command. Consider this string item number 3.
  
 
Now you can choose the appropriate RPM which will have the name:
 
Now you can choose the appropriate RPM which will have the name:
Line 26: Line 26:
 
Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.
 
Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.
  
If you have a custom built kernel you should use the source packages for installing as stated in the beginning. Maybe the simple way to do this is to build the RPM from the sources and follow the above steps. This is what we will explain in the next secion. The actual building and installing from the sources with further configuration will be described in Chapter IV of this manual.
+
If you have a custom built kernel you should use the source packages for installing as stated in the beginning. Maybe the simple way to do this is to build the RPM from the sources and follow the above steps. This is what we will explain bellow.
  
 
After downloading and unpacking the sources building a custom RPM will be done using the following command:
 
After downloading and unpacking the sources building a custom RPM will be done using the following command:
Line 32: Line 32:
 
  ./Setup buildrpm –with-linux=[absolute path of the linux sources]
 
  ./Setup buildrpm –with-linux=[absolute path of the linux sources]
  
The optional path is as default /usr/src/linux. It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.
+
The optional path is as default ''/usr/src/linux''. It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.
 
After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.
 
After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.

Revision as of 16:30, 20 May 2013

The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux this being the necessary piece of software needed in order for Sangoma cards to work. The simple way of doing this is to download the appropriate RPM. If you have a custom built Linux kernel you should use the source packages although.

The appropriate RPM can be downloaded from ftp://ftp.sangoma.com/linux/RPMS/ . To choose the compatible RPM for your system the following actions must be taken:

  • Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
  • Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
  • Next you’ll determine the processor type by running the uname –m command. Consider this string item number 3.

Now you can choose the appropriate RPM which will have the name:

wanpipe-[version].[item1].[item2].[item3].rpm

To install the RPM run

rpm -i --force [the rpm name]

The force option is required to override the old modules.

To configure the driver you should run

/usr/sbin/wancfg

More info about that you will find out in the appropriate section of the manual.

Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.

If you have a custom built kernel you should use the source packages for installing as stated in the beginning. Maybe the simple way to do this is to build the RPM from the sources and follow the above steps. This is what we will explain bellow.

After downloading and unpacking the sources building a custom RPM will be done using the following command:

./Setup buildrpm –with-linux=[absolute path of the linux sources]

The optional path is as default /usr/src/linux. It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory. After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers