[Freeswitch-users] Missing audio in bridged call
Giovanni Maruzzelli
gmaruzz at gmail.com
Tue Jan 8 11:23:01 UTC 2019
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+two+calls+with+retry
On Tue, Jan 8, 2019 at 11:41 AM Riccardo Traverso <rtraverso86 at 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 at 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 at example.com, which works instead. Yet, even though
> apparently user at example.com can hear me through the bridge, I cannot hear
> his prompt. If i call directly user at 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 at example.com
> ");
> freeswitch.bridge(session, session2);
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190108/d3845a48/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list