leedm777 / homebrew-asterisk

Homebrew tap for building an Asterisk dev environment
50 stars 27 forks source link

pjsip problem? #5

Closed sja closed 8 years ago

sja commented 10 years ago

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

sja commented 10 years ago

Ok, with the OS X equivalent of ldd, called otool, I can see the following:

otool -L lib/asterisk/modules/res_pjsip.so 
lib/asterisk/modules/res_pjsip.so:
    /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 59.0.0)
    /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 492.0.0)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1056.13.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1265.20.0)
    /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.8.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /usr/local/Cellar/gcc48/4.8.3/lib/gcc/x86_64-apple-darwin13.2.0/4.8.3/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

As of my linked mailing list entry, there is libpj.somissing.

leedm777 commented 8 years ago

@sja I was never able to reproduce this, and things have changed a lot since you filed the issue. If you see again with the latest, please reopen.