Giter VIP home page Giter VIP logo

Comments (4)

seanbright avatar seanbright commented on May 21, 2024

There is no crash here. Asterisk says it's going to exit and then it does.

from asterisk.

neimaravila avatar neimaravila commented on May 21, 2024

Ok, crash is not the best word to describe.
Asterisk not work if module is load.

from asterisk.

seanbright avatar seanbright commented on May 21, 2024

This does not appear to be specific to asterisk. If you compile and run this simple program:

[rocky@host]$ cat simple.c
#include <stdio.h>
#include <srtp2/srtp.h>

int main(int argc, char *argv[])
{
  srtp_err_status_t status = srtp_init();
  if (status != srtp_err_status_ok) {
    fprintf(stderr, "Failed to initialize libsrtp (%d)\n", status);
    return 1;
  }

  srtp_shutdown();
  return 0;
}
[rocky@host]$ LDLIBS=$(pkg-config libsrtp2 --libs) make simple
cc     simple.c  -lsrtp2 -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -o simple
[rocky@host]$ ./simple
Failed to initialize libsrtp (8)

Error 8 is srtp_err_status_cipher_fail. I haven't dug in to this enough to know why it's happening but it's not asterisk that is causing it.

from asterisk.

jcolp avatar jcolp commented on May 21, 2024

As @seanbright stated, this is not an Asterisk issue but an issue with the underlying system libsrtp. Other individuals ended up resolving this by building libsrtp themselves, installing it, and using it as you have. It appears as though the packaged version has some kind of issue. I don't think load behavior is something we would change for this.

from asterisk.

Related Issues (20)

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.