and added files
[bcm963xx.git] / userapps / opensource / libosip2 / src / test / res / tos.txt
1 # unknown schemes
2 zer:alice@example.org
3 mailto:jj@gnu.org
4 http://www.example.org/file.html
5 ftp://www.example.org/index.html
6 au://au.provider.org:6878/
7 #
8 # contact with tags and url without brackets
9 #
10 sip:j.doe@big.com;tag=34ytr34.2
11 sip:+1-212-555-1212:1234@gateway.com;tag=34ytr34.2
12 sip:1212@gateway.com;tag=34ytr34.2
13 sip:alice@10.1.2.3;tag=34ytr34.2
14 sip:alice@example.com;tag=34ytr34.2
15 sip:alice%40example.com@gateway.com;tag=34ytr34.2
16 #
17 # url without url-parameter (contact parameter can be present)
18 #
19 sip:j.doe@big.com
20 sip:j.doe@big.com
21 sip:j.doe:secret@big.com
22 sip:j.doe@big.com
23 sip:+1-212-555-1212:1234@gateway.com
24 sip:1212@gateway.com
25 sip:alice@10.1.2.3
26 sip:alice@example.com
27 sip:alice%40example.com@gateway.com
28 sip:alice@registrar.com
29 sip:alice@registrar.com:5080
30 sip:+1234@po4x80.com
31 sip:+1254353534@0.tn_2.ebn_8.suisacro.fr
32 sip:MDU@1.kn_5.tn_1.suisacro.fr
33 #
34 # Valid contact fields without display names and brackets
35 #
36 <sip:j.doe@big.com>
37 <sip:j.doe@big.com;maddr=239.255.255.1;ttl=15>
38 <sip:j.doe:secret@big.com;transport=tcp>
39 <sip:j.doe@big.com?subject=project>
40 <sip:+1-212-555-1212:1234@gateway.com;user=phone>
41 <sip:1212@gateway.com>
42 <sip:alice@10.1.2.3>
43 <sip:alice@example.com>
44 <sip:alice%40example.com@gateway.com>
45 <sip:alice@registrar.com;method=REGISTER>
46 <sip:alice@registrar.com:5080;method=REGISTER?subject=project&retry-after=3600>
47 <sip:+1234@po4x80.com;user=phone>
48 <sip:+1234@po4x80.com;user=phone?require=com.po4x80.call-bonheur&Proxy-Require=com.po4x80.call-malheur>
49 <sip:+1254353534@0.dsqn_2.aded.suisacro.fr;user=phone?Require=com.po4x80.y-rgbell.po4x80.artolatic-haka-off>
50 <sip:MDU@1.kn_5.tn_1.suisacro.fr;user=ip>
51 #
52 # Valid contact fields without display names as token (not quoted strings)
53 #
54 alice<sip:alice@10.1.2.3>
55 jack<sip:1212@gateway.com>
56 j.doe <sip:j.doe@big.com;maddr=239.255.255.1;ttl=15>
57 user<sip:+1-212-555-1212:1234@gateway.com;user=phone>;tag=54
58 Alice <sip:alice@example.com>;tag=34ez2
59 Alice<sip:alice%40example.com@gateway.com>;tag=345erye66
60 A<sip:alice@registrar.com;method=REGISTER>
61 a <sip:alice@registrar.com:5080;method=REGISTER?subject=project&retry-after=3600>
62 #
63 # Valid contact fields with display names as quoted strings
64 #
65 "j.doe" <sip:j.doe@big.com>
66 "+1234"<sip:+1234@ipworld3700.com;user=phone>
67 "user"<sip:+1-212-555-1212:1234@gateway.com;user=phone>;tag=54
68 "Alice" <sip:alice@example.com>;tag=34ez2
69 "Alice"<sip:alice%40example.com@gateway.com>;tag=345erye66
70 "A"<sip:alice@registrar.com;method=REGISTER>
71 "a" <sip:alice@registrar.com:5080;method=REGISTER?subject=project&retry-after=3600>
72 #
73 # valid cases with escaped characters
74 #
75 "j.doe\\\\" <sip:j.doe:secret@big.com;transport=tcp>
76 "j.doe\\\"" <sip:j.doe:secret@big.com;transport=tcp>
77 "j.doe\\\" <sip:j.doe:secret@big.com;transport=tcp>
78 "j.doe\\"<sip:j.doe@big.com?subject=project>
79 "j.doe\""<sip:j.doe@big.com?subject=project>
80 "+1\"234"<sip:+1234@ipworld3700.com;user=phone>
81 #
82 # valid cases with utf8
83 #
84 "µi²éù^r@§è£¤" <sip:j.doe:secret@big.com;transport=tcp>
85 "æþøð¢ðß" <sip:j.doe:secret@big.com;transport=tcp>
86 "»¢ðnß·" <sip:j.doe:secret@big.com;transport=tcp>
87 "¶Ð߫صÞ"<sip:j.doe@big.com?subject=project>
88 "¶:?=@?Ð;߫صÞ"<sip:j.doe@big.com?subject=project>
89 "¶:;?=@?Ð;߫صÞ"<sip:j.doe@big.com?subject=project>
90 "<sip:j.doe@big.com?subject=project>"<sip:j.doe@big.com?subject=project>
91 "\" \\qsd"<sip:j.doe@big.com?subject=project>
92 #
93 # valid case with a nasty bracket...
94 #
95 "jack<4>\\" <sip:jack@2;method=NOTIFY?subject=spamming>
96 #
97 # Are those URLs correct??? but How can they be parsed???
98 # ....
99 <sip:j.doe@big.com;to[to?r+s=foo:&.bar;qs=dr$/def>
100 <sip:j.d;oe:secret?@big.com;to[to?r+s=foo:&.bar;qsd=r$/def>
101 <sip:j.+d$=o\?;e:secr&=+$,@big.com;to[to?r+s=foo:&.ba=r;qsdr$/def>
102 #
103 #some bad cases
104 #
105 si
106 <si>
107 zer:alice@example.com
108 <zer:alice@example.com>
109 <sip:@@qsd;sqde_'>
110 sip:@@qsd;sqde_'
111 <sip:;qsde>
112 sip:;qsde
113 <sip:2?subject=spamming>
114 #