# Asterisk Project : Asterisk 13 Function_REDIRECTING

Created by wikibot on Aug 08, 2014

# REDIRECTING()

### Synopsis

Gets or sets Redirecting data on the channel.

### Description

Gets or sets Redirecting data on the channel.

The allowable values for the reason and orig-reason fields are the following:

- `unknown` - Unknown
- `cfb` - Call Forwarding Busy
- `cfnr` - Call Forwarding No Reply
- `unavailable` - Callee is Unavailable
- `time_of_day` - Time of Day
- `dnd` - Do Not Disturb
- `deflection` - Call Deflection
- `follow_me` - Follow Me
- `out_of_order` - Called DTE Out-Of-Order
- `away` - Callee is Away
- `cf_dte` - Call Forwarding By The Called DTE
- `cfu` - Call Forwarding Unconditional
  The allowable values for the xxx-name-charset field are the following:

- `unknown` - Unknown
- `iso8859-1` - ISO8859-1
- `withdrawn` - Withdrawn
- `iso8859-2` - ISO8859-2
- `iso8859-3` - ISO8859-3
- `iso8859-4` - ISO8859-4
- `iso8859-5` - ISO8859-5
- `iso8859-7` - ISO8859-7
- `bmp` - ISO10646 Bmp String
- `utf8` - ISO10646 UTF-8 String

### Syntax

    REDIRECTING(datatype,i)

##### Arguments

- `datatype` - The allowable datatypes are:
  - `orig-all`
  - `orig-name`
  - `orig-name-valid`
  - `orig-name-charset`
  - `orig-name-pres`
  - `orig-num`
  - `orig-num-valid`
  - `orig-num-plan`
  - `orig-num-pres`
  - `orig-subaddr`
  - `orig-subaddr-valid`
  - `orig-subaddr-type`
  - `orig-subaddr-odd`
  - `orig-tag`
  - `orig-reason`
  - `from-all`
  - `from-name`
  - `from-name-valid`
  - `from-name-charset`
  - `from-name-pres`
  - `from-num`
  - `from-num-valid`
  - `from-num-plan`
  - `from-num-pres`
  - `from-subaddr`
  - `from-subaddr-valid`
  - `from-subaddr-type`
  - `from-subaddr-odd`
  - `from-tag`
  - `to-all`
  - `to-name`
  - `to-name-valid`
  - `to-name-charset`
  - `to-name-pres`
  - `to-num`
  - `to-num-valid`
  - `to-num-plan`
  - `to-num-pres`
  - `to-subaddr`
  - `to-subaddr-valid`
  - `to-subaddr-type`
  - `to-subaddr-odd`
  - `to-tag`
  - `priv-orig-all`
  - `priv-orig-name`
  - `priv-orig-name-valid`
  - `priv-orig-name-charset`
  - `priv-orig-name-pres`
  - `priv-orig-num`
  - `priv-orig-num-valid`
  - `priv-orig-num-plan`
  - `priv-orig-num-pres`
  - `priv-orig-subaddr`
  - `priv-orig-subaddr-valid`
  - `priv-orig-subaddr-type`
  - `priv-orig-subaddr-odd`
  - `priv-orig-tag`
  - `priv-from-all`
  - `priv-from-name`
  - `priv-from-name-valid`
  - `priv-from-name-charset`
  - `priv-from-name-pres`
  - `priv-from-num`
  - `priv-from-num-valid`
  - `priv-from-num-plan`
  - `priv-from-num-pres`
  - `priv-from-subaddr`
  - `priv-from-subaddr-valid`
  - `priv-from-subaddr-type`
  - `priv-from-subaddr-odd`
  - `priv-from-tag`
  - `priv-to-all`
  - `priv-to-name`
  - `priv-to-name-valid`
  - `priv-to-name-charset`
  - `priv-to-name-pres`
  - `priv-to-num`
  - `priv-to-num-valid`
  - `priv-to-num-plan`
  - `priv-to-num-pres`
  - `priv-to-subaddr`
  - `priv-to-subaddr-valid`
  - `priv-to-subaddr-type`
  - `priv-to-subaddr-odd`
  - `priv-to-tag`
  - `reason`
  - `count`
- `i` - If set, this will prevent the channel from sending out protocol messages because of the value being set

### See Also

### Import Version

This documentation was imported from Asterisk Version SVN-branch-13-r420538