[Freeswitch-users] get a variable at hunting phase that is set at executing phase
Juan Pablo L.
jpablolorenzetti at hotmail.com
Thu Dec 6 00:19:22 MSK 2012
Thanks Avi for you answer, i m going to try that (i already have and the ${int} got lost somewhere but i ll try again)
Michael, thanks for your suggestion, i have put it in pastebin: http://pastebin.freeswitch.org/20293
thanks!
Date: Wed, 5 Dec 2012 13:06:35 -0800
From: msc at freeswitch.org
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] get a variable at hunting phase that is set at executing phase
It might be good for you to pastebin the debug log of the call flow. Use pastebin.freeswitch.org and set the syntax highlight to FreeSWITCH Log. Once that's there we will take a look and help you diagnose what is (and is not) happening. Looking at the log is the best way to be sure that you know what's really going on.
-MC
On Wed, Dec 5, 2012 at 12:36 PM, Juan Pablo L. <jpablolorenzetti at hotmail.com> wrote:
Guys, i have a script the sets some variables the i m supposed to use to decide if a condition meets, i have tried to use the execute_extension app but it does not work, this is the dialplan:
<extension name="huawei_csoft_gw_outbound_call_international">
<condition field="${int}" expression="1"/> <condition field="destination_number" expression="^00[\d]{7,}?$">
<action application="set" data="effective_caller_id_number=280${caller_id_number}"/> <action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/>
</condition> </extension>
the script that sets the var ${int} is called "get_user_profile.lua", i have placed it all over the place and cant make this work.
i have used "execute_extension" in the following way:
<extension name="is_international_allowed">
<condition field="destination_number" expression="^iia$"> <action application="lua" data="get_user_profile.lua" />
</condition> </extension>
<extension name="huawei_csoft_gw_outbound_call_international">
<condition field="destination_number" expression="^00[\d]{7,}?$"> <action application="execute_extension" data="iia XML smart_private"/> -->
</condition> <condition field="${int}" expression="1"/>
<condition field="destination_number" expression="^00[\d]{7,}?$"> <action application="set" data="effective_caller_id_number=280${caller_id_number}"/>
<action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/> </condition>
</extension>
i know this is simple but i m missing something here, i appreciate any ideas. thanks!!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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/20121205/a746fbaf/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list