|
From: | Aymeric Moizard |
Subject: | Re: [osip-dev] Parsing problem in case of Turkish characters in SDP |
Date: | Tue, 25 Sep 2012 20:48:25 +0200 |
byte-string = 1*(%x01-09/%x0B-0C/%x0E-FF) ;any byte except NUL, CR, or LF
Hi everyone,
This is Ceyda and i am beginner in C++.I have a problem with oSIP library.If anyone can help, thank you in advance.
I’m trying to parse that SDP by using oSIP SDP parser:
v=0
o=- 3556967126 3556967126 IN IP4 192.168.200.27
s=pjmsrp
c=IN IP4 192.168.200.27
t=0 0
m=message 52805 TCP/MSRP *
a=path:msrp://192.168.200.27:52805/0b9cdc925d9a42eab01c43f7d375575a;tcp
a=sendonly
a=setup:active
a=accept-types:*
a=file-selector:name:"öçşğüİ.jpg" type:application/octet-stream size:245418 hash:sha1:1b10ec8f9d3054a54341f9a721949886fcc1
But sdp_message_parse method fails if SDP has any Turkish characters.Then i tried to add “a:charset” parameter to SDP like that:
v=0
o=- 3556967126 3556967126 IN IP4 192.168.200.27
s=pjmsrp
c=IN IP4 192.168.200.27
t=0 0
a=charset:ISO-8859-9
m=message 52805 TCP/MSRP *
a=path:msrp://192.168.200.27:52805/0b9cdc925d9a42eab01c43f7d375575a;tcp
a=sendonly
a=setup:active
a=accept-types:*
a=file-selector:name:"öçşğüİ.jpg" type:application/octet-stream size:245418 hash:sha1:1b10ec8f9d3054a54341f9a721949886fcc1
But it still fails again.What should i do to make it parsed correctly?
Ceyda İdikurt
_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
[Prev in Thread] | Current Thread | [Next in Thread] |