# valid cases with escaped characters # "\"\""abb" "\""\"" "\\" "\\\\" "\\\\\\\\" "\"\"" "q\\\\" "j.doe\\\\" "j.doe\\\"" "j.doe\\" "j.doe\"" "+1\"234" # # invalid cases with escaped characters # "\" "\\\" ""\"" "\\\\\\\" # "j.doe\\\" "a\" "a\\\" "a"\"" "a\\\\\\\" "j.doe\\\" # "\ab" "\\\ab" ""\"ab" # "a\"\a"" "a\"\a"a" "a\"\\"a" "a\"\"a" # sip:j.doe@big.com;tag=34ytr34.2;tag2=34ytr34.2 sip:j.doe@big.com;tag=34ytr34.2;tag2=34ytr34.2;lr sip:j.doe@big.com;lr # # from with tags and url without brackets # sip:j.doe@big.com;tag=34ytr34.2 sip:+1-212-555-1212:1234@gateway.com;tag=34ytr34.2 sip:1212@gateway.com;tag=34ytr34.2 sip:alice@10.1.2.3;tag=34ytr34.2 sip:alice@example.com;tag=34ytr34.2 sip:alice%40example.com@gateway.com;tag=34ytr34.2 # # url without url-parameter (from parameter can be present) # sip:j.doe@big.com sip:j.doe@big.com sip:j.doe:secret@big.com sip:j.doe@big.com sip:+1-212-555-1212:1234@gateway.com sip:1212@gateway.com sip:alice@10.1.2.3 sip:alice@example.com sip:alice%40example.com@gateway.com sip:alice@registrar.com sip:alice@registrar.com:5080 sip:+1234@po4x80.com sip:+1254353534@0.cxcsqn.qscr4n.suisacro.fr sip:MDU@1.kn_5.tn_1.suisacro.fr # # Valid from fields without display names and brackets # # # Valid from fields without display names as token (not quoted strings) # alice jack j.doe user;tag=54 Alice ;tag=34ez2 Alice;tag=345erye66 A a # # Valid from fields with display names as quoted strings # "j.doe" "+1234" "user";tag=54 "Alice" ;tag=34ez2 "Alice";tag=345erye66 "A" "a" # # valid cases with utf8 # "µi²éù^r@§è£¤" "æþøð¢ðß" "»¢ðnß·" "¶Ð߫صÞ" "¶:?=@?Ð;߫صÞ" "¶:;?=@?Ð;߫صÞ" "" "\" \\qsd" # # valid case with a nasty bracket... # "jack<4>\\" # # Are those URLs correct??? but How can they be parsed??? # .... # #some bad cases # si zer:alice@example.com sip:@@qsd;sqde_' sip:;qsde #