bind_digit_action constantly reporting syntax error
Hello, I'ved created the following dialplan (fs v1.2.14) : <context name="bridging_capture"> <extension name="beidgin"> <condition field="destination_number" expression="(^.*$)" > <action application="set" data="hangup_after_bridge= false" /> <action application="digit_action_set_realm" data="bridging_capture" /> <action application="set" data="bridge_pre_execute_bleg_app=bind_digit_action"/> <action application="set" data="bridge_pre_execute_bleg_data=bridging_capture"/> <!--action application="bind_digit_action" data="bridging_capture,200,exec:hangup,self,peer" /--> <action application="bind_digit_action" data="bridging_capture,~200\*[0-9]{3,10},exec:execute_extension,digits,self,peer"/> <action application="bridge" data="user/2002" /> <!--action application="transfer" data="digits" /--> </condition> </extension> <extension name="digits"> <!--condition field="destination_number" expression="^200\*([0-9]{3,10})$"--> <condition field="destination_number" expression="^.*$"> <action application="hangup" /> </condition> </extension> </context> bind_digit_action constantly reporting Syntax Error, USAGE <realm>,<digits|~regex>,< string>[,<value>][,<dtmf target leg>][,<event target leg>] The original aim of the program is the capture the numbers after 200*, and bridge leg-a to the new number, but first disconnecting current leg-b. When using execute_extension with "exec_after_bridge_app=execute_extension "exec_after_bridge_arg=digits ${bridging_capture}" It makes leg-b constantly ring after the call hangup. So does the transfer action that is commented out. So what am I doing wrong here ? Thanks, Ido
participants (1)
-
ik