Git Product home page Git Product logo

Comments (6)

BadDeveloper2022 avatar BadDeveloper2022 commented on July 24, 2024

freeswitch version:1.6.20

from drachtio-freeswitch-modules.

BadDeveloper2022 avatar BadDeveloper2022 commented on July 24, 2024

Help, I've been stuck here.

from drachtio-freeswitch-modules.

BadDeveloper2022 avatar BadDeveloper2022 commented on July 24, 2024

Windows 10 System

from drachtio-freeswitch-modules.

davehorton avatar davehorton commented on July 24, 2024

I don't work on windows, so I may not be much help here. Also my testing is with freeswitch v1.8 not 1.6.

Having said that, are you sure the crash is in the thread you are referencing, and not the thread that is actually trying to do the connect? Can you provide a stack trace of both threads?

Its hard to understand why that line would crash, since at that point we have simply initialized a mutex and a condition variable, and then called that line of code to wait on the condition. Can you inspect the mutex and the condition variable in the debugger to see if they look valid?

What is happening there is

    switch_mutex_init(&cb->mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session));
    switch_thread_cond_create(&cb->cond, switch_core_session_get_pool(session));
...
    switch_mutex_lock(cb->mutex);
...
    switch_thread_cond_wait(cb->cond, cb->mutex);

Are you sure you need this to work on Windows? I really dont see Windows as serious platform for server-based realtime communications, and would be interested to know why you are using it.

from drachtio-freeswitch-modules.

BadDeveloper2022 avatar BadDeveloper2022 commented on July 24, 2024

api:executeString("uuid_audio_fork "..call_uuid.." start ws://192.168.0.205:9988 mono 8k metadata");
the lua code is not executed down.

api = freeswitch.API();

local call_uuid = session:getVariable("uuid");

freeswitch.consoleLog("console", "-----------------call_uuid="..call_uuid.."\n")

api:executeString("uuid_audio_fork "..call_uuid.." start ws://192.168.0.205:9988 mono 8k metadata");

session2 = freeswitch.Session("sofia/internal/1000%192.168.0.205");

freeswitch.bridge(session, session2);

from drachtio-freeswitch-modules.

davehorton avatar davehorton commented on July 24, 2024

I'm unclear what you mean by "the lua code is not executed down." ?

from drachtio-freeswitch-modules.

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.