Link to home
Start Free TrialLog in
Avatar of tahasip
tahasip

asked on

Asterisk how to enable SRTP

Hello ,
I want to know how to enable srtp in asterisk iam using Elastix 2.01 ??
Thanks...
Avatar of xReaper
xReaper

Hello; asterisk srtp is not in the box yet, so you dont have any way to enable it. There is some infos how to recompile asterisk with srtp, but you need to know asterisk really deeply.

Peoples installing elastix are generally now so much with tech details so i suggest the you try to do this some other way. i.e using vpn's.
Avatar of DrDamnit
You cannot enable it in Elastix. SRTP support must be compiled into the source code for it to work as described in my article:

https://www.experts-exchange.com/Networking/Telecommunications/IP_Telephony/Asterisk_/A_3233.html

You could (theorhetically) compile and replace the version of Asterisk that Elastix uses; however I highly doubt that would work. But... it's worth a try.
Avatar of tahasip

ASKER

Thanks both for your replay ,
Dear DrDamnit

I tried your post , every thing semmed to be ok , exept when try to do ((# Get asterisk
    svn co http://svn.digium.com/svn/asterisk/team/group/srtp/ asterisk))

I got url doesnot exist
So could you please tell me how to solve this problem??
The SRTP branch has been merged to trunk for version 1.8, which is still in beta 4.

So, you can try asterisk 1.8 here:

http://svn.digium.com/svn/asterisk/trunk/

or you can download the SRTP branch that I just tarred up for you from my SRTP asterisk box here:

http://www.totalticketsystem.com/downloads/asterisk/srtp-asterisk.tar.gz
Do you have an update? Did you get your answer?
Avatar of tahasip

ASKER

i think iam confused now
do you mean that your post about srtp  
https://www.experts-exchange.com/Networking/Telecommunications/IP_Telephony/Asterisk_/A_3233.html 
must be for asterisk 1.8 that iam not using as i am using Elastix 2.0 with asterisk 1.6 ??

And for http://www.totalticketsystem.com/downloads/asterisk/srtp-asterisk.tar.gz this link what can i do with it , how can i use it ??
Avatar of tahasip

ASKER

hi,
I used this http://www.totalticketsystem.com/downloads/asterisk/srtp-asterisk.tar.gz and after that i have asterisk folder in /usr/src/ so, when try to compile
# Compile asterisk

cd /usr/src/asterisk

./configure

make

at the end i got error (((svn: This client is too old to work with working copy '.'; please get a newer Subversion client
   [CC] app_fax.c -> app_fax.o
app_fax.c: In function ¿transmit_audio¿:
app_fax.c:367: error: storage size of ¿fax¿ isn¿t known
app_fax.c:408: error: dereferencing pointer to incomplete type
app_fax.c:482: error: dereferencing pointer to incomplete type
app_fax.c:484: error: dereferencing pointer to incomplete type
app_fax.c:367: warning: unused variable ¿fax¿
app_fax.c: In function ¿transmit_t38¿:
app_fax.c:547: error: storage size of ¿t38¿ isn¿t known
app_fax.c:575: error: dereferencing pointer to incomplete type
app_fax.c:576: error: dereferencing pointer to incomplete type
app_fax.c:612: error: dereferencing pointer to incomplete type
app_fax.c:614: error: dereferencing pointer to incomplete type
app_fax.c:547: warning: unused variable ¿t38¿
make[1]: *** [app_fax.o] Error 1
make: *** [apps] Error 2)))

Also the same error when try to run
make install and make confige so, what to do ??
OK. That's not going to work because it relies on svn, whcih is not there. Also, that is Asterisk 1.4, and you need a minimum of 1.6, ergo, you're going to have to use 1.8 not the tarball I put up for you.

You'll have to use this link:

http://svn.digium.com/svn/asterisk/trunk/

you need to have subversion installed, and then the command is

cd /usr/src/
svn co http://svn.digium.com/svn/asterisk/trunk/ asterisk18
cd asterisk18
./configure
make menuselect
(configure menu select options, save, exit)
make
make install

Warning: this may get Elastix to work, it may break elastix entirely forcing a reinstall of the whole system.

...but it's your only hope of getting SRTP to work.
Avatar of tahasip

ASKER

Dear DrDamnit:

now when tried to make
make menuselect
(configure menu select options, save, exit)
make
make install

i got the this error
Shell options:
        -irsD or -c command or -O shopt_option          (invocation only)
        -abefhkmnptuvxBCHP or -o option
****
**** The configure script must be executed before running 'make'.
****               Please run "./configure".
****
make: *** [makeopts] Error 1

tell me what to do next to over come this error
As i said you will not able to do it.
You need to drop elastig and go from clean source install with asterisk 1.8, but its a suicide to put that in production. If you got some commmon sense drop it and search your solution in a different way.
Avatar of tahasip

ASKER

As i said you will not able to do it.
You need to drop elastig and go from clean source install with asterisk 1.8

How to do this ??
If you dont know hot to install clean asterisk from sources / svn  and configure all manually it will be difficult for you.

Do you know asterisk well ?
Avatar of tahasip

ASKER

no , i dont could you advise me ?
Well, before starting lets determinie if you has a reasont to use srtp.
Please describe your setup you want to achieve and why do you need srtp.

(network structure)
Thanks.
Avatar of tahasip

ASKER

ok ,
we need srtp as we face problem in one country here in middle east first we enable tls on astersik and the ATA is regestered ok, but now no voice is tansfered i can hear ring voice but no voice data is transported so, we think about srtp to sove this problem
I see, but how fast do you need a solution ? if you start reading yourself from 0 it will take you around 1-2 month to start doing things.
Have you considered to hire a professional ?
Avatar of tahasip

ASKER

no, if one or 2 monthes it is ok for us but please tell me how to start to be profitional in asterisk world
waiting your replay
Start reading this:
downloads.oreilly.com/books/9780596510480.pdf

and digging here:
http://www.voip-info.org/wiki/view/Asterisk+SRTP
Avatar of tahasip

ASKER

thanks for this but the pdf is for asteris 1.4 is ther any thing to 1.6 or this is enough ?
Its not a problem, you will learn the basis of asterisk in there.
Avatar of tahasip

ASKER

Thanks both xReaper: and DrDamnit:
now i have srtp working well
DrDamnit the missing part was ./configure --disable-xmldoc
after svn co http://svn.digium.com/svn/asterisk/trunk/ asterisk18
and every thing is fine and elastix also is fine thanks

You really profitional team

Thaaaaaaaaaaaanks
Avatar of tahasip

ASKER

Dear DrDamnit
Thanks for your replay , i want to tell you that first , iam using elastix version 2 with asterisk 1.6
i did all the steps at your post ,
svn co http://svn.digium.com/svn/asterisk/trunk/ asterisk18
./configure --disable-xmldoc
make
make configmenu
make install
make samples

now from elastix page i cannot see any extension all of them gone
and from FREE PBX i can see asterisk error
cant make reload or any thing

what i did i opened manager.conf file and amportal.conf and did some changes
then be able to make restore from FREE PBX and my system came back

by the way after finshed all the steps no sip trunk was registered

now is there any thing to do ,or i have to install asterisk 1.8(but it is still beta version) from beginning or i have to wait to elastix come with asterisk 1.8?or what
ASKER CERTIFIED SOLUTION
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial