[Asterisk-bsd] Instructions for installing 1.2.1 (Re: ports/89877)

Aristedes Maniatis ari at ish.com.au
Sun Jan 8 17:06:38 CST 2006


Here is what you need to do to get the Asterisk port working.

get the current ports which have still not yet been committed to the  
FreeBSD tree
# wget http://www.db.net/~db/libpri_update.shar
# wget http://www.db.net/~db/asterisk_update.shar

extract them
# ./libpri_update.shar
# ./asterisk_update.shar

arrange your ports tree the way you want. I replaced the existing  
asterisk and libpri ports with these new ones.

# cd /usr/ports/misc/libpri/
# nano Makefile

edit the line that reads "PORTVERSION = 1.2.0" to read  
"PORTVERSION=    1.2.1". Be careful to not put any whitespace at the  
end of the line. Notice how the equal sign is followed by a tab  
rather than spaces. Sometimes whitespace is important in makefiles.

# make makesum


# nano /usr/ports/net/asterisk/Makefile
# nano Makefile

edit the line that reads "PORTVERSION = 1.2.0" to read  
"PORTVERSION=    1.2.1". Be careful to not put any whitespace at the  
end of the line. Notice how the equal sign is followed by a tab  
rather than spaces. Sometimes whitespace is important in makefiles.

# make makesum


Now you can just install the thing:

# portinstall asterisk


For me, on 6.0 this just works. I have a TDM card with one FXO port  
and I've tested it as working. I've got music on hold working. The  
problem I reported earlier was due to the fact that the daughter card  
was installed in port 4 instead of port 1, but once that was resolved  
everything works.

Now, if we could only get the FreeBSD maintainer to commit this port!  
It is already 100 times better than whatever is in the FreeBSD ports  
system now.

The only bug I've found is that sounds are installed at:
/usr/local/share/asterisk/sounds

but Asterisk is expecting them at:
/usr/local/lib/asterisk/sounds

I moved the folder and everything worked OK, but something should  
probably be done in the port itself. But please don't let that stop  
the port being committed!



Ari Maniatis


-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8




More information about the Asterisk-BSD mailing list