A method and device for converting a short number, an electronic device and a storage medium
Patent Information
- Application Number
- CN202211027924.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-08-25
AI Technical Summary
[0003]但现有技术中,短号的转换只适用于国内范围的呼叫,即主叫用户在国内拨打被叫短号能进行长短号转换,当主叫用户处于国际漫游状态,由于被叫短号会被规整为国际格式,从而使得无法基于现有的被叫短号与被叫长号的对应关系,对国际格式的被叫短号进行转换,导致无法基于短号实现与被叫用户的通话
[0009]In this embodiment, the first called short number, after normalization, carries a second called short number in the original format corresponding to the first country code representing the location of the calling number and the called long number. Therefore, when the locations of the calling numbers are different, the first called short number after normalization will also be different due to the different first country codes it contains. Thus, when it is determined that the calling number is in international roaming, the first country code can be deleted from the first called number to obtain the second called short number in the original format corresponding to the called long number. Based on this, the called long number can be obtained from the second called short number, enabling roaming users abroad to communicate with called users using short numbers.
Smart Images

Figure CN117676489B_ABST
Abstract
Description
[Technical Field]
[0001] This application relates to the field of data communication network technology, and in particular to a method, apparatus, electronic device, and storage medium for converting short numbers. [Background Technology]
[0002] Currently, the implementation method for short number services involves the short number service platform receiving a call to the called number, determining whether the called number is a short number, and if so, performing long-short number conversion processing on the called number before continuing the call.
[0003] However, in the existing technology, short number conversion only applies to domestic calls. That is, when the calling user dials the called short number in China, long number conversion can be performed. When the calling user is in international roaming, the called short number will be standardized into an international format, making it impossible to convert the international format called short number based on the existing correspondence between called short number and called long number. This makes it impossible to make a call with the called user based on the short number. [Summary of the Invention]
[0004] This application provides a method, apparatus, electronic device, and storage medium for converting short numbers. When a calling user is roaming abroad and calls a called user based on a short number, the short number of the called user can be successfully converted into the long number of the called user, thereby enabling the calling user roaming abroad to make a call with the called user based on the short number.
[0005] In a first aspect, embodiments of this application provide a method for converting short numbers, the method comprising:
[0006] Receive a session message, the session message including a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization, the first called short number being a combination of the first country code and the second called short number in the original format corresponding to the called long number;
[0007] If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, delete the first country code in the first called short number in the second field to obtain the second called short number;
[0008] Based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number, the target called long number corresponding to the second called short number is determined.
[0009] In this embodiment, the first called short number, after normalization, carries a second called short number in the original format corresponding to the first country code representing the location of the calling number and the called long number. Therefore, when the locations of the calling numbers are different, the first called short number after normalization will also be different due to the different first country codes it contains. Thus, when it is determined that the calling number is in international roaming, the first country code can be deleted from the first called number to obtain the second called short number in the original format corresponding to the called long number. Based on this, the called long number can be obtained from the second called short number, enabling roaming users abroad to communicate with called users using short numbers.
[0010] Optionally, the session message further includes a third field representing the original format of the called short number corresponding to the called long number. Before determining the target called long number corresponding to the second called short number based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number, the method further includes:
[0011] Determine that the third called short number in the third field matches the second called short number.
[0012] In this embodiment of the application, the original format of the third called short number carried in the third field should theoretically be the same as the second called short number obtained after deleting the first country code, so as to ensure that the second called short number can be converted into the correct called long number.
[0013] Optionally, if it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, deleting the first country code from the first called short number in the second field to obtain the second called short number includes:
[0014] If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, the first country code in the first field is matched with the first called short number in the second field;
[0015] The portion of the first called short number that matches the first country code in the first field is deleted to obtain the second called short number.
[0016] In this embodiment of the application, by deleting the part of the first called short number that matches the first country code in the first field, the problem of incorrect deletion in the operation of deleting the first country code in the first called short number in the second field is avoided, thus ensuring the accuracy of the obtained second called short number.
[0017] Optionally, based on the pre-stored correspondence between the called short number and the called long number within the virtual network corresponding to the called number, determining the target called long number corresponding to the second called short number includes:
[0018] When it is determined that the long number type corresponding to the second called short number is a mobile long number, the target mobile long number corresponding to the second called short number is determined based on the pre-stored correspondence between called short numbers and mobile long numbers within the virtual network corresponding to the calling number; or,
[0019] When it is determined that the long number type corresponding to the second called short number is a landline long number, the target landline long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the landline long number in the virtual network corresponding to the calling number.
[0020] In this embodiment of the application, the corresponding long number type can be determined by the obtained second called short number, and then the specific long number can be accurately determined based on the correspondence between the called short number and the long number of the above type.
[0021] Secondly, embodiments of this application provide a short number conversion device, the device comprising:
[0022] The receiving unit is used to receive a session message, which includes a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization. The first called short number is a combination of the first country code and the second called short number in the original format corresponding to the called long number.
[0023] The processing unit is configured to determine that the first country code in the first field is different from the second country code of the location corresponding to the calling number, delete the first country code in the first called short number in the second field, and obtain the second called short number;
[0024] The conversion unit is used to determine the target called long number corresponding to the second called short number based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number.
[0025] Optionally, the session message further includes a third field representing the original format of the called short number corresponding to the called long number, and the device further includes:
[0026] A determining unit is used to determine that the third called short number in the third field matches the second called short number.
[0027] Optionally, the processing unit is specifically used for:
[0028] If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, the first country code in the first field is matched with the first called short number in the second field;
[0029] The portion of the first called short number that matches the first country code in the first field is deleted to obtain the second called short number.
[0030] Optionally, the conversion unit is specifically used for:
[0031] When it is determined that the long number type corresponding to the second called short number is a mobile long number, the target mobile long number corresponding to the second called short number is determined based on the pre-stored correspondence between called short numbers and mobile long numbers within the virtual network corresponding to the calling number; or,
[0032] When it is determined that the long number type corresponding to the second called short number is a landline long number, the target landline long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the landline long number in the virtual network corresponding to the calling number.
[0033] Thirdly, embodiments of the present invention provide an electronic device, the electronic device including at least one processor and a memory connected to the at least one processor, the at least one processor being configured to implement the steps of the method as described in any embodiment of the first aspect when executing a computer program stored in the memory.
[0034] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in any embodiment of the first aspect.
[0035] It should be understood that the second to fourth aspects of the embodiments of the present invention are consistent with the technical solutions of the first aspect of the embodiments of the present invention, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again. [Attached Image Description]
[0036] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A flowchart illustrating a method for converting short numbers provided in an embodiment of this application;
[0038] Figure 2A flowchart illustrating how a calling user dials a short number when roaming internationally, as provided in this application embodiment;
[0039] Figure 3 A schematic diagram of a short number conversion device provided in an embodiment of this application;
[0040] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
Detailed Implementation Methods
[0041] To better understand the technical solutions in this specification, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0042] It should be understood that the described embodiments are merely some, not all, of the embodiments in this specification. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without inventive effort are within the scope of protection of this specification.
[0043] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0044] As short number services bring convenience to users, it has become commonplace for users to apply for short number services, such as family short numbers and group short numbers. Due to the complex situation of the user groups using short number services, the short number service needs to better meet the needs of different users in order to improve the user experience.
[0045] The inventors of this application have discovered that short number conversion only applies to domestic calls. That is, when a calling user dials a short number within China, long number conversion can be performed. However, when the calling user is in international roaming, the corresponding long number conversion cannot be performed based on the short number of the called party. As a result, the calling user cannot dial other users within the same virtual network using the short number, which leads to the inability to connect to the expected called party and affects the normal use of the short number service.
[0046] In view of this, this application provides a method for converting short numbers. In this method, the first called short number, after being normalized, carries a second called short number in the original format corresponding to the first country code representing the location of the calling number and the called long number. Therefore, when the locations of the calling numbers are different, the first called short number after normalization will be different due to the different first country codes it contains. Thus, when it is determined that the calling number is in international roaming, the first country code can be deleted from the first called number to obtain the second called short number in the original format corresponding to the called long number. Based on this, the called long number can be converted from the second called short number, thereby enabling roaming users abroad to make calls with called users based on short numbers.
[0047] The technical solutions provided in the embodiments of this application will be described below with reference to the accompanying drawings. Please refer to... Figure 1 This invention provides a method for converting short numbers. This method is applied to a server, and the process is described as follows.
[0048] Step 101: Receive a session message. The session message includes a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization. The first called short number is a combination of the first country code and the second called short number in the original format corresponding to the called long number.
[0049] In this embodiment of the application, SCPAS (Service Control Point Application Server) can receive session messages from S-CSCF (Service-SCSCF). The session message carries a first field and a second field. The first field is used to represent the first country code of the visited location of the calling number, and the second field is used to represent the first called short number after normalization. The first called short number can be considered as a combination of the first country code and the second called short number in the original format corresponding to the called long number.
[0050] For example, if the called short number is "654321" and the calling number is located in China, when the visited location of the calling number is in China, it is determined that the calling user is not roaming internationally, and the called short number will not be standardized into the international format. In this case, the called short number is "654321". When the visited location of the calling number is in the United States, the first country code is "1". Correspondingly, the first called short number is a combination of "1" and the second called short number "654321" in the original format corresponding to the called long number, that is, the first called short number is "+1654321". Of course, the visited location of the calling number can also be located in other countries, such as South Korea, France, and Germany. In that case, the first country code will also change accordingly, which will not be elaborated here.
[0051] Step 102: If it is determined that the first country code in the first field is different from the second country code of the calling number's home location, delete the first country code in the first called short number in the second field to obtain the second called short number.
[0052] In this embodiment, after receiving the session message, SCPAS needs to determine whether the calling number is currently in international roaming. If the calling number is not in international roaming, the first called short number can be directly converted to obtain the corresponding long number, thus enabling the call to be made between the called user and the corresponding long number. This will not be elaborated further here. If the calling number is in international roaming, the first called short number cannot be directly converted. In this case, a second called short number can be obtained based on the first called short number, and then the corresponding long number can be obtained based on the second called short number.
[0053] As one possible implementation, when SCPAS determines that the first country code in the first field is different from the second country code of the home location corresponding to the calling number, the first country code in the first called short number in the second field can be deleted to obtain the second called short number.
[0054] For example, if the calling number is located in China, but the current location of the calling number is in the United States, then the first country code in the first field is "1" and the second country code is "86". If the called short number is "654321", then the corresponding first called short number is a combination of the first country code "1" and the second called short number "654321" in the original format of the called long number, i.e., the first called short number is "+1654321". At this time, SCPAS determines that the first country code "1" and the second country code "86" are different, so it deletes the first country code "1" from the first called short number "+1654321" to obtain the second called short number "654321".
[0055] The following is a detailed explanation of how SCPAS deletes the first country code from the first called short number carried in the second field.
[0056] SCPAS first determines that the first country code in the first field is different from the second country code of the calling number's home location; then it matches the first country code in the first field with the first called short number in the second field; finally, it deletes the part of the first called short number that matches the first country code in the first field to obtain the second called short number.
[0057] For example, if the calling number is located in China, but the current calling number is located in the United States, then the first country code is "1" and the second country code is "86". If the called short number is "654321", then the corresponding first called short number is a combination of the first country code "1" and the second called short number "654321" in the original format of the called long number, i.e., the first called short number is "+1654321". SCPAS first determines that the first country code "1" and the second country code "86" are different; then it compares the first country code "1" in the first field with the first called short number "+1654321" in the second field, matching the common part as "1"; finally, it deletes the "1" part in the first called short number "+1654321" that matches the first country code in the first field, obtaining the second called short number "654321".
[0058] In some embodiments, considering that during the formation of the first called short number, the second called short number carried in the first called short number may change due to data transmission errors or data processing errors, resulting in the obtained second called short number not being the actual called short number of the current called user, SCPAS can use the original format of the called short number corresponding to the backed-up called long number to verify the obtained second called short number.
[0059] As one possible implementation, the session message received by SCPAS also includes a third field, which represents the original format of the third called short number corresponding to the called short number. Before converting the obtained second called short number, SCPAS can determine whether the second and third called short numbers match. If they match, it indicates that the obtained second called short number is correct, and it can be converted to the corresponding long number. If they do not match, it indicates that the second called short number is incorrect, and the incorrect second called short number will not be converted, thus ensuring the accuracy of the called user's destination.
[0060] Step 103: Based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the called number, determine the target called long number corresponding to the second called short number.
[0061] In this embodiment of the application, after obtaining the second called short number, SCPAS can directly convert the second called short number into the corresponding called long number, thereby enabling a call between the called user corresponding to the called long number.
[0062] As one possible implementation, SCPAS pre-stores the correspondence between the called short number and the called long number in the virtual network corresponding to the calling number. Based on the above correspondence, the target called long number corresponding to the called short number can be determined.
[0063] For example, if the calling number is located in China, but the current location of the calling number is in the United States, then the first country code is "1" and the second country code is "86". If the called short number is "654321", then the corresponding first called short number is a combination of the first country code "1" and the second called short number "654321" in the original format of the called long number, i.e., the first called short number is "+1654321". SCPAS first determines that the first country code "1" and the second country code are "different", then compares the first country code "1" in the first field with the first called short number "+1654321" in the second field, matching the common part as "1". Finally, it deletes the "1" part in the first called short number "+1654321" that matches the first country code in the first field, obtaining the second called short number "654321". After obtaining the second called short number "654321", SCPAS determines the target called long number (e.g., "+86139010*****") corresponding to the second called short number "654321" based on the pre-stored correspondence between the called number and the virtual network called short number "654321". It should be understood that to call a Chinese mobile number from abroad, "+86" needs to be added before the Chinese mobile number; therefore, the target called long number "+86139010*****" obtained after the above conversion includes "+86".
[0064] In some embodiments, considering that the long number type corresponding to the called short number can be a mobile phone long number or a landline long number, and that the correspondence between mobile phone short numbers and mobile phone long numbers, and the correspondence between landline short numbers and landline long numbers, exist independently, in this embodiment, the correspondence between the corresponding short number and long number can be found according to the long number type corresponding to the called short number, so as to convert the corresponding long number based on the correct correspondence.
[0065] As one possible implementation, SCPAS pre-stores the mapping relationship between called short numbers and mobile long numbers within the virtual network corresponding to the calling number, as well as the mapping relationship between called short numbers and landline long numbers within the virtual network corresponding to the calling number. When SCPAS determines that the long number type corresponding to the second called short number is a mobile long number, it determines the target mobile long number corresponding to the second called short number based on the aforementioned mapping relationship between called short numbers and mobile long numbers within the virtual network corresponding to the calling number; when SCPAS determines that the long number type corresponding to the second called short number is a landline long number, it determines the target mobile long number corresponding to the second called short number based on the aforementioned mapping relationship between called short numbers and landline long numbers within the virtual network corresponding to the calling number.
[0066] For example, when the long number type corresponding to the second called short number (e.g., 654321) obtained by SCPAS is a mobile long number, the target mobile long number (e.g., +86139010*****) corresponding to the second called short number (654321) is determined based on the pre-stored correspondence between the virtual network called short number (654321) and the mobile long number corresponding to the calling number; when the long number type corresponding to the second called short number (e.g., 666555) is a landline long number, the target landline long number (e.g., +86-10-********) corresponding to the second called short number (666555) is determined based on the pre-stored correspondence between the virtual network called short number (666555) and the landline long number corresponding to the calling number. It should be understood that "10" in the landline long number represents the China landline area code, which varies in different provinces and cities. For example, "10" is the landline area code for Beijing, China. It should also be understood that the "-" in the target landline long number (such as +86-10-********) is to distinguish the country code, area code, and landline long number separator.
[0067] Please see Figure 2 This is a flowchart illustrating how a calling user dials a short number when roaming internationally, as provided in an embodiment of this application. Figure 2 In this diagram, the device names are: UE (User Equipment), UE_A (Calling User), UE_B (Called User), PSBC (Proxy Call Session Control Function), S-CSCF (Service-SCSCF), VoLTEAS (VoLTE Application Server), and SCPAS (Service Control Point Application Server). Continuing with the example of a calling number whose home location is in China, while the current calling number's destination is in the United States, and the called short number is "654321", the following is the entire call process when the calling user dials the called short number while roaming internationally.
[0068] 1. UE_A sends the INVITE(UE_A,tel:654321) field from the INVTE message to the PSBC.
[0069] 2. The PSBC sends the received INVITE (UE_A,tel:654321) field and the newly added first field sbc-domain=prefix.1.suffix to the S-CSCF.
[0070] 3. The S-CSCF triggers VoLTEAS first according to priority. VoLTEAS determines that the calling user is roaming internationally because the country code of the visited location of the calling number in the first field sbc-domain=prefix.1.suffix (the country code "1" for the United States in the figure) is different from the country code "86" for the home location of the calling number, China. Based on the number in the INVITE(UE_A,tel:654321) field, it is determined to be a short number call service. At this time, VoLTEAS normalizes the called short number and returns the first field sbc-domain=prefix.1.suffix, which represents the country code of the visited location of the calling number in the United States, the second field INVITE(UE_A,tel:+1654321), which represents the first called short number after normalization, and the third field dialed number=654321, which is the original format of the third called short number corresponding to the newly added called long number, to the S-CSCF.
[0071] 4. When S-CSCF triggers SCPAS again, SCPAS first receives the session message from S-CSCF, including the first field sbc-domain = prefix.1.suffix, which represents the country code of the United States, the visited location of the calling number; the second field INVITE(UE_A,tel:+1654321), which represents the first called short number after normalization; and the third field dialed number = 654321, which represents the original format of the third called short number corresponding to the newly added called long number. Then, if it is determined that the US country code "1" in the first field is different from the country code "86" of China, the home region of the calling number, then the US country code "1" in the first field is matched with the first called short number "+1654321" in the second field. The part "1" in the first called short number "+1654321" that matches the US country code "1" in the first field is deleted. Then, it is determined that the third called short number "654321" in the third field matches the second called short number "654321", thus obtaining the correct second called short number "654321". Finally, based on the pre-stored correspondence between the called short number "654321" and the called long number in the virtual network corresponding to the calling number, the target called long number corresponding to the second called short number is determined (e.g., +86139010*****).
[0072] 5. Upon receiving the first field sbc-domain = prefix.1.suffix of the US country code representing the visited location of the calling number returned by SCPAS, the third field dialed number = 654321 of the original format of the called short number corresponding to the long number, and the target called long number INVITE (UE_A, tel:+86139010*****) field, S-CSCF sends all the above fields to the called party's visited network to continue the called party's connection.
[0073] Please see Figure 3 Based on the same inventive concept, the application also provides a short number conversion device, which includes a receiving unit 201, a processing unit 202 and a conversion unit 203.
[0074] The receiving unit 201 is used to receive a session message, which includes a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization. The first called short number is a combination of the first country code and the second called short number in the original format corresponding to the called long number.
[0075] Processing unit 202 is used to determine that the first country code in the first field is different from the second country code of the location corresponding to the calling number, delete the first country code in the first called short number in the second field, and obtain the second called short number;
[0076] The conversion unit 203 is used to determine the target called long number corresponding to the second called short number based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number.
[0077] Optionally, the session message may also include a third field representing the original format of the called short number corresponding to the called long number, and the device may also include:
[0078] The determination unit is used to determine whether the third called short number in the third field matches the second called short number.
[0079] Optionally, the processing unit 202 is specifically used for:
[0080] If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, the first country code in the first field is matched with the first called short number in the second field;
[0081] Delete the portion of the first called short number that matches the first country code in the first field to obtain the second called short number.
[0082] Optionally, the conversion unit 203 is specifically used for:
[0083] When it is determined that the long number type corresponding to the second called short number is a mobile long number, the target mobile long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the mobile long number in the virtual network corresponding to the calling number; or,
[0084] When it is determined that the long number type corresponding to the second called short number is a landline long number, the target landline long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the landline long number in the virtual network of the calling number.
[0085] Please see Figure 4 Based on the same inventive concept, embodiments of this application also provide an electronic device, which may include at least one processor 301, the at least one processor 301 being used to execute a computer program stored in a memory to implement the functions provided in embodiments of this application. Figure 1 The steps for converting the short sign are shown.
[0086] Optionally, the processor 301 may be a central processing unit, a specific ASIC, or one or more integrated circuits used to control program execution.
[0087] Optionally, the electronic device may further include a memory 302 connected to at least one processor 301. The memory 302 may include ROM, RAM, and disk storage. The memory 302 stores data required for the processor 301 to run, i.e., it stores instructions executable by at least one processor 301. The at least one processor 301 executes instructions stored in the memory 302 to perform tasks such as... Figure 1 The method is shown. The number of memories 302 is one or more.
[0088] The acquisition unit 201, processing unit 202, conversion unit 203, and their corresponding physical devices can all be the aforementioned processor 301. This electronic device can be used to execute... Figure 1 The method provided in the illustrated embodiment. Therefore, regarding the functions that each functional module in this electronic device can achieve, please refer to... Figure 1 The corresponding descriptions in the illustrated embodiments will not be repeated here.
[0089] This application embodiment also provides a computer storage medium, wherein the computer storage medium stores computer instructions, which, when executed on a computer, cause the computer to perform actions such as... Figure 1 The method described.
[0090] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A method for converting short numbers, characterized in that, The method includes: Receive a session message, the session message including a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization, the first called short number being a combination of the first country code and the second called short number in the original format corresponding to the called long number; If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, delete the first country code in the first called short number in the second field to obtain the second called short number; Based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number, the target called long number corresponding to the second called short number is determined. Wherein, if it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, deleting the first country code from the first called short number in the second field to obtain the second called short number includes: If it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, the first country code in the first field is matched with the first called short number in the second field; The portion of the first called short number that matches the first country code in the first field is deleted to obtain the second called short number.
2. The method according to claim 1, characterized in that, The session message also includes a third field representing the original format of the called short number corresponding to the called long number. Before determining the target called long number corresponding to the second called short number based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the calling number, the method further includes: Determine that the third called short number in the third field matches the second called short number.
3. The method according to claim 1, characterized in that, Based on the pre-stored correspondence between the called short number and the called long number within the virtual network corresponding to the called number, the target called long number corresponding to the second called short number is determined as follows: When it is determined that the long number type corresponding to the second called short number is a mobile long number, the target mobile long number corresponding to the second called short number is determined based on the pre-stored correspondence between called short numbers and mobile long numbers within the virtual network corresponding to the calling number; or, When it is determined that the long number type corresponding to the second called short number is a landline long number, the target landline long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the landline long number in the virtual network corresponding to the calling number.
4. A short-amp conversion device, characterized in that, The device includes: The receiving unit is used to receive a session message, which includes a first field representing the first country code of the visited location of the calling number and a second field representing the first called short number after normalization. The first called short number is a combination of the first country code and the second called short number in the original format corresponding to the called long number. The processing unit is configured to determine that the first country code in the first field is different from the second country code of the location corresponding to the calling number, delete the first country code in the first called short number in the second field, and obtain the second called short number; The conversion unit is used to determine the target called long number corresponding to the second called short number based on the pre-stored correspondence between the called short number and the called long number in the virtual network corresponding to the called number. The processing unit is specifically used to: if it is determined that the first country code in the first field is different from the second country code of the location corresponding to the calling number, match the first country code in the first field with the first called short number in the second field; delete the part of the first called short number that matches the first country code in the first field to obtain the second called short number.
5. The apparatus according to claim 4, characterized in that, The session message also includes a third field representing the original format of the called short number corresponding to the called long number, and the device further includes: A determining unit is used to determine that the third called short number in the third field matches the second called short number.
6. The apparatus according to claim 4, characterized in that, The conversion unit is specifically used for: When it is determined that the long number type corresponding to the second called short number is a mobile phone long number, the target mobile phone long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the mobile phone long number in the virtual network corresponding to the calling number. or, When it is determined that the long number type corresponding to the second called short number is a landline long number, the target landline long number corresponding to the second called short number is determined based on the pre-stored correspondence between the called short number and the landline long number in the virtual network corresponding to the calling number.
7. An electronic device, characterized in that, The electronic device includes at least one processor and a memory connected to the at least one processor, the at least one processor being configured to implement the steps of the method as described in any one of claims 1-3 when executing a computer program stored in the memory.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The execution of the computer program by the processor is a step in implementing the method as described in any one of claims 1-3.
Citation Information
Patent Citations
Combined power and foot operated vehicle brake
US1654321A
Valve for pumps.
US654321A
Method for nesting services of code division multiple access (CDMA) user on service control point (SCP), SCP and wireless intelligent network
CN102510562A
Call processing method and mobile terminal
CN108702597A