User-to-User Information
Controlling UUI relay
UUI (user-to-user information) can be present in different messages received by either call leg during a call. For example, information can be carried during the initial invite, other information can be carried when the call is alerted, answered, or terminated.
Routing scripts can control if the UUI received from one leg through the call will be forwarded to the other call leg:
uui_forward_enabled
Routing scripts can also read and modify the UUI received with the incoming call leg, before it gets forwarded upon creation of the outgoing call leg:
uui
UUI (user-to-user indication) values
Byte array represented as ruby String. Use bridge=params[:bridge], then bridge[:uui] to access the data.
To access the bytes in Ruby, use ruby String operator []. For example: bridge[:uui][0] will return the binary value of the first UUI byte.
Function each_byte can also be useful to iterate through all bytes of the UUI.
uui_forward_enabled values
Controls forwarding or discarding of UUI to outgoing call leg.
Values for this parameter are "0", "1", "false" or "true.
0/false: UUI is not forwarded between call legs
1/true: UUI is forwarded between call legs
The value for this parameter at input of routing script depends on the "Forward UUI" parameter in the "Advanced" section of the Gateway configuration page of the Web Portal. The script may change this value to override the Gateway configuration.
Last updated
Was this helpful?