Hi! Is there unicode support in Asterisk for SIP? E.g. How can I have a displayname with special characters? E.g. if I want to have the Umlaut ? in the display name: callerid=Jeff Gr?ser <11> AFAIK SIP requires that the ? must be encoded using UTF-8. Thus, the ? must be encoded as 2 bytes: 11000011 10100100 But Asterisk only uses one byte for the ?. Is there a way to configure Asterisk to encode the ? as UTF-8? thanks klaus -- Klaus Darilion nic.at
12 mar 2007 kl. 17.05 skrev Klaus Darilion:> Hi! > > Is there unicode support in Asterisk for SIP? E.g. How can I have a > displayname with special characters?No. I made a proposal for it a long time ago, without much comments. We need to fix this, since IAX2 now by spec is UTF8 too. In order to do it right we need to be able to convert since PSTN Caller ID Names is *not* UTF8. I started working on something for this in my Astum branch but got lost in libiconv. M? s? bra! /O ;-)> > E.g. if I want to have the Umlaut ? in the display name: > callerid=Jeff Gr?ser <11> > > AFAIK SIP requires that the ? must be encoded using UTF-8. Thus, > the ? must be encoded as 2 bytes: 11000011 10100100 > > But Asterisk only uses one byte for the ?. > > Is there a way to configure Asterisk to encode the ? as UTF-8? > > thanks > klaus > > > > -- > Klaus Darilion > nic.at > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users--- * Olle E Johansson - oej@edvina.net * Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden
>>>>> "KD" == Klaus Darilion <klaus.mailinglists@pernau.at> writes:KD> Hi! Is there unicode support in Asterisk for SIP? E.g. How can I KD> have a displayname with special characters? KD> E.g. if I want to have the Umlaut ? in the display name: KD> callerid=Jeff Gr?ser <11> Is your sip.conf UTF-8-encoded? /Benny
Benny Amorsen wrote:>>>>>> "KD" == Klaus Darilion <klaus.mailinglists@pernau.at> writes: > > KD> Hi! Is there unicode support in Asterisk for SIP? E.g. How can I > KD> have a displayname with special characters? > > KD> E.g. if I want to have the Umlaut ? in the display name: > KD> callerid=Jeff Gr?ser <11> > > Is your sip.conf UTF-8-encoded?Will it work with UTF-8 encoded sip.conf? -- Klaus Darilion nic.at
Klaus Darilion wrote:> Benny Amorsen wrote: >>>>>>> "KD" == Klaus Darilion <klaus.mailinglists@pernau.at> writes: >> >> KD> Hi! Is there unicode support in Asterisk for SIP? E.g. How can I >> KD> have a displayname with special characters? >> >> KD> E.g. if I want to have the Umlaut ? in the display name: >> KD> callerid=Jeff Gr?ser <11> >> >> Is your sip.conf UTF-8-encoded? > > Will it work with UTF-8 encoded sip.conf?By converting sip.conf into UTF-8 I manged to display german Umlaute ??? on a SNOM 360 softphone. But I had no luck with h??ek like ?. But I think this is a limitation of the SNOM phone. Obviously Asterisk treat the UTF-8 encoding just as characters and send them without knowing that is is unicode. Is it safe to use UTF-8 encoded configuration files? regards klaus -- Klaus Darilion nic.at