[SIP Beyond VoIP] Error in message with spanish characters in Sylkserver

Jonathan jsandoval at ikono.com.co
Tue Aug 13 17:10:14 CEST 2013


Hi Adrian.
I erased the logs, and tried again.  When I sent a message with the
character 'ñ' like (probando en la mañana) I didn't get any sip_trace.txt
file, only the xmpp_trace.txt with this content:

2013-08-13T10:05:39.471850-05:00 [sylk-server 41589]: RECEIVED: Packet 1,
+0:00:00
<?xml version='1.0'?><stream:stream xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:server'
xmlns:db='jabber:server:dialback' from='server.ikono.co' to='ikono.co'>
--
2013-08-13T10:05:39.473070-05:00 [sylk-server 41589]: SENDING: Packet 2,
+0:00:00.001220
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='ikono.co'
id='3b6a733815a1e0bf'>
--
2013-08-13T10:05:39.568780-05:00 [sylk-server 41589]: RECEIVED: Packet 3,
+0:00:00.096930
<db:result from='server.ikono.co' to='ikono.co'>4929021</db:result>
--
2013-08-13T10:05:39.791315-05:00 [sylk-server 41589]: SENDING: Packet 4,
+0:00:00.319465
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:server' xmlns:db='jabber:server:dialback' to='server.ikono.co'
version='1.0' from='ikono.co'>
--
2013-08-13T10:05:39.976250-05:00 [sylk-server 41589]: RECEIVED: Packet 5,
+0:00:00.504400
<?xml version='1.0'?><stream:stream xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:server'
xmlns:db='jabber:server:dialback' id='90907872'>
--
2013-08-13T10:05:39.976728-05:00 [sylk-server 41589]: SENDING: Packet 6,
+0:00:00.504878
<db:verify to='server.ikono.co' from='ikono.co'
id='3b6a733815a1e0bf'>4929021</db:verify>
--
2013-08-13T10:05:40.073341-05:00 [sylk-server 41589]: RECEIVED: Packet 7,
+0:00:00.601491
<db:verify from='server.ikono.co' to='ikono.co' id='3b6a733815a1e0bf'
type='valid'/>
--
2013-08-13T10:05:40.073534-05:00 [sylk-server 41589]: SENDING: Packet 8,
+0:00:00.601684
<db:result to='server.ikono.co' from='ikono.co' type='valid'/>
--
2013-08-13T10:05:40.169340-05:00 [sylk-server 41589]: RECEIVED: Packet 9,
+0:00:00.697490
<message from='testuser at server.ikono.co/afbc3d43' to='test9 at ikono.co'
type='chat' id='85c11e10-4dea-4347-bb32-47a2cb3cdb23'><nick xmlns='
http://jabber.org/protocol/nick'>testuser at server.ikono.co</nick><body>probando
en la mañana</body><active xmlns='http://jabber.org/protocol/chatstates'/
></message>



On Tue, Aug 13, 2013 at 10:00 AM, Adrian Georgescu <ag at ag-projects.com>wrote:

> Can you paste the SIP and XMPP logs
>
> Adrian
>
> On Aug 13, 2013, at 4:29 PM, Jonathan wrote:
>
> 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)
>
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20130813/df303fd1/attachment-0001.html>


More information about the SIPBeyondVoIP mailing list