A
A
aak42018-12-18 14:41:21
Telephony
aak4, 2018-12-18 14:41:21

freeswitch. How to organize a logical condition?

Please tell me how to interrupt the execution of extension by condition.
The call goes to the manager, if he picked up the phone, then everything is as usual, if he did not pick up the phone within 20 seconds, then the call goes to another number.

<extension name="group_dial_sales5">
      <condition field="destination_number" expression="^(437)$">
      <action application="bridge" data="{leg_timeout=20}user/[email protected]${domain_name}"/> 
<!--если трубка была поднята до срабатывания timeout, то следующий action выполнять не надо-->
      <action application="bridge" data="user/[email protected]${domain_name}"/> 
      </condition>
    </extension>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Makarov, 2018-12-20
@aak4

Set the option not to go further in the dialplan after the bridge

<action application="set" data="hangup_after_bridge=true"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question