<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>Hi everyone,</div><div><br></div><div>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. <br></div><div><br></div><div>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.</div><div>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 <a href="mailto:user@example.com" target="_blank">user@example.com</a>, which in turn again just plays a different prompt.<br></div><div><br></div><div>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 <a href="mailto:user@example.com" target="_blank">user@example.com</a>, which works instead. Yet, even though apparently <a href="mailto:user@example.com" target="_blank">user@example.com</a> can hear me through the bridge, I cannot hear his prompt. If i call directly <a href="mailto:user@example.com" target="_blank">user@example.com</a> I hear the prompt correctly.<br></div><div><br></div><div>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!</div><div><br></div><div>Below is the code to my Lua extension.</div><div><br></div><div>Best regards,</div><div>Riccardo</div><div><br></div><div><br></div><span style="font-family:monospace,monospace">    session:answer()<br>    session:setAutoHangup(false);<br><br>    playback("/some/welcome/audio.wav")<br><br>    local session1 = freeswitch.Session("sofia/external/<a href="mailto:user@example.com" target="_blank">user@example.com</a>");<br>    freeswitch.bridge(session, session2);</span><br><br></div>
</div></div>