[SIP Beyond VoIP] Unicode issue with command line client

Saúl Ibarra Corretgé saul at ag-projects.com
Wed Jun 15 16:22:29 CEST 2011


On Jun 15, 2011, at 3:56 PM, Michiel Leenaars wrote:

> Hi,
> I have successfully compiled Blink as well as the command line sipclients on 64bit Fedora 15.
> However, no audio devices seem to be recognised as of yet - in neither. I have followed the
> steps for routing the requests to the audio card via the PulseAudio sound server, but this
> has not worked yet. Anybody any further hints? Is there a way to use Qt's multimedia
> framework instead of directly trying to talk to PulseAudio?

Blink (sipsimple, really) uses PortAudio to interact with audio devices, we can't use Qt multimedia framework. However, it's unexpected that you see no audio devices. What do you see if when you run sip-session? Just None?

I do have a Fedora 15 VM, I'll try to get Blink working there and see if I can reproduce your issue.

> When using the command line chat client for testing, outgoing chat seems to work fine.
> However, when the other party starts typing I get this output and the connection is
> dropped:
> File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 789, in runUntilCurrent
>    call.func(*call.args, **call.kw)
>  File "/usr/lib/python2.7/site-packages/eventlet/hubs/twistedr.py", line 161, in call_if_greenlet_alive
>    return func(*args1, **kwargs1)
>  File "/usr/lib/python2.7/site-packages/eventlet/api.py", line 235, in _spawn_startup
>    return cb(*args, **kw)
>  File "/usr/lib64/python2.7/site-packages/sipsimple/streams/msrp.py", line 251, in end
>    msrp_session.shutdown()
>  File "/usr/lib/python2.7/site-packages/msrplib/session.py", line 132, in shutdown
>    self.reader_job.wait(None, None)
>  File "/usr/lib/python2.7/site-packages/eventlet/proc.py", line 448, in wait
>    api.getcurrent().throw(*self._exc)
>  File "/usr/lib/python2.7/site-packages/eventlet/proc.py", line 571, in _run
>    result = function(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/msrplib/session.py", line 200, in _reader
>    self._handle_incoming_SEND(chunk)
>  File "/usr/lib/python2.7/site-packages/msrplib/session.py", line 180, in _handle_incoming_SEND
>    self._on_incoming_cb(chunk)
>  File "/usr/lib64/python2.7/site-packages/sipsimple/streams/msrp.py", line 292, in _handle_incoming
>    method_handler(chunk)
>  File "/usr/lib64/python2.7/site-packages/sipsimple/streams/msrp.py", line 388, in _handle_SEND
>    data = IsComposingMessage.parse(message.body)
>  File "/usr/lib64/python2.7/site-packages/sipsimple/payloads/__init__.py", line 461, in parse
>    xml = etree.XML(document, parser=cls._xml_parser)
>  File "lxml.etree.pyx", line 2723, in lxml.etree.XML (src/lxml/lxml.etree.c:52448)
>  File "parser.pxi", line 1564, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:79843)
> ValueError: Unicode strings with encoding declaration are not supported.
> This seems Unicode related.

Indeed. What version of lxml are you using? I'm not experiencing this with 2.2.4.


Saúl Ibarra Corretgé
AG Projects

More information about the SIPBeyondVoIP mailing list