[Freeswitch-users] Problem setting up bind_digit_action

Denis Gasparin denis.gasparin at edistar.com
Fri Mar 1 08:54:17 MSK 2013


In Italy the proverb says: four eyes are better than two :-)

Yes, you're right!

Thank you very much for the .. eyes... ehm help! :-)

Denis

Il giorno 01/mar/2013, alle ore 02:07, Michael Collins <msc at freeswitch.org> ha scritto:

> Sometimes the new eye is the one that sees the obvious. You are quite correct. An action MUST be inside a condition, no exceptions. I suspect your edited version of the condition block will function as the OP hopes it would.
> 
> -MC
> 
> On Thu, Feb 28, 2013 at 10:05 AM, Steven Schoch <schoch+freeswitch.org at xwin32.com> wrote:
>> On Thu, Feb 28, 2013 at 12:20 AM, Denis Gasparin <denis.gasparin at edistar.com> wrote:
>>> 
>>> The extension MYSETUP is:
>>> <extension name="MYSETUP_EXTENSION">
>>>         <condition field="destination_number" expression="^MYSETUP$"/>
>>>         <action application="log" data="INFO MYSETUP exec"/>
>>> </extension>
>> 
>> I'm rather new at this, so I could be wrong, but I believe an action must be contained inside a condition.  So extension from above should be:
>> 
>> <extension name="MYSETUP_EXTENSION">
>>         <condition field="destination_number" expression="^MYSETUP$">
>>             <action application="log" data="INFO MYSETUP exec"/>
>>         </condition>
>> </extension>
>> 
>> -- 
>> Steve
>> 
>> _________________________________________________________________________
>> 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/20130301/46a0c199/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list