CN108234778B - Method and device for generating digital graph rule - Google Patents
Method and device for generating digital graph rule Download PDFInfo
- Publication number
- CN108234778B CN108234778B CN201711271240.5A CN201711271240A CN108234778B CN 108234778 B CN108234778 B CN 108234778B CN 201711271240 A CN201711271240 A CN 201711271240A CN 108234778 B CN108234778 B CN 108234778B
- Authority
- CN
- China
- Prior art keywords
- rule
- length
- port
- graph
- string
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000032683 aging Effects 0.000 claims description 22
- 238000009472 formulation Methods 0.000 abstract description 4
- 239000000203 mixture Substances 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 230000006399 behavior Effects 0.000 description 11
- 238000012423 maintenance Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/22—Arrangements for supervision, monitoring or testing
- H04M3/2218—Call detail recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27453—Directories allowing storage of additional subscriber data, e.g. metadata
- H04M1/2746—Sorting, e.g. according to history or frequency of use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/82—Line monitoring circuits for call progress or status discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/22—Arrangements for supervision, monitoring or testing
- H04M3/36—Statistical metering, e.g. recording occasions when traffic exceeds capacity of trunks
-
- 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/50—Centralised arrangements for answering calls; Centralised arrangements for recording messages for absent or busy subscribers ; Centralised arrangements for recording messages
- H04M3/51—Centralised call answering arrangements requiring operator intervention, e.g. call or contact centers for telemarketing
- H04M3/523—Centralised call answering arrangements requiring operator intervention, e.g. call or contact centers for telemarketing with call distribution or queueing
- H04M3/5232—Call distribution algorithms
- H04M3/5235—Dependent on call type or called number [DNIS]
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a method and a device for generating a digital graph rule, wherein the method comprises the following steps: collecting the number string dialed by the user after the user off-hooks at the port; and generating a number graph rule for the port according to the number string information, so that the formulation of a number graph rule set of a port level is realized, and the requirement of user service diversification under the same equipment can be met.
Description
Technical Field
The present invention relates to voice call technology, and more particularly, to a method and apparatus for generating a digital map rule.
Background
When the voice terminal equipment leaves a factory, according to the configuration requirements of an operator, an equipment manufacturer presets a global digit and figure rule set in the voice terminal equipment. In the process of dialing after a user hooks off the phone, when the voice terminal equipment receives a number, the dialing number string collected after the phone is hooked at this time is matched with each figure rule in the global figure rule set. If the number graph rule is matched, the voice terminal equipment reports the dialed number string to a voice server for call processing; if the number string is not matched with any number rule in the global number map rule set, the voice terminal equipment needs to wait for a long time to report the dialed number string to a voice server for call processing.
In a practical application scenario, due to frequent changes of the dialing behavior of the user, for example, the user service changes, such as changes between a common user and a virtual network user. The general user is generally a user who can directly dial a destination number (called number) such as a local telephone, a local mobile phone, a long-distance telephone, a long-distance mobile phone and the like. The virtual network user needs to dial 0 or 9 outgoing prefix before dialing the destination number of local telephone, local mobile phone, long-distance telephone, long-distance mobile phone, etc. Because the global digit and figure rule set of the voice terminal equipment factory setting is usually composed of common user digit and figure rules, the destination number with the outgoing prefix dialed by the virtual network user and the common user digit and figure rules of the factory setting cannot be matched, the voice terminal equipment can report the dialed number string to the voice server for call processing only by waiting for a long time, the sending efficiency of the call number is greatly reduced, and the call delay is long.
In order to solve the above problem, the prior art configures a new global number map rule set for the voice terminal equipment on the terminal management platform according to the specification of the TR104 voice terminal management. The global node of the TR104 voice terminal management specification configured with the number graph rule is shown in table 1:
TABLE 1
In order to configure a number map rule matching a service for a voice terminal device having a plurality of ports and different port services, it is necessary to change a global configuration management interface of the number map rule on the existing voice terminal device to a port level. Table 2 is an example of a node definition for configuring a port level number graph rule, where Line.
TABLE 2
In order to support the extended definition, the terminal management platform and the voice terminal device over the whole network are required to support the implementation of the nodes, the development workload needs to be newly increased, the software upgrading of the terminal management platform and the voice terminal device over the whole network is carried out, the workload is large, the cost is high, errors are easy to occur, the configuration change needs to be carried out on the terminal management platform continuously when the subsequent user service is changed, and the configuration maintenance workload is huge.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The invention provides a method and a device for generating a digital graph rule.
The invention provides a method for generating a digital graph rule, which comprises the following steps:
collecting the number string dialed by the user after the user off-hooks at the port;
and generating a number graph rule for the port according to the number string information.
Optionally, the generating a number map rule for the port according to the number string information includes:
judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value or not;
and if the number string is larger than the preset value, generating a number graph rule for the port according to the length of the number string and the first number.
Optionally, the collecting, at the port, the number string dialed after the user goes off the phone includes:
collecting number strings dialed after a user off-hooks at a port in a digit graph rule generation period S, and counting the first number of each collected length number string and the calling success times at the port;
the generating a number graph rule for the port according to the number string information includes:
after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the method further comprises the following steps: and in the figure rule aging period T, the generated figure rule is used for matching the number string of the port, the generated figure rule is deleted after the figure rule aging period T is ended, and the figure rule generation period S is entered again.
Optionally, the generating a number graph rule for the port according to the length of the number string and the first number includes:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0.
Optionally, the generating a number graph rule for the port according to the length of the number string and the first number further includes:
and if the length of the number string is N and the first number is not unique, integrating and merging the logarithmic chart rules according to the grammatical regulation of the mathematical chart expression.
The device for generating the number graph rule provided by the embodiment of the invention comprises:
the acquisition module is used for collecting the number strings dialed by the user after the user off-hooks at the port;
and the figure rule module is used for generating a figure rule for the port according to the number string information.
Optionally, the number graph rule module is specifically configured to:
and judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value, if so, generating a figure rule for the port according to the length of the number string and the first number.
Alternatively to this, the first and second parts may,
the acquisition module is specifically configured to: collecting number strings dialed after a user off-hooks at a port in a digit graph rule generation period S, and counting the first number of each collected length number string and the calling success times at the port;
the number graph rule module is specifically configured to: after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the figure counting rule generation period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the device also comprises a matching module which is used for matching the number string of the port by using the generated number graph rule in the number graph rule aging period T, deleting the generated number graph rule after the number graph rule aging period T is finished, and triggering the acquisition module to re-enter the number graph rule generation period S.
Optionally, the number map rule module is configured to generate a number map rule for the port according to the length of the number string and the first number, and includes:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0.
Alternatively to this, the first and second parts may,
the number map rule module is configured to generate a number map rule for the port according to the length of the number string and the first number, and further includes: and if the length of the number string is N and the first number is not unique, integrating and merging the log graph rules according to the grammar regulation of the log graph expression.
Compared with the prior art, the method comprises the steps of collecting the number strings dialed after a user off-hooks at a port; and generating a number graph rule for the port according to the number string information. The digital graph is generated according to specific port user dialing behaviors and is not a fixed preset global digital graph rule set, so that for voice terminal equipment with a plurality of ports, the digital graph rule sets of different ports are allowed to be different, the formulation of a port-level digital graph rule set is realized, the requirement of user service diversification under the same equipment can be met, the TR104 standard specification does not need to be modified, and the software versions of a terminal management platform and the voice terminal equipment of the whole network do not need to be upgraded; in addition, when the user changes the service, the terminal management platform is not required to modify the digit graph rule, and the voice terminal equipment automatically generates the digit graph rule for each port according to the user dialing condition of each port, so that the configuration and maintenance work of the existing network equipment is reduced.
Other aspects will be apparent upon reading and understanding the attached drawings and detailed description.
Drawings
FIG. 1 is a flow chart of a method for generating a mathematical graph rule according to an embodiment of the present invention;
FIG. 2 is a timing diagram of a period S and a period T according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for updating a number map based on a dialing statistic table according to an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for generating a rule of a data diagram according to an embodiment of the present invention;
fig. 5 is a block diagram of a port number receiving device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for generating a mathematical graph rule according to an embodiment of the present invention, as shown in fig. 1, the method includes:
s101, collecting number strings dialed by a user after the user off-hooks at a port;
s102, generating a number graph rule for the port according to the number string information.
Optionally, the number string information includes: the length and the first number of the number string;
optionally, in another embodiment, the generating a number graph rule for the port according to the number string information includes:
and judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value, if so, generating a figure rule for the port according to the length of the number string and the first number. If the user dials three called numbers with the length of 3, such as 501, 601 and 801, and each of the three called numbers is successful for 1 time, the number of times that the number string with the length of 3 is successfully called is equal to 3, and if the preset value is 2, when the user dials the number string with the length of 3 again, a digit graph rule can be generated for the port according to the dialed number string again. The preset value is greater than or equal to 1, and can be determined by a person skilled in the art based on the prior art, as long as the value is selected to ensure that the generated number diagram rule is effective and accurately reflect the dialing behavior of the user.
Optionally, in another embodiment, the collecting, at the port, the number string dialed after the user goes off-hook includes:
in a digit graph rule generation period S, collecting number strings dialed by a user after off-hook at a port, and counting the collected first number of each length number string and the call success frequency at the port, namely counting the length of the number strings: the first number of each number string under the length and the total number of successful calls of all the number strings under the length at the port;
the generating a number graph rule for the port according to the number string information includes:
after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the method further comprises the following steps:
and in the figure rule aging period T, the generated figure rule is used for matching the number string of the port, the generated figure rule is deleted after the figure rule aging period T is ended, and the figure rule generation period S is entered again.
In order to learn the number map rule quickly, the number map rule generation period S may be configured to be relatively small, such as S20; in order that the dialing behavior is relatively effective and stable for a period of time after learning the number graph rule, the number graph rule may be aged for a relatively large value, such as T1000. The timing diagram of S and T is shown in FIG. 2. The S and T can be counted according to the port call success times, namely, the period S is set to be equal to K1 port call success times, the period T is set to be equal to K2 port call success times, and K2 is larger than K1.
The number which is not successfully called is probably a nonexistent number or an error number, so the number string collected by off-hook is screened when the figure rule is generated, and the validity of the generated figure rule can be ensured.
Optionally, in another embodiment, the generating a number graph rule for the port according to the length of the number string and the first number includes:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0. Examples are as follows:
1) the length of the extension number dialed by the user is generally 3-5 bits, and if the user dials the extension number 301, a digit map rule 3xx is generated, which represents a digit map rule with the length of 3 bits at the beginning of 3; suppose that the user dials extension number 6001, generating a digit map rule 6xxx, representing a digit map rule of 4 bits length at the beginning of 6;
2) the length of the local telephone number dialed by the user is generally 7 bits or 8 bits, and the user is supposed to dial an 8-bit telephone number 68286001 to generate a digit map rule 6xxxxxxx which represents the digit map rule with the 8-bit length at the beginning of 6; suppose that the user dials 8-bit landline number 58602235, generating a bitmap rule 5xxxxxxx, representing the bitmap rule of 8 bits length at the beginning of 5;
3) the long distance landline number dialed by the user is generally 11 bits or 12 bits, and if the user dials the number 02168286001, a digit graph rule 0xxxxxxxxxx is generated, which represents a digit graph rule with 11 bit length at the beginning of 0;
4) the local mobile phone number dialed by the user is generally 11 digits, and if the user dials the number 13810012235, a digit map rule 1xxxxxxxx is generated, which represents a digit map rule with a 1-start length of 11 bits;
5) the user dials the number of the outgoing (plus dial 9 or 0 above) and, assuming the user dials the outgoing cell phone number 913810012235, a figure rule 9xxxxxxxxx is generated, representing a figure rule of 12 bits length at the beginning of 9.
Optionally, in another embodiment, the generating a number graph rule for the port according to the length of the number string and the first number further includes:
and if the length of the number string is N and the first number is not unique, integrating and merging the logarithmic chart rules according to the grammatical regulation of the mathematical chart expression. Illustratively, for a port of a voice terminal device, after each digit graph rule is generated, each digit graph rule generated for the port is retrieved, and if the length of a number string corresponding to the newly generated digit graph rule at this time is the same as the length of a number string corresponding to the retrieved digit graph rule, and the head of the number string is different from the head of the number string corresponding to the retrieved digit graph rule, the two digit graph rules are merged into one digit graph rule. For example, the number graph rule generated for a port includes two: 0 xxxxxxxxxxxx and 1 xxxxxxxxxxxx; the number strings are all 11 bits long, and the difference is only the first number, then two number map rules 0 xxxxxxxxxxxx and 1 xxxxxxxxxxxx can be combined into [01] xxxxxxxxxxxxxx, so that the storage space can be saved, wherein "[ ]" indicates that any one bit number in "[ ]" can be matched when the number map rules are matched.
In other embodiments, collecting the number string dialed after the user goes off the phone at the port specifically includes:
in a digit graph rule generation period S, collecting number strings which are dialed after a user hooks off and are unsuccessfully matched with the global digit graph rule but successfully called at a port;
and counting the first number of each collected length number string and the call success times at the port.
Correspondingly, in the figure rule aging period T, the matching of the number string of the port by using the generated figure rule includes: and matching the number strings of the ports by using a preset global number graph rule and a number graph rule generated for the ports.
Illustratively, after a digit graph rule is generated for a port, the generated port-level digit graph rule and a preset global digit graph rule of a voice terminal device which leaves a factory can be integrated to form a digit graph rule set, when a number string dialed by a user through off-hook is collected from the port, the number string can be matched with the global digit graph rule, if the number string cannot be successfully matched, the number string can be matched with the port-level digit graph rule (namely the digit graph rule generated for the port), number receiving can be accelerated and reported to a voice server, and calling delay is reduced.
The digital graph is generated according to specific port user dialing behaviors and is not a fixed preset global digital graph rule set, so that the digital graph rule sets of different ports are allowed to be different for voice terminal equipment with a plurality of ports, the formulation of the digital graph rule set of the port level is realized, and the requirement of user service diversification under the same equipment can be met; in addition, when the user changes the service, the terminal management platform is not required to modify the digit graph rule, and the voice terminal equipment automatically generates the digit graph rule for each port according to the user dialing condition of each port, so that the configuration and maintenance work of the existing network equipment is reduced.
The above-described embodiments of the present application are further explained below by way of application examples.
In the invention, the head number of each length number string participating in the port call and the success frequency of the port call need to be counted in a digit graph rule generation period S; after the generation cycle S of the number map rule is finished, if the number string counted in the cycle S is successfully called at the port more than a preset value, the number map rule is generated for the port according to the length of the number string and the first number, and to achieve this purpose, a dial statistical table may be established for the port, where the structure of the dial statistical table is shown in table 3:
TABLE 3
Length of | First digit of dial | Number of matches |
3 | ||
4 | ||
5 | ||
… | ||
N |
In the dialing statistical table, the length represents the length of the collected number string dialed after the user off-hooks;
the 'dialing head' represents the collected head number of the number string with the corresponding length dialed after the user is off-hooked, and is represented by a 16-bit binary system, if the 0 th bit is 1, the collected head number of the number string is 0, if the 1 st bit is 1, the collected head number of the number string is 1, and so on;
the "number of matches" represents the number of times that the collected number string of the corresponding length is successfully called, i.e. the number of times that the number port call is successful. Assuming that the number string 6002 dialed after the user goes off the hook and is collected in the digit map rule generation period S, and the number string is successfully called, the matching number +1 is recorded in the dialing record with the length of 4 in the dialing statistic table, and the 6 th bit of the dialing head is set to 1, as shown in table 4:
TABLE 4
Length of | First digit of dial | Number of matches |
4 | 0000 0000 0100 0000 | 1 |
Continuing to collect the number string 8003 dialed by the user off-hook, and if the number string is successfully called, recording the matching times +1 on the dialing record with the length of 4 in the dialing statistic table, and setting the 8 th bit of the dialing head as 1, as shown in table 5:
TABLE 5
Length of | Head position | Number of matches |
4 | 0000 0000 1010 0000 | 2 |
Continuing to collect the number string 8013 dialed by the user off-hook and being successfully called, then recording the matching times +1 on the dialing record with the length of 4 in the dialing statistic table, setting the 8 th bit of the dialing head as 1, as shown in table 6:
TABLE 6
Length of | Head position | Number of matches |
4 | 0000 0000 1010 0000 | 3 |
Assuming that the number graph rule generation period S is configured as 20, when a number string dialed by a user 20 times is received, the dialing statistics table is shown in table 7:
TABLE 7
Length of | First digit of dial | Number of matches |
3 | 0000 0000 0000 0000 | 0 |
4 | 0000 0000 1010 0000 | 5 |
5 | 0000 0000 0000 0000 | 0 |
… | ||
N | 0000 0000 0000 0000 | 0 |
TABLE 6
The matching times of the dialing records with the length of 4 in the dialing statistical table are 5>3 (preset value), and a number graph rule [68] xxx is generated.
A flow chart of a digit map updating method based on the dialing statistic table is shown in fig. 3, and the method includes:
s301, starting a figure learning function;
s302, entering a figure rule generation period S, and carrying out port dialing behavior analysis in the figure rule generation period S;
s303, acquiring the dialing of the off-hook of the calling party, and if the dialed number is matched with a default global digit map rule, executing the step S304; if the dialed number does not match the default global number map rule, go to step S305;
s304, rapidly reporting the call request to a voice server, not updating the dialing statistical table at the moment, adding 1 to the number of successful calling times, and executing S306;
s305, when the call is successful, finding out the corresponding table entry of the dialing statistical table according to the length of the called number, adding 1 to the bit position 1 corresponding to the 'dialing head' in the dialing statistical table according to the head number, and adding 1 to the successful calling times;
s306, comparing the calling success frequency with the size of the numerical chart rule generation period S, and if the calling success frequency is less than S, returning to execute S302; if the number of successful calling times is greater than or equal to S, executing step S307;
s307, traversing the dialing statistical table, comparing the matching times with preset values one by one, and if the matching times are smaller than the preset values, not generating a number graph; if the matching times are larger than or equal to a preset value, generating a number graph;
s308, integrating the number graph generated after traversing the complete dialing statistical table with a default global number graph;
s309, entering a figure aging period T, and before the period T is finished, not performing dialing behavior analysis on a new call; and when the period T is finished, emptying the dialing statistical table, deleting the figure generated for the port, repeating the figure generation period S, and starting a new figure learning process.
An embodiment of the present invention further provides a device for generating a mathematical graph rule, as shown in fig. 4, the device includes:
the acquisition module is used for collecting the number strings dialed by the user after the user off-hooks at the port;
and the figure rule module is used for generating a figure rule for the port according to the number string information.
Optionally, the number string information includes: the length and the first number of the number string;
optionally, in another embodiment, the number graph rule module is specifically configured to: and judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value, if so, generating a figure rule for the port according to the length of the number string and the first number. The preset value is greater than or equal to 1, and can be determined by a person skilled in the art based on the prior art, as long as the value is selected to ensure that the generated number diagram rule is effective and accurately reflect the dialing behavior of the user.
Optionally, in other embodiments, the acquisition module is specifically configured to: collecting number strings dialed after a user off-hooks at a port in a digit graph rule generation period S, and counting the first number of each collected length number string and the calling success times at the port; the number map rule module is specifically configured to: after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the figure counting rule generation period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the device also comprises a matching module which is used for matching the number string of the port by using the generated number graph rule in the number graph rule aging period T, deleting the generated number graph rule after the number graph rule aging period T is finished, and triggering the acquisition module to re-enter the number graph rule generation period S.
The timing diagram of S and T is shown in FIG. 2. The S and T can be counted according to the port call success times, namely, the period S is set to be equal to K1 port call success times, the period T is set to be equal to K2 port call success times, and K2 is larger than K1.
The number which is not successfully called is probably a nonexistent number or an error number, so the number string collected by off-hook is screened when the figure rule is generated, and the validity of the generated figure rule can be ensured.
Optionally, in another embodiment, the number map rule module is configured to generate a number map rule for the port according to the length of the number string and the first number, and includes:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0.
Optionally, in other embodiments, the number map rule module is configured to generate a number map rule for the port according to the length of the number string and the first number, and further includes: and if the length of the number string is N and the first number is not unique, integrating and merging the log graph rules according to the grammar regulation of the log graph expression. Illustratively, after each digit map is generated for a port of the voice terminal device, each digit map generated for the port is retrieved, and if the dialing length corresponding to the newly generated digit map at this time is the same as the dialing length corresponding to the retrieved digit map and the dialing head is different from the dialing head corresponding to the retrieved digit map, the two digit maps are merged into one digit map.
And the selected number graph rules are combined, so that the storage space can be saved.
In other embodiments, the collecting module, configured to collect, at a port, a number string dialed after a user goes off-hook, includes:
in a digit graph rule generation period S, collecting number strings which are dialed after a user hooks off and are unsuccessfully matched with the global digit graph rule but successfully called at a port;
and counting the first number of each collected length number string and the call success times at the port.
Correspondingly, the matching module is configured to perform matching on the number string of the port by using the generated number graph rule in the number graph rule aging period T, and includes:
and matching the number strings of the ports by using a preset global number graph rule and a number graph rule generated for the ports.
Illustratively, after the number map rule module generates the number map rule for the port, the generated number map rule of the port level and the global number map rule preset by the voice terminal device after leaving the factory can be integrated to form a number map rule set, and the number map rule set is sent to the matching module; the matching module is used for carrying out figure-figure matching on the number string collected from the port, can be matched with the global figure-figure rule firstly, and can be matched with the port-level figure-figure rule (namely the figure-figure rule generated by the port) if the matching is not successful, so that the number receiving can be accelerated and reported to the voice server, and the calling time delay is reduced.
The digital graph is generated according to specific port user dialing behaviors and is not a fixed preset global digital graph rule set, so that the digital graph rule sets of different ports are allowed to be different for voice terminal equipment with a plurality of ports, the formulation of the digital graph rule set of the port level is realized, and the requirement of user service diversification under the same equipment can be met; in addition, when the user changes the service, the terminal management platform is not required to modify the digit graph rule, and the voice terminal equipment automatically generates the digit graph rule for each port according to the user dialing condition of each port, so that the configuration and maintenance work of the existing network equipment is reduced.
The above-described embodiments of the present application are further explained below by way of application examples.
The present application example provides a port number receiving device, as shown in fig. 5, the device includes:
the acquisition module is used for collecting the number strings dialed by a user after the user picks up the phone at the port and sending the number strings to the matching module;
the matching module is used for carrying out figure-figure matching on the number string, and reporting a message to the call management module if the matching is successful;
the call management module is used for initiating a call and sending an invite message to the SIP protocol stack; receiving a 180 response or a 200ok response from the SIP protocol stack, and sending a call success message to the figure rule module;
the SIP protocol module is used for returning a 180 response or a 200ok response to the call management module after receiving the invite message;
the figure counting rule module is used for adding 1 to the calling success frequency after receiving the calling success message, judging whether the calling counting success frequency reaches the frequency defined by the figure counting rule generation period S or not, if not, continuing counting, analyzing the dialing behavior and updating the dialing statistical table; if the number graph reaches S, generating a number graph for the port, integrating the number graph with the global number graph, sending the number graph to a matching module, entering a number graph rule aging period T, and before the period T is finished, not performing dialing behavior analysis on subsequent calls and maintaining the existing port number graph unchanged;
the apparatus shown in fig. 5 includes a number graph rule generating device according to an embodiment of the present invention.
The embodiment of the present invention further provides a device for generating a mathematical graph rule, including:
a memory storing a figure rule generating program;
a processor configured to read the program to perform the operations of the figure rule generation method according to the foregoing embodiments.
The embodiment of the present invention further provides a computer-readable storage medium, where a data diagram rule generating program is stored on the computer-readable storage medium, and when the data diagram rule generating program is executed by a processor, the steps of the data diagram rule generating method according to the foregoing embodiment are implemented.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical units; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (8)
1. A method for generating a mathematical graph rule, comprising:
collecting the number string dialed by the user after the user off-hooks at the port;
generating a number graph rule for the port according to the number string information; wherein,
the generating a number graph rule for the port according to the number string information includes:
judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value or not;
and if the number string is larger than the preset value, generating a number graph rule for the port according to the length of the number string and the first number.
2. The method of claim 1, wherein collecting the number string dialed by the port after the user goes off-hook comprises:
collecting number strings dialed after a user off-hooks at a port in a digit graph rule generation period S, and counting the first number of each collected length number string and the calling success times at the port;
the generating a number graph rule for the port according to the number string information includes:
after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the method further comprises the following steps: and in the figure rule aging period T, the generated figure rule is used for matching the number string of the port, the generated figure rule is deleted after the figure rule aging period T is ended, and the figure rule generation period S is entered again.
3. The method according to claim 1 or 2, wherein the generating a number graph rule for the port according to the length of the number string and the first number comprises:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0.
4. The method of claim 3, wherein generating a graph rule for the port according to the length of the number string and the first number further comprises:
and if the length of the number string is N and the first number is not unique, integrating and merging the logarithmic chart rules according to the grammatical regulation of the mathematical chart expression.
5. An apparatus for generating a numerical rule, the apparatus comprising:
the acquisition module is used for collecting the number strings dialed by the user after the user off-hooks at the port;
the figure rule module is used for generating figure rules for the ports according to the number string information; wherein, the number graph rule module is specifically configured to:
and judging whether the number port calling success times with the length equal to the length of the number string is greater than a preset value, if so, generating a figure rule for the port according to the length of the number string and the first number.
6. The apparatus of claim 5,
the acquisition module is specifically configured to: collecting number strings dialed after a user off-hooks at a port in a digit graph rule generation period S, and counting the first number of each collected length number string and the calling success times at the port;
the number graph rule module is specifically configured to: after the figure counting rule generation period S is finished, if the calling success frequency of any length number string at the port counted in the figure counting rule generation period S is larger than a preset value, generating a figure counting rule for the port according to the length of the length number string and the first number, and entering a figure counting rule aging period T;
the device also comprises a matching module which is used for matching the number string of the port by using the generated number graph rule in the number graph rule aging period T, deleting the generated number graph rule after the number graph rule aging period T is finished, and triggering the acquisition module to re-enter the number graph rule generation period S.
7. The apparatus of claim 5 or 6, wherein the map rule module is configured to generate a map rule for the port according to the length of the number string and the first number, and comprises:
if the length of the number string is N and the first number is A, the generated number graph rule defines a character string with the length of N and the first code of A, wherein N is an integer greater than or equal to 3, and A is an integer greater than or equal to 0.
8. The apparatus of claim 6,
the number map rule module is configured to generate a number map rule for the port according to the length of the number string and the first number, and further includes: and if the length of the number string is N and the first number is not unique, integrating and merging the log graph rules according to the grammar regulation of the log graph expression.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711271240.5A CN108234778B (en) | 2017-12-05 | 2017-12-05 | Method and device for generating digital graph rule |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711271240.5A CN108234778B (en) | 2017-12-05 | 2017-12-05 | Method and device for generating digital graph rule |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234778A CN108234778A (en) | 2018-06-29 |
CN108234778B true CN108234778B (en) | 2020-04-24 |
Family
ID=62653266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711271240.5A Active CN108234778B (en) | 2017-12-05 | 2017-12-05 | Method and device for generating digital graph rule |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234778B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244815B (en) * | 2021-12-16 | 2024-11-05 | 中国电信股份有限公司 | Terminal digit map determination method and device, electronic device and storage medium |
CN114466103B (en) * | 2021-12-21 | 2024-04-26 | 天翼云科技有限公司 | Voice digital graph generation method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870682A (en) * | 2006-03-17 | 2006-11-29 | 华为技术有限公司 | Receiving processing method and its device |
WO2010097112A1 (en) * | 2009-02-25 | 2010-09-02 | Telefonaktiebolaget L M Ericsson (Publ) | Automatic digit map generation for access gateway during call setup |
CN102355540A (en) * | 2011-06-24 | 2012-02-15 | 烽火通信科技股份有限公司 | Audio gateway digital figure designing and matching method |
CN102694934A (en) * | 2012-06-04 | 2012-09-26 | 深圳市共进电子股份有限公司 | Communication method and device |
US8767950B2 (en) * | 2007-12-19 | 2014-07-01 | Verizon Patent And Licensing Inc. | Scalable and flexible processing of digit maps and dial strings |
CN104753905A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团上海有限公司 | Internal communication network communication data processing method and device |
-
2017
- 2017-12-05 CN CN201711271240.5A patent/CN108234778B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870682A (en) * | 2006-03-17 | 2006-11-29 | 华为技术有限公司 | Receiving processing method and its device |
US8767950B2 (en) * | 2007-12-19 | 2014-07-01 | Verizon Patent And Licensing Inc. | Scalable and flexible processing of digit maps and dial strings |
WO2010097112A1 (en) * | 2009-02-25 | 2010-09-02 | Telefonaktiebolaget L M Ericsson (Publ) | Automatic digit map generation for access gateway during call setup |
CN102355540A (en) * | 2011-06-24 | 2012-02-15 | 烽火通信科技股份有限公司 | Audio gateway digital figure designing and matching method |
CN102694934A (en) * | 2012-06-04 | 2012-09-26 | 深圳市共进电子股份有限公司 | Communication method and device |
CN104753905A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团上海有限公司 | Internal communication network communication data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108234778A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8238922B2 (en) | Location-based address normalization | |
CN104735272B (en) | The hold-up interception method and system of a kind of harassing call | |
US10594862B2 (en) | Contextual contact substitution for mobile devices | |
CN110312046B (en) | Outbound data optimization method and device, computer equipment and storage medium | |
CN111954217B (en) | User identity verification method and device, electronic equipment and computer storage medium | |
CN108234778B (en) | Method and device for generating digital graph rule | |
US8311535B2 (en) | Method for controlling information trace and core network element | |
CN112307075A (en) | User relationship identification method and device | |
CN109725836A (en) | User context compression method and device | |
CN112261214A (en) | Network voice communication automatic test method and system | |
US8300780B1 (en) | Smart capture for populating an address book with entries | |
CN105847506A (en) | Communication method and device for mobile terminal and mobile terminal | |
CN112188474B (en) | Re-network user identification method, platform, computer equipment and storage medium | |
CN107483700B (en) | Method and device for identifying bad number | |
CN110166636A (en) | Device, method and the storage medium of pressure test | |
CN109348074B (en) | Communication sharing system, method, device, computer device and storage medium | |
CN110708706B (en) | Regional assessment method, equipment and storage medium | |
CN111949835B (en) | Data processing method and device | |
CN106713581A (en) | Communication number identification method, terminal and system | |
CN112788016A (en) | Illegal user identification method and device, electronic equipment and storage medium | |
CN113286045A (en) | Automatic call establishing method for external calling extension, terminal device and storage medium | |
CN112235455A (en) | Call rejection processing method, system, computer equipment and storage medium | |
CN111092998A (en) | Telephone emergency calling method, system and storage medium | |
CN111756910A (en) | Method, system, computer equipment and storage medium for DND | |
CN103973872A (en) | Information processing method and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |