[go: up one dir, main page]

CN104994491A - Free call sharing method and device - Google Patents

Free call sharing method and device Download PDF

Info

Publication number
CN104994491A
CN104994491A CN201510383252.1A CN201510383252A CN104994491A CN 104994491 A CN104994491 A CN 104994491A CN 201510383252 A CN201510383252 A CN 201510383252A CN 104994491 A CN104994491 A CN 104994491A
Authority
CN
China
Prior art keywords
calling number
free call
calling
duration
call duration
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
CN201510383252.1A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510383252.1A priority Critical patent/CN104994491A/en
Publication of CN104994491A publication Critical patent/CN104994491A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种免费通话共享方法和装置,涉及通信技术领域。所述方法,包括:监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限;如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码;将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。本发明解决了对于各个主叫号码的免费通话时长,无法在各个主叫号码之间进行共享,而导致免费通话时长的资源浪费的问题,取得了可以将各个主叫号码的免费通话时长进行共享,提高免费通话时长的利用率,降低使用免费通话时长多的手机用户的花销的有益效果。

The invention discloses a free call sharing method and device, and relates to the technical field of communication. The method includes: monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit; if the free call duration of the first calling number reaches the upper limit, querying from the free call sharing set whether There is a second calling number with a remaining free call duration; the remaining free call duration of the second calling number is allocated to the first calling number for use. The present invention solves the problem that the free call duration of each calling number cannot be shared between each calling number, resulting in waste of resources for the free call duration, and achieves that the free call duration of each calling number can be shared , improve the utilization rate of free call time, and reduce the beneficial effect of spending for mobile phone users who use free call time.

Description

一种免费通话共享方法和装置A free call sharing method and device

技术领域 technical field

本发明涉及通信技术领域,具体涉及一种免费通话共享方法和装置。 The present invention relates to the field of communication technology, in particular to a free call sharing method and device.

背景技术 Background technique

随着通信技术的发展,手机用户越来越多,而为了吸引更多手机用户去使用其应用,某些开发者会从通信运营商处购买大量额度的通话时间,然后将这些通话时间免费分配给使用其应用的手机用户使用,对于手机用户来说,其手机号码不用花钱就可以使用一定长度的免费通话时长。 With the development of communication technology, there are more and more mobile phone users, and in order to attract more mobile phone users to use their applications, some developers will purchase a large amount of airtime from communication operators, and then allocate these airtime for free It is used by mobile phone users who use its application. For mobile phone users, their mobile phone numbers can use a certain length of free call time without paying.

但是,由于购买的通话时间具备一定限制,比如每个月底上述通话时间就会失效。而对于手机用户来说,有些手机用户使用免费通话时长多,而有些手机用户使用免费通话时长少。对于购买了大量通话时间的开发者来说,这些通话时长被分配完了之后,该被分配通话时长就是被分配的手机用户使用,如果该手机用户使用较少,最后失效的通话时长就较多,对于购买通话时长的开发者来说,就是一种资源的浪费。 However, due to certain restrictions on purchased airtime, for example, the above-mentioned airtime will expire at the end of each month. And for mobile phone users, some mobile phone users use free calling time more, and some mobile phone users use free calling time less. For developers who have purchased a large amount of airtime, after these airtimes are allocated, the allocated airtime is used by the allocated mobile phone user. If the mobile phone user uses less, the final invalid airtime will be more. For developers who purchase call time, it is a waste of resources.

发明内容 Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的免费通话共享装置和相应的免费通话共享方法。 In view of the above problems, the present invention is proposed to provide a free call sharing device and a corresponding free call sharing method that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种免费通话共享方法,包括: According to one aspect of the present invention, a free call sharing method is provided, including:

监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; Monitor whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; If the free call duration of the first calling number reaches the upper limit, query whether there is a second calling number with remaining free call duration from the free call sharing set;

将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 Allocating the remaining free call duration of the second calling number to the first calling number.

优选的,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码之前,还包括: Preferably, from the free call sharing set, before querying whether there is a second calling number with remaining free call duration, it also includes:

向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通 话时长共享请求; Send a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 After receiving the sharing permission response returned by the second calling number, add the second calling number to the free call sharing set.

优选的,所述向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求包括: Preferably, the sending the free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal includes:

针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; For a second calling number, determine whether the second calling number has a free call duration authority;

如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; If the second calling number does not have free call duration permission, then do not send a free call duration sharing request to the second calling number;

如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 If the second calling number has a free call duration permission, a free call duration sharing request is sent to the second calling number.

优选的,所述监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限,包括: Preferably, the monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit includes:

根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 According to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches an upper limit.

优选的,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: Preferably, from the free call sharing set, querying whether there is a second calling number for the remaining free call duration includes:

从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 From the free call sharing set, query whether there is a second calling number corresponding to the call type with remaining free call duration.

优选的,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: Preferably, from the free call sharing set, querying whether there is a second calling number for the remaining free call duration includes:

从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。 From the free call sharing set, query a second calling number whose remaining free call duration is greater than a first threshold.

优选的,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: Preferably, from the free call sharing collection, query whether there is a second calling number with remaining free call duration, including:

从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; From the free call sharing set, query each second calling number whose free call duration has not reached the upper limit;

根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用 时间小于第二阈值的一第二主叫号码。 According to the use history records of each second calling number to the free call duration, select a second calling number whose average usage time is less than the second threshold.

优选的,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: Preferably, after allocating the remaining free call duration of the second calling number to the first calling number, the method further includes:

在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 After the call at the calling terminal ends, the used free call duration of the second calling number is modified according to the first duration of the remaining free call duration used by the first calling number.

优选的,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: Preferably, after allocating the remaining free call duration of the second calling number to the first calling number, the method further includes:

在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 After the call of the calling terminal ends, according to the first duration of the remaining free call duration used by the first calling number, the mobile terminal where the second calling number is located is notified that the first calling number The first duration used to call the number.

优选的,监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限之前,还包括: Preferably, before monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit, it also includes:

在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; Before the user uses the address book to make a call, determine whether the address book has the authority to make a call;

如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 If the address book does not have the right to make calls, jump to the call setting interface to guide the user to set the call right of the address book.

依据本发明的另外一个方面,提供了一种免费通话共享装置,包括: According to another aspect of the present invention, a free call sharing device is provided, including:

免费时长监控模块,适于监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; The free duration monitoring module is suitable for monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

共享号码查询模块,适于如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; The shared number query module is adapted to query whether there is a second calling number with remaining free call duration from the free call sharing set if the free call duration of the first calling number reaches the upper limit;

共享分配模块,适于将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 The shared allocation module is adapted to allocate the remaining free call duration of the second calling number to the first calling number.

优选的,在免费时长监控模块之前,还包括: Preferably, before the free duration monitoring module, it also includes:

共享请求发送模块,适于向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求; A sharing request sending module, adapted to send a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

共享集合构建模块,适于当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 The sharing set building module is adapted to add the second calling number to the free call sharing set after receiving the sharing permission response returned by the second calling number.

优选的,所述共享请求发送模块包括: Preferably, the sharing request sending module includes:

权限判断模块,适于针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; The authority judging module is suitable for judging whether the second calling number has the free call duration authority for a second calling number;

禁止发送模块,适于如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; The prohibition sending module is adapted to not send a free call duration sharing request to the second calling number if the second calling number has no free call duration authorization;

允许发送模块,适于如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 The sending permission module is adapted to send a free call duration sharing request to the second calling number if the second calling number has permission for free call duration.

优选的,所述免费时长监控模块,包括: Preferably, the free duration monitoring module includes:

类型监控模块,适于根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 The type monitoring module is adapted to monitor whether the free call duration of the first calling number under the calling type reaches the upper limit according to the calling type of the first calling number.

优选的,所述共享号码查询模块,包括: Preferably, the shared number query module includes:

类型查询模块,适于从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 The type query module is adapted to query from the free call sharing set whether there is a second calling number with a remaining free call duration corresponding to the call type.

优选的,所述共享号码查询模块,包括: Preferably, the shared number query module includes:

第一查询模块,适于从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。 The first query module is adapted to query a second calling number whose remaining free call duration is greater than a first threshold from the free call sharing set.

优选的,所述共享号码查询模块包括: Preferably, the shared number query module includes:

第二查询模块,适于从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; The second query module is adapted to query each second calling number whose free call duration has not reached the upper limit from the free call sharing set;

历史选择模块,适于根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。 The history selection module is adapted to select a second calling number whose average usage time is less than a second threshold according to the usage history of each second calling number for the free call duration.

优选的,在共享分配模块之后,还包括: Preferably, after the shared distribution module, it also includes:

第二主叫号码记录修改模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 The second calling number record modifying module is adapted to modify the second calling number according to the first duration of the remaining free calling duration used by the first calling number after the call of the calling terminal ends. The used free calling time of the called number.

优选的,在共享分配模块之后,还包括: Preferably, after the shared distribution module, it also includes:

共享时间通知模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 The shared time notification module is adapted to notify the mobile phone where the second calling number is located according to the first duration of the remaining free call duration used by the first calling number after the call of the calling terminal ends. The terminal, the first duration used by the first calling number.

优选的,在免费时长监控模块之前,还包括: Preferably, before the free duration monitoring module, it also includes:

权限判断模块,适于在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; The authority judging module is suitable for judging whether the address book has the authority to make a call before the user uses the address book to make a call;

权限设置模块,适于如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限. The authority setting module is suitable for jumping to the dialing setting interface if the address book does not have the authority to make calls, and guiding the user to set the calling authority of the address book.

根据本发明的免费通话共享方法可以将各个主叫号码放入一个免费通话共享集合,该免费通话共享集合中的各个主叫号码可以共享彼此之间的免费通话时长;当其中一个主叫号码打电话时,如果其免费通话时长达到上限,则可以将免费共享集合中其他主叫号码的免费通话时长挪给该主叫号码使用,由此解决了对于各个主叫号码的免费通话时长,无法在各个主叫号码之间进行共享,而导致免费通话时长的资源浪费的问题,取得了可以将各个主叫号码的免费通话时长进行共享,提高免费通话时长的利用率,降低使用免费通话时长多的手机用户的花销的有益效果。 According to the free call sharing method of the present invention, each calling number can be put into a free call sharing set, and each calling number in the free call sharing set can share the free call duration between each other; when one of the calling numbers calls When making a call, if the free call duration of the calling number reaches the upper limit, the free call duration of other calling numbers in the free sharing set can be transferred to the calling number, thus solving the problem that the free calling duration of each calling number cannot be used in the The problem of resource waste caused by the sharing of calling numbers between each calling number has been achieved. The free calling time of each calling number can be shared to improve the utilization rate of free calling time and reduce the use of free calling time. Beneficial effects on spending by mobile phone users.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。 The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明 Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中: Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的一种免费通话共享方法的流程示意图; Fig. 1 shows a schematic flow chart of a free call sharing method according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的一种免费通话共享方法的流程示意图; Fig. 2 shows a schematic flow chart of a free call sharing method according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的一种免费通话共享装置的结构示意图;以及 Fig. 3 shows a schematic structural diagram of a free call sharing device according to an embodiment of the present invention; and

图4示出了根据本发明一个实施例的另一种免费通话共享装置的结构示意图。 Fig. 4 shows a schematic structural diagram of another free call sharing device according to an embodiment of the present invention.

具体实施方式 Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例的核心思想之一在于,对于被分配了免费通话时长的各个主叫号码,将上述主叫号码放入免费通话共享集合,当该免费通话共享集合中的一个主叫号码通话时,如果该主叫号码的免费通话时长达到上限,则可以将免费通话共享集合中其他主叫号码的剩余免费通话时长挪给前述主叫号码使用,使各个主叫号码的免费通话时长可以共享,提高了免费通话时长的利用率,降低资源浪费,并且降低了通话时间较长的用户的花销。 One of the core ideas of the embodiments of the present invention is that, for each calling number assigned a free call duration, put the above calling number into the free call sharing set, when a calling number in the free call sharing set makes a call , if the free call duration of the calling number reaches the upper limit, the remaining free call duration of other calling numbers in the free call sharing set can be transferred to the aforementioned calling number, so that the free call duration of each calling number can be shared, The utilization rate of the free call time is improved, the waste of resources is reduced, and the cost of the user with a long call time is reduced.

实施例一 Embodiment one

参照图1,其示出了本发明一种免费通话共享方法的流程示意图,具体可以包括: Referring to Fig. 1, it shows a schematic flow chart of a free call sharing method of the present invention, which may specifically include:

步骤110,监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; Step 110, monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

在本发明实施例中,述及的第一主叫号码和第二主叫号码可以理解为电话号码。 In the embodiment of the present invention, the first calling number and the second calling number mentioned can be understood as telephone numbers.

在本发明实施例中,可通过安装在移动通讯录应用监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限。那么当主叫终端通过通讯录应用拨打一个电话时,则该通讯录应用则监控主叫终端的第一主叫号码的免费通话时长。当然也可以由其他应用监控第一主叫号码的免费通话时长。 In the embodiment of the present invention, whether the free call duration of the first calling number used by the calling terminal reaches the upper limit can be monitored through the application installed in the mobile address book. Then, when the calling terminal makes a call through the address book application, the address book application monitors the free call duration of the first calling number of the calling terminal. Of course, other applications can also monitor the free call duration of the first calling number.

在本发明实施例中,通讯录应用在主叫终端本地监控第一主叫号码的免费通话时长,然后将该免费通话时长发送至服务器,服务器则根据分配给该 第一主叫号码总的免费通话时长,判断第一主叫号码的免费通话时长是否达到上限。比如,通讯录应用监控到主叫终端的第一主叫号码13011111111当前已使用的免费通话时长为30分钟,将该30分钟和13011111111发送到服务器,服务器则根据13011111111查询分配给13011111111的总的免费通话时长为60分钟,那么第一主叫号码的免费通话时长并未达到上限。 In the embodiment of the present invention, the address book application monitors the free call duration of the first calling number locally at the calling terminal, and then sends the free call duration to the server, and the server then assigns the first calling number according to the total free call duration. Call duration, to determine whether the free call duration of the first calling number reaches the upper limit. For example, the address book application monitors that the first calling number 13011111111 of the calling terminal has currently used a free call duration of 30 minutes, and sends the 30 minutes and 13011111111 to the server, and the server queries the total free calls allocated to 13011111111 based on 13011111111. The call duration is 60 minutes, so the free call duration of the first calling number has not reached the upper limit.

当然,主叫终端的通讯录应用也可在本地记录第一主叫号码总的免费通话时长,然后在主叫终端的第一主叫号码通话过程中,记录其使用的免费通话时长。 Of course, the address book application of the calling terminal can also locally record the total free calling time of the first calling number, and then record the free calling time used by the first calling number of the calling terminal during the call.

优选的,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码之前,还包括: Preferably, from the free call sharing set, before inquiring whether there is a second calling number with remaining free call duration, it also includes:

步骤A101,向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求; Step A101, sending a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

步骤A102,当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 Step A102: Add the second calling number to the free call sharing set after receiving the share sharing response returned by the second calling number.

在本发明实施例中,可以由用户在主叫终端的通讯录中向各个其他的主叫号码发起免费通话时长共享请求,待其他主叫号码的用户同意之后,才能共享其享有的免费通话时长。 In the embodiment of the present invention, the user can initiate a free call duration sharing request to each other calling number in the address book of the calling terminal, and the free call duration enjoyed by the other calling number can only be shared after the user of the other calling number agrees. .

在实际应用中,可以由主叫终端把免费通话时长共享请求发送到服务器,服务器再把该请求向该免费通话时长共享请求所指向的各个第二主叫号码所在终端发送。各个第二主叫号码的用户可以在其终端中选择返回允许共享,或者不允许共享。如果第二主叫号码的用户选择允许共享,则可以将该第二主叫号码加入免费通话共享集合;如果第二主叫号码的用户选择不允许共享,则不将该第二主叫号码加入免费通话共享集合。 In practical applications, the calling terminal may send the request for free call duration sharing to the server, and the server then sends the request to the terminals where the respective second calling numbers pointed to by the free call duration sharing request are located. The user of each second calling number can choose to return to allow sharing in its terminal, or not to allow sharing. If the user of the second calling number chooses to allow sharing, the second calling number can be added to the free call sharing set; if the user of the second calling number chooses not to allow sharing, the second calling number will not be added Free call sharing collection.

当然,上述第二主叫号码所在终端返回的允许共享响应可以返回给服务器,由服务器将该第二主叫号码加入免费通话共享集合。 Of course, the sharing permission response returned by the terminal where the second calling number is located may be returned to the server, and the server will add the second calling number to the free call sharing set.

在本发明实施例中,一个主叫号码可以限制只加入一个免费通话共享集合,也可允许其加入多个免费通话共享集合。当一个主叫号码加入多个免费通话共享集合后,对应该主叫号码的免费通话时间同步更新到各个免费通话 共享集合中。 In the embodiment of the present invention, a calling number can be restricted to join only one free call sharing set, and can also be allowed to join multiple free call sharing sets. When a calling number is added to multiple free call sharing sets, the free calling time corresponding to the calling number is updated synchronously to each free call sharing set.

优选的,所述向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求包括: Preferably, the sending the free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal includes:

子步骤A1011,针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; Sub-step A1011, for a second calling number, determine whether the second calling number has free call duration authority;

子步骤A1012,如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; Sub-step A1012, if the second calling number does not have free call duration permission, then do not send a free call duration sharing request to the second calling number;

子步骤A1013,如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 Sub-step A1013, if the second calling number has the permission of free call duration, send a free call duration sharing request to the second calling number.

在本发明实施例中,主叫终端的通讯录中记录的各第二主叫号码,可能某些第二主叫号码并没有被分配免费通话权限,即服务器没有对这些第二主叫号码分配免费通话权限,比如第二主叫号码所在终端并未安装本发明实施例的通讯录应用,则服务器不会为该第二主叫号码分配免费通话权限。那么对于这些没有免费通话时长的权限的第二主叫号码,本发明实施例则不将这些第二主叫号码加入免费通话时长共享集合。 In the embodiment of the present invention, among the second calling numbers recorded in the address book of the calling terminal, some of the second calling numbers may not be assigned free calling rights, that is, the server does not assign any second calling numbers to these second calling numbers. For free calling rights, if the terminal where the second calling number is located is not installed with the address book application of the embodiment of the present invention, the server will not assign free calling rights to the second calling number. Then, for these second calling numbers that do not have permission for free call duration, the embodiment of the present invention does not add these second calling numbers to the free call duration sharing set.

在实际应用中,主叫终端将针对各第二主叫号码的免费通话时长共享请求发送至服务器,服务器判断相应的第二主叫号码是否具备免费通话时长权限,如果该第二主叫号码具备免费通话时长权限,则将免费通话时长共享请求发送给该第二主叫号码所在终端;如果该第二主叫号码不具备免费通话时长权限,则不将免费通话时长共享请求发送给该第二主叫号码所在终端。 In practical applications, the calling terminal sends the free call duration sharing request for each second calling number to the server, and the server judges whether the corresponding second calling number has the free call duration permission, and if the second calling number has Free call duration permission, then send the free call duration sharing request to the terminal where the second calling number is located; The terminal where the calling number is located.

当然,该免费通话时长权限还可以根据主叫号码所属的通信运营商确定。比如开发者购买了通信运营商A的免费通话时长,将这些免费通话时长分配给通信运营商A下面的主叫号码使用。如果前述免费通话时长共享请求针对的第二主叫号码是通信运营商B下的号码,则该第二主叫号码则不具备使用该免费通话时长的权限。 Of course, the free call duration permission can also be determined according to the communication operator to which the calling number belongs. For example, the developer purchases the free call duration of communication operator A, and allocates these free call durations to the calling numbers under communication operator A. If the second calling number targeted by the free call duration sharing request is a number under the communication carrier B, then the second calling number does not have the right to use the free call duration.

优选的,所述监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限包括: Preferably, the monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit includes:

子步骤111,根据所述第一主叫号码的呼叫类型,监听第一主叫号码在 所述呼叫类型下的免费通话时长是否达到上限。 Sub-step 111, according to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches the upper limit.

在实际应用中,免费通话时长可能具备地域限制,比如长途通话类型与本地通话类型,其资费不同。那么对于本发明实施例来说,如果开发者只在通信运营商购买了本地通话的通话时长,并且为第一主叫号码分配相应免费通话时长,那么第一主叫号码的呼叫类型需要为本地通话类型时,才能使用服务器为其分配的本地通话的免费通话时长。 In practical applications, the duration of free calls may have geographical restrictions. For example, the tariffs for long-distance calls and local calls are different. Then for the embodiment of the present invention, if the developer only purchases the call duration of the local call from the communication operator, and allocates the corresponding free call duration for the first calling number, then the call type of the first calling number needs to be local Only when the call type is selected, the free call duration of the local call allocated by the server can be used.

当然,如果开发者购买了长途通话的通话时长,并且为第一主叫号码分配相应免费通话时长,那么第一主叫号码的呼叫类型需要为长途通话类型时,才能使用服务器为其分配的长途通话的免费通话时长。 Of course, if the developer purchases the call duration for long-distance calls and allocates corresponding free call duration for the first calling number, then the call type of the first calling number must be a long-distance call type in order to use the long-distance call assigned by the server. The free duration of the call.

当然,本发明实施例中,可以各种同时存在各种类型的免费通话时长,本发明不对其加以限制。 Certainly, in the embodiment of the present invention, various types of free call durations may exist simultaneously, which is not limited by the present invention.

可以理解,上述第一主叫号码的呼叫类型,可以在第一主叫号码呼叫被叫号码时,根据被叫号码所在地区确定第一主叫号码的呼叫类型。比如本地通话类型,长途通话类型,国际通话类型等等。 It can be understood that, for the above call type of the first calling number, when the first calling number calls the called number, the call type of the first calling number can be determined according to the region where the called number is located. Such as local call type, long distance call type, international call type and so on.

在本发明实施例中,对于每次主叫终端使用第一主叫号码通话时,均对其免费通话时间进行记录,比如主叫终端第一次使用 In the embodiment of the present invention, each time the calling terminal uses the first calling number to make a call, its free call time is recorded, for example, the calling terminal uses

另外,所述主叫终端可以为手机等具备通话功能的终端,第一主叫号码可以为该手机等终端中拨打的电话号码。 In addition, the calling terminal may be a terminal with a call function such as a mobile phone, and the first calling number may be a phone number dialed from the terminal such as the mobile phone.

优选的,监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限之前,还包括: Preferably, before monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit, it also includes:

步骤112,在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; Step 112, before the user uses the address book to make a call, determine whether the address book has the authority to make a call;

步骤113,如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 Step 113, if the address book does not have the right to make calls, jump to the call setting interface to guide the user to set the call right in the address book.

在本发明实施例中,主叫终端需要安装本发明实施例的通讯录应用后,用户通过操作该通讯录应用才能进行免费通话共享。那么在用户通过通讯录应用拨打电话时,本发明实施例的通讯录应用需要判断其通讯录本身是否具备拨打电话的权限,即是否具备调用操作系统本身的拨打功能的权限,如果 通讯录不具备拨打电话的权限,则通过系统的跳转接口,将操作界面跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 In the embodiment of the present invention, after the calling terminal needs to install the address book application of the embodiment of the present invention, the user can perform free call sharing only by operating the address book application. Then when the user makes a call through the address book application, the address book application in the embodiment of the present invention needs to determine whether the address book itself has the authority to make a call, that is, whether it has the authority to call the dialing function of the operating system itself, if the address book does not have For the authority to make a call, the operation interface is jumped to the call setting interface through the jump interface of the system, and the user is guided to set the dialing authority of the address book.

然后用户即可通过本发明实施例的通讯录实现免费通话共享。 Then the user can realize free call sharing through the address book of the embodiment of the present invention.

步骤120,如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; Step 120, if the free call duration of the first calling number reaches the upper limit, query whether there is a second calling number with remaining free call duration from the free call sharing set;

在本发明实施例中,免费通话时长的上限为第一主叫号码获得的总的免费通话时长。比如前述第一主叫号码13011111111,其获得的总的免费通话时长为60分钟,那么免费通话时长的上限为60分钟。 In the embodiment of the present invention, the upper limit of the free call duration is the total free call duration obtained by the first calling number. For example, the aforementioned first calling number 13011111111 has a total free call duration of 60 minutes, so the upper limit of the free call duration is 60 minutes.

那么,当累计的第一主叫号码的免费通话时长达到60分钟,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码。 Then, when the accumulated free calling time of the first calling number reaches 60 minutes, it is checked from the free calling sharing set whether there is a second calling number with remaining free calling time.

比如免费通话共享集合包括{13011111111:0,13022222222:30,13033333333:10,13044444444:40},在该集合中记录了各个主叫号码还剩余的免费通话时长,比如13011111111剩余0分钟,13022222222剩余30分钟,13033333333剩余20分钟,13044444444剩余40分钟。 For example, the free call sharing collection includes {13011111111: 0, 13022222222: 30, 13033333333: 10, 13044444444: 40}, which records the remaining free call duration of each calling number, such as 13011111111 remaining 0 minutes, 13022222222 remaining 30 Minutes, 13033333333 remaining 20 minutes, 13044444444 remaining 40 minutes.

当然,在本发明实施例中,免费通话共享集合中任何一个主叫号码进行通话之后,均可根据其通话时间和免费通话时长上限,计算免费通话共享集合中该主叫号码的剩余免费通话时间。 Certainly, in the embodiment of the present invention, after any calling number in the free calling sharing set makes a call, the remaining free calling time of the calling number in the free calling sharing set can be calculated according to the calling time and the upper limit of the free calling duration. .

可以理解,免费通话共享集合还可以采用其他记录形式,比如{主叫号码:已用免费通话时长/免费通话时长上限},如{13011111111:60/60,13022222222:30/60,13033333333:50/60,13044444444:20/60,}那么该主叫号码的剩余免费通话时长=免费通话时长上限-已用免费通话时长。 It can be understood that the free call sharing collection can also adopt other record forms, such as {calling number: used free call duration/free call duration upper limit}, such as {13011111111: 60/60, 13022222222: 30/60, 13033333333: 50/ 60,13044444444: 20/60,} Then the remaining free call duration of the calling number = upper limit of free call duration - used free call duration.

基于上述免费通话共享集合,本发明实施例可以在免费通话共享集合中查找一个免费通话时长还未达到免费通话时长上限的第二主叫号码,比如前述例子{13011111111:0,13022222222:30,13033333333:10,13044444444:40}中,查询是否存在剩余免费通话时长的一第二主叫号码可以理解为查询还有剩余免费通话时长的一个主叫号码,如13022222222。比如前述例子{13011111111:60/60,13022222222:30/60,,13033333333:50/60,,13044444444:20/60,}中,查询是否存在剩余免费通话时长的一第二主叫号 码可以理解为查询“已用免费通话时长/免费通话时长上限”中已用免费通话时长小于免费通话时长上限的一个主叫号码,如13022222222。 Based on the above free call sharing set, the embodiment of the present invention can search for a second calling number whose free call duration has not reached the upper limit of free call duration in the free call sharing set, such as the aforementioned example {13011111111:0,13022222222:30,13033333333 : 10, 13044444444: 40}, querying whether there is a second calling number with remaining free calling time can be understood as querying a calling number with remaining free calling time, such as 13022222222. For example, in the aforementioned example {13011111111: 60/60, 13022222222: 30/60,, 13033333333: 50/60, 13044444444: 20/60,}, it is understandable to query whether there is a second calling number for the remaining free calling time To query a calling number whose free call duration is less than the upper limit of free call duration in "used free call duration/free call duration upper limit", such as 13022222222.

优选的,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: Preferably, said querying whether there is a second calling number with a remaining free call duration from the free call sharing set includes:

子步骤122,从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。 Sub-step 122, query a second calling number whose remaining free call duration is greater than the first threshold from the free call sharing set.

在本发明实施例中,为了避免频繁切换免费通话时长的分配,影响系统性能,本发明实施例在查询剩余免费通话时长的第二主叫号码时,查询大于第一阈值的第二主叫号码,比如第一阈值为20分钟,那么前述例子{13011111111:0,13022222222:30,13033333333:10,13044444444:40}中的第二主叫号码包括:13022222222、13044444444,然后可从中选择一个第二主叫号码。 In the embodiment of the present invention, in order to avoid frequently switching the allocation of the free call duration and affecting the system performance, the embodiment of the present invention searches for the second calling number greater than the first threshold when querying the second calling number with the remaining free call duration , such as the first threshold is 20 minutes, then the second calling number in the aforementioned example {13011111111:0,13022222222:30,13033333333:10,13044444444:40} includes: 13022222222, 13044444444, and then a second calling number can be selected call the number.

当然,本发明实施例中,可以选择剩余免费通话时长最长的第二主叫号码。 Certainly, in the embodiment of the present invention, the second calling number with the longest remaining free calling time may be selected.

当然,如果没有一个剩余免费通话时长大于第一阈值,则可以从中选择剩余免费通话时长最长的第二主叫号码。 Of course, if none of the remaining free call durations is greater than the first threshold, the second calling number with the longest remaining free call duration may be selected.

优选的,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: Preferably, from the free call sharing set, query whether there is a second calling number with remaining free call duration, including:

子步骤124,从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; Sub-step 124, from the free call sharing set, query each second calling number whose free call duration has not reached the upper limit;

子步骤126,根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。 Sub-step 126, according to the usage history of each second calling number for the free call duration, select a second calling number whose average usage time is less than a second threshold.

在实际应用中,可能某些主叫号码通话不频繁,而某些主叫号码通话频繁,那么本发明可以根据各个主叫号码的对免费通话时长的使用历史记录,比如每个周使用免费时长的总时间,去选择使用度较小的第二主叫号码。比如某个第二主叫号码每个周只使用了10分钟的免费通话时长,那么可选择该第二主叫号码。避免影响其他使用教多的主叫号码对免费通话时长的使用。 In practical applications, some calling numbers may not make frequent calls, while some calling numbers may make frequent calls. Then the present invention can use the free calling time according to the history of each calling number, such as using free time every week. total time to select the second calling number with less usage. For example, if a certain second calling number only uses 10 minutes of free calling time each week, then the second calling number can be selected. Avoid affecting the use of free calling time by other calling numbers using Jiaoduo.

如前述例子中,在查找到13022222222:20,13033333333:10,13044444444:40后,对13022222222、13033333333、13044444444的对免费通话时长的使用历史记录进行分析,判断13022222222每个周对免费通话时长的平均使用时间为10分钟,判断13033333333每个周对免费通话时长的平均使用时间为15分钟,判断13044444444每个周对免费通话时长的平均使用时间为20分钟,那么选择13022222222。 As in the previous example, after finding 13022222222: 20, 13033333333: 10, 13044444444: 40, analyze the usage history of 1302222222, 13033333333, and 13044444444 to determine the average free call duration of 13022222222 per week The usage time is 10 minutes, if you judge that the average usage time of 13033333333 is 15 minutes per week for free calls, and if you judge that the average usage time of 13044444444 is 20 minutes per week, then select 13022222222.

步骤130,将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 Step 130, allocate the remaining free call duration of the second calling number to the first calling number.

那么,在选择了免费共享通话集合中的一个符合前述条件的第二主叫号码之后,本发明则将该第二主叫号码的剩余免费通话时长分配给第一主叫号码使用。比如将前述13022222222的剩余免费通话时长分配给13011111111使用,13011111111则可以继续以免费通话时长进行通话。 Then, after selecting a second calling number that meets the aforementioned conditions in the free shared call set, the present invention allocates the remaining free call duration of the second calling number to the first calling number. For example, the remaining free call time of the aforementioned 13022222222 is allocated to 13011111111 for use, and 13011111111 can continue to make calls with the free call time.

在本发明实施例中,开发者向通信运营商购买了一定时长的通话时间,可以理解为其服务器获取了一定时长的通话时间,比如10000分钟,那么服务器将该10000分钟为N份分配给各个主叫号码,然后将分配后的信息通知给通信运行方的服务器,通信运营商的服务器在主叫号码的拨打过程中即优先该主叫号码被分配的通话时长中扣除。而开发者的服务器可以更改每份免费通话时长绑定的主叫号码,使该主叫号码可以使用该免费的通话时长。 In the embodiment of the present invention, the developer purchases a certain duration of call time from the communication operator, which can be understood as obtaining a certain duration of call time for the server, such as 10,000 minutes, then the server allocates the 10,000 minutes as N shares to each The calling number is then notified to the server of the communication operator of the allocated information, and the server of the communication operator will deduct from the allocated call duration of the calling number during the dialing process of the calling number. The developer's server can change the calling number bound to each free call duration, so that the calling number can use the free call duration.

优选的,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: Preferably, after allocating the remaining free call duration of the second calling number to the first calling number, the method further includes:

步骤132,在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 Step 132: After the call of the calling terminal ends, modify the used free call of the second calling number according to the first duration of the remaining free calling duration used by the first calling number duration.

如前述例子中的免费通共享集合中{13011111111:0,13022222222:30,13033333333:10,13044444444:40},当第一主叫号码13011111111使用了第二主叫号码13022222222的剩余免费通话时长30分钟中的10分钟,则修改免费通共享集合中13022222222的剩余免费通话时长为20分钟,即得到修改后的免费通话共享集合{13011111111:0,13022222222:20,13033333333: 10,13044444444:40}。 For example, in the toll-free sharing set {13011111111: 0, 13022222222: 30, 13033333333: 10, 13044444444: 40} in the preceding example, when the first calling number 13011111111 uses the second calling number 13022222222, the remaining free call duration is 30 minutes 10 minutes, then modify the remaining free call duration of 13022222222 in the free call sharing set to 20 minutes, that is, get the modified free call sharing set {13011111111: 0, 13022222222: 20, 13033333333: 10, 13044444444: 40}.

优选的,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: Preferably, after allocating the remaining free call duration of the second calling number to the first calling number, the method further includes:

步骤134,在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 Step 134: After the call of the calling terminal ends, according to the first duration of the remaining free call duration used by the first calling number, notify the mobile terminal where the second calling number is located, the The first duration used by the first calling number.

为了方便被共享了免费通话时长的第二主叫号码知晓其被共享的免费通话时长,本发明在第一主叫号码使用了该第二主叫号码的免费通话时长中的第一时长后,则可通知第二主叫号码所在移动终端该第一时长。在13011111111使用了13022222222剩余免费通话时长中的10分钟后,13011111111通话结束,那么则通知13022222222,13011111111使用了其10分钟的免费通话时长,还剩余20分钟免费通话时长。 In order to make it easier for the second calling number shared with the free calling time to know its shared free calling time, after the first calling number uses the first duration of the free calling time of the second calling number, Then the mobile terminal where the second calling number is located can be notified of the first duration. After 13011111111 has used 10 minutes of the remaining free call time of 13022222222, and the call of 13011111111 ends, then 13022222222 will be notified that 13011111111 has used its 10-minute free call time, and there are still 20 minutes of free call time left.

本发明实施例,对于被分配了免费通话时长的各个主叫号码,将上述主叫号码放入免费通话共享集合,当该免费通话共享集合中的一个主叫号码通话时,如果该主叫号码的免费通话时长达到上限,则可以将免费通话共享集合中其他主叫号码的剩余免费通话时长挪给前述主叫号码使用。从而使各个主叫号码的免费通话时长可以共享,提高了免费通话时长的利用率,降低资源浪费,并且降低了通话时间较长的用户的花销。 In the embodiment of the present invention, for each calling number allocated with a free call duration, the calling number is put into a free call sharing set, and when a calling number in the free calling sharing set makes a call, if the calling number If the free call duration reaches the upper limit, the remaining free call duration of other calling numbers in the free call sharing set can be transferred to the aforementioned calling number for use. Therefore, the free call duration of each calling number can be shared, the utilization rate of the free call duration is improved, the waste of resources is reduced, and the cost of the user with a long call time is reduced.

实施例二 Embodiment two

参照图2,其示出了本发明一种免费通话共享方法的流程示意图,具体可以包括: Referring to Fig. 2, it shows a schematic flow chart of a free call sharing method of the present invention, which may specifically include:

步骤210,根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限; Step 210, according to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches the upper limit;

在实际应用中,免费通话时长可能具备地域限制,比如长途通话类型与本地通话类型,其资费不同。那么对于本发明实施例来说,如果开发者只在通信运营商购买了本地通话的通话时长,并且为第一主叫号码分配相应免费通话时长,那么第一主叫号码的呼叫类型需要为本地通话类型时,才能使用服务器为其分配的本地通话的免费通话时长。 In practical applications, the duration of free calls may have geographical restrictions. For example, the tariffs for long-distance calls and local calls are different. Then for the embodiment of the present invention, if the developer only purchases the call duration of the local call from the communication operator, and allocates the corresponding free call duration for the first calling number, then the call type of the first calling number needs to be local Only when the call type is selected, the free call duration of the local call allocated by the server can be used.

当然,如果开发者购买了长途通话的通话时长,并且为第一主叫号码分配相应免费通话时长,那么第一主叫号码的呼叫类型需要为长途通话类型时,才能使用服务器为其分配的长途通话的免费通话时长。 Of course, if the developer purchases the call duration for long-distance calls and allocates corresponding free call duration for the first calling number, then the call type of the first calling number must be a long-distance call type in order to use the long-distance call assigned by the server. The free duration of the call.

当然,本发明实施例中,可以各种同时存在各种类型的免费通话时长,本发明不对其加以限制。 Certainly, in the embodiment of the present invention, various types of free call durations may exist simultaneously, which is not limited by the present invention.

步骤220,如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码; Step 220, if the free call duration of the first calling number reaches the upper limit, query whether there is a second calling number with a remaining free call duration corresponding to the call type from the free call sharing set;

在本发明实施例中,开发者可在通信运营商处购买各种呼叫类型的免费通话时长,然后分配给各个主叫号码,比如购买本地呼叫类型的免费通话时长和长途呼叫类型的免费通话时长。那么构建免费通话共享集合可如:{呼叫号码:(呼叫类型,剩余通话时间),(呼叫类型,剩余通话时间)……;……},如{13011111111:(A,0),(B,10);13022222222:(A,30),(B,10);13033333333:(A,10),(B,20);13044444444:(A,40),(B,10)}。 In the embodiment of the present invention, developers can purchase free call durations of various call types at the communication operator, and then distribute them to each calling number, such as purchasing free call durations for local calls and free call durations for long-distance calls . Then constructing a free call sharing collection can be as follows: {call number: (call type, remaining call time), (call type, remaining call time)...;...}, such as {13011111111: (A,0),(B, 10); 13022222222: (A,30), (B,10); 13033333333: (A,10), (B,20); 13044444444: (A,40), (B,10)}.

那么,当第一主叫号码13011111111以呼叫类型A进行通话时,其免费通话时间达到上限,即其免费通话时长用完。则在免费通话共享集合中查询其他主叫号码的呼叫类型A下面是否还有剩余免费通话时间。比如查询到13022222222、13033333333、13044444444中都有呼叫类型A下的剩余免费通话时间,本发明实施例则可从中选择一个,比如选择13022222222。 Then, when the first calling number 13011111111 makes a call with call type A, its free call time reaches the upper limit, that is, its free call time is exhausted. In the free call sharing set, it is checked whether there is remaining free call time under the call type A of other calling numbers. For example, if 13022222222, 13033333333, and 13044444444 all have remaining free talk time under call type A, the embodiment of the present invention may select one of them, such as 13022222222.

步骤230,将所述第二主叫号码的与所述呼叫类型相应的剩余免费通话时长,分配给所述第一主叫号码使用。 Step 230: Allocate the remaining free call duration corresponding to the call type of the second calling number to the first calling number.

如前述选择的13022222222,则将13022222222的免费通话时长30分钟分配给13011111111使用。 If 13022222222 is selected above, the 30-minute free call duration of 13022222222 will be allocated to 13011111111.

本发明实施例,对于被分配了免费通话时长的各个主叫号码,将上述主叫号码放入免费通话共享集合,当该免费通话共享集合中的一个主叫号码在某种呼叫类型下通话时,如果该主叫号码的该呼叫类型的免费通话时长达到上限,则可以将免费通话共享集合中其他主叫号码的该呼叫类型下的剩余免费通话时长挪给前述主叫号码使用。从而使各个主叫号码的免费通话时长可 以共享,提高了免费通话时长的利用率,降低资源浪费,并且降低了通话时间较长的用户的花销。 In the embodiment of the present invention, for each calling number allocated with a free call duration, the above calling number is put into a free call sharing set, when a calling number in the free call sharing set makes a call under a certain call type , if the free call duration of this call type of the calling number reaches the upper limit, the remaining free call duration of the call type of other calling numbers in the free call sharing set can be transferred to the aforementioned calling number for use. Thereby, the free call duration of each calling number can be shared, which improves the utilization rate of the free call duration, reduces the waste of resources, and reduces the cost of the user with a longer call time.

实施例三 Embodiment Three

参照图3,其示出了本发明一种免费通话共享装置的结构示意图,具体可以包括: Referring to Fig. 3, it shows a schematic structural diagram of a free call sharing device of the present invention, which may specifically include:

免费时长监控模块310,适于监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; The free duration monitoring module 310 is adapted to monitor whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

共享号码查询模块320,适于如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; The shared number query module 320 is adapted to query whether there is a second calling number with remaining free call duration from the free call sharing set if the free call duration of the first calling number reaches the upper limit;

共享分配模块330,适于将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 The shared allocation module 330 is adapted to allocate the remaining free call duration of the second calling number to the first calling number.

优选的,在免费时长监控模块之前,还包括: Preferably, before the free duration monitoring module, it also includes:

共享请求发送模块,适于向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求; A sharing request sending module, adapted to send a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

共享集合构建模块,适于当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 The sharing set building module is adapted to add the second calling number to the free call sharing set after receiving the sharing permission response returned by the second calling number.

优选的,所述共享请求发送模块包括: Preferably, the sharing request sending module includes:

权限判断模块,适于针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; The authority judging module is suitable for judging whether the second calling number has the free call duration authority for a second calling number;

禁止发送模块,适于如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; The prohibition sending module is adapted to not send a free call duration sharing request to the second calling number if the second calling number has no free call duration authorization;

允许发送模块,适于如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 The sending permission module is adapted to send a free call duration sharing request to the second calling number if the second calling number has permission for free call duration.

优选的,所述免费时长监控模块,包括: Preferably, the free duration monitoring module includes:

根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 According to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches an upper limit.

优选的,所述共享号码查询模块,包括: Preferably, the shared number query module includes:

从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 From the free call sharing set, query whether there is a second calling number corresponding to the call type with remaining free call duration.

优选的,所述共享号码查询模块,包括: Preferably, the shared number query module includes:

第一查询模块,适于从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。 The first query module is adapted to query a second calling number whose remaining free call duration is greater than a first threshold from the free call sharing set.

优选的,所述共享号码查询模块包括: Preferably, the shared number query module includes:

第二查询模块,适于从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; The second query module is adapted to query each second calling number whose free call duration has not reached the upper limit from the free call sharing set;

历史选择模块,适于根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。 The history selection module is adapted to select a second calling number whose average usage time is less than a second threshold according to the usage history of each second calling number for the free call duration.

优选的,共享分配模块之后,还包括: Preferably, after the shared allocation module, it also includes:

第二主叫号码记录修改模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 The second calling number record modifying module is adapted to modify the second calling number according to the first duration of the remaining free calling duration used by the first calling number after the call of the calling terminal ends. The used free calling time of the called number.

优选的,在共享分配模块之后,还包括: Preferably, after the shared allocation module, it also includes:

共享时间通知模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 The shared time notification module is adapted to notify the mobile phone where the second calling number is located according to the first duration of the remaining free call duration used by the first calling number after the call of the calling terminal ends. The terminal, the first duration used by the first calling number.

优选的,在免费时长监控模块之前,还包括: Preferably, before the free duration monitoring module, it also includes:

权限判断模块,适于在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; The authority judging module is suitable for judging whether the address book has the authority to make a call before the user uses the address book to make a call;

权限设置模块,适于如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 The authority setting module is suitable for jumping to the call setting interface if the address book does not have the authority to make calls, and guiding the user to set the call authority of the address book.

实施例四 Embodiment Four

参照图4,其示出了本发明一种免费通话共享装置的结构示意图,具体可以包括: Referring to Fig. 4, it shows a schematic structural diagram of a free call sharing device of the present invention, which may specifically include:

免费时长监控模块410,适于监听主叫终端所使用的第一主叫号码的免 费通话时长是否达到上限,具体包括: The free duration monitoring module 410 is suitable for monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit, specifically including:

类型监控模块412,适于根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 The type monitoring module 412 is adapted to monitor whether the free call duration of the first calling number under the calling type reaches the upper limit according to the calling type of the first calling number.

共享号码查询模块420,适于如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,具体包括: The shared number query module 420 is adapted to query whether there is a second calling number with a remaining free call duration from the free call sharing set if the free call duration of the first calling number reaches the upper limit, specifically including:

类型查询模块422,适于从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 The type query module 422 is adapted to query whether there is a second calling number corresponding to the call type with a remaining free call duration from the free call sharing set.

共享分配模块430,适于将所述第二主叫号码的所述呼叫类型的剩余免费通话时长,分配给所述第一主叫号码使用。 The shared allocation module 430 is adapted to allocate the remaining free call duration of the call type of the second calling number to the first calling number for use.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。 The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以 把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of submodules or subunits or subassemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的免费通话共享设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the free call sharing device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一 个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。 It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明还公开了A1、一种免费通话共享方法,包括: The present invention also discloses A1, a free call sharing method, comprising:

监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; Monitor whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; If the free call duration of the first calling number reaches the upper limit, query whether there is a second calling number with remaining free call duration from the free call sharing set;

将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 Allocating the remaining free call duration of the second calling number to the first calling number.

A2、如A1所述的方法,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码之前,还包括: A2, the method as described in A1, before querying whether there is a second calling number with remaining free call duration from the free call sharing set, it also includes:

向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求; Sending a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 After receiving the sharing permission response returned by the second calling number, add the second calling number to the free call sharing set.

A3、如A2所述的方法,所述向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求包括: A3. The method described in A2, the sending the free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal includes:

针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; For a second calling number, determine whether the second calling number has a free call duration authority;

如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; If the second calling number does not have free call duration permission, then do not send a free call duration sharing request to the second calling number;

如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 If the second calling number has a free call duration permission, a free call duration sharing request is sent to the second calling number.

A4、如A1所述的方法,所述监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限,包括: A4. In the method described in A1, the monitoring of whether the free call duration of the first calling number used by the calling terminal reaches the upper limit includes:

根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 According to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches an upper limit.

A5、如A1所述的方法,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: A5, the method as described in A1, said from the free call sharing set, query whether there is a second calling number with remaining free call duration, including:

从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 From the free call sharing set, query whether there is a second calling number corresponding to the call type with remaining free call duration.

A6、如A1所述的方法,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: A6, the method as described in A1, said from the free call sharing set, query whether there is a second calling number with remaining free call duration, including:

从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。 From the free call sharing set, query a second calling number whose remaining free call duration is greater than a first threshold.

A7、如A1所述的方法,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括: A7. The method described in A1, from the free call sharing set, query whether there is a second calling number with remaining free call duration, including:

从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; From the free call sharing set, query each second calling number whose free call duration has not reached the upper limit;

根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。 A second calling number whose average usage time is less than a second threshold is selected according to the usage history of each second calling number for the free call duration.

A8、如A1所述的方法,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: A8. The method described in A1, after allocating the remaining free call duration of the second calling number to the first calling number, further includes:

在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 After the call at the calling terminal ends, the used free call duration of the second calling number is modified according to the first duration of the remaining free call duration used by the first calling number.

A9、如A1所述的方法,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括: A9. The method described in A1, after allocating the remaining free call duration of the second calling number to the first calling number, further includes:

在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 After the call of the calling terminal ends, according to the first duration of the remaining free call duration used by the first calling number, the mobile terminal where the second calling number is located is notified that the first calling number The first duration used to call the number.

A10、如A1所述的方法,监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限之前,还包括: A10. The method described in A1, before monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit, also includes:

在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; Before the user uses the address book to make a call, determine whether the address book has the authority to make a call;

如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 If the address book does not have the right to make calls, jump to the call setting interface to guide the user to set the call right of the address book.

本发明公开了B11、一种免费通话共享装置,包括: The invention discloses B11, a free call sharing device, comprising:

免费时长监控模块,适于监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限; The free duration monitoring module is suitable for monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit;

共享号码查询模块,适于如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码; The shared number query module is adapted to query whether there is a second calling number with remaining free call duration from the free call sharing set if the free call duration of the first calling number reaches the upper limit;

共享分配模块,适于将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。 The shared allocation module is adapted to allocate the remaining free call duration of the second calling number to the first calling number.

B12、如B11所述的装置,在免费时长监控模块之前,还包括: B12, the device as described in B11, before the free duration monitoring module, also includes:

共享请求发送模块,适于向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求; A sharing request sending module, adapted to send a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal;

共享集合构建模块,适于当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。 The sharing set building module is adapted to add the second calling number to the free call sharing set after receiving the sharing permission response returned by the second calling number.

B13、如B12所述的装置,所述共享请求发送模块包括: B13, the device as described in B12, the sharing request sending module includes:

权限判断模块,适于针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限; The authority judging module is suitable for judging whether the second calling number has the free call duration authority for a second calling number;

禁止发送模块,适于如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求; The prohibition sending module is adapted to not send a free call duration sharing request to the second calling number if the second calling number has no free call duration authorization;

允许发送模块,适于如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。 The sending permission module is adapted to send a free call duration sharing request to the second calling number if the second calling number has permission for free call duration.

B14、如B11所述的装置,所述免费时长监控模块,包括: B14, the device as described in B11, the free duration monitoring module, including:

类型监控模块,适于根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。 The type monitoring module is adapted to monitor whether the free call duration of the first calling number under the calling type reaches the upper limit according to the calling type of the first calling number.

B15、如B11所述的装置,所述共享号码查询模块,包括: B15. The device as described in B11, the shared number query module includes:

类型查询模块,适于从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。 The type query module is adapted to query from the free call sharing set whether there is a second calling number with a remaining free call duration corresponding to the call type.

B16、如B11所述的装置,所述共享号码查询模块,包括: B16. The device as described in B11, the shared number query module includes:

第一查询模块,适于从所述免费通话共享集合中,查询剩余免费通话时 长大于第一阈值的一第二主叫号码。 The first query module is adapted to query a second calling number whose remaining free call duration is greater than the first threshold from the free call sharing set.

B17、如B11所述的装置,所述共享号码查询模块包括: B17, the device as described in B11, the shared number query module includes:

第二查询模块,适于从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码; The second query module is adapted to query each second calling number whose free call duration has not reached the upper limit from the free call sharing set;

历史选择模块,适于根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。 The history selection module is adapted to select a second calling number whose average usage time is less than a second threshold according to the usage history of each second calling number for the free call duration.

B18、如B11所述的装置,在共享分配模块之后,还包括: B18. The device as described in B11, after sharing the allocation module, further comprising:

第二主叫号码记录修改模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。 The second calling number record modifying module is adapted to modify the second calling number according to the first duration of the remaining free calling duration used by the first calling number after the call of the calling terminal ends. The used free calling time of the called number.

B19、如B11所述的装置,在共享分配模块之后,还包括: B19. The device as described in B11, after sharing the allocation module, further comprising:

共享时间通知模块,适于在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。 The shared time notification module is adapted to notify the mobile phone where the second calling number is located according to the first duration of the remaining free call duration used by the first calling number after the call of the calling terminal ends. The terminal, the first duration used by the first calling number.

B20、如B11所述的装置,在免费时长监控模块之前,还包括: B20, the device as described in B11, before the free duration monitoring module, also includes:

权限判断模块,适于在用户使用通讯录拨打电话之前,判断所述通讯录是否具备拨打电话的权限; The authority judging module is suitable for judging whether the address book has the authority to make a call before the user uses the address book to make a call;

权限设置模块,适于如果通讯录不具备拨打电话的权限,则跳转到拨打电话设置界面,引导用户设置所述通讯录的拨打权限。 The authority setting module is suitable for jumping to the call setting interface if the address book does not have the authority to make calls, and guiding the user to set the call authority of the address book.

Claims (10)

1.一种免费通话共享方法,包括:1. A free call sharing method, comprising: 监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限;Monitor whether the free call duration of the first calling number used by the calling terminal reaches the upper limit; 如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码;If the free call duration of the first calling number reaches the upper limit, query whether there is a second calling number with remaining free call duration from the free call sharing set; 将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。Allocating the remaining free call duration of the second calling number to the first calling number. 2.根据权利要求1所述的方法,其特征在于,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码之前,还包括:2. The method according to claim 1, characterized in that, before inquiring whether there is a second calling number with remaining free call duration from the free call sharing set, it also includes: 向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求;Sending a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal; 当接收到第二主叫号码返回的允许共享响应后,将所述第二主叫号码加入免费通话共享集合。After receiving the sharing permission response returned by the second calling number, add the second calling number to the free call sharing set. 3.根据权利要求2所述的方法,其特征在于,所述向所述主叫终端的通讯录中记录的至少一个第二主叫号码发送免费通话时长共享请求包括:3. The method according to claim 2, wherein the sending a free call duration sharing request to at least one second calling number recorded in the address book of the calling terminal comprises: 针对一第二主叫号码,判断所述第二主叫号码是否具有免费通话时长权限;For a second calling number, determine whether the second calling number has a free call duration authority; 如果所述第二主叫号码没有免费通话时长权限,则不向所述第二主叫号码发送免费通话时长共享请求;If the second calling number does not have free call duration permission, then do not send a free call duration sharing request to the second calling number; 如果所述第二主叫号码有免费通话时长权限,则向所述第二主叫号码发送免费通话时长共享请求。If the second calling number has a free call duration permission, a free call duration sharing request is sent to the second calling number. 4.根据权利要求1所述的方法,其特征在于,所述监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限,包括:4. The method according to claim 1, wherein the monitoring whether the free call duration of the first calling number used by the calling terminal reaches an upper limit includes: 根据所述第一主叫号码的呼叫类型,监听第一主叫号码在所述呼叫类型下的免费通话时长是否达到上限。According to the call type of the first calling number, monitor whether the free call duration of the first calling number under the calling type reaches an upper limit. 5.根据权利要求1所述的方法,其特征在于,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括:5. The method according to claim 1, characterized in that, from the free call sharing set, querying whether there is a second calling number with remaining free call duration includes: 从免费通话共享集合,查询是否存在与所述呼叫类型相应的剩余免费通话时长的一第二主叫号码。From the free call sharing set, query whether there is a second calling number corresponding to the call type with remaining free call duration. 6.根据权利要求1所述的方法,其特征在于,所述从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括:6. The method according to claim 1, characterized in that, from the free call sharing set, querying whether there is a second calling number with remaining free call duration includes: 从所述免费通话共享集合中,查询剩余免费通话时长大于第一阈值的一第二主叫号码。From the free call sharing set, query a second calling number whose remaining free call duration is greater than a first threshold. 7.根据权利要求1所述的方法,其特征在于,从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码,包括:7. The method according to claim 1, characterized in that, from the free call sharing set, querying whether there is a second calling number for the remaining free call duration includes: 从所述免费通话共享集合中,查询免费通话时长还未达到上限的各个第二主叫号码;From the free call sharing set, query each second calling number whose free call duration has not reached the upper limit; 根据各个第二主叫号码对免费通话时长的使用历史记录,选择平均使用时间小于第二阈值的一第二主叫号码。A second calling number whose average usage time is less than a second threshold is selected according to the usage history of each second calling number for the free call duration. 8.根据权利要求1所述的方法,其特征在于,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括:8. The method according to claim 1, characterized in that, after allocating the remaining free call duration of the second calling number to the first calling number, further comprising: 在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,修改所述第二主叫号码的已使用的免费通话时长。After the call at the calling terminal ends, the used free call duration of the second calling number is modified according to the first duration of the remaining free call duration used by the first calling number. 9.根据权利要求1所述的方法,其特征在于,在将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用之后,还包括:9. The method according to claim 1, characterized in that, after allocating the remaining free call duration of the second calling number to the first calling number, further comprising: 在所述主叫终端的通话结束后,根据所述第一主叫号码使用的所述剩余免费通话时长中的第一时长,通知所述第二主叫号码所在移动终端,所述第一主叫号码使用的所述第一时长。After the call of the calling terminal ends, according to the first duration of the remaining free call duration used by the first calling number, the mobile terminal where the second calling number is located is notified that the first calling number The first duration used to call the number. 10.一种免费通话共享装置,包括:10. A free call sharing device, comprising: 免费时长监控模块,适于监听主叫终端所使用的第一主叫号码的免费通话时长是否达到上限;The free duration monitoring module is suitable for monitoring whether the free call duration of the first calling number used by the calling terminal reaches the upper limit; 共享号码查询模块,适于如果所述第一主叫号码的免费通话时长达到上限,则从免费通话共享集合,查询是否存在剩余免费通话时长的一第二主叫号码;The shared number query module is adapted to query whether there is a second calling number with remaining free call duration from the free call sharing set if the free call duration of the first calling number reaches the upper limit; 共享分配模块,适于将所述第二主叫号码的剩余免费通话时长,分配给所述第一主叫号码使用。The shared allocation module is adapted to allocate the remaining free call duration of the second calling number to the first calling number.
CN201510383252.1A 2015-07-02 2015-07-02 Free call sharing method and device Pending CN104994491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510383252.1A CN104994491A (en) 2015-07-02 2015-07-02 Free call sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510383252.1A CN104994491A (en) 2015-07-02 2015-07-02 Free call sharing method and device

Publications (1)

Publication Number Publication Date
CN104994491A true CN104994491A (en) 2015-10-21

Family

ID=54306225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510383252.1A Pending CN104994491A (en) 2015-07-02 2015-07-02 Free call sharing method and device

Country Status (1)

Country Link
CN (1) CN104994491A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534066A (en) * 2016-09-29 2017-03-22 乐视控股(北京)有限公司 Method and device for managing content access duration
CN109005302A (en) * 2018-09-07 2018-12-14 青岛黄海学院 A method of control communication terminal call

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5381467A (en) * 1992-10-30 1995-01-10 At&T Corp. Telephone call billing system
US20020103762A1 (en) * 2001-01-26 2002-08-01 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for managing access to a prepaid account
US20020103771A1 (en) * 2000-12-29 2002-08-01 Love Douglas E. Cost sharing of toll calls
US20030096641A1 (en) * 2001-11-21 2003-05-22 Gilad Odinak Sharing account information and a phone number between personal mobile phone and an in-vehicle embedded phone
CN101286859A (en) * 2007-04-13 2008-10-15 朗迅科技公司 Family billing plan for sharing the balance in on-line charging system of wireless communication system
CN101345634A (en) * 2008-08-15 2009-01-14 华为技术有限公司 Charging method, device and system
CN101383999A (en) * 2007-09-06 2009-03-11 中兴通讯股份有限公司 Double-mode double-terminal fee billing system and method for sharing pre-deposited fee by the cards
CN101998344A (en) * 2009-08-20 2011-03-30 中国移动通信集团辽宁有限公司 Method and device for multi-user billing
CN103841126A (en) * 2012-11-20 2014-06-04 中国移动通信集团辽宁有限公司 Shared resource deployment method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5381467A (en) * 1992-10-30 1995-01-10 At&T Corp. Telephone call billing system
US20020103771A1 (en) * 2000-12-29 2002-08-01 Love Douglas E. Cost sharing of toll calls
US20020103762A1 (en) * 2001-01-26 2002-08-01 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for managing access to a prepaid account
US20030096641A1 (en) * 2001-11-21 2003-05-22 Gilad Odinak Sharing account information and a phone number between personal mobile phone and an in-vehicle embedded phone
CN101286859A (en) * 2007-04-13 2008-10-15 朗迅科技公司 Family billing plan for sharing the balance in on-line charging system of wireless communication system
CN101383999A (en) * 2007-09-06 2009-03-11 中兴通讯股份有限公司 Double-mode double-terminal fee billing system and method for sharing pre-deposited fee by the cards
CN101345634A (en) * 2008-08-15 2009-01-14 华为技术有限公司 Charging method, device and system
CN101998344A (en) * 2009-08-20 2011-03-30 中国移动通信集团辽宁有限公司 Method and device for multi-user billing
CN103841126A (en) * 2012-11-20 2014-06-04 中国移动通信集团辽宁有限公司 Shared resource deployment method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534066A (en) * 2016-09-29 2017-03-22 乐视控股(北京)有限公司 Method and device for managing content access duration
CN109005302A (en) * 2018-09-07 2018-12-14 青岛黄海学院 A method of control communication terminal call

Similar Documents

Publication Publication Date Title
CN109462831B (en) Method, distribution server and system for accessing network by application program in mobile terminal
CN103490981B (en) A kind of information push method and device across Mobile solution
KR20140009171A (en) System and method for providing user notifications
JP2014529963A (en) Method and apparatus for controlling terminal access to a wireless network
JP2022022229A (en) Method and apparatus for online charging information exchange
CN111222861B (en) Method, device and computing device for recharging after arrears
WO2018220746A1 (en) Wireless resource management method, wireless resource management device, and wireless communication system
CN107635219A (en) Service package sharing method and device
CN104994491A (en) Free call sharing method and device
CN105900491A (en) Method and apparatus for automatic detection and selection of alternative roaming providers
KR20180030467A (en) Providing apparatus, use apparatus, communication resource trading system, providing method, use method and control apparatus
CN104980958B (en) A kind of method and mobile terminal carrying out network login
CN104954493B (en) A kind of method, proxy server and system accessing game server
CN112235474A (en) Method, device and equipment for scheduling prepaid flow code number
US20120284208A1 (en) Systems and/or Methods For Delivering Notifications On A Communications Network
CN104980444B (en) A kind of network telephone call method, proxy server and communication system applied to mobile terminal
CN105162753B (en) A kind of method and mobile terminal for mobile terminal to access network resources
CN109526009B (en) Communication method, mobile terminal and system
JP6086335B2 (en) Content download method, related device, and system
CN104967623A (en) A method for dual-card dual-standby mobile terminal to access network
CN107291500B (en) Data distribution method and device for starting process
CN106912038A (en) Method, the apparatus and system of dynamically distributes roaming place number
CN104954485A (en) Data communication method applied to mobile terminal, proxy server and communication system
CN104980521B (en) It is a kind of for the control method of Intelligent lost-proof type equipment, proxy server and system
CN105101141A (en) A method of controlling intelligent anti-lost equipment, intelligent anti-lost equipment and system

Legal Events

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

Application publication date: 20151021