Git Product home page Git Product logo

homebrew-asterisk's Introduction

Homebrew Asterisk

Build Status

This repo contains the Homebrew formulas I use for my Asterisk dev machine. This is pretty much a few packages which, for one reason or another, aren't the best fit for going into Homebrew itself.

Installation

xcode-select --install
brew tap leedm777/homebrew-asterisk
brew install asterisk

Installation options

  • --with-clang - Compile with clang instead of gcc
    • This is a new-ish option in Asterisk, and might be a bit crashy.
  • --with-dev-mode - Enable dev mode in Asterisk
    • Disable optimizations, turns up build warnings, and enables the test framework.
  • --devel - Install development version 13
    • Build the latest code from the 13 branch.
  • --HEAD - Install HEAD version
    • Build the latest code from the master branch.

Configuration

Configuration files are in /usr/local/etc/asterisk. Detailed configuration docs can be found on the Asterisk wiki.

If you have problems after an upgrade, it may be because of bad path information that ended up in asterisk.conf. Check that the directories section looks like:

[directories](!)
astetcdir => /usr/local/etc/asterisk
astmoddir => /usr/local/opt/asterisk/lib/asterisk/modules
astvarlibdir => /usr/local/var/lib/asterisk
astdbdir => /usr/local/var/lib/asterisk
astkeydir => /usr/local/var/lib/asterisk
astdatadir => /usr/local/var/lib/asterisk
astagidir => /usr/local/var/lib/asterisk/agi-bin
astspooldir => /usr/local/var/spool/asterisk
astrundir => /usr/local/var/run/asterisk
astlogdir => /usr/local/var/log/asterisk
astsbindir => /usr/local/opt/asterisk/sbin

Running asterisk

If you want to just run Asterisk occasionally, just start it up using /usr/local/sbin/asterisk -c. It is recommended to not run Asterisk as root.

Running as a service

To have launchd start asterisk now and restart at login:

$ brew services start leedm777/asterisk/asterisk

To stop asterisk:

$ brew services stop leedm777/asterisk/asterisk

To reload asterisk after an upgrade:

$ brew services restart leedm777/asterisk/asterisk

To connect to Asterisk running as a service:

$ /usr/local/sbin/asterisk -r

Uninstall

To uninstall Asterisk, run brew rm asterisk. To get rid of all local state and configuration data:

$ rm -rf /usr/local/etc/asterisk /usr/local/var/lib/asterisk \
    /usr/local/var/log/asterisk /usr/local/var/run/asterisk \
    /usr/local/var/spool/asterisk

Upgrading from older versions

I used to have notes in the README for creating an asterisk user for running Asterisk. This is not very homebrew-y, so I dropped it.

I also had a custom plist that I recommended instead of homebrew's built-in plist feature. If you had followed those instructions, you may need to remove /Library/LaunchDaemons/org.asterisk.asterisk.plist before installing [the new plist above](#Running as a service).

Common problems

Compilation fails with error: /usr/lib/bundle1.o: No such file or directory

This happens when you try to build Asterisk without the XCode CLT installed. This also affects how GCC is built, so you will also want to reinstall GCC. The good news is that with the CLT installed, GCC should install via bottle, which is tons faster than building it from source.

xcode-select --install
brew rm gcc
brew install asterisk

Configure fails with The Asterisk menuselect tool requires the 'libxml2' development package.

This happens because of a bug with Xcode 8 on OSX 10.11 (El Capitan). Right now, the only solution is to upgrade to macOS 10.12 (Sierra), downgrade to Xcode 7.3, or do some pretty terrifying edits to your system libraries.

homebrew-asterisk's People

Contributors

leedm777 avatar sjors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-asterisk's Issues

Installation failing on clean El Capitan install

Trying to install on a brand-new El-Capitan 10.11.4 + standard home-brew install. The last log output is as follows:

Last 15 lines from /Users/admin/Library/Logs/Homebrew/pjsip-asterisk/02.make:
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(openh264.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(h263_packetizer.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(h264_packetizer.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(ipp_codecs.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(silk.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/libpjmedia-codec-x86_64-apple-darwin15.4.0.a(g7221.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/make -f /private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/build/rules.mak APP=PJMEDIA_CODEC app=pjmedia-codec ../lib/libpjmedia-codec.dylib
if test ! -d ../lib; then mkdir -p ../lib; fi
clang -o ../lib/libpjmedia-codec.dylib.2 \
         output/pjmedia-codec-x86_64-apple-darwin15.4.0/audio_codecs.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/ffmpeg_vid_codecs.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/openh264.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/h263_packetizer.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/h264_packetizer.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/ipp_codecs.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/silk.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/l16.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/gsm.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/speex_codec.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/ilbc.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/g722.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/g722/g722_enc.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/g722/g722_dec.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/g7221.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/g7221_sdp_match.o  output/pjmedia-codec-x86_64-apple-darwin15.4.0/amr_sdp_match.o -lpjmedia -lpj  -lilbccodec -lg7221codec  -lsrtp -lgsm -lspeex -lspeexdsp  -L/usr/local/opt/openssl/lib -lssl -lcrypto -lm -lpthread  -framework Foundation -framework AppKit   -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/pjlib/lib -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/pjlib-util/lib -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/pjnath/lib -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/pjmedia/lib -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/pjsip/lib -L/private/tmp/pjsip-asterisk20160408-40863-8cq9xf/pjproject-2.4.5/third_party/lib           -L/usr/local/opt/openssl/lib       -dynamiclib -undefined dynamic_lookup -flat_namespace
ld: file not found: ../lib/libpjlib-util.dylib.2 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../lib/libpjmedia-codec.dylib.2] Error 1
make[1]: *** [libpjmedia-codec.dylib] Error 2
make: *** [all] Error 1

Any suggestions? Google doesn't reveal anything useful.

[Sierra 10.12.5] make[1] fails on install

I try to install Asterisk via Homebrew after following the instructions in the README and I get the below error:

brew install asterisk results in:

==> Installing asterisk from leedm777/asterisk
==> Downloading http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-14.6.0.tar.gz
Already downloaded: /Users/HeyItsShuga/Library/Caches/Homebrew/asterisk-14.6.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/asterisk/14.6.0 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var --datadir=/usr/local/Cellar/asterisk/14.6.0/share/asterisk --docdir=/usr/local/
==> make menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect menuselect/menuselect menuselect-tree menuselect.makeopts
Last 15 lines from /Users/HeyItsShuga/Library/Logs/Homebrew/asterisk/02.make:
CC="cc" CXX="g++-7" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect
CC="cc" CXX="g++-7" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
gcc-7  -g -D_GNU_SOURCE -Wall -I/Volumes/Shuga's-Passport/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2   -c -o menuselect.o menuselect.c
make[1]: Nothing to be done for `nmenuselect'.
make[1]: Nothing to be done for `gmenuselect'.
gcc-7  -g -D_GNU_SOURCE -Wall -I/Volumes/Shuga's-Passport/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2   -c -o menuselect.o menuselect.c
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [menuselect.o] Error 2
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [menuselect.o] Error 2
make: *** [menuselect/menuselect] Error 2
make: *** Waiting for unfinished jobs....
make: *** [menuselect/cmenuselect] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/leedm777/homebrew-asterisk/issues

These open issues may also help:
Error: leedm777/asterisk/asterisk 14-devel did not build https://github.com/leedm777/homebrew-asterisk/issues/25
Asterisk crashes when homebrew is installed somewhere other than `/usr/local` https://github.com/leedm777/homebrew-asterisk/issues/20

Error: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports

Any help would be appreciated.

Note that it also doesn't compile regularly.

Running macOS Sierra 10.12.5 build 16F73.

Use system libraries wherever possible

The Asterisk formula pretty aggressively tried to use brewed versions of duplicates rather than the OS system installed libraries.

Homebrew prefers system libraries, so whichever ones can run on the standard OS libs should do so.

Conf files

Hello there!

The conf files are conspicuously missing here. Any chance I could get a copy of yours minus any sensitive info?

Thanks

Error: leedm777/asterisk/asterisk 14-devel did not build

I'm trying to install asterisk, but i can't, i got the error:

Error: leedm777/asterisk/asterisk 14-devel did not build
Logs:
     /Users/ivan/Library/Logs/Homebrew/asterisk/00.options.out
     /Users/ivan/Library/Logs/Homebrew/asterisk/01.configure
     /Users/ivan/Library/Logs/Homebrew/asterisk/01.configure.cc
     /Users/ivan/Library/Logs/Homebrew/asterisk/02.make
     /Users/ivan/Library/Logs/Homebrew/asterisk/02.make.cc
     /Users/ivan/Library/Logs/Homebrew/asterisk/03.menuselect
     /Users/ivan/Library/Logs/Homebrew/asterisk/04.menuselect
     /Users/ivan/Library/Logs/Homebrew/asterisk/05.menuselect
     /Users/ivan/Library/Logs/Homebrew/asterisk/06.menuselect
     /Users/ivan/Library/Logs/Homebrew/asterisk/07.make
     /Users/ivan/Library/Logs/Homebrew/asterisk/07.make.cc
     /Users/ivan/Library/Logs/Homebrew/asterisk/config.log

I was trying to install not development version, but still got the error: Error: leedm777/asterisk/asterisk 14.2.0 did not build

No available formula for gcc48

Hi, I am very new to home brew.
After installing your custom rb and ncurse, it gives me following error when I try to install asterisk.rb.
tried to install "brew install gcc48" but nothing.

server:Atlassian dev$ brew install https://raw2.github.com/leedm777/homebrew-asterisk/master/asterisk.rb

################################################################## 100.0%

Error: No available formula for gcc48 (dependency of asterisk)
Searching taps...
homebrew/versions/gcc48
server:Atlassian dev$

Thank you.

undefined method `undent'

Getting installation error:

==> Installing asterisk from leedm777/asterisk
==> Installing dependencies for leedm777/asterisk/asterisk: pjsip-asterisk, libogg and speex
==> Installing leedm777/asterisk/asterisk dependency: pjsip-asterisk
==> Downloading http://pjsip.org/release/2.7.1/pjproject-2.7.1.tar.bz2
Already downloaded: /Users/lporras/Library/Caches/Homebrew/downloads/0767ef298a51e962d692f8c77f4fc29111c8653d226ee14f51e7ba43998f6f93--pjproject-2.7.1.tar.bz2
==> Patching
patching file pjmedia/build/Makefile
patching file pjsip/build/Makefile
Error: An exception occurred within a child process:
NoMethodError: undefined method `undent' for #String:0x00007fb7910ff4d8

JSON support not found

server:jansson-2.6 dev$ brew install asterisk
==> Downloading http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-12.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/asterisk-12.2.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/asterisk/12.2.0 --without-netsnmp --without-gtk2 --with-ssl=/usr/local/opt/openssl --with-sqlite3=/usr/local/opt/sqlite --with-unixodbc=/usr/local/opt/unixodbc
checking for json_dumps in -ljansson... yes
checking jansson.h usability... no
checking jansson.h presence... no
checking for jansson.h... no
configure: error: *** JSON support not found (this typically means the libjansson development package is missing)

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/leedm777/homebrew-asterisk/issues

dyld: lazy symbol binding failed: Symbol not found:

I am getting these errors when I launch asterisk on both Sierra and High Sierra:

dyld: lazy symbol binding failed: Symbol not found: _pj_log_get_level
Referenced from: /usr/local/lib/libasteriskpj.dylib
Expected in: flat namespace

dyld: Symbol not found: _pj_log_get_level
Referenced from: /usr/local/lib/libasteriskpj.dylib
Expected in: flat namespace

Abort trap: 6

error on MacOS

Got this error:

checking if external Speex devkit is installed... aconfigure: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/leedm777/homebrew-asterisk/issues

it's possible to install without pjsip?

Asterisk not getting installed on OS X Yosemite Version 10.10.3 (14D136)

==> Installing asterisk from leedm777/homebrew-asterisk
couldn't understand kern.osversion `14.3.0'
==> Downloading http://downloads.asterisk.org/pub/telephony/asterisk/releases/as
Already downloaded: /Library/Caches/Homebrew/asterisk-13.3.0.tar.gz
==> Patching
patching file Makefile
==> ./configure --prefix=/usr/local/Cellar/asterisk/13.3.0 --sysconfdir=/usr/loc
==> make menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect me
==> menuselect/menuselect --enable DISABLE_INLINE menuselect.makeopts
==> menuselect/menuselect --disable BUILD_NATIVE menuselect.makeopts
==> make all NOISY_BUILD=yes
gcc-4.2 -o app_waitforsilence.so -D_THREAD_SAFE -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/asterisk/13.3.0/lib -bundle -mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup /usr/lib/bundle1.o app_waitforsilence.o
gcc-4.2 -o app_waituntil.so -D_THREAD_SAFE -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/asterisk/13.3.0/lib -bundle -mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup /usr/lib/bundle1.o app_waituntil.o
gcc-4.2 -o app_while.so -D_THREAD_SAFE -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/asterisk/13.3.0/lib -bundle -mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup /usr/lib/bundle1.o app_while.o
gcc-4.2 -o app_zapateller.so -D_THREAD_SAFE -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/asterisk/13.3.0/lib -bundle -mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup /usr/lib/bundle1.o app_zapateller.o
gcc-4.2 -o chan_sip.so -D_THREAD_SAFE -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/asterisk/13.3.0/lib -bundle -mmacosx-version-min=10.6 -Wl,-undefined,dynamic_lookup /usr/lib/bundle1.o chan_sip.o sip/config_parser.o sip/dialplan_functions.o sip/reqresp_parser.o sip/route.o sip/security_events.o sip/utils.o

This is the error I got while installing on OS X Yosemite
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/leedm777/homebrew-

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/leedm777/homebrew-asterisk/asterisk.rb

I can't install it on OSX 10.15.6. I get the following error:

==> Tapping leedm777/asterisk
Cloning into '/usr/local/Homebrew/Library/Taps/leedm777/homebrew-asterisk'...
remote: Enumerating objects: 427, done.
remote: Total 427 (delta 0), reused 0 (delta 0), pack-reused 427
Receiving objects: 100% (427/427), 153.51 KiB | 908.00 KiB/s, done.
Resolving deltas: 100% (261/261), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/leedm777/homebrew-asterisk/asterisk.rb
asterisk: Calling 'devel' blocks in formulae is disabled! Use 'head' blocks or @-versioned formulae instead.
Please report this issue to the leedm777/asterisk tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/leedm777/homebrew-asterisk/asterisk.rb:13

Getting a malloc error

Hi,
I followed the instructions to install Asterisk on my Mac OS X - Yosemite machine. The installation went without a hiccup. Thanks. But when I try to start the Asterisk server with "asterisk -vvvg -c", I get the following error:
== Parsing '/usr/local/etc/asterisk/ccss.conf': Found
asterisk(669,0x7fff778c2300) malloc: *** error for object 0x1029693e0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Please note, it goes fine till the point of parsing ccss.conf. Can you please help me with what is going on?
Some additional info:
The ownership of the Cellar/asterisk folder is with root:wheel.
Have changed the version from 13 to 13.3.2 in the plist

Please let me know if more information is required. Thanks.

Facing issue with WebRTC

Hi,

I am able to make normal calls but when I try to enable WebRTC using SIP.js, I get the following error:
WebSocket connection to 'ws://192.168.1.73:8088/ws' failed: Error during WebSocket handshake: Unexpected response code: 404

Do I need to change anything in the http.conf file?

Thanks.

EOS.undent is deprecated

Here is what I get: So far it seems to continue the install but it does say to report this so here we go.
==> Installing leedm777/asterisk/pjsip-asterisk
==> Downloading http://pjsip.org/release/2.7.1/pjproject-2.7.1.tar.bz2
######################################################################## 100.0%
==> Patching
patching file pjmedia/build/Makefile
patching file pjsip/build/Makefile
Warning: Calling <<-EOS.undent is deprecated!
Use <<~EOS instead.
/usr/local/Homebrew/Library/Taps/leedm777/homebrew-asterisk/pjsip-asterisk.rb:92:in `install'
Please report this to the leedm777/asterisk tap!

error: use of undeclared identifier 'AES_128_GCM_KEYSIZE_WSALT'

I get the following error when trying to build on both Sierra and High Sierra:

res_srtp.c:911:22: error: use of undeclared identifier 'AES_128_GCM_KEYSIZE_WSALT'
key_len_expected = AES_128_GCM_KEYSIZE_WSALT;
^
res_srtp.c:916:22: error: use of undeclared identifier 'AES_256_GCM_KEYSIZE_WSALT'
key_len_expected = AES_256_GCM_KEYSIZE_WSALT;

not finding libxml2?

I have installed libxml2 via homebrew (brew install libxml2). I am still getting this message:

Last 15 lines from /Users/david/Library/Logs/Homebrew/asterisk/01.configure:
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for uuid_generate_random in -luuid... no
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... yes
checking for json_dumps in -ljansson... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for clock_gettime in -lrt... no
checking for xml2-config... /usr/bin/xml2-config
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.

brew install asterisk --HEAD - patching fails

Hi,

As of 2018-08-10, "brew install asterisk --HEAD" fails with some failing patches:

==> Applying cc159e4152e9f071228eec47fdaf07b3974e27db.patch
patching file Makefile
Hunk #1 succeeded at 273 (offset 14 lines).
patching file Makefile.rules
patching file apps/app_adsiprog.c
Hunk #1 FAILED at 1109.
Hunk #2 FAILED at 1145.
Hunk #3 FAILED at 1262.
3 out of 3 hunks FAILED -- saving rejects to file apps/app_adsiprog.c.rej
patching file apps/app_sms.c
Hunk #1 FAILED at 807.
1 out of 1 hunk FAILED -- saving rejects to file apps/app_sms.c.rej
patching file include/asterisk/compat.h
patching file include/asterisk/vector.h
Hunk #1 succeeded at 336 (offset 53 lines).
Hunk #2 succeeded at 352 (offset 53 lines).
patching file main/Makefile
Hunk #1 succeeded at 68 (offset 5 lines).
patching file res/res_config_pgsql.c
Hunk #1 FAILED at 1295.
1 out of 1 hunk FAILED -- saving rejects to file res/res_config_pgsql.c.rej
patching file res/res_http_websocket.c
Hunk #1 FAILED at 290.
1 out of 1 hunk FAILED -- saving rejects to file res/res_http_websocket.c.rej
Error: Failure while executing; patch -g 0 -f -p1 -i /private/tmp/asterisk--patch-20180810-98808-1k4ruqz/cc159e4152e9f071228eec47fdaf07b3974e27db.patch exited with 1.

Thanks,
Steve

Cannot load launched config

On OS X 10.9.3, I got this error:

macrouter:~ sja$ ls -lah /Library/LaunchDaemons/
total 16
drwxr-xr-x   4 root      wheel      136B  8 Jun 13:15 .
drwxr-xr-x+ 64 root      wheel      2,1K  8 Jun 10:57 ..
-rw-r--r--   1 root      wheel      472B  8 Jun 09:09 com.apple.serverd.plist
-rw-r--r--   1 asterisk  asterisk   750B  8 Jun 13:15 org.asterisk.asterisk.plist
macrouter:~ sja$ ls -lah /Library/LaunchDaemons/org.asterisk.asterisk.plist 
-rw-r--r--  1 asterisk  asterisk   750B  8 Jun 13:15 /Library/LaunchDaemons/org.asterisk.asterisk.plist
macrouter:~ sja$ sudo launchctl
launchd% load /Library/LaunchDaemons
launchctl: Dubious ownership on file (skipping): /Library/LaunchDaemons/org.asterisk.asterisk.plist
com.apple.serverd: Already loaded
launchd% 

Has somebody any idea about this?

Build fails on OS X Yosemite 10.10.1 due to errors in compat.h

Build fails on OS X Yosemite 10.10.1 w/Xcode 6.1.1 (though I'm using GCC 4.8, as described) with the following error (there are more, of course, but all related to this error):

/usr/local/bin/gcc-4.8 -o pbx_ael.o -c pbx_ael.c -MD -MT pbx_ael.o -MF .pbx_ael.o.d -MP -D_THREAD_SAFE  -I/private/tmp/asterisk-UUBG64/asterisk-12.2.0/include -fno-strict-aliasing  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -g3  -D__Darwin__ -mmacosx-version-min=10.6 -O3 -fPIC -DAST_MODULE=\"pbx_ael\"   
In file included from /usr/include/sys/_endian.h:130:0,
                 from /usr/include/i386/endian.h:99,
                 from /usr/include/machine/endian.h:35,
                 from /usr/include/sys/types.h:81,
                 from /private/tmp/asterisk-UUBG64/asterisk-12.2.0/include/asterisk/compat.h:49,
                 from /private/tmp/asterisk-UUBG64/asterisk-12.2.0/include/asterisk.h:27,
                 from chan_bridge_media.c:35:
/private/tmp/asterisk-UUBG64/asterisk-12.2.0/include/asterisk/compat.h:97:10: error: expected ')' before '?' token
 uint64_t htonll(uint64_t host64);

Note that the configure output shows:

checking for htonll... no

Full verbose output from brew install -vd ~/Projects/homebrew-asterisk/asterisk.rb can be found in this gist.

Error writing to timing pipe: Broken pipe

After upgrading to OS X High Sierra and Asterisk 15.1.5, I am getting an error after the system is up and running for about 10 seconds. It is:
[Dec 17 09:45:08] ERROR[16643]: res_timing_pthread.c:355 void signal_pipe(struct pthread_timer *): Error writing to timing pipe: Broken pipe.

printing at about 20 times a second, non-stop. Still, the phone system seems to be working fine, but crashes after a day or so I assume due to the huge log file.

Also, does not seem to be respecting -q (quiet mode) on startup, nor have I found any way to stop this message from printing..

Does anyone have any idea what the underlying cause might be? or a way to get it to stop logging?
I have looked over configuration file examples to see if I could find any difference that might be causing this (I am using my old SIP and extensions config files) but I cant find anything

Configure error: termcap support not found

I'm receiving the following on my system (Running 10.9.3):

==> ./configure --prefix=/usr/local/Cellar/asterisk/12.2.0 --without-netsnmp --w
==> make menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect me
==> menuselect/menuselect --enable DISABLE_INLINE menuselect.makeopts
==> menuselect/menuselect --disable BUILD_NATIVE menuselect.makeopts
==> make all NOISY_BUILD=yes
checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
configure: error: termcap support not found
make[1]: *** [editline/libedit.a] Error 1
make: *** [main] Error 2

It seems as though tgetent is not detected in curses or ncurses. I did install ncurses 5.9 with

brew install homebrew/dupes/ncurses

I've tried uninstalling and reinstalling ncurses with no change.

Any pointers?

asterisk command not found

Hi,

I did the installation as per the README file, and below are the last three lines of installation process before making directory.

Warning: asterisk dependency gettext was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.
๐Ÿบ /usr/local/Cellar/asterisk/13.3.2: 1047 files, 40M, built in 2.8 minutes

After running both mkdir command, I tried running asterisk -c and got the command not found error.

When i tried running it from the /usr/local/Cellar/asterisk/13.3.2 directory, i got below error:

Airtel:sbin Zeeshan$ sudo ./asterisk -c
Password:
Asterisk 13.3.2, Copyright (C) 1999 - 2014, 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.

[ Initializing Custom Configuration Options ]
Unable to load config file 'stasis.conf'
Could not load Stasis configuration; using defaults
[May 15 17:39:06] NOTICE[1287]: features_config.c:1842 int load_config(): Could not load features config; using defaults
[May 15 17:39:06] NOTICE[1287]: cdr.c:4053 int process_config(int): Failed to process CDR configuration; using defaults
[May 15 17:39:06] NOTICE[1287]: cdr.c:4156 int cdr_toggle_runtime_options(): CDR simple logging enabled.
[May 15 17:39:06] NOTICE[1287]: udptl.c:1316 void __ast_udptl_reload(int): Could not load udptl config; using defaults
[May 15 17:39:06] NOTICE[1287]: cel.c:1768 int ast_cel_engine_init(): Failed to process CEL configuration; using defaults
[May 15 17:39:06] NOTICE[1287]: manager.c:8693 int __init_manager(int, int): Unable to open AMI configuration manager.conf, or configuration is invalid.
asterisk(51968,0x7fff750b7310) malloc: *** error for object 0x102211e40: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Mac OS: Mavericks 10.9.5
Please provide some guidance here. Many Thanks.

pjsip problem?

After installing, I tried to start by hand to see the error messages. I copied my prod settings and modified the paths in asterisk.conf and logger.conf.
Command: sudo ./sbin/asterisk -fcv

But starting is aborted with this error:

Assertion failed: (mod_evsub.mod.id != -1), function pjsip_evsub_register_pkg, file ../src/pjsip-simple/evsub.c, line 415.

When googling, I found this interesting comment: http://lists.digium.com/pipermail/asterisk-users/2013-September/280387.html
But I don't know how to fix it. The last point (loading order) is not the problem, res_pjsip.so is loaded very early.

Complete Output: https://gist.github.com/sja/ba184e3ae1e601bb499a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.