The assign service/startup command assigns an installed service to DNIS and ANI numbers or directly to a channel.
Synopsis
assign service
service_name
[startup
startup_name
] to chan
chan_list
assign service
service_name
to dnis
phone_list
[ani
phone_list
]
assign service
service_name
to ani
phone_list
[dnis
phone_list
]
Description
The assign service/startup command is used to assign services to either a set of channels or to DNIS and ANI numbers. Services should be assigned after the service is verified and installed, the number of channels changes, or the system is reconfigured. Use the display services command to see a list of valid service names.
Parameters for the assign service/startup command are described in the following table:
Parameter |
Description |
chan_list |
Indicates channel numbers or channel number ranges in the form chan1-chan2. Use a comma or space to separate channel numbers in the list of channel numbers or ranges. |
phone_list |
Indicates telephone numbers or telephone number ranges in the form phone1:phone2. Use a comma or space to separate the list of telephone numbers or ranges. |
Examples
The following example shows the assignment of a service stdin (standard in as an arbitrary name for a script) to channel 0.
assign service stdin to chan 0
The following example shows the assignment of a service stdout (standard out as an arbitrary name for a script) to channel 1.
assign service stdout to chan 1
The following example shows the assignment of a startup service stdout to channels 4 through 7.
assign startup stdout to chan 4-7
The following example shows the assignment of the service stdout and startup service stdin to channels 4 through 7.
assign startup stdin service stdout to chan 4-7
The following example shows the assignment of the service stdout to DNIS 5000 through 5008 and ANI any.
assign service stdout to dnis 5000:5008
The following example shows the assignment of the service stdout to DNIS 5000 through 5008 and ANI 6000.
assign service stdout to dnis 5000:5008 ani 6000
The following example shows the assignment of the service stdout to DNIS any and ANI 6000 through 9000.
assign service stdout to ani 6000:9000
The following example shows the assignment of the service stdout to DNIS 3000 and ANI 2000-3000.
assign service stdout to dnis 3000 ani 2000:3000