def validate_twilio(attr, value):
if attr in ("<STR_LIT>", "<STR_LIT:to>"):<EOL><INDENT>check_valid("<STR_LIT>", attr, value, validus.isphone, "<STR_LIT>")<EOL><DEDENT>elif attr in ("<STR_LIT>"):<EOL><INDENT>check_valid("<STR_LIT>", attr, value, validus.isurl, "<STR_LIT:url>")<EOL><DEDENT>
Twilio input validator function.