# unknown schemes zer:alice@example.org mailto:jj@gnu.org http://www.example.org/file.html ftp://www.example.org/index.html au://au.provider.org:6878/ # # contact 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 (contact 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.tn_2.ebn_8.suisacro.fr sip:MDU@1.kn_5.tn_1.suisacro.fr # # Valid contact fields without display names and brackets # # # Valid contact 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 contact fields with display names as quoted strings # "j.doe" "+1234" "user";tag=54 "Alice" ;tag=34ez2 "Alice";tag=345erye66 "A" "a" # # valid cases with escaped characters # "j.doe\\\\" "j.doe\\\"" "j.doe\\\" "j.doe\\" "j.doe\"" "+1\"234" # # 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 #