POLARITY()¶
Synopsis¶
Set or get the polarity of a DAHDI channel.
Description¶
The POLARITY function can be used to set the polarity of a DAHDI channel.
Applies only to FXS channels (using FXO signalling) with supporting hardware.
The polarity can be set to the following numeric or named values:
-
0
-
idle
-
1
-
reverse
However, when read, the function will always return 0 or 1.
Example: Set reverse polarity
same => n,NoOp(Current Polarity: ${POLARITY()})
same => n,Set(POLARITY()=reverse)
same => n,NoOp(New Polarity: ${POLARITY()})
Example: Reverse the polarity from whatever it is currently
same => n,Set(POLARITY()=${IF($[ "${POLARITY()}" = "1" ]?0:1)})
Syntax¶
Arguments¶
Generated Version¶
This documentation was generated from Asterisk branch 16 using version GIT