I think you are a little confused.
Bonjour is a service search engine. This is not for communicating with the service. After you found the name @host: port information, you are done with Bonjour.
The next step will require you to talk about a protocol that the service understands. The _presence token in the service line indicates that it is an XMPP service. You will need to talk to XMPP. You cannot talk with SIP. Did you try to open an XMPP connection with the host and port you found?
You are talking about SIP and Jingle. They are used to set up an audio or video call. If you are writing an instant messenger, you do not need to do this. Only XMPP is enough.
If you want to support audio or video, you will need one of these protocols. Since the service you found is an XMPP service, you will need to use Jingle. If you do not have a library that can speak Jingle, you will have to write the code yourself. There is nothing in the Bonjour information that identifies the SIP service, so you cannot use SIP โ unless you can make another Bonjour request and find the SIP service.
I conclude that you are working in Java. The most popular XMPP library for Java is Smack .
source share