Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
configuration:telephony:dialplan [2019/06/06 12:08] – [Attendance] acruzconfiguration:telephony:dialplan [2024/03/05 16:08] (current) – [Bridge custom - single and send dtmf] admin
Line 28: Line 28:
 <code> <code>
 ${destination_number} => the destination number dialed by the user ${destination_number} => the destination number dialed by the user
-${caller_id_number} => the caller id number+${caller_id_number} => the call caller id number 
 +${caller_id_name} => the call caller id name 
 +${origination_caller_id_number} => the call caller id number effective 
 +${origination_caller_id_name} => the call caller id name effective
 ${val1}, ${val2}, ... => use the resulting match from the regular expression inside ()  ${val1}, ${val2}, ... => use the resulting match from the regular expression inside () 
 +${domain_name} => the domain name
 +${line_name} => the line name
 +${account_name} => the account name
 +${description} => the account description
 +${accountcode} => the call accountcode
 +${userfield} => the call userfield
 +${uuid} => The call unique identifier
 +${call_uuid} => The call uuid unique identifier
 +${channel_name} => the channel name
 +${channel_type} => the channel type
 +${channel_type} => the channel type
 +${context} => The dial-plan context name
 +${extension} => The dial-plan extension name
 +${billsec} => The call billsec time in seconds
 +${bridge_hangup_cause} => The hangup cause for the bridge action
 +${bridge_originate_disposition} => The originate cause for the bridge action
 +${ivr_digits} => digits pressed inside the ivr
 +${odbc_[\w-]+} => The odbc return variables
 +${chan_[\w-]+} => The custom channel variable defined in action channel variable
 +${sip_p_[\w-]+} => SIP optional P-Key-Flags headers variables
 +${sip_x_[\w-]+} => SIP optional custom headers variables
 +${sip_to_user} => SIP to user variable.
 </code> </code>
  
Line 42: Line 67:
 </code> </code>
  
 +=====Bridge local=====
 +This action allows you call to local accounts or local groups.
 +
 +
 +====Bridge local - account====
 +To call to a account.
 +
 +  * **Name**: call account
 +  * **Priority**: //last//
 +  * **Conditions**: x - //custom//; x - //Destination number//: x-//Expression//: ^20\d$
 +  * **Action**: x - //custom//: //Bridge Local//; //Type//: x - //account//; //Domain//: commsmundi.com; //Number//: ${destination_number}
 +  * click __Add__
 +
 +====Bridge local - group====
 +To call to a group.
 +
 +  * **Name**: call group
 +  * **Priority**: //last//
 +  * **Conditions**: x - //custom//; x - //Destination number//: x-//Expression//: ^666$
 +  * **Action**: x - //custom//: //Bridge Local//; //Type//: x - //group//; //Domain//: commsmundi.com; //Number//: technical
  
 =====Bridge custom===== =====Bridge custom=====
Line 110: Line 155:
   * **Name**: call local   * **Name**: call local
   * **Priority**: //after retrieve_blind_transfer_between_extensions//   * **Priority**: //after retrieve_blind_transfer_between_extensions//
-  * **Conditions**: x - //custom//; x - //list//: <list_domain> ; x - //Channel Name//: //Name//: isblindtransfer , //Expression//: ^true$ +  * **Conditions**: 
-  * **Action**: x - //custom//: //Bridge Local//;+    * x - //custom//; x - //Destination number//: x - //list//: <list_domain> 
 +    * x - //Advanced//; x - //Channel variable//: //Name//: isblindtransfer , //Expression//: ^true$ 
 +  * **Action**: x - //custom//: //Bridge Custom//;
     * //Destination//: //Domain//: <domain>; //Number//: ${destination_number};     * //Destination//: //Domain//: <domain>; //Number//: ${destination_number};
     * //Continue//; //Condition//: x - //On timeout//; x -//On failure//      * //Continue//; //Condition//: x - //On timeout//; x -//On failure// 
     * //Transfer//; //Destination//: ${blind_transfer_channel_name} % <context>     * //Transfer//; //Destination//: ${blind_transfer_channel_name} % <context>
 +
 +====Bridge custom - single and list condition====
 +To call to destination using list condition, use the following parameters:
 +
 + - __add the list__
 +  * **Name**: list_calls
 +  * **Mode**: Full match
 +  * click __Add__
 +
 + - __add the values in list__
 +
 +  * **Value**: 100
 +  * **Parameters**: 612345678
 +  * click __Add__
 +  * ....
 +
 + - __add rule action__
 +  * **Name**: call
 +  * **Priority**: //last//
 +  * **Conditions**: x - //custom//; x - //Destination number//: x-//list//: <list_name>$
 +  * **Action**: x - //custom//: //Bridge Custom//; //Type//: x - //Single//; //Destination//: //Remote//; //Line//: <select a line>; //Number//: ${list1}; //Timeout//: 60
 +  * click __Add__
 +
 +====Bridge custom - single and send dtmf ====
 +To call to a landline (using Spain national numeration) and send dtmf use the following parameters:
 +
 +  * **Name**: call landline
 +  * **Priority**: //last//
 +  * **Conditions**: x - //custom//; x - //Destination number//: x-//Expression//: ^([89][1-8]\d{7})(\d+)$
 +  * **Action**: x - //custom//: //Bridge Custom//; //Type//: x - //Single//; //Destination//: //Remote//; //Line//: <select a line>; //Number//: ${val1}; //Timeout//: 60
 +    * x - //DTMF//;
 +    * x - //Destination//;
 +    * //Digits//: ${val2} //Duration//: <Duration>; //Delay//: <Delay>;
 +  * click __Add__
 +
 =====Callback===== =====Callback=====
 The function callback allows to trigger an automatic call between a destination and an action. For example, you can use this function to build an automatic system where you can call and CM returns you the call and connects it to the application disa, so you can make calls as a normal company extension. The function callback allows to trigger an automatic call between a destination and an action. For example, you can use this function to build an automatic system where you can call and CM returns you the call and connects it to the application disa, so you can make calls as a normal company extension.
Line 761: Line 843:
   * Name: Attendance_in   * Name: Attendance_in
   * Conditions: x - Custom   * Conditions: x - Custom
 +  * x - Channel name; x - Expression: ^account/(.*)@commsmundi.com
   * x - Destination number; x - Expression: ^213$   * x - Destination number; x - Expression: ^213$
   * Action: Attendance; Type: x - In   * Action: Attendance; Type: x - In
-  * Destination: domain: commsmundi.com number : 304+  * Destination: domain: commsmundi.com number : ${val1}
   * Click on __Add__   * Click on __Add__
  
Line 770: Line 853:
   * Name: Attendance_out   * Name: Attendance_out
   * Conditions: x - Custom   * Conditions: x - Custom
 +  * x - Channel name; x - Expression: ^account/(.*)@commsmundi.com
   * x - Destination number; x - Expression: ^214$   * x - Destination number; x - Expression: ^214$
   * Action: Attendance; Type: x - Out   * Action: Attendance; Type: x - Out
-  * Destination: domain: commsmundi.com number : 304+  * Destination: domain: commsmundi.com number : ${val1}
   * Click on __Add__   * Click on __Add__
  
/home/www/wiki/data/attic/configuration/telephony/dialplan.1559815690.txt.gz · Last modified: 2019/06/06 12:08 by acruz
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki