Asterisk on 2.1

  • Rebel Alliance Developer Netgate

    Asterisk is failing because the port apparently makes a faulty assumption…

    ===> Installing rc.d startup script(s)
    chown: /var/db/asterisk: No such file or directory
    chown: /var/log/asterisk: No such file or directory
    chown: /var/spool/asterisk: No such file or directory
    *** Error code 1
    Stop in /usr/ports/net/asterisk.

    It's using /var there… It's Makefile has:

    .if ${PREFIX} == ${LOCALBASE}

    Seems that logic is faulty for PBI building since I think it sets PREFIX and LOCALBASE both the same.

    I could just make those dirs and it would probably continue, but it may be making that same faulty assumption elsewhere as well. Someone might need to bring that to the attention of the current asterisk FreeBSD port maintainer.

  • Rebel Alliance Developer Netgate

    Well making those directories didn't make asterisk happy either, it still complains even when they exist, so it may just not be creating them before it tries to chown them.

    The plist has lines like:

    @exec mkdir -p %D/db/asterisk

    So it's probably not putting a /var in there like it expects… then it tries to chown that and fails. Still something the port maintainer should fix, no easy way around that without manually editing that Makefile.

    We could make a pfPort out of that with an edited Makefile, but I'd like to avoid that unless it's necessary. I'll manually edit the Makefile for one run so we'll at least get a PBI next time the builders are free. (They're about halfway through a full run right now)

  • Rebel Alliance Developer Netgate

    Split this off into its own topic, since the PBI has been built now after manually editing the Makefile. Not a long-term solution but it'll do for the moment.

  • Interesting, you have Asterisk working on pfSense?  I have been trying to get it running on unRAID but I haven't been successful..  :(

    Does it impact pfSense too much?  I have a Watchguard Firebox Core-X, you think I can run it without issues on this hardware?


  • @m4f1050:

    Do you think I can run it without issues on this hardware?

    You may have some extra steps to use cards, but for a simple server/gateway it will work.

    The asterisk-gui is on todo list for this package.

  • Nice!  Thanks for the info.  Keep us posted.

Log in to reply