(Created page with "In Ear Headphones are generally headphones that directly placed within the ears. They are tailored and so which they can be held at the particular opening of the particular ea...")
 
(Updated for Asterisk 11.11.0)
 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
In Ear Headphones are generally headphones that directly placed within the ears. They are tailored and so which they can be held at the particular opening of the particular ear canal, nevertheless certainly not all versions of these headphones enter the ear canal. They lead that would the opening of the actual canal, without actually enveloping the particular ears.  
+
== Prerequisites ==
These days, adults regularly prefer the particular Best In Ear Headphones over the particular additional types of headphones as a result of their little size and also less weight. Many of these usually are extremely lightweight; consumers wearing these headphones tend in order to forget which they include something in their ears. This has led them in order to be extremely common. Lots of consumers tend to be curious as in order to how to be able to wear best In Ear Headphones, however they can be easily worn throughout any kind of activity, for example in the course of traveling or simply exercising, as of their light weight. This particular is another reason for their immense popularity.  
+
 
A indication of the popularity of the best In Ear Headphones is detected within the way firms bundle many of these headphones along with their music devices as well as mobile phones. The actual most prevalent could be the particular ones which are generally bundled with all the iPods. These headphones currently have a knoblike ending which goes directly into the actual ear. To protect the particular ear from the difficult plastic which makes them up, there are really rubberized rims provided in order to the actual knobs. Thanks to be able to technological advances, there are generally even wireless best In Ear Headphones being produced nowadays.  
+
=== ncurses ===
There are really various variations of best In Ear Headphones available today, that happen to be made by various manufacturers. One popular version is the particular canalphone. With regard to this version, the actual ear bud goes completely into the actual ear canal. The actual benefit typically is that the actual listener gets a more dynamic sound than the actual Best In Ear Headphones will likely provide. Due to the actual truth which the particular ear bud communicates better with all the ear canal, indeed there typically is less loss of noise. There is actually a wellness aspect that would this particular. As a result of the actual high top quality sound, the actual listener usually set the particular volume at low levels. This causes less hearing loss. Then again, with the best In Ear Headphones, the actual listener would grow the volume simply to be able to shut out the outside noise. This particular might be detrimental to be able to the actual person's hearing sense over prolonged usage. Which typically is the actual reason the canalphones are really referred in order to because the particular best In Ear Headphones.  
+
 
Right now there is a very high range of price for sale with many of these headphones not to mention hence you will need that would shop carefully. Various brands currently have different costs, as well as throughout a large number of cases you may know which the particular more prevalent a particular brand is, the actual higher than average is actually the cost that it has. Nevertheless, utility not to mention standard are generally choosing factors for the particular price too. The particular Best In Ear Headphones may cost hundreds of dollars, particularly if you're looking for the in-ear wireless headphones. Most electronic devices is going to grant a set of headphones freely bundled with their products. Nevertheless if you desire to be able to purchase yet another pair later on, you can know that they do have significant price tags.  
+
Download, build and install the ncurses library:
A person can certainly get this particular sort of headphones at any kind of electronic store, or perhaps more easily online. A few people refer to them because earphones, thus buyers will probably be more easy receiving a pair in the event you incorporate this name. Anyone may equally purchase the actual headphones over the particular Web. Right now there is actually a great deal of variety in order to select from over the actual Web. You can discover which the particular varieties that anyone don't normally receive in your individual surrounding area are generally as well conveniently accessible found on the Web. Your needs may furthermore know the best In Ear Headphones at lower price ranges than they happen to be normally accessible within stores.
+
 
Go look at the best In ear headphones by exploring [http://www.thebestinearheadphones.com Best In Ear Headphones]
+
<PRE>
 +
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
 +
tar -xzf ncurses-5.9.tar.gz
 +
cd ncurses-5.9
 +
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi CXX="arm-linux-gnueabi-g++"
 +
make
 +
make install
 +
</PRE>
 +
 
 +
=== SQLite ===
 +
 
 +
[http://sqlite.org/ SQLite] is a software library that implements a self contained server-less transactional SQL database engine.
 +
 
 +
<PRE>
 +
wget https://sqlite.org/2014/sqlite-autoconf-3080500.tar.gz
 +
tar -xzf sqlite-autoconf-3080500.tar.gz
 +
cd sqlite-autoconf-3080500
 +
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi
 +
make
 +
make install
 +
</PRE>
 +
 
 +
=== OpenSSL ===
 +
 
 +
Certain Asterisk modules such as chan_sip and chan_iax2 require the res_crypto resource module. The res_crypto module will only be built if the libssl dependency is installed.
 +
 
 +
<PRE>
 +
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
 +
tar -xzf openssl-1.0.1h.tar.gz
 +
cd openssl-1.0.1h
 +
./Configure linux-generic32 shared --prefix=/usr/arm-linux-gnueabi
 +
make CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld MAKEDEPPROG=arm-linux-gnueabi-gcc
 +
make install CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld
 +
</PRE>
 +
 
 +
=== BlueZ Bluetooth Libraries (Optional) ===
 +
 
 +
If you want to use chan_mobile to connect asterisk to your mobile phone via Bluetooth, then you will require the Bluetooth libraries and header files installed at this point.
 +
 
 +
See [[Cross_Compiling_BlueZ_Bluetooth_tools_for_ARM|Cross Compiling BlueZ Bluetooth tools for ARM]]
 +
 
 +
== Asterisk ==
 +
 
 +
With all our prerequisites built, you can now download, build and install Asterisk:
 +
 
 +
<PRE>
 +
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.11.0.tar.gz
 +
tar -xzf asterisk-11.11.0.tar.gz
 +
cd asterisk-11.11.0
 +
./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686-pc-linux-gnu --disable-xmldoc
 +
make menuselect
 +
make
 +
sudo make install DESTDIR=/home/export/rootfs
 +
sudo make samples DESTDIR=/home/export/rootfs
 +
</PRE>
 +
 
 +
Asterisk will require shared libraries to load. Copy over libsqlite3.so, libssl.so, libcrypto.so and libgcc_s.so to your root filesystem:
 +
 
 +
<PRE>
 +
cp /usr/arm-linux-gnueabi/lib/libz.so.1.2.8 /home/export/rootfs/lib
 +
cp /usr/arm-linux-gnueabi/lib/libsqlite3.so.0.8.6 /home/export/rootfs/lib
 +
cp /usr/arm-linux-gnueabi/lib/libssl.so.1.0.0 /home/export/rootfs/lib
 +
cp /usr/arm-linux-gnueabi/lib/libcrypto.so.1.0.0 /home/export/rootfs/lib
 +
cp /usr/lib/gcc-cross/arm-linux-gnueabi/4.7.3/libgcc_s.so.1 /home/export/rootfs/lib
 +
</PRE>
 +
 
 +
And if you are using chan_mobile (Bluetooth):
 +
 
 +
<PRE>
 +
cp /usr/arm-linux-gnueabi/lib/libbluetooth.so.3.17.8 /home/export/rootfs/lib
 +
</PRE>
 +
 
 +
In addition to the above new libraries, Asterisk also places libasteriskssl.so in /usr/lib. If ldconfig is not executed to re-configure dynamic linker run-time bindings, Asterisk is likely to generate an error: error while loading shared libraries:  libasteriskssl.so.1: cannot open shared object file: No such file or directory.
 +
 
 +
To generate new dynamic linker run-time bindings, on the actual host, execute:
 +
 
 +
<PRE>
 +
ldconfig -v
 +
</PRE>
 +
 
 +
Outside of modifying Asterisk configuration files, Asterisk should now we ready to run. To start with a console CLI:
 +
 
 +
<PRE>
 +
asterisk -c
 +
</PRE>

Latest revision as of 07:39, 19 July 2014

Prerequisites

ncurses

Download, build and install the ncurses library:

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar -xzf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi CXX="arm-linux-gnueabi-g++"
make
make install

SQLite

SQLite is a software library that implements a self contained server-less transactional SQL database engine.

wget https://sqlite.org/2014/sqlite-autoconf-3080500.tar.gz
tar -xzf sqlite-autoconf-3080500.tar.gz
cd sqlite-autoconf-3080500
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi 
make
make install 

OpenSSL

Certain Asterisk modules such as chan_sip and chan_iax2 require the res_crypto resource module. The res_crypto module will only be built if the libssl dependency is installed.

wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar -xzf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
./Configure linux-generic32 shared --prefix=/usr/arm-linux-gnueabi
make CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld MAKEDEPPROG=arm-linux-gnueabi-gcc
make install CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld

BlueZ Bluetooth Libraries (Optional)

If you want to use chan_mobile to connect asterisk to your mobile phone via Bluetooth, then you will require the Bluetooth libraries and header files installed at this point.

See Cross Compiling BlueZ Bluetooth tools for ARM

Asterisk

With all our prerequisites built, you can now download, build and install Asterisk:

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.11.0.tar.gz
tar -xzf asterisk-11.11.0.tar.gz
cd asterisk-11.11.0
./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686-pc-linux-gnu --disable-xmldoc
make menuselect
make
sudo make install DESTDIR=/home/export/rootfs
sudo make samples DESTDIR=/home/export/rootfs

Asterisk will require shared libraries to load. Copy over libsqlite3.so, libssl.so, libcrypto.so and libgcc_s.so to your root filesystem:

cp /usr/arm-linux-gnueabi/lib/libz.so.1.2.8 /home/export/rootfs/lib
cp /usr/arm-linux-gnueabi/lib/libsqlite3.so.0.8.6 /home/export/rootfs/lib
cp /usr/arm-linux-gnueabi/lib/libssl.so.1.0.0 /home/export/rootfs/lib
cp /usr/arm-linux-gnueabi/lib/libcrypto.so.1.0.0 /home/export/rootfs/lib
cp /usr/lib/gcc-cross/arm-linux-gnueabi/4.7.3/libgcc_s.so.1 /home/export/rootfs/lib

And if you are using chan_mobile (Bluetooth):

cp /usr/arm-linux-gnueabi/lib/libbluetooth.so.3.17.8 /home/export/rootfs/lib

In addition to the above new libraries, Asterisk also places libasteriskssl.so in /usr/lib. If ldconfig is not executed to re-configure dynamic linker run-time bindings, Asterisk is likely to generate an error: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory.

To generate new dynamic linker run-time bindings, on the actual host, execute:

ldconfig -v

Outside of modifying Asterisk configuration files, Asterisk should now we ready to run. To start with a console CLI:

asterisk -c