CN110769474A - Call switching method and system - Google Patents
Call switching method and system Download PDFInfo
- Publication number
- CN110769474A CN110769474A CN201911002339.4A CN201911002339A CN110769474A CN 110769474 A CN110769474 A CN 110769474A CN 201911002339 A CN201911002339 A CN 201911002339A CN 110769474 A CN110769474 A CN 110769474A
- Authority
- CN
- China
- Prior art keywords
- communication terminal
- call
- information
- server
- feature code
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/58—Arrangements for transferring received calls from one subscriber to another; Arrangements affording interim conversations between either the calling or the called party and a third party
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/08—Upper layer protocols
- H04W80/10—Upper layer protocols adapted for application session management, e.g. SIP [Session Initiation Protocol]
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a call switching method and a system, wherein the method comprises the steps that a first communication terminal responds to call switching operation and sends a globally configured feature code to a feature code server, and the feature code server inquires a BLF server about the call state of a second communication terminal and generates call switching information belonging to SIP signaling when receiving the feature code; the call forwarding information includes: the switching target information is used for identifying the switching target information of the third communication terminal and the call information to be switched of the current call information of the second communication terminal: the first communication terminal receives the call transfer information and then sends an INVITE call request to the third communication terminal according to the call transfer information, so that the third communication terminal hangs up the communication with the second communication terminal when receiving the INVITE call request and establishes communication connection with the first communication terminal. The embodiment of the invention can solve the problem of waste of number resources in the process of realizing the existing call switching.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for call handover.
Background
In an actual call process, a call handover scenario may be involved, for example, initially, a user a communicates with a user B through a base station, and if the user a needs to leave the location of the base station but does not want to interrupt communication with the user B, the call performed in the base station may be handed over to another call terminal, such as a mobile phone of the user a, through a call handover technique, and then continues to communicate with the user B.
Based on the above scenario, an existing call handover method is needed, a user needs to actively configure a specific number at a server for each call terminal and bind the specific number with location information of the call terminal to implement call handover, the configuration needs to actively configure the specific number by the user, and once the number of users of an organization, such as a company, is large, each user needs to be configured with one number, which results in waste of number resources.
Disclosure of Invention
The embodiment of the invention provides a call switching method and a call switching system, which can solve the problem of waste of number resources in the process of realizing the existing call switching.
An embodiment of the present invention provides a call handover method, including: the first communication terminal responds to the call switching operation and sends a globally configured feature code to the feature code server, so that the feature code server inquires the call state of the second communication terminal from the BLF server when receiving the globally configured feature code and generates call switching information belonging to the SIP signaling; wherein, the first communication terminal corresponds to the second communication terminal, and the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
and the first communication terminal receives the call switching information sent by the feature code server and then sends an INVITE call request to the third communication terminal according to the call switching information, so that the third communication terminal hangs up the communication with the second communication terminal and establishes communication connection with the first communication terminal when receiving the INVITE call request.
Further, the feature code of the global configuration is a feature code preset in a Kamailio server, and when each communication terminal registers through the Kamailio server, the feature code is automatically pushed to each communication terminal by the Kamailio server.
Further, the sending an INVITE call request to the third communication terminal according to the call forwarding information specifically includes:
and the first communication terminal acquires the switching target information for identifying a third communication terminal according to the call switching information, and then sends an INVITE call request carrying the call information to be switched to the third communication terminal according to the switching target information.
Further, the first communication terminal, the second communication terminal and the third communication terminal can be mobile phone terminals or fixed phone terminals.
On the basis of the above method item embodiment, the invention correspondingly provides a system item embodiment;
another embodiment of the present invention provides a communication switching system, including: the system comprises a first communication terminal, a second communication terminal, a third communication terminal, a feature code server and a BLF server;
the first communication terminal is used for responding to the call switching operation and sending a feature code to the feature code server;
the feature code server is used for inquiring the call state of the second communication terminal from the BLF server and generating call forwarding information belonging to the SIP signaling when receiving the globally configured feature code; wherein, the first communication terminal corresponds to the second communication terminal, and the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
the first communication terminal is further configured to receive call forwarding information sent by the feature code server, and then send an INVITE call request to the third communication terminal according to the call forwarding information;
and the third communication terminal is used for hanging up the communication with the second communication terminal and establishing communication connection with the first communication terminal when receiving the INVITE communication request.
Further, the method also comprises the following steps: a Kamailio server; and the Kamailio server is used for pushing the globally configured feature codes to each registered communication terminal when each communication terminal registers.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a call switching method and a call switching system, wherein a second communication terminal and a third communication terminal are in communication before the call switching is started; when call switching is needed, replacing the communication between the second communication terminal and the third communication terminal with the communication between the first communication terminal and the third communication terminal, and performing the following procedures, wherein firstly, the first communication terminal responds to the call switching operation, sends a globally configured feature code to the feature code server, the feature code server performs verification after receiving the feature code, and if the globally configured feature code is confirmed, the BLF server inquires the call state of the second communication terminal and generates call switching information belonging to an SIP signaling; the communication switching information comprises information of a target object to be switched, namely information of a third communication terminal point, and communication information to be switched, namely the information to be switched; then the first communication terminal sends an INVITE call request to the third communication terminal after receiving the communication switching information, and finally the first communication terminal replaces the second communication terminal and continues to communicate with the third communication terminal, so that call switching is realized; in the process of implementing the method, the replacement of the call is implemented by adopting the SIP signaling Refer and the INVITE-Replace method, so that the waste of the number resource of the service end is avoided, the use is convenient for users, the complex configuration is not needed, and the deployment of an administrator is convenient.
Drawings
Fig. 1 is a flowchart illustrating a call handover method according to an embodiment of the present invention.
Fig. 2 is a timing diagram of a call handover method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a call handover method provided in an embodiment of the present invention includes:
step S101, a first communication terminal responds to a call switching operation and sends a globally configured feature code to a feature code server so that the feature code server inquires a BLF server about the call state of a second communication terminal when receiving the globally configured feature code and generates call switching information belonging to SIP signaling; wherein, the first communication terminal corresponds to the second communication terminal, and the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
step S102, the first communication terminal receives the call switching information sent by the feature code server, and then sends an INVITE call request to the third communication terminal according to the call switching information, so that when the third communication terminal receives the INVITE call request, the communication with the second communication terminal is hung up, and communication connection is established with the first communication terminal.
The second communication terminal and the third communication terminal are in communication before the conversation switching starts; when the communication switching is needed, the communication between the second communication terminal and the third communication terminal is replaced by the communication between the first communication terminal and the third communication terminal, the communication is carried out according to the following procedures that the first communication terminal responds to the operation of the communication switching, a globally configured feature code is sent to the feature code server, the feature code server checks after receiving the globally configured feature code, if the globally configured feature code is confirmed, the communication state of the second communication terminal is inquired of the BLF server, and the communication switching information belonging to the SIP signaling is generated.
It should be noted here that the first communication terminal and the second communication terminal are corresponding, and the first communication terminal and the second communication terminal are associated through an account, because these 2 terminals are all registered on a kamailio-sip server (kamailio server), and there is a record on the server.
Each communication terminal has a global unique identifier gruu, which is device unique and does not conflict with each other, but the kamalio server associates different gruus of the same account, which means that one account can correspond to multiple gruus, that is, one account can correspond to multiple devices. The gruu identifiers are all reflected on the Contact header field in the sip message, and the kamailio server reports the result to the BLF server in the call process. Therefore, the feature code server can obtain the call records and the call information of all the device terminals through the BLF server, and know which account corresponds to the device identifier gruu.
That is, before the call handover is started, the gruu identifier of the first communication terminal performing the call handover operation is associated with the gruu identifier of the corresponding second communication terminal. And the gruu exists in the sip message of each call and is also reported to the BLF server, so that the BLF server simultaneously acquires the gruu identifier of the first communication terminal and the gruu identifier of the second communication terminal associated with the first communication terminal when acquiring the gruu identifier of the first communication terminal, and queries the call state of the second communication terminal according to the gruu identifier of the second communication terminal.
The globally configured feature codes are feature codes preset in a Kamailio server, and when each communication terminal is registered through the Kamailio server, the feature codes are automatically pushed to each communication terminal by the Kamailio server to perform global configuration; this globally configured feature code is used to indicate that an account query is performed on the BLF server; for example, the feature code of the global configuration may be: 97 or 98, 97 signature indicates that BLF queries are performed for a single account, or multiple accounts if 98. Before the whole switching scheme is executed, the communication terminals executing the switching action need to be registered in the Kamailio server, and then the Kamailio server automatically pushes the built-in feature codes of global configuration, such as 97, to each communication terminal executing the registration, so that each communication terminal executing the registration has a common feature code to realize the global configuration. The whole process does not need the configuration of a user;
the communication switching information comprises information of a target object to be switched, namely information of a third communication terminal point, and communication information to be switched, namely the information to be switched; and then the first communication terminal sends an INVITE call request to the third communication terminal after receiving the communication switching information, and finally the first communication terminal replaces the second communication terminal to continue to communicate with the third communication terminal, so that call switching is realized.
In the process of implementing the method, the replacement of the call is implemented by adopting the SIP signaling Refer and the INVITE-Replace method, so that the waste of the number resource of the service end is avoided, the use is convenient for users, the complex configuration is not needed, and the deployment of an administrator is convenient.
As shown in fig. 2, the above steps are described in detail below with reference to a timing chart:
in step S101, first, in fig. 2, a1 denotes a second communication terminal, a2 denotes a first communication terminal, and B1 denotes a third communication terminal.
Before the call switching is started, a1 and B1 are in normal communication, when a2 responds to the call switching operation to start the call switching operation, in a preferred embodiment, an application program is set at a2 end, a "call flip" (call switching) button is set on the application program, and then a user clicks the call switching button. A2 responds to this operation by initiating a call F2 INVITE feature (97) to the feature server.
The feature code server receives F2, INVITE feature code (× 97), checks if the feature code is configured, and if so, queries the BLF server for call state information of a1, as shown in F4: query a1 for call status. It should be noted that the configured feature code is a feature code preset in the feature code server, and when each communication terminal registers, the feature code server automatically pushes the feature code to each registered communication terminal.
When the feature code server queries the call state of a1, it mainly obtains the information of the call object currently in call with a1 (i.e. B1) and the information for indicating the current call of a1 (in fig. 2, the symbol is C1, and C1 includes three contents, namely, hellid, From-tag and To-tag, which uniquely indicate the call);
after the call state of A1 is inquired, call forwarding information (Refer-To: B1, replace ═ C1) belonging To the SIP command is generated, wherein the call forwarding information comprises forwarding target information, namely B1(Refer-To: B1 indicates that Refer is To be forwarded To B1 terminal), and the call information To be forwarded is C1, wherein C1 comprises three contents, namely CaLLID, From-tag and To-tag, and uniquely indicates a call; (place C1, the content to be transferred is C1); the feature server then sends this call forwarding information to the a2 peer, which responds with a 200OK response after receipt at the a2 peer.
For step S102, the first communication terminal specifically acquires the forwarding target information for identifying the third communication terminal according to the call forwarding information, and then sends an INVITE call request carrying the call information to be forwarded to the third communication terminal according to the forwarding target information. Practical examples are as follows:
after receiving the communication switching information, the A2 end directly establishes a call with the B1 end, namely INVITE B1, and carries the call information Replaces C1 of the C1. The call information carrying C1 is mainly to perform call replacement. Namely F6: INVITE B1Replaces: C1 of FIG. 2;
immediately after the B1 receives the INVITE call initiated by a2, it checks that there is replacement information (Replaces: C1) carrying the call, indicating that the call of C1 is to be replaced with the current call of a 2. Then, after B1 responds to F6:200OK, B1 hangs up the call C1 with a2 (F7 in fig. 2), and then establishes a communication connection with a 2.
Finally, after the call setup between A2 and B1 is successful, the transmission of RTP media streams between both parties is started.
It should be noted that after a2 receives the call forwarding message, Refer-TO: B1, and replace ═ C1, a2 will re-initiate a call TO B1, and carry the information of Replaces TO indicate that the calls of a1 and B1 are TO be replaced, and after the call handover is successful, B1 will hang up the original call with a 1. These processes are hidden to the B1 end, and the telephone at the B1 end shows that the whole call process is not disconnected but switched; and the user is not required to configure any special number.
In a preferred embodiment, the first communication terminal, the second communication terminal and the third communication terminal can be mobile phone terminals or landline phone terminals.
On the basis of the above method item embodiment, a system item embodiment is correspondingly provided:
another embodiment of the present invention provides a communication switching system, including: the system comprises a first communication terminal, a second communication terminal, a third communication terminal, a feature code server and a BLF server;
the first communication terminal is used for responding to the call switching operation and sending a globally configured feature code to the feature code server;
the feature code server is used for inquiring the call state of the second communication terminal from the BLF server and generating call forwarding information belonging to the SIP signaling when receiving the globally configured feature code; wherein, the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
the first communication terminal is further configured to receive call forwarding information sent by the feature code server, and then send an INVITE call request to the third communication terminal according to the call forwarding information;
and the third communication terminal is used for hanging up the communication with the second communication terminal and establishing communication connection with the first communication terminal when receiving the INVITE communication request.
In a preferred embodiment, further comprising: a Kamailio server; and the Kamailio server is used for pushing the globally configured feature codes to each registered communication terminal when each communication terminal registers.
It is to be understood that the above system embodiments correspond to the method embodiments of the present invention, and may implement the communication handover method provided by any of the above method embodiments of the present invention.
By implementing the embodiment of the invention, the replacement of the call can be realized by adopting the methods of SIP signaling Refer and INVITE-Replace, the waste of the number resource of the service end is avoided, the use is convenient for users, and meanwhile, the complex configuration is not needed, and the deployment of administrators is convenient.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (6)
1. A call handover method, comprising:
the first communication terminal responds to the call switching operation and sends a globally configured feature code to the feature code server, so that the feature code server inquires the call state of the second communication terminal from the BLF server when receiving the globally configured feature code and generates call switching information belonging to the SIP signaling; wherein, the first communication terminal corresponds to the second communication terminal, and the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
and the first communication terminal receives the call switching information sent by the feature code server and then sends an INVITE call request to the third communication terminal according to the call switching information, so that the third communication terminal hangs up the communication with the second communication terminal and establishes communication connection with the first communication terminal when receiving the INVITE call request.
2. The call switching method according to claim 1, wherein the globally configured feature code is a feature code preset in a Kamailio server, and when each communication terminal registers through the Kamailio server, the feature code is automatically pushed to each communication terminal by the Kamailio server.
3. The call handover method according to claim 1, wherein the sending an INVITE call request to the third communication terminal according to the call forwarding information specifically comprises:
and the first communication terminal acquires the switching target information for identifying a third communication terminal according to the call switching information, and then sends an INVITE call request carrying the call information to be switched to the third communication terminal according to the switching target information.
4. The call handover method according to claim 1, wherein the first, second and third communication terminals are all mobile phone terminals or landline terminals.
5. A communication switching system, comprising: the system comprises a first communication terminal, a second communication terminal, a third communication terminal, a feature code server and a BLF server;
the first communication terminal is used for responding to the call switching operation and sending a globally configured feature code to the feature code server;
the feature code server is used for inquiring the call state of the second communication terminal from the BLF server and generating call forwarding information belonging to the SIP signaling when receiving the globally configured feature code; wherein, the first communication terminal corresponds to the second communication terminal, and the call forwarding information includes: forwarding target information and call information to be forwarded; the switching target information is used for identifying a third communication terminal which is communicating with the second communication terminal, and the call information to be switched is used for identifying the current call information of the second communication terminal and the third communication terminal;
the first communication terminal is further configured to receive call forwarding information sent by the feature code server, and then send an INVITE call request to the third communication terminal according to the call forwarding information;
and the third communication terminal is used for hanging up the communication with the second communication terminal and establishing communication connection with the first communication terminal when receiving the INVITE communication request.
6. The communication switching system of claim 5, further comprising: a Kamailio server; and the Kamailio server is used for pushing the globally configured feature codes to each registered communication terminal when each communication terminal registers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002339.4A CN110769474A (en) | 2019-10-21 | 2019-10-21 | Call switching method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002339.4A CN110769474A (en) | 2019-10-21 | 2019-10-21 | Call switching method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110769474A true CN110769474A (en) | 2020-02-07 |
Family
ID=69331489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911002339.4A Pending CN110769474A (en) | 2019-10-21 | 2019-10-21 | Call switching method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110769474A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114866507A (en) * | 2022-06-13 | 2022-08-05 | 厦门亿联网络技术股份有限公司 | Communication method, communication device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101103648A (en) * | 2005-01-13 | 2008-01-09 | 艾利森电话股份有限公司 | System and method for call handoff between circuit switched and packet switched data wireless networks |
CN102497627A (en) * | 2011-11-14 | 2012-06-13 | 中兴通讯股份有限公司 | Method and system for realizing free conversation switching business |
US20130117457A1 (en) * | 2008-02-20 | 2013-05-09 | Research In Motion Limited | Methods and systems for facilitating transfer of sessions between user devices |
WO2013067169A1 (en) * | 2011-11-04 | 2013-05-10 | Google Inc. | Transferring an active call to another device |
CN104581665A (en) * | 2014-12-17 | 2015-04-29 | 广东欧珀移动通信有限公司 | Call transfer method and device |
CN104641686A (en) * | 2012-07-18 | 2015-05-20 | 感觉媒体 | Vvoip call transfer |
-
2019
- 2019-10-21 CN CN201911002339.4A patent/CN110769474A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101103648A (en) * | 2005-01-13 | 2008-01-09 | 艾利森电话股份有限公司 | System and method for call handoff between circuit switched and packet switched data wireless networks |
US20130117457A1 (en) * | 2008-02-20 | 2013-05-09 | Research In Motion Limited | Methods and systems for facilitating transfer of sessions between user devices |
WO2013067169A1 (en) * | 2011-11-04 | 2013-05-10 | Google Inc. | Transferring an active call to another device |
CN102497627A (en) * | 2011-11-14 | 2012-06-13 | 中兴通讯股份有限公司 | Method and system for realizing free conversation switching business |
CN104641686A (en) * | 2012-07-18 | 2015-05-20 | 感觉媒体 | Vvoip call transfer |
CN104581665A (en) * | 2014-12-17 | 2015-04-29 | 广东欧珀移动通信有限公司 | Call transfer method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114866507A (en) * | 2022-06-13 | 2022-08-05 | 厦门亿联网络技术股份有限公司 | Communication method, communication device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106358177B (en) | Communication method and communication device based on dual-card dual-standby terminal | |
US20150016421A1 (en) | System and method for transitioning a communication session between networks that are not commonly controlled | |
EP1742439B1 (en) | SIP server, terminal device, subscriber information management device and communication control method | |
WO2007033546A1 (en) | Method for realizing one card with multiple numbers service | |
RU2592857C2 (en) | Applications server for controlling communication with group of user objects | |
US8446897B2 (en) | System and method for providing multimedia tone/announcement over wireless network | |
CN111356098A (en) | Call control method, server, vehicle-mounted terminal and mobile terminal | |
US7016359B2 (en) | Method for providing hybrid voice and packet data services to a mobile station | |
KR101095421B1 (en) | Call control method, circuit-switched domain adapter and terminal device | |
CN110740429A (en) | mobile communication method, device and equipment | |
US8320362B2 (en) | Telecommunications system and method of initiating file transfers from voice endpoints | |
JP3924554B2 (en) | HANDOVER METHOD AND GATEWAY DEVICE | |
WO2010078756A1 (en) | Method, device and system for call control | |
CN101448224A (en) | Method for realizing special service call in IP multimedia subsystem and system thereof | |
US8983043B2 (en) | Data communication | |
CN110769474A (en) | Call switching method and system | |
JP2009518941A (en) | Method and network device for setting up a connection in a second network | |
CN106534126A (en) | Data communication method and device, trunking system, and repeater | |
CN110505356B (en) | Call establishment method and call establishment system | |
WO2012052710A1 (en) | Concurrent voice and data communication | |
CN110418346B (en) | Call establishment method and call establishment system | |
KR100432830B1 (en) | Permanent private number service system based on presence and method thereof | |
CN114189499B (en) | Converged communication system, method and device for multi-service association interaction | |
WO2012052705A1 (en) | Data communication | |
CN110493023B (en) | Three-party session establishment method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200207 |