CN101674371A - Method and device for processing phone numbers in short messages - Google Patents

Method and device for processing phone numbers in short messages Download PDF

Info

Publication number
CN101674371A
CN101674371A CN200910205641A CN200910205641A CN101674371A CN 101674371 A CN101674371 A CN 101674371A CN 200910205641 A CN200910205641 A CN 200910205641A CN 200910205641 A CN200910205641 A CN 200910205641A CN 101674371 A CN101674371 A CN 101674371A
Authority
CN
China
Prior art keywords
telephone number
phone number
area code
short message
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910205641A
Other languages
Chinese (zh)
Inventor
邓方民
赵斌
刘利章
薛涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200910205641A priority Critical patent/CN101674371A/en
Publication of CN101674371A publication Critical patent/CN101674371A/en
Pending legal-status Critical Current

Links

Images

Abstract

The method discloses a method and a device for processing phone numbers in short messages. The method comprises the following steps: after receiving a short message by a terminal, searching for a digital sequence in the short message, if the digital sequence is searched, recognizing whether the digital sequence is a phone number, if the digital sequence is the phone number, adding a area code to atelephone number when the phone number is a fixed phone number; and adding attribution information to the phone number when the phone number is a mobile phone number. The area code is added to the fixed phone number and the attribution information is added to the mobile phone number, thus a receiving party of the short message can accurately obtain the area code of the fixed phone number and theattribution of the mobile phone number from the short message, which causes a user to know number information more clearly and facilitates dialing back the phone number.

Description

A kind of method and device of handling the telephone number in the short message
Technical field
The present invention relates to the mobile communication technology field, relate in particular to a kind of method and device of handling the telephone number in the short message.
Background technology
SMS (note) more and more is subjected to user's favor with its cheap cost of use, send mode and abundant information content easily.Under a lot of situations, people need send telephone number by note, and the recipient of note need dial the telephone number in the note usually.Perhaps and do not know the area code of the fixed line number in the note, quite inconvenience when dialing yet if the relative note recipient of the telephone number in the note belongs to the landline telephone in strange land, note recipient; If the telephone number in the note is a phone number, the user often is difficult to determine the ownership place of this phone number, to such an extent as to can't determine whether dial.
Chinese patent specification 200410057010.5 discloses the digital processing method in a kind of SMS, and this method comprises following step:
The first step, the note that the calling party will include Arabic numerals sequence sends to the callee;
In second step, the callee receives the note that includes Arabic numerals sequence that the calling party sends, and manually selects the digital extraction program;
In the 3rd step, this digital extraction program extracts described Arabic numerals sequence and handle from described note.
Said method only can be realized Arabic numerals sequence is extracted from short message, telephone number and other digital content are not distinguished, such as, the Arabic numerals sequence of extracting is 320.1,88723976 and 13992890000, obvious 320.1 is not telephone number, even and 88723976 and 13992890000 telephone numbers, but still exist the note recipient can't know the area code of fixed line number, and the ownership place of phone number, note recipient still can't dial the telephone number in the note easily.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and device of handling the telephone number in the short message, solve the user after receiving the note that comprises telephone number, can't determine the problem of the ownership place of the area code of fixed line number and phone number, make the user can dial telephone number in the note easily.
For solving the problems of the technologies described above, the method of a kind of processing phone numbers in short messages of the present invention, comprise: after terminal receives short message, in this short message, search for Serial No., whether if search Serial No., then discerning this Serial No. is telephone number, if this Serial No. is a telephone number, then when this telephone number is fixed telephone number, for this fixed telephone number adds area code; When this telephone number is phone number, for this phone number adds information of home location.
Further, the area code of adding for fixed telephone number is the area code of ownership place of phone number of the transmit leg of short message.
Further, in terminal, preserve the home zone of mobile phone number question blank;
When telephone number was phone number, terminal was according to this phone number, and inquiry is the information of home location of phone number interpolation from this home zone of mobile phone number question blank.
Further, in terminal, also preserve landline telephone area code question blank;
When telephone number is fixed telephone number, terminal is according to the phone number of the transmit leg of short message, the information of home location of the transmit leg of inquiry short message from the home zone of mobile phone number question blank, according to this information of home location, from landline telephone area code question blank, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as fixed telephone number.
Further, preserve matched rule in terminal, terminal reads and moves this matched rule after Serial No. is identified as telephone number;
When telephone number was phone number, matched rule was according to the ownership place identification section of this phone number, and inquiry is the information of home location of phone number interpolation from the home zone of mobile phone number question blank;
When telephone number is fixed telephone number, matched rule is according to the ownership place identification section of the phone number of the transmit leg of short message, the information of home location of the transmit leg of inquiry short message from the home zone of mobile phone number question blank, according to this information of home location, from landline telephone area code question blank, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as fixed telephone number.
Further, when telephone number was fixed telephone number, matched rule was that also fixed telephone number adds information of home location, with the information of home location of the transmit leg of the short message information of home location as fixed telephone number.
Further, a kind of device of handling the telephone number in the short message, this device comprises: search module, identification module and matching module, wherein:
Search module is used for searching for Serial No. in this short message after this device receives short message, if search Serial No., then the Serial No. that searches is sent to identification module;
Identification module is used to discern whether the Serial No. that receives is telephone number, if telephone number then identifies fixed telephone number and cell-phone telephone number, and sends to matching module respectively;
Matching module is used to fixed telephone number to add area code; For phone number adds information of home location.
Further, matching module is that the area code that fixed telephone number adds is the area code of ownership place of phone number of the transmit leg of short message.
Further, this device also comprises: memory module;
Memory module is used to preserve the home zone of mobile phone number question blank;
When matching module is phone number at telephone number, according to this phone number, the information of home location that inquiry is added for phone number in the home zone of mobile phone number question blank of preserving from memory.
Further, memory module also is used to preserve landline telephone area code question blank;
When matching module is fixed telephone number at telephone number, phone number according to the transmit leg of short message, the information of home location of the transmit leg of inquiry short message from the home zone of mobile phone number question blank, according to this information of home location, in the landline telephone area code question blank of from memory module, preserving, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as fixed telephone number.
In sum, the present invention is by adding area code for the fixed telephone number in the short message, for the phone number in the short message adds information of home location, the recipient of short message can be known the area code of landline telephone and the ownership place of phone number exactly from content of short message, thereby make the user more clearly understand number information, conveniently call back.
Description of drawings
Fig. 1 handles the flow chart of the method for the telephone number in the short message for the embodiment of the invention;
Fig. 2 handles the Organization Chart of the device of the telephone number in the short message for the embodiment of the invention.
Embodiment
In the embodiment of the invention,, be that phone number adds information of home location, thereby make things convenient for short message receiving debit's user to dial telephone number in the short message by being that fixed telephone number in the short message adds area code.
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described.
Embodiment 1:
For realizing the method in the present embodiment, need be in terminal memory mobile phone number attribution question blank and landline telephone area code question blank in advance, in the home zone of mobile phone number question blank, record the ownership place identification section (as 4~7 of phone number) of phone number and the corresponding relation of ownership place, the corresponding relation of the area code of record information of home location and this ownership place in the landline telephone area code question blank.
Figure 1 shows that the method for the telephone number in the processing short message of the embodiment of the invention, this method comprises:
101: after short message receiving debit's terminal received short message, when the user selected to check short message, terminal read pre-configured search rule from memory;
102: terminal operating search rule, the Serial No. that comprises in the search content of short message;
Search rule can adopt existing any rule that can search out Serial No. from short message, and Serial No. can be the combination of one or more Arabic numerals or Arabic numerals and additional character (as bracket, shorting stub).
The short message that terminal receives is the Unicode sign indicating number, and search rule is searched numerical character character by character from short message, such as, may from short message, search out Serial No.s such as 123.046,66666666 and 13600111111.
103: terminal reads pre-configured recognition rule from memory;
104: the terminal operating recognition rule, the Serial No. that searches is discerned, judge whether Serial No. is telephone number, and identify fixed telephone number and phone number;
Recognition rule is done further identification to the Serial No. that searches out, and identifies telephone number from Serial No..Can adopt conventional length recognition rule in the present embodiment, present domestic phone number is 11, fixed telephone number is generally 7 to 8, such as, 123.046 through identification is not telephone number, 66666666 and 13600111111 is telephone number through identification, and recognition rule also can be disposed voluntarily by the user.
105: terminal is carried out mark to the Serial No. that is identified as telephone number;
As, underscore be can adopt and digital color or font etc. changed, telephone number is carried out mark.
106: terminal reads pre-configured matched rule from memory;
107: terminal operating matched rule, matched rule are the phone number that identifies, and add information of home location, for the fixed telephone number that identifies adds area code;
Matched rule is according to the ownership place identification section of the phone number that identifies, and the information of home location of the phone number that inquiry identifies from the home zone of mobile phone number question blank is for phone number adds information of home location.
To the fixed telephone number that identifies, terminal is according to the phone number of the transmit leg of short message, the information of home location of the transmit leg of inquiry short message from the home zone of mobile phone number question blank, according to this information of home location, the area code of ownership place of the transmit leg of inquiry short message from landline telephone area code question blank, with this area code as area code to the fixed telephone number interpolation.
When adding area code, can also add information of home location for it, with the information of home location of the transmit leg of short message information of home location as this fixed telephone number for fixed telephone number.
Use example 1:
User's terminal receives the content of short message from number 13916000000: the used car source is provided, luxury cars such as Audi, benz and BMW, and the middle-grade cars of complete series such as masses, modern times and Honda, interested parties please get in touch 88770000, August 21 date issued, 9:30.
When the user opened this note, terminal operating search rule search may be the Serial No. of telephone number, supposes that the Serial No. that searches out comprises: 88770000,8,21 and 9:30;
The terminal operating recognition rule, the Serial No. that searches out is discerned, recognition rule with colon as discerning content, therefore, determine that 9:30 is not a telephone number, recognition rule with length more than or equal to 12 and smaller or equal to 6 Serial No. as discerning content, therefore, determine that 8 and 21 is not telephone number; Recognition rule with length less than 12 and more than or equal to 6 Serial No. as discerning content, therefore, determine that 88770000 is phones.
Terminal identifies the telephone number that identifies, such as 88770000
The terminal operating matched rule, ownership place identification section according to short message transmit leg phone number, the information of home location of inquiry short message transmit leg phone number from the home zone of mobile phone number question blank, according to this information of home location, from landline telephone area code question blank, inquire the area code of short message transmit leg; Such as: the Query Result of note transmit leg phone number 13916000000 is ownership place: Shanghai, area code: 021, then final display result is as follows:
From 13916000000 (Shanghai): the used car source is provided, luxury cars such as Audi, benz and BMW, and the middle-grade car of complete serieses such as popular, modern times and Honda, interested parties are to getting in touch 02188770000(Shanghai), August 21 date issued, 9:30.
As shown in Figure 2, the present invention also provides a kind of device of handling the telephone number in the short message, comprising: search module, identification module, identification module, matching module and memory module, wherein:
Memory module is used to preserve search rule, recognition rule, matched rule, home zone of mobile phone number question blank and landline telephone area code question blank;
Search module is used for after this device receives short message, reads from memory module and the run search rule, searches for Serial No. in the short message that this device receives, if search Serial No., then the Serial No. that searches is sent to identification module;
Identification module, be used for after receiving Serial No., from memory module, read and move recognition rule, whether the Serial No. that identification receives is telephone number, if telephone number, then further identify fixed telephone number or cell-phone telephone number, and send to identification module and matching module respectively;
Identification module is used for the Serial No. that is identified as telephone number is carried out mark;
Matching module, be used for reading and move matched rule from memory module, according to the ownership place identification section of the phone number that receives, the information of home location of the phone number that inquiry identifies from the home zone of mobile phone number question blank that memory module is preserved is for phone number adds information of home location;
To the fixed telephone number that receives, phone number according to the transmit leg of short message, the information of home location of the transmit leg of inquiry short message from the home zone of mobile phone number question blank, according to this information of home location, the area code of the ownership place of the transmit leg of inquiry short message from the landline telephone area code question blank that memory module is preserved, with this area code as area code to the fixed telephone number interpolation;
When adding area code, can also add information of home location for it, with the information of home location of the transmit leg of short message information of home location as this fixed telephone number for fixed telephone number.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of method of processing phone numbers in short messages comprises:
After terminal receives short message, in this short message, search for Serial No., if search Serial No., whether then discern this Serial No. is telephone number, if this Serial No. is a telephone number, then when this telephone number is fixed telephone number, for this fixed telephone number adds area code; When this telephone number is phone number, for this phone number adds information of home location.
2, the method for claim 1 is characterized in that,
The area code of adding for described fixed telephone number is the area code of ownership place of phone number of the transmit leg of described short message.
3, method as claimed in claim 2 is characterized in that,
In described terminal, preserve the home zone of mobile phone number question blank;
When described telephone number was phone number, described terminal was according to this phone number, and inquiry is the information of home location of described phone number interpolation from this home zone of mobile phone number question blank.
4, method as claimed in claim 3 is characterized in that,
In described terminal, also preserve landline telephone area code question blank;
When described telephone number is fixed telephone number, described terminal is according to the phone number of the transmit leg of described short message, the information of home location of the transmit leg of the described short message of inquiry from described home zone of mobile phone number question blank, according to this information of home location, from described landline telephone area code question blank, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as described fixed telephone number.
5, method as claimed in claim 4 is characterized in that,
Preserve matched rule in described terminal, described terminal reads and moves this matched rule after described Serial No. is identified as telephone number;
When described telephone number was phone number, described matched rule was according to the ownership place identification section of this phone number, and inquiry is the information of home location of described phone number interpolation from described home zone of mobile phone number question blank;
When described telephone number is fixed telephone number, described matched rule is according to the ownership place identification section of the phone number of the transmit leg of described short message, the information of home location of the transmit leg of the described short message of inquiry from described home zone of mobile phone number question blank, according to this information of home location, from described landline telephone area code question blank, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as described fixed telephone number.
6, method as claimed in claim 5 is characterized in that,
When described telephone number was fixed telephone number, described matched rule also was that described fixed telephone number adds information of home location, with the information of home location of the transmit leg of the described short message information of home location as described fixed telephone number.
7, a kind of device of handling the telephone number in the short message, this device comprises: search module, identification module and matching module, wherein:
Described search module is used for searching for Serial No. in this short message after this device receives short message, if search Serial No., then the Serial No. that searches is sent to identification module;
Described identification module is used to discern whether the Serial No. that receives is telephone number, if telephone number then identifies fixed telephone number and cell-phone telephone number, and sends to described matching module respectively;
Described matching module is used to described fixed telephone number to add area code; For described phone number adds information of home location.
8, device as claimed in claim 7 is characterized in that,
Described matching module is that area code that described fixed telephone number adds is the area code of ownership place of phone number of the transmit leg of described short message.
9, device as claimed in claim 8 is characterized in that, this device also comprises: memory module;
Described memory module is used to preserve the home zone of mobile phone number question blank;
When described matching module is phone number at described telephone number, according to this phone number, the information of home location that inquiry is added for described phone number in the home zone of mobile phone number question blank of preserving from described memory.
10, device as claimed in claim 9 is characterized in that,
Described memory module also is used to preserve landline telephone area code question blank;
When described matching module is fixed telephone number at described telephone number, phone number according to the transmit leg of described short message, the information of home location of the transmit leg of the described short message of inquiry from described home zone of mobile phone number question blank, according to this information of home location, in the landline telephone area code question blank of from described memory module, preserving, the area code of the ownership place correspondence of the transmit leg of inquiry short message is with the area code of this area code as described fixed telephone number.
CN200910205641A 2009-09-29 2009-09-29 Method and device for processing phone numbers in short messages Pending CN101674371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910205641A CN101674371A (en) 2009-09-29 2009-09-29 Method and device for processing phone numbers in short messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910205641A CN101674371A (en) 2009-09-29 2009-09-29 Method and device for processing phone numbers in short messages

Publications (1)

Publication Number Publication Date
CN101674371A true CN101674371A (en) 2010-03-17

Family

ID=42021351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910205641A Pending CN101674371A (en) 2009-09-29 2009-09-29 Method and device for processing phone numbers in short messages

Country Status (1)

Country Link
CN (1) CN101674371A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902528A (en) * 2010-07-27 2010-12-01 宇龙计算机通信科技(深圳)有限公司 Method for storing contact information, and system and mobile terminal thereof
CN102957807A (en) * 2012-11-20 2013-03-06 广东欧珀移动通信有限公司 Method and system for editing short message numbers
CN108600972A (en) * 2018-04-26 2018-09-28 南通大学 SMS possession is analyzed and method for visualizing
CN109587353A (en) * 2018-12-17 2019-04-05 珠海市小源科技有限公司 Recognition methods, device and the storage medium of note number attaching information
CN110719369A (en) * 2018-07-12 2020-01-21 视联动力信息技术股份有限公司 Calling method and device based on video networking

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902528A (en) * 2010-07-27 2010-12-01 宇龙计算机通信科技(深圳)有限公司 Method for storing contact information, and system and mobile terminal thereof
CN102957807A (en) * 2012-11-20 2013-03-06 广东欧珀移动通信有限公司 Method and system for editing short message numbers
CN108600972A (en) * 2018-04-26 2018-09-28 南通大学 SMS possession is analyzed and method for visualizing
CN110719369A (en) * 2018-07-12 2020-01-21 视联动力信息技术股份有限公司 Calling method and device based on video networking
CN109587353A (en) * 2018-12-17 2019-04-05 珠海市小源科技有限公司 Recognition methods, device and the storage medium of note number attaching information
CN109587353B (en) * 2018-12-17 2020-12-04 珠海市小源科技有限公司 Method, device and storage medium for identifying short message number attribution information

Similar Documents

Publication Publication Date Title
CN102447771B (en) The method of display caller information and the communication terminal of application the method
CN101577761B (en) Mobile terminal and method for inquiring and adding information of telephone number in short message thereof
CN104915086B (en) Prompt production method and electronic apparatus
KR101474568B1 (en) Method and apparatus for providing international telephone auto dialiing in mobile communication terminal
CN101951432A (en) Method, device and mobile terminal for adding contact information into address book
CN101304575A (en) Method and communication terminal capable of automatically matching incoming call number or note number
CN101702840A (en) Method and device for automatically processing message content
WO2003084187A3 (en) Wireless data system
CN103037072A (en) Implementation method of extracting short message contents to apply to scene
CN101277329A (en) Method for sending calling information, telephone, call server and communication system
CN101674371A (en) Method and device for processing phone numbers in short messages
CN102355625A (en) Method for sending position information, method for receiving position information and mobile communication terminal
CN101808161B (en) Method and device for inquiring area to which phone number is attributed and type of SIM card for phone number
CN101692682A (en) Method and mobile terminal for processing numbers in content of short message
CN101351000A (en) Method for showing information and communication terminal
CN102883014A (en) Intelligent telephone number processing
CN102970405A (en) Method and device for distinguishing short messages of different contact persons
CN101873553B (en) Expansion method of short message service calling number information
CN105407205A (en) Data output method and data output apparatus
CN101715017A (en) Method and device for processing Chinese character sequence in message content
TW201042994A (en) General code communication system
CN101909252A (en) Method for deleting sent message
CN101662522A (en) Method for dialing fixed telephone number in short message and terminal thereof
CN106657536A (en) Method of acquiring local telephone number and system thereof
CN101977258A (en) Method for storing mobile phone numbers and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100317