asterisk/freepbx

Request a package to be made here. Make sure you have searched before requesting.

asterisk/freepbx

Postby ax0r7ag0z » Fri Sep 24, 2010 5:08 pm

Hello!!!

I would really love to have my dockstar do asterisk server duties
so, I am begging for it!!!!

Please make an asterisk/freepbx package available or ,at least,
someone make a guide to help us make it work!!!

I've stumbled upon the plugPBX community and they are doing it
using Debian but I seem to be too dumb to make it work myself...


Here is a link -> http://forums.plugpbx.org/index.php?PHPSESSID=qf6nan08hftf255b7kg897jkd4&board=10.0
ax0r7ag0z
 
Posts: 38
Joined: Mon Aug 30, 2010 8:59 pm

Re: asterisk/freepbx

Postby pepedog » Fri Sep 24, 2010 11:22 pm

I got a few bits working.
pacman -U http://myplugbox.com/asterisk/asterisk- ... pkg.tar.gz
pacman -U http://myplugbox.com/asterisk-addons/as ... pkg.tar.gz

My /etc/asterisk/extensions.conf file
$this->bbcode_second_pass_code('', '[default]
exten => 5010,1,Dial(SIP/5010)
exten => 5010,2,Hangup()

exten => 5020,1,Dial(SIP/5020)
exten => 5020,2,Hangup()

exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
exten => 600,2,Echo ; Do the echo test
exten => 600,3,Playback(demo-echodone) ; Let them know it's over
include => stdexten

[stdexten]
exten => _X.,4000(stdexten),NoOp(Start stdexten)
exten => _X.,n,Set(LOCAL(ext)=${EXTEN})
exten => _X.,n,Set(LOCAL(dev)=${ARG1})
exten => _X.,n,Set(LOCAL(cntx)=${ARG2})

exten => _X.,n,Set(LOCAL(mbx)="${ext}"$["${cntx}" ? "@${cntx}" :: ""])
exten => _X.,n,Dial(${dev},20) ; Ring the interface, 20 seconds maximum
exten => _X.,n,Goto(stdexten-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten => stdexten-NOANSWER,1,Voicemail(${mbx},u) ; If unavailable, send to voicemail w/ unavail announce
exten => stdexten-NOANSWER,n,NoOp(Finish stdexten NOANSWER)
exten => stdexten-NOANSWER,n,Return() ; If they press #, return to start

exten => stdexten-BUSY,1,Voicemail(${mbx},b)
; If busy, send to voicemail w/ busy announce
exten => stdexten-BUSY,n,NoOp(Finish stdexten BUSY)
exten => stdexten-BUSY,n,Return() ; If they press #, return to start

exten => _stde[x]te[n]-.,1,Goto(stdexten-NOANSWER,1) ; Treat anything else as no answer

exten => a,1,VoicemailMain(${mbx}) ; If they press *, send the user into VoicemailMain
exten => a,n,Return()

exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
exten => 600,2,Echo ; Do the echo test
exten => 600,3,Playback(demo-echodone) ; Let them know it's over
include => default

exten => 8500,1,VoicemailMain
exten => 8500,n,Hangup')

My /etc/asterisk/sip.conf file
$this->bbcode_second_pass_code('', '[5010]
type=friend
username=5010
secret=123456
host=dynamic
allow=all
context=default

[5020]
type=friend
username=5020
secret=123456
host=dynamic
allow=all
context=default



[4001]
type=friend
username=4001
secret=123456
host=dynamic
allow=all
context=stdexten

[4002]
type=friend
username=4002
secret=123456
host=dynamic
allow=all
context=stdexten')

Extension numbers and password in sip.conf

Then
/etc/rc.d/asterisk start
to get it going

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: asterisk/freepbx

Postby ax0r7ag0z » Sat Sep 25, 2010 10:12 am

Nice work!!
Did you buld the packages yourself?
ax0r7ag0z
 
Posts: 38
Joined: Mon Aug 30, 2010 8:59 pm

Re: asterisk/freepbx

Postby pepedog » Sat Sep 25, 2010 11:32 am

Yes, got dahdi drivers too.
Bit busy for freepbx, looks a bit of a swine and selfishly takes over http.
Tried this asterisk on heavily used system and all fine, but I have a swap and running on hard drive, not a stick.
I used to be a pbx planner for BT for 25 years, from clockwork thru to very large Meridian M1, with 10,000 extensions on some, and 40 PRI trunks (1200 lines)

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: asterisk/freepbx

Postby ax0r7ag0z » Sat Sep 25, 2010 1:40 pm

So you know your craft sir :P

I am also running pluglinux off a WD My Book 500gb
External drive partitioned as 5Gb ext2 containing a 500mb
swapfile and a 495gb ext4 partition for storage. I did not
want to "risk" messing with Uboot and setting the boot
partition as ext4, I might configure a small ext2 partition containing
just the kernel and mounting a single ext2 partition under / once
I figure out how...

I saw your dahdi package and downloaded it without your permission :oops:
and will set everything up once I get the Linksys SPA3000 that is in the mail!!!

Could I bother you any further should I come into trouble, which I will,
once I have all the hardware and software set up?
ax0r7ag0z
 
Posts: 38
Joined: Mon Aug 30, 2010 8:59 pm

Re: asterisk/freepbx

Postby pepedog » Sat Sep 25, 2010 4:26 pm

No problems contacting me. Am no expert on the asterisk config side though, it took a while to get that sample working, and voice mail works I believe, but no expert on that either. Think the freepbx part helps with config.
Would have give you dadhi link but couldn't find it. Believe each dadhi is compiled to specific kernel?

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: asterisk/freepbx

Postby ax0r7ag0z » Sun Sep 26, 2010 6:08 pm

Could I bother you some more in giving me some instructions on how you built asterisk?
I always get stuck in the kernel sources part, as I don't now what to get and
where to put it, no pun intended.
ax0r7ag0z
 
Posts: 38
Joined: Mon Aug 30, 2010 8:59 pm

Re: asterisk/freepbx

Postby pepedog » Sun Sep 26, 2010 6:19 pm

Did you see the other files here? http://myplugbox.com/asterisk/
PKGBUILD
asterisk
asterisk.install
asterisk.logrotated
I put them in a folder, did makepkg -Acs --asroot (because I was root)
and it builds it.

Just the PKGBUILD file in http://myplugbox.com/asterisk-addons/ with same instructions.

It will build and compile and package, edit PKGBUILD to see whats going on.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: asterisk/freepbx

Postby ax0r7ag0z » Tue Sep 28, 2010 1:40 pm

Hmmm...
I remember that the last time I attempted to build asterisk I got an error trying to build "zaptel",
it needed the kernel sources and I could not set them up. I am building asterisk right now
and it seems to be building just fine...

I will get the hang of building from source eventually...


EDIT

while trying to build zaptel from the svn i get

$this->bbcode_second_pass_code('', 'make[1]: Entering directory `/root/zaptel'
echo "You do not appear to have the sources for the 2.6.35.4-00189-g47eadc1-dirty kernel installed."
You do not appear to have the sources for the 2.6.35.4-00189-g47eadc1-dirty kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/root/zaptel'
make: *** [all] Error 2')
ax0r7ag0z
 
Posts: 38
Joined: Mon Aug 30, 2010 8:59 pm

Re: asterisk/freepbx

Postby pepedog » Tue Sep 28, 2010 4:19 pm

I believe zaptel and dadhi are both drivers? Do you need both? Thought dadhi superceeded zaptel?
Not that dadhi was a walk in the park (lots of patches), and because I compiled kernel myself, I had the source.
Anyway, to get sources-
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/ ... .4.tar.bz2
tar xjf linux-2.6.35.4.tar.bz2
cd /lib/modules/2.6.35.4-00189-g47eadc1-dirty
change the 2 symlinks build and source to /usr/src/linux-2.6.35.4

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Next

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 12 guests

cron