[Telepathy] message received method

George Kiagiadakis gkiagia at tolabaki.gr
Sat Jul 23 07:29:17 UTC 2016


On 23.07.2016 02:13, Mateus Bellomo wrote:
> Thanks for the great explanation George.
> 
> Doy you know if the TargetID and InitiatorID must have the prefix
> "sip:" (e.g. sip:mateusbellomo at sip.antisip.com)?
> 

They should be the same identifiers returned by 
Connection.InspectHandles [1]. There is no definite answer for the 
format of these identifiers in the spec, but telepathy-glib docs [2] do 
mention that it should be a SIP URI (so, with the prefix) in the case of 
SIP. In the end I think this is your choice. It just needs to be 
something that can *uniquely* identify a contact inside your connection 
manager.

[1]. 
https://telepathy.freedesktop.org/spec/Connection.html#Method:InspectHandles
[2]. 
https://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-contact.html#TpContact--identifier



More information about the telepathy mailing list