Module util

Source
Expand description

SIP utility functions

Functions§

num_bool
Returns “1” for true and “0” for false
sip_bool
Return “Y” on true and “N” on false
sip_count4
Stringify a number left padded with zeros to 4 spaces.
sip_date
Translate an iso8601-ish to SIP format
sip_date_from_dt
Same as sip_date(), but starting from a DateTime object.
sip_date_now
Current date + time in SIP format
sip_string
Clean up a string for inclusion in a SIP message
space_bool
Returns “Y” on true, “ “ on false.