[Freeswitch-users] (no subject)

Babak Yakhchali babak.freeswitch at gmail.com
Tue Mar 21 20:49:52 MSK 2017


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 at gmail.com> wrote:

> inline?
>
>>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
>
> On Tue, Mar 21, 2017 at 5:42 PM, Babak Yakhchali <
> babak.freeswitch at gmail.com> wrote:
>
>> sorry! sent it without subject
>>
>> On Tue, Mar 21, 2017 at 8:04 PM, Babak Yakhchali <
>> babak.freeswitch at 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 at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170321/73a43b86/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list