Preface
Openfire + spark + smack can be considered for Java instant messaging solutions. Of course there are other options.
Openfire is an instant messaging server version based on the jabber protocol (XMPP). We recommend that you use version 3.8.1, which is the latest version and can find the downloaded source code online.
The instant messaging client can use spark2.6.3, which is currently the latest versi
other resources under developmentFor it works you'll need to create a column in your SIP table to store the extension ' s JID. I created a column named JID in my sippeers table.Now I'll show you a practical example of this integration.What does you need?You'll need this following items:A running Asterisk (at least) with RES_XMPP support configured.A running XMPP server (OpenFire 3.9.3 is a good one)A JID a
Android message pushing Xmpp protocol
1. Introduction
Message pushing means sending a connection from the server to the mobile terminal and transmitting certain information. For example, some news clients receive one or more notifications at intervals, which is the push messages sent from the server, and some common IM software such as GTalk, all have the
All of the following content is based on your own memory and understanding. If there are any errors or errors, please forgive me.
1. What is XMPP?The predecessor of XMPP is jabber, an open-source network instant communication protocol. XMPP has been standardized by IETF International Standards Organization. The core results of standardization are divided into
I. XMPP protocol
XMPP (Extensible messaging and presence Protocol) is a subset XML protocol based on standard universal markup language. It inheritsXMLFlexible development in the environment. Therefore, XMPP-based applications are highly scalable. The predecessor of XMPP is jabber.
1. Several important concepts in
Simple IM Chat programbecause the project needs to do a XMPP protocol based on the Android communication software. So began to study XMPP.The XMPP protocol uses the client-server architecture, all messages and data sent from one client to another must be forwarded by the XMPP serve
server simultaneously undertakes the client information record, the connection management and the information routing function. The gateway undertakes the interconnection with the heterogeneous instant communication system, the heterogeneous system may include the SMS (SMS), the MSN,ICQ and so on. The basic network form is that a single client connects to a single-server through TCP/IP and then transmits X
is called character transmission, while data transmission is bytestreams ).
The rules for bytestreams in xep are roughly as follows:* XEP-0096: file transfer, which is the unified interface for transferring files, is used between clients to negotiate the specific transmission mode, including the following three.* XEP-0047: in-band bytestreams with byte stream, this protocol is actually used for small data transfer, but it uses byte stream transmission, so also by the way. In-band, that is, it i
#-*-coding:utf-8-*-__author__='TSBC'ImportXMPPImport Time#Note the account information, must add the @ domain name formatFrom_user ='[email protected]'Password='A1b2c3d4'#you can add more than one recipientTo_user = ['[email protected]']msg="Hello! This is a test message! "defto_msg ():"""Instant Messaging messaging based on XMPP protocol, need to install XMPP library use OpenFire to build instant messaging
TransmissionInstant MessagingExtended applications
Core XML Stream of XMPPTransmission ProtocolSo that XMPP canNetwork communication protocolMore standardized platform. With the help of XML's easy-to-parse and read features, the XMPP protocol can be very beautiful.
The extended application of XMPP instant messaging is based on an abstract definition of insta
Recently, due to development needs, we need to integrate instant messaging tools on Oa. we originally planned to use RTX or MSN, but there was no relevant source code. It was difficult to integrate with specific services and finally we gave up. I am also looking for open-source products, but I cannot find them.. NET development has a server and a client, C ++ and Java, but unfortunately they only do. net.
I found a lot of information on the Internet
directly to explain. First look at the process interface and code testing: Registration interface, when I fill out the registration information by pressing the Register button, connect the server, then send a string of XMPP protocol to the server, the server resolves, and then add to the database, the EOF exception
, And XMPP at this time only as a point-to-point chat function, so you do not have to tangle with XMPP itself with the invitation of friends, agree to friends apply, get friends list and so on, just a general understanding can, focus on the implementation of the chat process, as well as the client-to-server connection stability (such as how to reconnect,
Summary
In the XMPP communication process, Asmack provides the packet component is iq,message,presence three kinds: IQ is used for query messages for message passing presence for state interaction they are all packet subclasses, The essence is the XML format used to encapsulate messages into responses for data exchange, which has good scalability.
Brief introduction
We take the Open source project Androidpn as an example:
ANDROIDPN (Android push N
Jabber is a well-known Instant Messaging server, it is a free open source software, allowing users to rack their own Instant Messaging server, can be used on the Internet, but also can be applied in the LAN.XMPP (Extensible Messaging Field Protocol) is an Extensible Markup Language (XML)-based protocol that is used for instant messaging (IM) and online field probing. It facilitates quasi-immediate operation
Http://gnu-linux.org/xmpp-integration-with-asterisk.htmlXMPP stands for extensible Messaging and Presence Protocol, its a widely used communication Protocol. In this blog I'll use the OpenFire an opensource XMPP server.Asterisk is opensource telephony switching Exchange service for Linux. In this blog I am using the FreePBX Install on CentOS 6.5.In this blog I assume that user have already install OpenFire
XMPP is a protocol based on the Extensible Markup Language (XML). It is used for instant messaging (IM) and online detection. This protocol may eventually allow Internet users to send instant messages to anyone else on the Internet. XMPP is used to implement the push function of Android. XMPP is a real-time communication protocol.
implemented through web services, while XMPP only serves as a point-to-point chat function, therefore, you don't have to worry about inviting friends that come with xmpp. You have agreed to apply for a friend and obtained a friend list. You only need to get a general understanding of it. The focus is on the implementation of the chat process, and the stability of the client-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.