bind_digit_action - another question
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@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
For kicks, change 'peer' to 'self' and retest. Is the behavior the same or no? It may be that you have your legs flip-flopped some how. -MC On Tue, May 1, 2012 at 11:04 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
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@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?
participants (2)
-
Boris Kovalenko
-
Michael Collins