Bug 71504 - tests fail with libsofia-sip-ua0/1.12.11+20110422.1-1 (Debian)
Summary: tests fail with libsofia-sip-ua0/1.12.11+20110422.1-1 (Debian)
Status: RESOLVED DUPLICATE of bug 69457
Alias: None
Product: Telepathy
Classification: Unclassified
Component: rakia (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Mikhail Zabaluev
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-11 16:10 UTC by Simon McVittie
Modified: 2013-11-11 19:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2013-11-11 16:10:56 UTC
I'm fairly sure this is a sofia-sip bug, but I'm opening it here so other Telepathy hackers don't get caught out, or in case we can work around it.

Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729301

telepathy-rakia's test suite recently regressed: test-message.py (a simple
text message), and all of the VoIP tests (except for one that only tests
Telepathy internals), time out. Downgrading libsofia-sip-ua-glib-dev,
libsofia-sip-ua-glib3, libsofia-sip-ua-dev and libsofia-sip-ua0 from
1.12.11+20110422.1-1 to 1.12.11+20110422-1 fixes the regression.
I was surprised that worked, since the changelog for 1.12.11+20110422.1-1
indicates that it should just be a tarball respin with newer Autotools -
perhaps this version was miscompiled or something?

The only test I've investigated in detail is test-message.py, in which
we send the message "Hello" with what boils down to this code:

    const gchar *text = "Hello";

    nua_message(msg_nh,
                SIPTAG_CONTENT_TYPE_STR("text/plain"),
                SIPTAG_PAYLOAD_STR(text),
                TAG_END());

In the older version, this comes out as:

** (telepathy-rakia:22577): DEBUG:    MESSAGE sip:user@somewhere.com SIP/2.0
** (telepathy-rakia:22577): DEBUG:    Via: SIP/2.0/UDP 127.0.0.1:44958;rport;branch=z9hG4bK9Q8y0a5tDK38K
** (telepathy-rakia:22577): DEBUG:    Max-Forwards: 70
** (telepathy-rakia:22577): DEBUG:    From: <sip:testacc@127.0.0.1>;tag=8aN5FSZaF8g3p
** (telepathy-rakia:22577): DEBUG:    To: <sip:user@somewhere.com>
** (telepathy-rakia:22577): DEBUG:    Call-ID: 6773c41c-c58d-1231-2eac-f0def1f9ade2
** (telepathy-rakia:22577): DEBUG:    CSeq: 898293629 MESSAGE
** (telepathy-rakia:22577): DEBUG:    User-Agent: Telepathy-Rakia/0.8.0 sofia-sip/1.12.11devel
** (telepathy-rakia:22577): DEBUG:    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, UPDATE
** (telepathy-rakia:22577): DEBUG:    Supported: timer, 100rel
** (telepathy-rakia:22577): DEBUG:    Content-Type: text/plain
** (telepathy-rakia:22577): DEBUG:    Content-Length: 5
** (telepathy-rakia:22577): DEBUG:    
** (telepathy-rakia:22577): DEBUG:    Hello

In the newer version, the message's content is missing:

** (telepathy-rakia:21899): DEBUG:    MESSAGE sip:user@somewhere.com SIP/2.0
** (telepathy-rakia:21899): DEBUG:    Via: SIP/2.0/UDP 127.0.0.1:41407;rport;branch=z9hG4bKtZQ3243ScgDyD
** (telepathy-rakia:21899): DEBUG:    Max-Forwards: 70
** (telepathy-rakia:21899): DEBUG:    From: <sip:testacc@127.0.0.1>;tag=SBH7vpm9aH76g
** (telepathy-rakia:21899): DEBUG:    To: <sip:user@somewhere.com>
** (telepathy-rakia:21899): DEBUG:    Call-ID: 5bd4c190-c58d-1231-9ca4-f0def1f9ade2
** (telepathy-rakia:21899): DEBUG:    CSeq: 898293624 MESSAGE
** (telepathy-rakia:21899): DEBUG:    User-Agent: Telepathy-Rakia/0.8.0 sofia-sip/1.12.11devel
** (telepathy-rakia:21899): DEBUG:    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, UPDATE
** (telepathy-rakia:21899): DEBUG:    Supported: timer, 100rel
** (telepathy-rakia:21899): DEBUG:    Content-Type: text/plain
** (telepathy-rakia:21899): DEBUG:    Content-Length: 0
** (telepathy-rakia:21899): DEBUG:    

To reproduce this in a jessie chroot with build-essential:

    apt-get source telepathy-rakia            # version 0.8.0-1
    sudo apt-get build-dep telepathy-rakia
    sudo apt-get install python-dbus dbus autoconf automake libtool \
        python-twisted python-gobject
    ( cd telepathy-rakia-0.8.0 && ./configure )
    make -C telepathy-rakia-0.8.0
    make -C telepathy-rakia-0.8.0 check TWISTED_TESTS=test-message.py
Comment 1 Simon McVittie 2013-11-11 19:19:31 UTC

*** This bug has been marked as a duplicate of bug 69457 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.