Allowable characters for username and secret in conf files

Hi there

Wondering if anyone knows what characters are allowed for the username and secret in iax.conf, sip.conf, etc. Are there certain characters which aren’t allowed?

many thanks

langals