Hi I want to play a phrase on aleg before bridge using this xml chunk <action application="set" data="bridge_pre_execute_aleg_app=playback"/> <action application="set" data="bridge_pre_execute_aleg_data=phrase:queue_agent:*${cc_agent}*"/> but because cc_agent is expanded before it is set, the phrase input is always empty when bridging. is there anyway to have it expanded just before bridge?
sorry! sent it without subject On Tue, Mar 21, 2017 at 8:04 PM, Babak Yakhchali <babak.freeswitch@gmail.com
wrote:
Hi I want to play a phrase on aleg before bridge using this xml chunk <action application="set" data="bridge_pre_execute_aleg_app=playback"/> <action application="set" data="bridge_pre_execute_aleg_ data=phrase:queue_agent:*${cc_agent}*"/> but because cc_agent is expanded before it is set, the phrase input is always empty when bridging. is there anyway to have it expanded just before bridge?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
inline? ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Tue, Mar 21, 2017 at 5:42 PM, Babak Yakhchali <babak.freeswitch@gmail.com
wrote:
sorry! sent it without subject
On Tue, Mar 21, 2017 at 8:04 PM, Babak Yakhchali < babak.freeswitch@gmail.com> wrote:
Hi I want to play a phrase on aleg before bridge using this xml chunk <action application="set" data="bridge_pre_execute_aleg_app=playback"/> <action application="set" data="bridge_pre_execute_aleg_ data=phrase:queue_agent:*${cc_agent}*"/> but because cc_agent is expanded before it is set, the phrase input is always empty when bridging. is there anyway to have it expanded just before bridge?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
yes. I solved it by calling a lua script and using session:sayPhrase in it.. but I thought may be there is a better and simpler way of doing such a thing I placed this in my script: session:sayPhrase('queue_agent',session:getVariable('callee_id_number')); and using it like this: <action application="set" data="bridge_pre_execute_aleg_app=lua"/> <action application="set" data="bridge_pre_execute_aleg_data=lua/callcenter-say-agent-number.lua"/> <action application="callcenter" data="1"/> On Tue, Mar 21, 2017 at 8:34 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
inline?
ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Tue, Mar 21, 2017 at 5:42 PM, Babak Yakhchali < babak.freeswitch@gmail.com> wrote:
sorry! sent it without subject
On Tue, Mar 21, 2017 at 8:04 PM, Babak Yakhchali < babak.freeswitch@gmail.com> wrote:
Hi I want to play a phrase on aleg before bridge using this xml chunk <action application="set" data="bridge_pre_execute_aleg_app=playback"/> <action application="set" data="bridge_pre_execute_aleg_ data=phrase:queue_agent:*${cc_agent}*"/> but because cc_agent is expanded before it is set, the phrase input is always empty when bridging. is there anyway to have it expanded just before bridge?
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
participants (2)
-
Babak Yakhchali
-
David Villasmil