Have you tried transfer_ringback? https://wiki.freeswitch.org/wiki/Custom_Ring_Back_Tones#Transfer_Ringback On Thu, Jul 6, 2017, at 03:11 AM, Stefano Favaro wrote:
Hello,
I'm writing a simple script with LUA to connect an inbound call to e new outbound call.> Everything work fine but I can't set the *ringback* tone nor a waiting music on the leg A and also the *call_timeout* variable.> The legA is in silence while the legB is ringing and the call_timeout is always the default 60 seconds.> What is wrong with this code?
Thanks
This is the code: ... legA:streamFile("/usr/share/freeswitch/sounds/wait.wav")
legA:setVariable("ringback", "$${uk-ring}") legA:setVariable("call_timeout", 30)
legB = freeswitch.Session("{ignore_early_media=true, hangup_after_bridge=true, origination_caller_id_number=1234}sofia/internal/0123456789@myserver)> if legB:ready() then freeswitch.bridge(legA, legB) end
Stefano Favaro Sviluppo Servizi ed Applicazioni _____________________