Install asterisk on android

43
Install Asterisk on Android in 5 Simple Steps

Transcript of Install asterisk on android

Install Asterisk on Android in 5 Simple Steps

Ever aim of making your Android device a

SIP server?

Here’s How

STEP 1

GET A TOOLCHAIN

STEP 1

●Download cross-compiler for your architecture here

●Download cross-compiler for your architecture here

●Throughout this discussion cross-compiler refers to

FriendlyARM

STEP 2

NCURSES FOR ARM

STEP 2

●Download NCURSES here

●Download NCURSES here

●Untar

●Download NCURSES here

●Untar

●Cross-compile

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3" --with-shared

CROSS-COMPILING

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3" --with-shared

$make

CROSS-COMPILING

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3" --with-shared

$make

CROSS-COMPILING

$make install DESTDIR=[your_choice]

STEP 3

SQLITE3 FOR ARM

STEP 3

●Download SQLITE3 here

●Download SQLITE3 here

●Untar

●Download SQLITE3 here

●Untar

●Cross-compile

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3“

CROSS-COMPILING

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3" --with-shared

$make

CROSS-COMPILING

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-gcc]" CXX="[path_to_arm-none-linux-

gnueabi-g++]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3" --with-shared

$make

CROSS-COMPILING

$make install DESTDIR=[your_choice]

STEP 4

ASTERISK ON ARM

STEP 4

●Download Asterisk here

●Download Asterisk here

●Untar

●Download Asterisk here

●Untar

●Cross-compile

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-

gcc]" CXX="[path_to_arm-none-linux-gnueabi-g++]" --disable-xmldoc --with-sqlite3="[path_to_sql]" AR="

[path_to_arm-none-linux-gnueabi-ar]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3"

CROSS-COMPILING

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-

gcc]" CXX="[path_to_arm-none-linux-gnueabi-g++]" --disable-xmldoc --with-sqlite3="[path_to_sql]" AR="

[path_to_arm-none-linux-gnueabi-ar]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3"

CROSS-COMPILING

$make

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-

gcc]" CXX="[path_to_arm-none-linux-gnueabi-g++]" --disable-xmldoc --with-sqlite3="[path_to_sql]" AR="

[path_to_arm-none-linux-gnueabi-ar]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3"

CROSS-COMPILING

$make

$sudo make install DESTDIR=[your_choice]

$./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686 CC="[path_to_arm-none-linux-gnueabi-

gcc]" CXX="[path_to_arm-none-linux-gnueabi-g++]" --disable-xmldoc --with-sqlite3="[path_to_sql]" AR="

[path_to_arm-none-linux-gnueabi-ar]" LDFLAGS="-Wl,--dynamic-linker=/vendor/lib/ld-linux.so.3"

CROSS-COMPILING

$make

$sudo make install DESTDIR=[your_choice]

$sudo make samples DESTDIR=[your_choice]

STEP 5

MOMENT OF TRUTH

STEP 5

●Follow the instructions listed here

●Follow the instructions listed here

●Put the asterisk binaries to your device

●Follow the instructions listed here

●Put the asterisk binaries to your device

●Put necessary libraries to /vendor/lib/ or /system/lib/

●Follow the instructions listed here

●Put the asterisk binaries to your device

●Put necessary libraries to /vendor/lib/ or /system/lib/

●RUN ASTERISK

This is it!

#/usr/sbin/asterisk

RUN ASTERISK on ANDROID

Or with flags

#/usr/sbin/asterisk -r

Enter Asterisk CLI