set chat

Use the set chat command to

Chat table entries provide telephone number string translation and can be accessed by any script that you configure. The chat table holds a maximum of 12 entries.

Anyone can display chat table entries. Root privileges are required to configure entries.

See the set script command for information on creating scripts that use telephone string translation.

Command Syntax

Configuration Syntax

Enter the set chat command as shown below to configure chat table entries.

set chat [name=chat_name] [delay=string] [pound=string] [range=range] [retry=number] [star=string] [wait=string]

Display Syntax

Enter the set chat command as shown below to display chat table entries.

set chat [range=range]

Remove Syntax

Enter the set chat command as shown below to remove a chat table entry:

set chat {rmchat=on range=range}|{rmchat=chatname}

Rename Syntax

Enter the set chat command as shown below to rename a chat table entry:

set chat name=name newname=new_name

Command Fields

Command Field

Description

delay

Specifies a string of up to 24 characters to substitute into telephone numbers in place of the delay character.

name

Specifies the name of the chat table entry.

newname Specifies a new name for the chat table entry identified by the name field.

pound

Is a string of up to 24 characters to substitute into telephone numbers in place of the # character

range

Is one of the following:

  • A range of ports to which the chat table entry will apply

  • A range of chat table index numbers, which identify chat table entries

retry

Specifies the number of times to retry a call. The range is 0 to 99 times.

rmchat

Removes the chat table entry specified on the range or name field

star

Specifies a string of up to 24 characters to substitute into telephone numbers in place of the * character.

wait

Specifies a string of up to 24 characters to substitute into telephone numbers in place of the wait character.

Command Examples

Displaying the Entire Chat Table

In this example, the set chat command displays the entire chat table.

set chat

Configuring a Table Entry

In this example, the set chat command configures a new entry.

set chat name=chat1 star=4452624

Removing An Entry

In this example, the set chat command removes a chat table entry from the chat table.

set chat rmchat=chat1

Renaming a Chat Table Entry

In this example, the set chat command renames the chat table entry.

set chat name=chat1 newname=chat2