[SIP Beyond VoIP] Error in message with spanish characters in Sylkserver
Jonathan
jsandoval at ikono.com.co
Tue Aug 13 16:29:46 CEST 2013
Hi everyone.
I'm running sylkserver 2.5.0 with the --no-fork option, and as xmppgateway.
When I send a message with characters like 'ñ', or á, é, í... the next
exception is raised, and, of course, the message is not received:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
line 824, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/dist-packages/eventlib/coros.py", line 199, in
_do_send
waiter.throw(*exc)
File "/usr/lib/python2.7/dist-packages/eventlib/api.py", line 235, in
_spawn_startup
return cb(*args, **kw)
File
"/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/__init__.py",
line 312, in _NH_XMPPGotChatMessage
sip_message_sender.send().wait()
File "/usr/lib/python2.7/dist-packages/eventlib/coros.py", line 150, in
wait
return api.get_hub().switch()
File "/usr/lib/python2.7/dist-packages/eventlib/hubs/twistedr.py", line
130, in switch
return self.greenlet.switch()
File "/usr/lib/python2.7/dist-packages/sipsimple/threading/green.py",
line 85, in wrapped_func
result = func(*args, **kw)
File
"/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/im.py",
line 422, in send
request = SIPMessageRequest(from_header, to_header, route_header,
self.content_type, self.body)
File "/usr/lib/python2.7/dist-packages/sipsimple/core/_primitives.py",
line 150, in __init__
self._request = Request("MESSAGE", to_header.uri, from_header,
to_header, route_header, credentials=credentials,
extra_headers=extra_headers, content_type=content_type, body=body)
File "_core.request.pxi", line 141, in
sipsimple.core._core.Request.__init__ (sipsimple/core/_core.c:51071)
File "_core.util.pxi", line 17, in sipsimple.core._core.PJSTR.__cinit__
(sipsimple/core/_core.c:29074)
File "_core.util.pxi", line 165, in sipsimple.core._core._str_to_pj_str
(sipsimple/core/_core.c:31966)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in
position 0: ordinal not in range(128)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20130813/fedc86a5/attachment.html>
More information about the SIPBeyondVoIP
mailing list