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