парсинг lyncstorytitle в теле сообщения запроса SIP - PullRequest
0 голосов
/ 14 октября 2019

В пакете сообщения sip-запроса мы получаем lyncstorytitle с актуальным текстом. мы используем itenso rtf parser для разбора текста, но itenso parser не может разобрать lyncstorytitle. Есть ли парсер, который может анализировать как текст rtf, так и lyncstorytitile? Ниже приведен пример пакета: {\ rtf1 \ fbidis \ ansi \ ansicpg1252 \ deff0 \ nouicompat \ deflang16393 {\ fonttbl {\ f0 \ fmodern \ fcharset178 Courier New;} {\ f1 \ fnil \ fcharset178 Segoe UI;} {\ f2 \fnil \ fcharset0 Segoe UI;} {\ f3 \ fnil Segoe UI;}} {\ colortbl; \ red0 \ green0 \ blue0;} {* \ generator Riched20 16.0.4405} \ viewkind4 \ uc1 \ pard \ rtlpar \ qr \ outl\ f0 \ rtlch \ fs20 \ lang1025 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'c3 \' e4\ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \ 'dd \' cd \ 'c7\ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \f1 \ f2 \ ltrch \ lang1033 sadiqпервый первый тестер \ cf0 \ outl \ f0 \ rtlch \ lang 1025 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7\ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \'dd \' cd \ 'c7 \' e1 \ 'df \' e6 \ 'c2 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed\ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl\ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1\ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \ 'dd\ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'df \' ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0\ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed \' cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \'c7 \' df \ 'ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \' e6 \ 'c2 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \'ed \' cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1\ 'df \' e6 \ 'c2 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed \' cf \ cf1 \ outl0 \ f1 \ cf0\ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed \' cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd\ 'c8 \' c7 \ 'df \' ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \' e6 \ 'c3 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \'dd \' cd \ 'c7 \' e1 \ 'df \' e6 \ 'c2 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed\ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \' c7 \ 'df \' ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl\ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1\ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \' e3 \ 'd1 \' cd \ 'c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'df \' ed \ 'dd \' cd \ 'c7 \' e1 \ 'df \'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6 \' e4 \ 'cc \' ed \ 'cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0\ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed \' cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \'c7 \' df \ 'ed \' dd \ 'cd \' c7 \ 'e1 \' df \ 'e6 \' c2 \ 'e3 \' e1 \ 'c3 \' e4 \ 'ca \' df \ 'e6\ 'e4 \' cc \ 'ed \' cf \ cf1 \ outl0 \ f1 \ cf0 \ outl \ f0 \ 'e3 \' d1 \ 'cd \' c8 \ 'c7 \' df \ 'ed \' dd \ 'cd \ 'c7 \' e1 \ 'df \' e6 \ 'c2 \' e3 \ 'e1 \' c3 \ 'e4 \' ca \ 'df \' e6 \ 'e4 \' cc \ 'ed \' cf \cf1 \ outl0 \ f1 \ f3 \ ltrch \ lang16393 \ par{* \ lyncstorytitle first msg \ '45 \ '06 \ '31 \ '06 \ '2d \ '06 \ '28 \ '06 \ '27 \ '06 \ '43 \ '06 \' 4a \ '06 \ '41 \ '06 \ '2d \ '06 \ '27 \ '06 \ '44 \ '06 \ '43 \ '06 \ '48 \ '06 \ '22 \ '06 \ '45 \ '06 \ '44 \'06 \ '23 \ '06 \ '46 \ '06 \ '2a \ '06 \ '43 \ '06 \ '48 \ '06 \ '46 \ '06 \' 2c \ '06 \ '4a \ '06\ '2f \ '06} {* \ lyncflags}}

В этом itenso может анализировать текстовую часть, но не часть lyncstorytitle.

...