Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Asterisk on 2.1

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    6 Posts 3 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      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}
      VARDIR=/var
      .else
      VARDIR=${PREFIX}/var
      .endif
      
      

      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.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          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.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • M
            m4f1050
            last edited by

            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?

            Thanks!

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @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.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • M
                m4f1050
                last edited by

                Nice!  Thanks for the info.  Keep us posted.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.