Page 1 of 1

Re: Asterisk

Posted: Tue Apr 17, 2012 7:52 pm
by werner
I'm loving my pi! thank you team:-)

[email protected]:/home/pi# asterisk -r
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on raspberrypi (pid = 3156)
Verbosity is at least 3
raspberrypi*CLI> 

Re: Asterisk

Posted: Tue Apr 17, 2012 8:55 pm
by liz
Cool! Keep letting us know how you get on with it. Have to say, this all feels a bit like I imagine letting my child leave home and get married (to thousands of different people) might feel!

Re: Asterisk

Posted: Sat Apr 21, 2012 7:19 pm
by linker3000
Looking good here too – compiled from source on Debian:

Asterisk 1.8.11.0, Copyright (C) 1999 – 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type "core show warranty" for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type "core show license" for details.
=========================================================================
== Parsing "/etc/asterisk/asterisk.conf":   == Found
== Parsing "/etc/asterisk/extconfig.conf":   == Found
Connected to Asterisk 1.8.11.0 currently running on raspberrypi (pid = 7083)

I"m using my Android phone as a SIP phone and it"s working fine.

I'll have to hook up a couple more SIP devices and see how well it copes with a conference call.

Re: Asterisk

Posted: Tue Apr 24, 2012 5:03 pm
by markshep
Cool!  I'm thinking of setting up a Raspberry Pi with Asterisk too.  What hardware are you using to connect it to the phone line?  I was thinking of maybe using a Sangoma U100 FXO USB.

Re: Asterisk

Posted: Sat May 05, 2012 11:06 am
by linker3000
markshep said:


Cool!  I'm thinking of setting up a Raspberry Pi with Asterisk too.  What hardware are you using to connect it to the phone line?  I was thinking of maybe using a Sangoma U100 FXO USB.



I'm initially going to be purely digital with a SIP VoIP account but I already have a FritzBox fon ATA (a network device) for an analogue interface.

At the mo I have an issue with the DAHDI package and don't have it working properly yet so voicemail and conference rooms don't work. When I revisit my Pi this week (I'm off doing other things) I'll deal with this.

Re: Asterisk

Posted: Mon May 14, 2012 11:27 am
by TRS
linker3000 wrote:Looking good here too – compiled from source on Debian:

Asterisk 1.8.11.0, Copyright (C) 1999 – 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type "core show warranty" for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type "core show license" for details.
=========================================================================
== Parsing "/etc/asterisk/asterisk.conf":   == Found
== Parsing "/etc/asterisk/extconfig.conf":   == Found
Connected to Asterisk 1.8.11.0 currently running on raspberrypi (pid = 7083)
Any tips on how you got Asterisk 1.8 to compile on your Pi? I have some vague knowledge in terms of compiling, but am not particularly skilled at it. When I've tried to compile Asterisk 1.8 on my Pi, the make fails with

Code: Select all

   
[CC] src/add.c -> src/add.o
Assembler messages:
Error: unknown architecture `armv6l'

Error: unrecognized option -march=armv6l
src/add.c:1: error: bad value (armv6l) for -march= switch
make[2]: *** [src/add.o] Error 1
make[1]: *** [gsm/lib/libgsm.a] Error 2
make: *** [codecs] Error 2
[email protected]:/usr/src/asterisk-1.8.12.0#
What tricks do I need to know to get it to compile for ARM? :) (Sadly the Asterisk packages in the apt-get repositories are only 1.6, so the "easy way" doesn't exist in this case :()

linker3000 wrote: I'm initially going to be purely digital with a SIP VoIP account but I already have a FritzBox fon ATA (a network device) for an analogue interface.

At the mo I have an issue with the DAHDI package and don't have it working properly yet so voicemail and conference rooms don't work. When I revisit my Pi this week (I'm off doing other things) I'll deal with this.
I have a Linksys SPA3102 I plan to use for this purpose. My current FreePBX box has one of these which works a treat, but obviously isn't an option with the Pi!

Re: Asterisk

Posted: Fri May 18, 2012 11:48 am
by mercator
@RTS: Did you manage to compile? And if so, does it work properly?

Re: Asterisk

Posted: Sun May 20, 2012 1:50 pm
by TRS
mercator wrote:@RTS: Did you manage to compile? And if so, does it work properly?
actually, yes I did! :)

After downloading and extracting the source, the first thing to do is to set the proper compilation option for the ARM platform.

So edit makeopts.in and change the PROC variable to arm

Code: Select all

PROC=arm
then continue on with
./configure
make menuconfig
contrib/scripts/get_mp3_source.sh
make
make install
make samples

BTW, for asterisk 1.8.10 the make commands take almost 90 minutes to complete :)

getting Freepbx to work is a whole other nightmare I'm still trying to figure out. It's fun though.

Re: Asterisk

Posted: Thu May 24, 2012 3:37 am
by kschmutz
linker3000 wrote:markshep said:


Cool!  I'm thinking of setting up a Raspberry Pi with Asterisk too.  What hardware are you using to connect it to the phone line?  I was thinking of maybe using a Sangoma U100 FXO USB.



I'm initially going to be purely digital with a SIP VoIP account but I already have a FritzBox fon ATA (a network device) for an analogue interface.

At the mo I have an issue with the DAHDI package and don't have it working properly yet so voicemail and conference rooms don't work. When I revisit my Pi this week (I'm off doing other things) I'll deal with this.
FYI,

Starting with Asterisk 1.6 and maturing in 1.10, DAHDI is no longer required for conference bridging. The older app app_meetme has been deprecated in favor of the new app_confbridge.

see here: https://wiki.asterisk.org/wiki/display/ ... fBridge+10

In short, there is little reason these days to even compile DAHDI anymore..

Re: Asterisk

Posted: Wed Jun 06, 2012 6:56 am
by ReadiesCards
Great news that you have Asterisk running, will have to give it a go my self!

Re: Asterisk

Posted: Fri Aug 31, 2012 1:07 pm
by edonabz
Hello.
I succesfully installed Asterisk 1.4.17 (old versione, but the only capable with http://code.google.com/p/pivelli/) from sources using this tips. The first time it started succesfully, but after a reboot it won't start. :?

Code: Select all

# asterisk -vvvvgc
bash: asterisk: command not found
I did for the second time "make install", and it returns ok, but asterisk doesn't start. :cry:
Can someone help me?

Re: Asterisk

Posted: Fri Aug 31, 2012 8:45 pm
by edonabz
edonabz wrote:Hello.
I succesfully installed Asterisk 1.4.17 (old versione, but the only capable with http://code.google.com/p/pivelli/) from sources using this tips. The first time it started succesfully, but after a reboot it won't start. :?

Code: Select all

# asterisk -vvvvgc
bash: asterisk: command not found
I did for the second time "make install", and it returns ok, but asterisk doesn't start. :cry:
Can someone help me?
EDIT: solved! Just tried the same command in a root bash and it works. : :D

Re: Asterisk

Posted: Wed Mar 04, 2015 10:59 pm
by ouss
TRS wrote:
mercator wrote:@RTS: Did you manage to compile? And if so, does it work properly?
actually, yes I did! :)

After downloading and extracting the source, the first thing to do is to set the proper compilation option for the ARM platform.

So edit makeopts.in and change the PROC variable to arm

Code: Select all

PROC=arm
then continue on with
./configure
make menuconfig
contrib/scripts/get_mp3_source.sh
make
make install
make samples

BTW, for asterisk 1.8.10 the make commands take almost 90 minutes to complete :)

getting Freepbx to work is a whole other nightmare I'm still trying to figure out. It's fun though.



hi TRS,
i have a problem with dahdi make command it says:
You do not appear to have the sources for the 3.18.6+ kernel installed
i find some solution in the net but my pi dont accept the commands like install kernel-headers
i'm really pushed in the corner
i would appreciate your help
thks in advance