|
From: | Ceyda İdikurt |
Subject: | [osip-dev] Parsing problem in case of Turkish characters in SDP |
Date: | Mon, 24 Sep 2012 14:46:10 +0300 |
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |