summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-01-31Check for Python module twisted.words.xish as required for unit testsHEADmasterMikhail Zabaluev1-1/+1
2011-01-31Merge branch 'invite-from-self'Mikhail Zabaluev1-0/+7
2011-01-31Merge remote branch 'alsuren/streamedmedia_tests'David Laban6-84/+747
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-01-31Reject incoming calls from the same URI as the local user (fd.o #33716)Mikhail Zabaluev1-0/+7
This is not supported in StreamedMedia channels, and an assertion in tpsip_media_channel_receive_invite() sees to it.
2011-01-29Nano version 0.6.5.1Mikhail Zabaluev1-1/+1
2011-01-29Version 0.6.5Mikhail Zabaluev2-2/+11
2011-01-28Merge branch 'signed-param-fix'Mikhail Zabaluev2-2/+2
2011-01-28Changed the size parameter type to signed in tpsip_unquote_string()Mikhail Zabaluev2-2/+2
The special value of -1 implies that the type should be signed.
2011-01-28Backported fixes to fd.o #31720 onto telepathy-sofiasip-0.6Mikhail Zabaluev4-15/+48
2011-01-28fd.o #31720: use TpDBusDaemon to export media streamsSimon McVittie2-4/+18
2011-01-28fd.o #31720: use TpDBusDaemon to export media sessionsSimon McVittie2-5/+24
2011-01-28Backported fix to fd.o #31720: use TpDBusDaemon to export channel objectsSimon McVittie2-6/+6
Backported to telepathy-sofiasip-0.6
2011-01-26Fix group flags for streamedmedia calls.David Laban3-26/+33
We start off with lots of flags, and then delete them as we work out what kind of channel we are, rather than trying to track what we need to add/remove over time. We should always have the right flags before we are advertised on the bus. Note that adding members to a channel made using Create isn't *strictly* correct way to do it, but it isn't special-cased in any of the code, and I don't want to set flags that are lies so I've just updated the tests accordingly. Also, converting the flags to their binary representation makes failed assertions a lot easier to debug (and I honestly don't care about speed).
2011-01-26sip-media-channel clean up group membersDavid Laban1-62/+37
Use tp_intset_new_containing() wherever it's sensible This makes sets with only one member simpler and less think-o prone. (We still use tp_intset_new() for groups with more than one member) Use better variable names for clarity. (We still use "set" in priv_session_state_changed_cb() to avoid too much code churn)
2011-01-26voip tests: BYE message needs a reply. Add to tests.David Laban2-3/+9
2011-01-26Fix review comments for tests.David Laban2-4/+6
2011-01-26add new tests to make checkDavid Laban1-1/+6
2011-01-26Fix up incoming-basics.pyDavid Laban2-63/+76
* Same deal as outgoing-basics, but in one commit. * Also, expect the NewChannels signal rather than NewChannel. * Add context.send_message() and implement .incoming_call(), .ack() and .terminate() based on it. * FIXME #32189: group flags are borked.
2011-01-26Complete outgoing-basics.pyDavid Laban3-55/+70
sofiatest.py: * add sip headers to Events for convenience voip_test.py:VoipTestContext: * add {get, check}_call_sdp() * add accept() (secretly also records call-id) outgoing_basics.py: * Call NativeCandidatesPrepared() because RAWUDP requires it. * Expect sip-* events rather than stream-iq ones.
2011-01-26Update the groups interface when remote user accepts the call.David Laban1-1/+19
2011-01-26import incoming-basics from gabbleDavid Laban1-0/+185
2011-01-26Don't call priv_outbound_call (self, 0)David Laban1-0/+5
This previously happened if the client requested an anonymous streamedmedia channel, but doing so would cause a crash.
2011-01-26Make outgoing-basics test work up until the first network traffic event.David Laban2-69/+138
* Change from gabbletest to sofiatest, and import bits of gabble's jingletest2.py as voip_test.py * Get rid of JingleProtocol args to tests * Change variable names s/stream/sip_proxy/ and s/jt2/context/ * Change jids to sip uris. * Don't restrict ordering of NewStreamHandler signal emission, when all sane StreamEngine implementations do state recovery anyway. * Early-return before we expect any network traffic * Channel.Type.Call is not a requestable type. * change test_all_dialects back to exec_test calls. Things I'm not sure about: * FIXME: 32189: group flags are borked. * Are sofiasip's pending send flags correct?
2011-01-26implement tpsip_media_channel_get_handle() properly.David Laban1-1/+8
2011-01-26initial import of outgoing-basics.py from gabbleDavid Laban1-0/+351
2011-01-26Hacks to allow running multiple tests per processDavid Laban1-4/+9
* Pick a random port to create the server on each run (since IListeningPort.stopListening() isn't guaranteed to have freed the port by the time it returns) * Don't install the colourer more than once * Fix the colourer to deal with "took $seconds" misc. We should probably try to consolidate these hacks with whatever gabbletest does, or maybe try to push more stuff into servicetest to make it easier to maintain, but let's wait until sofiasip has more tests before we start doing that.
2011-01-03Added a NEWS item for the upcoming release with warning about legacy loggersMikhail Zabaluev1-0/+13
2011-01-03Test the message-sent timestamp header with a fixed valueMikhail Zabaluev1-4/+6
2011-01-03Merge branch 'master' into messages-retouchMikhail Zabaluev32-782/+2421
2010-12-15configure: increase version of tp-glib requiredJonny Lamb1-1/+1
This is required for TpBaseProtocolClass->dup_authentication_types. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-12-15protocol: implement TpBaseProtocolClass->dup_authentication_typesJonny Lamb1-0/+12
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-12-15test registering without a passwordDavid Laban4-2/+46
and using a sasl channel to request the password if the server challenges, or not asking for a password if the server doesn't challenge.
2010-12-15Don't ask the user for a password on connectDavid Laban1-44/+1
We don't need to do this until the server asks us to authenticate.
2010-12-15Ask for a password in priv_handle_auth() if not given.David Laban1-19/+139
This requires a call to tp_simple_password_manager_prompt_async(), so we create a data struct to help us split the function in half. Also, we move all checks from the second half of the function into the first, so they can be handled synchronously. The diff is clearer if you use git diff --patience.
2010-12-15configure: depend on new enough tp-glib for TpSimplePasswordManagerJonny Lamb1-1/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-12-15connection: only disconnect if we're not already disconnectedJonny Lamb1-3/+6
If we don't check this, tp-glib will give us a nice big fat warning. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-12-15connection: use disconnect_with_dbus_errorJonny Lamb1-2/+2
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-12-15connection: use TpSimplePasswordManager to get a password if one was not givenJonny Lamb2-1/+48
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2010-11-24protocol: when hitting a special parameter, just skip it, not all the others tooJonny Lamb1-1/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2010-11-23Version 0.7.0.1 for developmentMikhail Zabaluev1-1/+1
2010-11-23Release 0.7.0Mikhail Zabaluev2-3/+15
NOTE: changed the release header format in NEWS to fit expectation of tools/make-release-mail.py
2010-11-23Added constants.py from the test support files to the distributionMikhail Zabaluev1-0/+1
2010-11-23Removed the dist-hook for changelog generationMikhail Zabaluev1-7/+0
Now handled by 'tools/telepathy.am'.
2010-11-23Added the Telepathy maintenance scripts and makefile rulesMikhail Zabaluev5-1/+353
Copied from telepathy-glib.
2010-11-23Merge branch 'protocol'Simon McVittie18-735/+1800
Reviewed-by: Mikhail Zabaluev <mikhail.zabaluev@nokia.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=31720
2010-11-23Re-word write-mgr-file's header - this isn't GabbleSimon McVittie1-1/+1
2010-11-23Merge branch 'get-bus'Simon McVittie4-15/+48
Reviewed-by: Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
2010-11-18Implement type_foreach_channel_class in both channel managersSimon McVittie2-9/+11
This lets our Protocol objects advertise their requestable channel classes.
2010-11-18Add a simple test for Protocol objectsSimon McVittie2-0/+59
2010-11-18Port TpsipConnectionManager to use TpBaseProtocolSimon McVittie5-474/+920
write-mgr-file.c was completely replaced by the one from Gabble, with trivial changes in main().