cui.post-auth {
if (!&control.Proxy-To-Realm && &Chargeable-User-Identity && !&reply.Chargeable-User-Identity &&
(&Operator-Name || ('${policy.cui_require_operator_name}' != 'yes')) ) {
- &reply.Chargeable-User-Identity = %{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{Operator-Name}:-}}}
+ &reply.Chargeable-User-Identity = "%{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{Operator-Name}:-}}}"
}
#
cui-inner.post-auth {
if (&outer.request.Chargeable-User-Identity && \
(&outer.request.Operator-Name || ('${policy.cui_require_operator_name}' != 'yes'))) {
- &reply.Chargeable-User-Identity := %{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{outer.request.Operator-Name}:-}}}
+ &reply.Chargeable-User-Identity := "%{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{outer.request.Operator-Name}:-}}}"
}
}
#
# Sets Tmp-uint64-0 with the current epoch time in ms
time_current_ms {
- &request.Tmp-uint64-0 := %{expr:(%c*1000) + (%C/1000)}
+ &request.Tmp-uint64-0 := "%{expr:(%c*1000) + (%C/1000)}"
}
# Returns elapsed time in ms since time_current_ms
#
# Sets Tmp-uint64-1 with number of milliseconds
time_elapsed_ms {
- &request.Tmp-uint64-1 := %{expr:(%c*1000) + (%C/1000) - %{Tmp-uint64-0}}
+ &request.Tmp-uint64-1 := "%{expr:(%c*1000) + (%C/1000) - %{Tmp-uint64-0}}"
}
# Handles the Expiration attribute
if ("%{Foreach-Variable-0}" =~ /^([0-9]+)=(.*)$/) {
# &request.Broadsoft-Attr-255 -= "%{Foreach-Variable-0}"
"&request.BroadSoft-Attr-%{1}" += "%{2}"
- }
}
}
}