execute_on_answer equivalent for A-leg or bridged call?
Hello everyone, I am attempting to play a sound on both legs after creating a bridge once the B-leg has answered. execute_on_answer explicitly only works for the newly answered channel, so no sound is playing on the (previously already connected) A-leg. Is there a way to make sure the sound is playing on both legs / the bridged call? ATM, I'm doing this (in Lua): session:execute("bridge", "{origination_callee_id_name='" .. callee_id .. "'}{execute_on_answer='playback tone_stream://%(500,0,500)'}user/jitsi@" .. domain_name) Thanks, Thilo
Set the variable on the a-leg /b On Wed, Apr 8, 2020 at 3:33 PM Thilo-Alexander Ginkel <thilo@ginkel.com> wrote:
Hello everyone,
I am attempting to play a sound on both legs after creating a bridge once the B-leg has answered. execute_on_answer explicitly only works for the newly answered channel, so no sound is playing on the (previously already connected) A-leg.
Is there a way to make sure the sound is playing on both legs / the bridged call?
ATM, I'm doing this (in Lua):
session:execute("bridge", "{origination_callee_id_name='" .. callee_id .. "'}{execute_on_answer='playback tone_stream://%(500,0,500)'}user/jitsi@" .. domain_name)
Thanks, Thilo
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
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
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
On Wed, Apr 8, 2020 at 11:34 PM Brian West <brian@freeswitch.com> wrote:
Set the variable on the a-leg
Thanks for your reply! I may have omitted an important detail: The A-leg has already been answered before the bridge is initiated to obtain a conference PIN via playAndGetDigits. So I assume that setting the variable on the A-leg will never trigger anything on the A-leg, because it has already been answered, right? Any alternatives? Thanks, Thilo
I’m wondering maybe you can use play on the inbound uuid? On Wed, 8 Apr 2020 at 21:41, Thilo-Alexander Ginkel <thilo@ginkel.com> wrote:
Hello everyone,
I am attempting to play a sound on both legs after creating a bridge once the B-leg has answered. execute_on_answer explicitly only works for the newly answered channel, so no sound is playing on the (previously already connected) A-leg.
Is there a way to make sure the sound is playing on both legs / the bridged call?
ATM, I'm doing this (in Lua):
session:execute("bridge", "{origination_callee_id_name='" .. callee_id .. "'}{execute_on_answer='playback tone_stream://%(500,0,500)'}user/jitsi@" .. domain_name)
Thanks, Thilo
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
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
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hi, Have you tried uuid_broadcast? It has a "both" option which may help achieve what you want. Best Regards, -- Vallimamod Abdullah SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 8 Apr 2020, at 21:54, Thilo-Alexander Ginkel <thilo@ginkel.com> wrote:
Hello everyone,
I am attempting to play a sound on both legs after creating a bridge once the B-leg has answered. execute_on_answer explicitly only works for the newly answered channel, so no sound is playing on the (previously already connected) A-leg.
Is there a way to make sure the sound is playing on both legs / the bridged call?
ATM, I'm doing this (in Lua):
session:execute("bridge", "{origination_callee_id_name='" .. callee_id .. "'}{execute_on_answer='playback tone_stream://%(500,0,500)'}user/jitsi@" .. domain_name)
Thanks, Thilo
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
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
participants (4)
-
Brian West
-
David Villasmil
-
Thilo-Alexander Ginkel
-
Vallimamod Abdullah