Missing audio in bridged call
Hi everyone, I'm totally new to FreeSWITCH (and PBX software in general) and I'm trying to build a small directory IVR to start getting the hang of it. I'm currently stuck, and I need your help please. This is the setup. I've got a FreeSWITCH on the first machine with a Lua extension that contains a basic IVR application. When a user calls the IVR and performs a choice, I want to connect him to a specific remote SIP address. I tried with the transfer command at first, but in my understanding I could only use that if I wanted to connect him to another user/extension on the same server, which isn't my case. So I tried with bridging instead. Right now, the IVR doesn't even ask for a choice, it just plays an audio file and tries to connect to a fixed remote address for test, say user@example.com, which in turn again just plays a different prompt. When I call the Lua extension I correctly hear the audio of the first prompt, but nothing from the second. I also tried starting voice recognition on user@example.com, which works instead. Yet, even though apparently user@example.com can hear me through the bridge, I cannot hear his prompt. If i call directly user@example.com I hear the prompt correctly. I do not even know where to start from, any advices, please? Which kind of configs or logs would be useful to diagnose the problem? Thanks in advance! Below is the code to my Lua extension. Best regards, Riccardo session:answer() session:setAutoHangup(false); playback("/some/welcome/audio.wav") local session1 = freeswitch.Session("sofia/external/user@example.com"); freeswitch.bridge(session, session2);
before bridging, wait until session1 is connected eg, after creating session1, insert line if (session1:ready()) then and put a line with just end affter bridging For an old example, don't know if is still working, look at: https://freeswitch.org/confluence/display/FREESWITCH/Lua+example+Bridging+tw... On Tue, Jan 8, 2019 at 11:41 AM Riccardo Traverso <rtraverso86@gmail.com> wrote:
Hi everyone,
I'm totally new to FreeSWITCH (and PBX software in general) and I'm trying to build a small directory IVR to start getting the hang of it. I'm currently stuck, and I need your help please.
This is the setup. I've got a FreeSWITCH on the first machine with a Lua extension that contains a basic IVR application. When a user calls the IVR and performs a choice, I want to connect him to a specific remote SIP address. I tried with the transfer command at first, but in my understanding I could only use that if I wanted to connect him to another user/extension on the same server, which isn't my case. So I tried with bridging instead. Right now, the IVR doesn't even ask for a choice, it just plays an audio file and tries to connect to a fixed remote address for test, say user@example.com, which in turn again just plays a different prompt.
When I call the Lua extension I correctly hear the audio of the first prompt, but nothing from the second. I also tried starting voice recognition on user@example.com, which works instead. Yet, even though apparently user@example.com can hear me through the bridge, I cannot hear his prompt. If i call directly user@example.com I hear the prompt correctly.
I do not even know where to start from, any advices, please? Which kind of configs or logs would be useful to diagnose the problem? Thanks in advance!
Below is the code to my Lua extension.
Best regards, Riccardo
session:answer() session:setAutoHangup(false);
playback("/some/welcome/audio.wav")
local session1 = freeswitch.Session("sofia/external/user@example.com "); freeswitch.bridge(session, session2);
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Sincerely, Giovanni Maruzzelli OpenTelecom.IT cell: +39 347 266 56 18
participants (2)
-
Giovanni Maruzzelli
-
Riccardo Traverso