CN101014023B - Session identification matching method and apparatus and communication system - Google Patents

Session identification matching method and apparatus and communication system Download PDF

Info

Publication number
CN101014023B
CN101014023B CN2007100793959A CN200710079395A CN101014023B CN 101014023 B CN101014023 B CN 101014023B CN 2007100793959 A CN2007100793959 A CN 2007100793959A CN 200710079395 A CN200710079395 A CN 200710079395A CN 101014023 B CN101014023 B CN 101014023B
Authority
CN
China
Prior art keywords
message
sender
sign
identification
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007100793959A
Other languages
Chinese (zh)
Other versions
CN101014023A (en
Inventor
左飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007100793959A priority Critical patent/CN101014023B/en
Publication of CN101014023A publication Critical patent/CN101014023A/en
Application granted granted Critical
Publication of CN101014023B publication Critical patent/CN101014023B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses one dialogue label match method, device and its communication system to improve application system process property, which comprises the following steps: getting message sender label; getting received dialogue message label; if the said dialogue label message sender label and the sender label, then using said dialogue match label for dialogue match operations, wherein, the said dialogue label comprises message sender and match label.

Description

A kind of session identification matching method and device and communication system
Technical field
The present invention relates to the communications field, relate in particular to a kind of session identification matching method and device and communication system.
Background technology
Conversation applications in reality, in the charge system such as telecommunications, application system need judge which entity is the message that receives should send to, a user conversation (session) for example, handle, so application system all is to mate user conversation in the application system according to the session identification (sessionId) that receives in the message one, and message and the user conversation that matches bound, just can carry out follow-up processing, this session identification is normally unique, and the user conversation that is mated also is unique usually.
After application system is received a message, from message, take out this unique sign, remove the entity of a correspondence in the matching system then with it, the process of this coupling is the comparison procedure of all characters in the character string often, owing to need all characters of coupling, so can influence the handling property of system.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of session identification matching method and device and communication system, can improve the handling property of system.
The session identification matching method that the embodiment of the invention provides comprises: the sign of obtaining the sender of the message; Obtain the session identification in the conversation message that receives; If the sign of the sender of the message in the described session identification is consistent with described sender of the message's sign, then utilize the matching identification in the described session identification to carry out the session matching operation; Wherein, described session identification comprises that the sender of the message identifies and matching identification.
The session identification coalignment that the embodiment of the invention provides comprises: acquiring unit, verification unit and matching unit; Described acquiring unit is used for the session identification that obtains sender of the message's sign and obtain the conversation message that receives; Described verification unit is used for judging whether sender of the message's sign of described session identification is consistent with described sender of the message's sign; If described verification unit judges that the sender of the message's sign in the described session identification is consistent with described sender of the message's sign, then described matching unit then utilizes the matching identification in the described session identification to carry out the session matching operation.
The communication system that the embodiment of the invention provides comprises: message sending end and application system; Described message sending end is used for sending conversation message to application system; Described application system is used for the session identification that obtains the sign of message sending end and obtain the conversation message that receives, if the sign of the sender of the message in the described session identification is consistent with described sender of the message's sign, then utilize the matching identification in the described session identification to carry out the session matching operation.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
Because the conversation message that in the embodiment of the invention same sender of the message is sent no longer mates the sender of the message's sign in the session identification, so only need mate to the matching identification in the session identification, so reduced characters matched quantity, improved the performance of application system processing conversation message, if in addition all user conversations in the application system are all adopted this matching way, then can improve the handling property of whole application system.
Description of drawings
Fig. 1 is a session identification matching method overview flow chart in the embodiment of the invention;
Fig. 2 is the session identification matching method first embodiment flow chart in the embodiment of the invention;
Fig. 3 is the session identification matching method second embodiment flow chart in the embodiment of the invention;
Fig. 4 is a session identification coalignment embodiment schematic diagram in the embodiment of the invention;
Fig. 5 is a communication system embodiment schematic diagram in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of session identification matching method and device and communication system, is used to improve the performance that application system is handled conversation message.
In embodiments of the present invention, session identification is divided into two parts: sender of the message's sign and matching identification;
Wherein, in general sender of the message's sign is a character string, be used to identify a message sending end or a manufacturer, as long as transmitting terminal or manufacturer are constant, and the value of this character string generally is immovable, that is to say that same message sending end or the session identification that manufacturer generated are clocklike.Come to this such as: the session identification in charging protocol (Diameter) message and to constitute.
In general matching identification also is a character string, comprises the content of carrying out the session identification coupling, comprises clocklike a numeral and a timestamp in the present embodiment.
That is to say that in the present embodiment, session identification is made up of three character strings altogether, is respectively that the sender of the message identifies, clocklike numeral and timestamp are separated with additional character between each character string, for example xxx; 12345678; 0001.
See also Fig. 1, the session identification matching method overall procedure comprises in the embodiment of the invention:
101, obtain sender of the message's sign;
Wherein, application system was obtained the sender of the message's who is about to send conversation message sign before receiving conversation message, for example, get access to the sign of A when setting up the transmission of messages passage between application system and the sender of the message A.
102, obtain session identification in the conversation message that receives;
Wherein, application system receives conversation message from sender of the message A, and extracts session identification from the conversation message that receives, and session identification herein comprises that the sender of the message identifies and matching identification.
103, judge whether the sender of the message's sign in the session identification that receives is consistent with the sender of the message's who gets access to before sign, if consistent, then execution in step 104, and if not, then execution in step 105;
104, utilize the matching identification in the session identification to carry out the session matching operation;
Wherein, obtain matching identification in the session identification and according to the matching identification user conversation that inquiry has identical or corresponding matching identification in the user conversation of storage.
105, utilize session identification to carry out the session matching operation.
Wherein, the mode of mating in concrete flow process and the prior art is consistent, need carry out the coupling of each character.
In technique scheme,, directly ignore the sender of the message's sign in the session identification and utilize matching identification to carry out the session matching operation if this application system corresponding sender of the message does not then need step 103 to judge.
Realize that in the middle of concrete application above-mentioned flow process can adopt following dual mode:
One, plug-in unit mode:
As shown in Figure 2, idiographic flow comprises:
201, custom fit plug-in unit;
According to sender of the message's the corresponding coupling plug-in unit of difference customization, the function that plug-in unit comprises is the matching feature of describing in the foregoing description.
202, obtain sender of the message's sign;
Need receive in application system before certain sender of the message's the conversation message, application system gets access to this sender of the message's sign earlier.
203, load corresponding coupling plug-in unit;
Application system loads coupling plug-in unit that should the sender of the message according to the sender of the message's that gets access to sign, promptly is that the sender of the message's identification division in this plug-in unit is all identical.
204, obtain conversation message;
Application system is obtained conversation message from the sender of the message, and extracts session identification from conversation message.
205, coupling session.
Coupling plug-in unit according to the session identification utilization correspondence that extracts carries out the session matching operation, inquires corresponding user conversation, and session message is sent to this user conversation is for further processing.
In aforesaid way, realize in the plug-in unit to the matching algorithm of user conversation being: y=f (x) by session identification; If x is a session identification, y is a user conversation.
At different senders of the message or manufacturer, customize different matching algorithms.Because the session identification of each sender of the message or manufacturer all has certain rules, so matching process needn't adopt general alphabet mode relatively, but at the only more a part of character string of the rule of each sender of the message or manufacturer, the matching identification in the session identification for example, so can improve the speed of coupling, again because the processing of each message all has such matching process, so can improve the overall performance of application system certainly.
Be example specifically with the Diameter application message:
Following table is sender of the message and coupling plug-in unit correspondence table:
Table 1
The sender of the message The coupling plug-in unit
A Libmyapp_A.so or myapp_A.dll or the like
B Libmyapp_B.so or myapp_B.dll or the like
Use different coupling plug-in units according to sender of the message or manufacturer when 1, application system starts, for example:, then load libmyapp_A.so or myapp_A.dll if the sender of the message is A;
2, the sender of the message sends a message to application system;
3, application system is called coupling plug-in unit libmyapp_A.so or myapp_A.dll and is mated the user conversation of application system, carry out the session matching operation, wherein the function of libmyapp_A.so or myapp_A.dll realization promptly is the function of describing in the above-described embodiments;
4, application system is given the user conversation processing message.
Two, configuration item mode:
As shown in Figure 3, idiographic flow comprises:
301, sender of the message's configuration item is set;
At first will increase this configuration item and its numerical value is set at configuration center, this configuration item be represented sender of the message's sign.
302, obtain conversation message;
Application system is obtained conversation message from the sender of the message.
303, extract session identification;
Application system is extracted session identification from the conversation message that gets access to.
304, coupling session;
The session identification that utilization is extracted and the numerical value of configuration item carry out the session matching operation, inquire corresponding user conversation, and session message is sent to this user conversation is for further processing.
In aforesaid way, adaptation function is achieved as follows: and y=f (m, n), y is the user conversation in the application system, and m is a session identification, and n is the numerical value of configuration item.
The numerical value that needed to be provided with n before the conversation message of application system reception from the sender of the message if n is a default value, then adopts the mode that at every turn relatively sends all characters of the m in the message to mate y; If n is not the value of acquiescence, be a certain sender of the message's sign, then adopt each mode that only compares a part of character among the m to mate y, matching identification for example, identify this part and need not compare the sender of the message again, n just because the sign of same sender of the message or manufacturer just n be constant.Because what compare is a part rather than the whole character string of character string at every turn, thus the speed of coupling can be improved, and in the processing procedure of each message, all such matching operation can be arranged, so will improve the overall performance of system.
Be example specifically with the Diameter application message:
Sender of the message and sender of the message identify as shown in the table:
Table 2
The sender of the message Sender of the message's sign
A crbt.fjtelecom.com;1876543210;0002
When 1, application system started, the value that the configuration messages sender identifies configuration item was " crbt.fjtelecom.com ";
2, the sender of the message sends a message to application system;
3, application system is taken out the value of session identification and is from message: " crbt.fjtelecom.com; 1876543210; 0002 ";
4, application system is called adaptation function, according to the value " crbt.fjtelecom.com " of configuration item and the value " crbt.fjtelecom.com of session identification; 1876543210; 0002 ", the matching identification in the comparison session identification: " 1876543210; 0002 ", and need not compare sender of the message's sign: " crbt.fjtelecom.com ", search the user conversation of application system correspondence.
5, application system is given the session that finds message and is handled.
Technique scheme is that example describes with Diameter message all, is understandable that conversation message can also be Session Initiation Protocol message or other message, and the flow process of processing is similar.
Below the session identification coalignment embodiment in the embodiment of the invention is described:
See also Fig. 4, session identification coalignment embodiment of the present invention comprises:
Acquiring unit 401, verification unit 402 and matching unit 403;
Acquiring unit 401 is used for the session identification that obtains sender of the message's sign and obtain the conversation message that receives;
Verification unit 402 is used for judging whether sender of the message's sign of described session identification is consistent with described sender of the message's sign;
If verification unit 402 judges that the sender of the message's sign in the described session identification is consistent with described sender of the message's sign, then 403 of matching units utilize the matching identification in the described session identification to carry out the session matching operation.
Wherein, matching unit 403 comprises:
Coupling performance element 4031 and memory cell 4032;
Described memory cell 4032 is used to store user conversation;
The user conversation that inquiry has identical or corresponding matching identification in the user conversation that described coupling performance element 4031 is used for storing in described memory cell 4032 according to the matching identification of the session identification that obtains.
Below the communication system embodiment in the embodiment of the invention is described:
See also Fig. 5, communication system embodiment of the present invention comprises:
Message sending end 501 and application system 502;
Described message sending end 501 is used for sending conversation message to application system 502;
Described application system 502 is used for the session identification that obtains the sign of message sending end 501 and obtain the conversation message that receives, if the sign of the sender of the message in the described session identification is consistent with the sign of described message sending end, then utilize the matching identification in the described session identification to carry out the session matching operation.
In addition, application system 502 is sent to corresponding user conversation with the conversation message that receives and is for further processing after finishing the session coupling, and concrete processing procedure is a known technology, repeats no more.
In addition, also provide a kind of computer-readable recording medium in the embodiment of the invention, store the software of describing in the foregoing description on the described medium, comprise during this running software: the sign of obtaining the sender of the message; Obtain the session identification in the conversation message that receives; If the sign of the sender of the message in the described session identification is consistent with described sender of the message's sign, then utilize the matching identification in the described session identification to carry out the session matching operation; Wherein, described session identification comprises that the sender of the message identifies and matching identification.
Aforementioned calculation machine readable storage medium storing program for executing can be a disk, CD, and flash memory can also be other storage medium.
In sum, because the conversation message that the embodiment of the invention sends same sender of the message only mates the matching identification in the session identification wherein, do not identify and do not need to mate the sender of the message, so can improve the speed of coupling, and in the processing procedure of each message, there is such matching operation in the capital, so will improve the overall performance of system.
More than a kind of session identification matching method provided by the present invention and device and communication system are described in detail, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1. a session identification matching method is characterized in that, comprising:
Obtain sender of the message's sign;
Obtain the session identification in the conversation message that receives;
If the sign of the sender of the message in the described session identification is consistent with described sender of the message's sign, then utilize the matching identification in the described session identification to carry out the session matching operation;
If the sign of the sender of the message in the described session identification is inconsistent with described sender of the message's sign, then utilize described session identification to carry out the session matching operation;
Wherein, described session identification comprises that the sender of the message identifies and matching identification.
2. session identification matching method according to claim 1 is characterized in that, comprises after the step of the described sender of the message's of obtaining sign:
The described sender of the message's who gets access to sign is stored in the plug-in unit of described sender of the message's correspondence.
3. session identification matching method according to claim 1 is characterized in that, comprises after the step of the described sender of the message's of obtaining sign:
The described sender of the message's who gets access to sign is stored in the configuration item of configuration center.
4. session identification matching method according to claim 1 is characterized in that, the described step of utilizing matching identification in the described session identification to carry out the session matching operation comprises:
Obtain described matching identification;
According to the described matching identification user conversation that inquiry has identical or corresponding matching identification in the user conversation of storage.
5. session identification matching method according to claim 4 is characterized in that, described conversation message is charge protocol message or conversation launch protocol message.
6. session identification matching method according to claim 1 is characterized in that, comprises after the described step of utilizing matching identification in the described session identification to carry out the session matching operation:
Described conversation message is sent to the session that matches to be handled.
7. a session identification coalignment is characterized in that, comprising:
Acquiring unit, verification unit and matching unit;
Described acquiring unit is used for the session identification that obtains sender of the message's sign and obtain the conversation message that receives;
Described verification unit is used for judging whether sender of the message's sign of described session identification is consistent with described sender of the message's sign;
If described verification unit judges that the sender of the message's sign in the described session identification is consistent with described sender of the message's sign, then described matching unit then utilizes the matching identification in the described session identification to carry out the session matching operation;
If described verification unit judges that the sender of the message's sign in the session identification is inconsistent with described sender of the message's sign, then described matching unit utilizes described session identification to carry out the session matching operation.
8. session identification coalignment according to claim 7 is characterized in that, described matching unit comprises:
Coupling performance element and memory cell;
Described memory cell is used to store user conversation;
When the sender of the message sign that described coupling performance element is used for judging described session identification in described verification unit is consistent with described sender of the message's sign, inquire about user conversation in the user conversation of in described memory cell, storing according to the matching identification in the session identification of acquisition with identical or corresponding matching identification;
Described coupling performance element also is used for carrying out the session matching operation according to the session identification that obtains when sender of the message's sign of described verification unit judgement session identification and described sender of the message's sign is inconsistent.
9. a communication system is characterized in that, comprising:
Message sending end and application system;
Described message sending end is used for sending conversation message to application system;
Described application system is used for the session identification that obtains the sign of message sending end and obtain the conversation message that receives, if the sign of the sender of the message in the described session identification is consistent with the sign of described message sending end, then utilize the matching identification in the described session identification to carry out the session matching operation, if the sign of the sender of the message in the described session identification is inconsistent with the sign of described message sending end, then utilize described session identification to carry out the session matching operation;
Wherein, described session identification comprises that the sender of the message identifies and matching identification.
CN2007100793959A 2007-02-16 2007-02-16 Session identification matching method and apparatus and communication system Expired - Fee Related CN101014023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100793959A CN101014023B (en) 2007-02-16 2007-02-16 Session identification matching method and apparatus and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100793959A CN101014023B (en) 2007-02-16 2007-02-16 Session identification matching method and apparatus and communication system

Publications (2)

Publication Number Publication Date
CN101014023A CN101014023A (en) 2007-08-08
CN101014023B true CN101014023B (en) 2011-07-27

Family

ID=38701308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100793959A Expired - Fee Related CN101014023B (en) 2007-02-16 2007-02-16 Session identification matching method and apparatus and communication system

Country Status (1)

Country Link
CN (1) CN101014023B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176853A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 Method and system realizing communication among multiple applications
CN110620846B (en) * 2019-09-26 2021-05-07 Oppo广东移动通信有限公司 Message merging method, device, equipment and storage medium
CN116911314B (en) * 2023-09-13 2023-12-19 北京中关村科金技术有限公司 Training method of intention recognition model, conversation intention recognition method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545336A (en) * 2003-11-21 2004-11-10 中兴通讯股份有限公司 Method of proving one switching office with multiple trunk codes based on SPC exchange
CN1885873A (en) * 2005-06-26 2006-12-27 赵资扬 Incoming call filtering method and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545336A (en) * 2003-11-21 2004-11-10 中兴通讯股份有限公司 Method of proving one switching office with multiple trunk codes based on SPC exchange
CN1885873A (en) * 2005-06-26 2006-12-27 赵资扬 Incoming call filtering method and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2006-166246A 2006.06.22

Also Published As

Publication number Publication date
CN101014023A (en) 2007-08-08

Similar Documents

Publication Publication Date Title
CN110519462A (en) Incoming information display methods, device, equipment and medium based on express delivery client
CN102487363B (en) Anonymous communication system and transmission method of information transmission unit in anonymous communication system
EP2941058B1 (en) Near field communication method and device
CN106027379A (en) Push message receiving processing method
CN106304030B (en) Communication method, device and system based on virtual identity information
US9578490B2 (en) Method and system for updating electronic business cards
CN101014023B (en) Session identification matching method and apparatus and communication system
CN105760134B (en) A kind of data processing method and electronic equipment
CN111028081A (en) Asset transfer method, device, electronic equipment and storage medium
CN107135167A (en) Data transmission method, data transmission device and server
CN108235830B (en) Wireless pairing system and pairing method
US6658500B1 (en) Microchip card for accessing a remote application, associated communication system and terminal and method of accessing the remote application by mean of the microchip card
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN102843308A (en) Instant messaging method and system based on mobile terminal local address book
CN105978794A (en) Method and device for replacing note name in instant messaging platform address book
WO2007097598A1 (en) Icon transforming system, and service method for the same
JP4789268B2 (en) System and method for correlating messages within a wireless transaction
CN104168555B (en) Communication prompt method and device
CN107454659A (en) A kind of terminal identification method, system, terminal device and base station
CN102469442A (en) Method and device for determining service supported by user terminal
CN102293019B (en) Improved method of processing short messages (SMS) and wireless communication apparatus enabling such processing
CN103795856A (en) Information processing method and electronic device
CN101321312A (en) Message forwarding method and forwarding apparatus
CN105163291A (en) Mobile terminal and control method for group message thereof
CN106100904B (en) Equipment connection method connects system with equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110727

Termination date: 20220216