[Freeswitch-users] bind_digit_action - another question

Boris Kovalenko boris at tagnet.ru
Tue May 1 22:04:07 MSD 2012


Hello!

     The simple setup:


<extension name="Local_Calls">
<condition field="destination_number" expression="^(10[12])$">
<action application="bind_digit_action" 
data="rlm_a,*1,exec:execute_extension,ext_a XML test.tagnet.cc,both,self"/>
<action application="bridge" data="user/$1 at test.tagnet.cc" />
</condition>
</extension>

<extension name="ext_a">
<condition field="destination_number" expression="^ext_a$">
<action application="log" data="ALERT EXT_A" />
</condition>
</extension>

The call is made from number 102 to 101. No matter on what side I enter 
*1 - the ext_a is called.
Now I change 'both' to 'peer'. The call is the same - from 102 to 101. 
And now ext_a is called only if I enter it on 101 side! I'm confused - 
docs describing another logic? Or I need another params for 
dtmf_targer_leg and event_target_leg?



-- 
Regards,
Boris





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