| 230 | | echo('<tr><td><a href=# class="info">'._("SQL").'<span><br>'._("Enter an SQL query to use. You can return up to 5 columns and they will be assigned to the associated Asterisk vars. The first column returned will be the key used to match a destination below. The other columns can be assigned to Asterisk dialplan vars for use in the dialplan, as a CID name prefix, recorded into the CDR, etc.<br><br>Note that any Asterisk vars in the query need to be indicated as they are in Asterisk with '\${asteriskvar}'.").'<br></span></a></td><td><a href=# class="info">'._("Assign AST Vars 1-5").'<span><br>'._("<b>Note: The first value returned is used for the destination match.</b><br><br>Up to five results from the query can be assigned to Asterisk dialplan vars. Examples would be: CALLERID(name), CDR(userfield), OUTCID_2, or a custom variable that you put in the FreePBX Caller ID prefix field.<br><br>Note that you can leave a return value blank and not assign a var.<br><br>Note that the vars entered here do not need to be formatted as Asterisk vars but just include the var name.").'<br></span></a></td></tr>'."\n"); |
|---|
| | 230 | echo('<tr><td><a href=# class="info">'._("SQL").'<span><br>'._("Enter an SQL query to use. You can return up to 5 columns and they will be assigned to the associated Asterisk vars. The first column returned will be the key used to match a destination below. The other columns can be assigned to Asterisk dialplan vars for use in the dialplan, as a CID name prefix, recorded into the CDR, etc.<br><br>Note that any Asterisk vars in the query need to be indicated as they are in Asterisk with '\${asteriskvar}'.<br><br>Tip: SQL \"SELECT ('\${var}')\" will allow an Asterisk variable to be assigned to a new var (specified as one of the five) or be used as the destination match criteria.").'<br></span></a></td><td><a href=# class="info">'._("Assign AST Vars 1-5").'<span><br>'._("<b>Note: The first value returned is used for the destination match.</b><br><br>Up to five results from the query can be assigned to Asterisk dialplan vars. Examples would be: CALLERID(name), CDR(userfield), OUTCID_2, or a custom variable that you put in the FreePBX Caller ID prefix field.<br><br>Note that you can leave a return value blank and not assign a var.<br><br>Note that the vars entered here do not need to be formatted as Asterisk vars but just include the var name.").'<br></span></a></td></tr>'."\n"); |
|---|