WO2011012018A1 - Method for implementing message-type traffic routing and device thereof - Google Patents

Method for implementing message-type traffic routing and device thereof Download PDF

Info

Publication number
WO2011012018A1
WO2011012018A1 PCT/CN2010/073436 CN2010073436W WO2011012018A1 WO 2011012018 A1 WO2011012018 A1 WO 2011012018A1 CN 2010073436 W CN2010073436 W CN 2010073436W WO 2011012018 A1 WO2011012018 A1 WO 2011012018A1
Authority
WO
WIPO (PCT)
Prior art keywords
called
route
user
calling
message
Prior art date
Application number
PCT/CN2010/073436
Other languages
French (fr)
Chinese (zh)
Inventor
戴书球
蒋晓彬
侯彬
杨宇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to IN321DEN2012 priority Critical patent/IN2012DN00321A/en
Priority to BR112012001781A priority patent/BR112012001781A2/en
Publication of WO2011012018A1 publication Critical patent/WO2011012018A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/15Aspects of automatic or semi-automatic exchanges related to dial plan and call routing
    • H04M2203/158Call-type dependent routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42025Calling or Called party identification service
    • H04M3/42034Calling party identification service
    • H04M3/42059Making use of the calling party identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42025Calling or Called party identification service
    • H04M3/42085Called party identification service
    • H04M3/42102Making use of the called party identifier

Definitions

  • the present invention relates to the field of data communication technologies, and in particular, to a method and apparatus for implementing a message type service route.
  • SMS Since 2000, China Mobile has promoted the SMS business. In less than ten years, SMS has developed rapidly in China with geometric progression, which has changed the concept of national information exchange and provided an important communication and promotion for the development of Chinese enterprises. platform.
  • the SMS gateway 11 when the M company sends a downlink message to the user, the M company 10 sends a message to the short message gateway 11, and the short message gateway 11 finds the short message center 12 to which the user who owns the called number belongs according to the called number route. The short message gateway 11 then sends a message to the short message center 12 to which the user belongs, and the short message center 12 then uses the wireless network environment to send a message to the user's terminal.
  • the downlink message may be a marketing material of the enterprise, and may be a holiday care message for a specific user, or a user information change notification or the like.
  • the user sends an uplink message to the M company
  • the user sends an uplink message to the short message center to which the user belongs, and the short message center is routed to the short message gateway according to the called number, and the short message gateway routes to the access point of the M company according to the called number.
  • M company receives the user's uplink message and handles it accordingly.
  • the uplink message may be a query by the user for his or her information, or a confirmation of certain orders, or a recommendation for a book.
  • the enterprise wants to interact with the user through MMS, it needs to access the MMS gateway.
  • the SMS gateway and SMS center corresponding to Figure 1 should be the MMS gateway and MMS center.
  • the present invention provides a method for implementing message type service routing, including:
  • the route in which the subscriber number is used as the calling number and the service provider's unified access number as the called number is configured to point to a branch office serving the user inside the service provider, and the route is stored in the calling and called routing table.
  • the uplink message sent by the user is sent to a branch office serving the user inside the service provider.
  • the called number of the uplink message and the called route are routed.
  • the routes stored in the table are matched. If the matching is successful, the uplink message sent by the user is sent to the service provider headquarters.
  • the above method may also have the following features: When the called number of the uplink message matches the route stored in the called routing table, the message sending process is terminated.
  • the step of matching the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table includes: using a longest matching algorithm The calling number and the called number of the uplink message sent by the user are matched with the route stored in the calling and called routing table.
  • the step of matching the called number of the uplink message sent by the user with the route stored in the called routing table includes: using the longest matching algorithm The called number of the uplink message sent by the user is matched with the route stored in the called routing table.
  • the present invention also provides an apparatus for implementing a message type service routing, including: a configuration management module, a message receiving module, a calling and called routing module, and a message sending module, where
  • the configuration management module is configured to configure a route with the subscriber number as the calling number and the unified access number of the service provider as the called number to point to a branch office serving the user within the service provider, and store the route.
  • a route with the subscriber number as the calling number and the unified access number of the service provider as the called number to point to a branch office serving the user within the service provider, and store the route.
  • the primary and called routing tables In the primary and called routing tables;
  • the message receiving module is configured to receive an uplink message sent by the user, and deliver the uplink message sent by the user to a routing module that includes the calling and called routing module;
  • the calling and routing module is configured to match the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table; the message sending module is configured to be The primary and secondary routing modules are successfully matched, and the uplink message sent by the user is sent to the branch office serving the user within the service provider pointed to by the successful matching route.
  • the device may also have the following features:
  • the configuration management module is further configured to pre-configure the unified access number of the service provider as a route of the called number to point to the service provider headquarters, and route the route Stored in the called routing table;
  • the device also includes:
  • the called routing module is configured to match the called number of the uplink message sent by the user with the route stored in the called routing table when the matching of the calling and called routing modules is unsuccessful;
  • the message sending module is further configured to send the uplink message sent by the user to the service provider headquarters pointed to by the route that the called routing module matches successfully.
  • the device may also have the following features:
  • the called routing module is further configured to: when the primary called routing module and the called routing module are unsuccessful, notify the message sending module to send the response information of the routing failure.
  • the invention provides a method and device for implementing message-based service routing, which enables an enterprise to perform separate message interactions with its users by using a unified access number, and does not require separate branches. Apply for a new access number, saving the company an extra opening The cost of sending. Not only that, but more importantly, for the user, the company uses the same access number uniformly, which can maintain a good image of a large enterprise.
  • FIG. 1 is a schematic diagram of networking of access clients commonly used by existing enterprises
  • FIG. 2 is a flowchart of a method for implementing message type service routing according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an apparatus for implementing message type service routing according to an embodiment of the present invention
  • FIG. 4 is an implementation message according to an embodiment of the present invention.
  • a plurality of branch offices of a large company need to separately serve the needs of their users.
  • the present invention provides a method for implementing message type service routing by using a calling number and a called number, so that the entire company can use the unified standard access number.
  • Each branch office can conveniently provide services for its own users.
  • FIG. 2 is a flow chart of a method for implementing message type service routing according to an embodiment of the present invention. As shown in FIG. 2, the method for implementing message type service routing in the embodiment of the present invention includes:
  • Step S201 The route of the calling number of the user number and the unified access number of the service provider as the called number is configured in advance to point to a branch office serving the user inside the service provider, and the route is stored in the main In the routing table; in addition, the pre-configured service provider's unified access number is used as the route of the called number to the service provider headquarters, and the route is stored in the called routing table.
  • routing tables that is, a primary called routing table and a called routing table are stored.
  • Step S202 After receiving the uplink message sent by the user, matching the calling number and the called number of the uplink message sent by the user with the route stored in the primary and called routing tables;
  • the calling number and the called number of the uplink message are the number of the user and the unified access number of the service provider, respectively.
  • each branch office as the called service provider uses the unified access number of the service provider, so even if a branch office inside the service provider is dedicated to A user performs message interaction.
  • the called number also uses the unified access number of the service provider.
  • step S203 the route matching the calling number and the called number of the uplink message sent by the user is queried. If the matching is successful, step S203 is performed; if the matching is unsuccessful, step S204 is performed.
  • the unsuccessful matching in the step may include that the calling number matching is unsuccessful or the called number matching is unsuccessful, or both the calling number and the called number are unsuccessful.
  • the longest matching algorithm can be used to match the calling number and the called number of the uplink message sent by the user with the route in the primary and secondary routing tables.
  • the calling number of the first route is 023, the called number is 10655023; the calling number of the second route is 0236666, and the called number is 10655023; the third route
  • the calling number is 0236666 and the called number is 106550231234. If the calling number of the upstream message is 02366661234 and the called number is 106550231234, the third route is matched. If the calling number of the upstream message is 02366661234 and the called number is 106550235678, the second route is matched; The calling number is 02312345678, and the called number is 106550231234, which matches the first route.
  • the longest matching algorithm is used in the matching process in the primary and secondary routing tables. It is allowed to configure the routing with the relationship, so that the related routing module becomes more flexible when searching for routes.
  • the primary and called routing tables there are two routes containing the relationship.
  • the calling number of the first route is 023, the called number is 10655023, the calling number of the second route is 0234, and the called number is 10655023.
  • the calling number 023 of the first route (the entire area of Chongqing) contains 0234 (a few districts and counties in Chongqing), so that users in small areas with special needs in large areas can be served by specific service providers. .
  • Step S203 Send the uplink message sent by the user to the branch office serving the user inside the service provider pointed to by the route with successful matching in the main called routing table in step S202;
  • Step S204 When the matching in step S202 is unsuccessful, the called number of the uplink message sent by the user is matched with the route stored in the called routing table, and if the matching is successful, the step is executed. Step S205, if the matching is unsuccessful, step S206 is performed.
  • step S202 it is first queried whether there is a route matching the calling number and the called number of the uplink message in the primary and secondary routing tables, and if yes, because the primary and the called routing table are pre- The route to the branch providing the service provided by the service is stored, so if the matching succeeds in step S202, the uplink message sent by the user can be sent to the branch office serving the user inside the service provider through the route. If the matching in step S202 is unsuccessful, the called number of the uplink message sent by the user is matched with the route in the called routing table.
  • the longest matching algorithm can be used to match the called number of the uplink message sent by the user with the route in the called routing table. For example, there are two routes in the called routing table. The called number of the first route is 10655023, and the called number of the second route is 106550231234. If the called number of the upstream message is 106550231234, the second route is matched. If the called number of the uplink message is 106550235678, the first route is matched.
  • the longest matching algorithm is used in the matching process in the called routing table, which allows the configuration to have a route containing the relationship, which makes the related routing module more flexible when searching for routes.
  • the called number of the first route is 10655023
  • the called number of the second route is 1065502351
  • the calling number of the first route is 10655023.
  • the basic access number of the SP includes 1065502351 (a specific service provided by the SP, such as borrowing other platforms to provide services to its users), so that the specific service of the SP can be sent to the provider platform that provides the specific service.
  • Step S205 When the matching succeeds in step S204, the uplink message sent by the user is sent to the headquarters of the service provider pointed to by the route with successful matching in step S204;
  • the route in the called routing table pre-stores the service provider's unified access number as the called number and points to the service provider's headquarters. After the matching succeeds in step S204, the route may be successfully matched according to the matching.
  • the uplink message sent by the user is sent to the service provider headquarters.
  • Step S206 When the matching in step 204 is unsuccessful, the message sending process is terminated, and a response message containing the error code as a routing failure may be sent to the short message center.
  • step S204 When the matching in step S204 is unsuccessful, it means that there is no route matching the uplink message sent by the user in the routing table of the called party and the routing table of the called routing table, and the terminal may be terminated. Stop the sending process.
  • FIG. 3 is a schematic diagram of an apparatus for implementing message type service routing according to an embodiment of the present invention.
  • the device 30 for implementing message-type service routing in the embodiment of the present invention includes: a configuration management module 301, a message receiving module 302, a calling and called routing module 303, a called routing module 304, and a message sending module 305. among them,
  • the configuration management module is configured to configure the user number as the calling number and the unified access number of the service provider (hereinafter also referred to as M company) as the route of the called number as a branch pointing to the service provider for the user.
  • the organization stores the route in the primary and secondary routing tables.
  • the configuration of the calling and called number routes in the configuration management module is specifically: if the calling number is the user number segment of the A, and the called number is the access number of the M company, the message type service is sent to the branch office of the A; If the calling number is the user number segment of D and the called number is the access number of company M, the message type service is sent to the branch office of D.
  • the calling and called number routes are configured for all branches.
  • the configuration management module also keeps the route whose called number is the access number of company M to the headquarters of the company M. That is, the configuration management module is further configured to configure the route of the service provider's unified access number as the called number in advance.
  • the service provider headquarters stores the route in the called routing table.
  • the message receiving module is configured to receive the message sent from the external network element, and hand the message to the relevant routing module to search for the route, for example, receiving the uplink message sent by the user, and handing the uplink message sent by the user to the relevant route. After receiving the user uplink message, the message receiving module first hands the message to the calling and called routing module to find a route.
  • the calling and called routing module is configured to match the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table.
  • the calling and called routing module queries whether the calling number matches in the calling and called routing table. If the matching, the called number also matches. If the called number also matches, the routing is successful, and the message sending module is notified; If the routing module does not match the calling number, or the calling number does not match the called number, the uplink message is forwarded to the called routing module to continue searching for the route.
  • the longest matching algorithm is used in the matching process in the calling and called routing tables. This allows the configuration management module to configure routes with inclusive relationships, making the related routing modules more flexible when searching for routes.
  • the message sending module is configured to send a message to the corresponding network element according to the matched route.
  • the message sending module sends an uplink message sent by the user to the A branch that serves the user within the service provider that the successful route points to.
  • the called routing module matches the called number of the uplink message sent by the user with the route stored in the called routing table.
  • the called routing module queries whether the called number matches in the called routing table. If it matches, the routing succeeds and the message sending module is notified.
  • the message sending module sends a message according to the service route to the corresponding service provider access point (maybe a geographical user without a branch office sends a message to the headquarters of the enterprise, and may also be an uplink message of other common service providers). If the called routing module does not match the record in the called routing table, the final route fails.
  • the message sending module sends an error response or a failed status report to the network element that sent the message according to the need.
  • the longest matching algorithm is used in the matching process in the called routing table. This allows the configuration management module to configure the routing containing the relationship, making the related routing module more flexible when searching for routes.
  • FIG. 4 is a schematic diagram of a service method for implementing message type service routing according to an embodiment of the present invention.
  • the branch office of Company A is responsible for providing services to users in Area A
  • the branch office of Company D is responsible for providing services to users of Area D. Users in other regions are served by the headquarters of M Company.
  • the branch offices directly send messages to their users, and the process is the same as the process in Figure 1.
  • the method for implementing message type service routing in the embodiment of the present invention is required when the local user uplinks the message.
  • A2 configure the called number route R2, the called number 10001 points to the second service provider SP2 of the M company headquarters;
  • the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first hands the message to the calling and called routing module;
  • the calling and called routing module queries the route in the primary and secondary routing tables. The route succeeds and returns the route R1, and then the primary called routing module forwards the message to the message sending module; the message sending module sends the message to the branch office service provider SP1 of the company A according to the route R1 for processing.
  • the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first delivers the message to the calling and called routing module.
  • the calling and called routing module queries the routing in the primary and secondary routing tables. After the primary and secondary routing modules fail to route, the message receiving module forwards the message to the called party to continue searching for the route; the called routing module is based on the called routing table.
  • the called number finds the route, the route succeeds and returns the route R2, and then the called routing module delivers the message to the message sending module; the message sending module sends the message to the M company headquarters SP2 for processing according to the route R2.
  • the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first hands the message to the calling and called routing module; The calling and called routing module queries the routing in the calling and called routing tables. After the primary and secondary routing modules fail to route, the message receiving module sends the message to the called party to continue searching for the route; the called routing module is based on the called routing table. If the called number finds the route, if the final route fails, the called routing module terminates the message flow, and notifies the message sending module to send a response message whose error code is a route failure to the short message center.
  • the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first delivers the message to the calling and called routing module.
  • the calling and called routing module queries the route in the calling and called routing table, the route is successful and returns the route R3, and then the calling and routing module sends the message to the message sending module; the message sending module sends the message to the M company D according to the route R3. Branch service provider SP3 processing.
  • the method and device for implementing message type service routing provided by the present invention can support the use of the same service access number by each branch of the regional group company, and provide services for the users to which they belong.
  • the invention provides a method and device for implementing message-based service routing, which enables an enterprise to use a unified access number to implement separate message interaction between its internal branches and its users, and does not require individual branches to apply separately.
  • the new access number saves the cost of additional development for the enterprise.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method and device for implementing message-type traffic routing are provided. The device includes a configuration management module, a message-receiving module, a caller-callee route module, a callee route module, and a message-sending module. When a user sends an uplink message, the uplink message is sent to a service provider's inner branch which serves the user or to the service provider's headquarters which serves the user, by matching the caller's number and callee's number in the uplink message sent by the user with the route pre-configured in the caller-callee route module or in the callee route module. The method and device for implementing the message-type traffic routing provided by the present invention can enable an enterprise to use a uniform access number so as to implement separate message exchanging between each branch of the enterprise's inner and the branch's users respectively, thus no need for each branch to respectively reapply for a new access number.

Description

一种实现消息类业务路由的方法及其装置  Method and device for realizing message type service routing
技术领域 Technical field
本发明涉及数据通信技术领域, 具体地说, 涉及一种实现消息类业务路 由的方法及其装置。  The present invention relates to the field of data communication technologies, and in particular, to a method and apparatus for implementing a message type service route.
背景技术 Background technique
从 2000年中国移动推广短信业务至今, 不到十年的时间, 短信在中国以 几何级数飞速发展, 改变了国民的信息交流的观念, 也为中国企业的发展提 供了一个重要的沟通和宣传平台。  Since 2000, China Mobile has promoted the SMS business. In less than ten years, SMS has developed rapidly in China with geometric progression, which has changed the concept of national information exchange and provided an important communication and promotion for the development of Chinese enterprises. platform.
现有企业一般是接入短信网关为它的用户服务。 如图 1所示, 对于 M公 司向用户发送下行消息的情况, M公司 10下发消息到短信网关 11 , 短信网 关 11根据被叫号码路由找到拥有该被叫号码的用户归属的短信中心 12, 然 后短信网关 11将消息发送到该用户归属的短信中心 12, 短信中心 12再利用 无线网络环境发送消息到用户的终端。 在实际应用中, 下行消息可以是企业 的市场宣传资料, 可以是对特定用户的节日关怀消息, 也可以是用户信息变 更通知等等。 对于用户向 M公司发送上行消息的情况, 用户将上行消息发送 到该用户归属的短信中心, 该短信中心根据被叫号码路由到短信网关, 短信 网关根据被叫号码路由到 M公司的接入点, M公司收到用户的上行消息并做 出相应的处理。 在实际应用中, 上行消息可以是用户对其信息进行的查询, 也是是对某些订单的确认, 也可以是投书建议等等。 如果企业要通过彩信和 用户进行交互, 则需要接入彩信网关, 对应图 1 中的短信网关和短信中心应 该相应是彩信网关和彩信中心。  Existing enterprises generally access the SMS gateway to serve its users. As shown in FIG. 1, when the M company sends a downlink message to the user, the M company 10 sends a message to the short message gateway 11, and the short message gateway 11 finds the short message center 12 to which the user who owns the called number belongs according to the called number route. The short message gateway 11 then sends a message to the short message center 12 to which the user belongs, and the short message center 12 then uses the wireless network environment to send a message to the user's terminal. In practical applications, the downlink message may be a marketing material of the enterprise, and may be a holiday care message for a specific user, or a user information change notification or the like. For the case where the user sends an uplink message to the M company, the user sends an uplink message to the short message center to which the user belongs, and the short message center is routed to the short message gateway according to the called number, and the short message gateway routes to the access point of the M company according to the called number. , M company receives the user's uplink message and handles it accordingly. In practical applications, the uplink message may be a query by the user for his or her information, or a confirmation of certain orders, or a recommendation for a book. If the enterprise wants to interact with the user through MMS, it needs to access the MMS gateway. The SMS gateway and SMS center corresponding to Figure 1 should be the MMS gateway and MMS center.
但是, 随着公司规模的壮大, 某些大公司内部的各个分支机构需要分别 对其用户提供服务, 那么就会出现一个企业内部的多个分支结构同时接入的 运营商的需求。 现有技术中通常需要将一个公司内部为各自用户单独提供服 务的分支结构单独申请新的接入号码, 这就大大增加了企业的额外开发的成 本。 发明内容 However, as the size of the company grows and each branch within a large company needs to provide services to its users separately, there will be an operator's demand for multiple branch structures within the enterprise to access at the same time. In the prior art, it is generally required to separately apply for a new access number in a branch structure in which a company separately provides services for respective users, which greatly increases the cost of additional development of the enterprise. Summary of the invention
本发明目的在于提供一种实现消息类业务路由的方法和装置, 以实现各 个分支机构可以方便地分别为自己的用户提供服务。  It is an object of the present invention to provide a method and apparatus for implementing message type service routing, so that each branch office can conveniently provide services for its own users.
为了解决上述技术问题,本发明提供了一种实现消息类业务路由的方法, 包括:  In order to solve the above technical problem, the present invention provides a method for implementing message type service routing, including:
预先将用户号码作为主叫号码和服务提供商的统一接入号码作为被叫号 码的路由配置为指向所述服务提供商内部为用户服务的分支机构, 并将该路 由存储在主被叫路由表中;  The route in which the subscriber number is used as the calling number and the service provider's unified access number as the called number is configured to point to a branch office serving the user inside the service provider, and the route is stored in the calling and called routing table. Medium
接收到用户发送的上行消息后, 将所述用户发送的上行消息的主叫号码 和被叫号码与所述主被叫路由表中存储的路由进行匹配; 以及  After receiving the uplink message sent by the user, matching the calling number and the called number of the uplink message sent by the user with the route stored in the calling and called routing table;
若匹配成功, 将所述用户发送的上行消息发送到所述服务提供商内部为 该用户服务的分支机构。  If the matching is successful, the uplink message sent by the user is sent to a branch office serving the user inside the service provider.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
预先将所述服务提供商的所述统一接入号码作为被叫号码的路由配置为 指向所述服务提供商总部, 并将该路由存储在被叫路由表中; 以及  Pre-configuring the unified access number of the service provider as a route of the called number to point to the service provider headquarters, and storing the route in the called routing table;
当将所述用户发送的上行消息的主叫号码和被叫号码与所述主被叫路由 表中的存储的路由匹配不成功时, 将所述上行消息的被叫号码与所述被叫路 由表中存储的路由进行匹配, 如果匹配成功, 则将用户发送的上行消息发送 到所述服务提供商总部。  When the calling number and the called number of the uplink message sent by the user are not successfully matched with the stored route in the primary called routing table, the called number of the uplink message and the called route are routed. The routes stored in the table are matched. If the matching is successful, the uplink message sent by the user is sent to the service provider headquarters.
上述方法还可具有以下特点: 当所述上行消息的被叫号码与所述被叫路 由表中存储的路由匹配不成功时, 终止消息发送流程。  The above method may also have the following features: When the called number of the uplink message matches the route stored in the called routing table, the message sending process is terminated.
上述方法还可具有以下特点: 所述将所述用户发送的上行消息的主叫号 码和被叫号码与所述主被叫路由表中存储的路由进行匹配的步骤包括: 釆用 最长匹配算法对所述用户发送的上行消息的主叫号码和被叫号码与所述主被 叫路由表中存储的路由进行匹配。  The foregoing method may further have the following features: the step of matching the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table includes: using a longest matching algorithm The calling number and the called number of the uplink message sent by the user are matched with the route stored in the calling and called routing table.
上述方法还可具有以下特点: 所述将用户发送的上行消息的被叫号码与 所述被叫路由表中存储的路由进行匹配的步骤包括: 釆用最长匹配算法对所 述用户发送的上行消息的被叫号码与所述被叫路由表中存储的路由进行匹 配。 The foregoing method may further have the following features: the step of matching the called number of the uplink message sent by the user with the route stored in the called routing table includes: using the longest matching algorithm The called number of the uplink message sent by the user is matched with the route stored in the called routing table.
本发明还提供了一种实现消息类业务路由的装置, 包括: 配置管理模块、 消息接收模块、 主被叫路由模块和消息发送模块, 其中,  The present invention also provides an apparatus for implementing a message type service routing, including: a configuration management module, a message receiving module, a calling and called routing module, and a message sending module, where
所述配置管理模块设置为将用户号码作为主叫号码和服务提供商的统一 接入号码作为被叫号码的路由配置为指向所述服务提供商内部为该用户服务 的分支机构, 将该路由存储在主被叫路由表中;  The configuration management module is configured to configure a route with the subscriber number as the calling number and the unified access number of the service provider as the called number to point to a branch office serving the user within the service provider, and store the route. In the primary and called routing tables;
所述消息接收模块设置为接收用户发送的上行消息, 并将所述用户发送 的上行消息交给包括所述主被叫路由模块的路由模块;  The message receiving module is configured to receive an uplink message sent by the user, and deliver the uplink message sent by the user to a routing module that includes the calling and called routing module;
所述主被叫路由模块设置为将所述用户发送的上行消息的主叫号码和被 叫号码与所述主被叫路由表中存储的路由进行匹配; 所述消息发送模块设置为若所述主被叫路由模块匹配成功, 将用户发送 的上行消息发送到该匹配成功的路由指向的服务提供商内部为该用户服务的 分支机构。  The calling and routing module is configured to match the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table; the message sending module is configured to be The primary and secondary routing modules are successfully matched, and the uplink message sent by the user is sent to the branch office serving the user within the service provider pointed to by the successful matching route.
上述装置还可具有以下特点: 所述配置管理模块还设置为预先将所述服 务提供商的所述统一接入号码作为被叫号码的路由配置为指向所述服务提供 商总部, 并将该路由存储在被叫路由表中;  The device may also have the following features: The configuration management module is further configured to pre-configure the unified access number of the service provider as a route of the called number to point to the service provider headquarters, and route the route Stored in the called routing table;
所述装置还包括:  The device also includes:
被叫路由模块, 其设置为当所述主被叫路由模块匹配不成功时, 将所述 用户发送的上行消息的被叫号码与所述被叫路由表中存储的路由进行匹配; 其中, 所述消息发送模块还设置为将所述用户发送的上行消息发送到所 述被叫路由模块匹配成功的路由指向的服务提供商总部。  The called routing module is configured to match the called number of the uplink message sent by the user with the route stored in the called routing table when the matching of the calling and called routing modules is unsuccessful; The message sending module is further configured to send the uplink message sent by the user to the service provider headquarters pointed to by the route that the called routing module matches successfully.
上述装置还可具有以下特点: 所述被叫路由模块还设置为: 当所述主被 叫路由模块和被叫路由模块均匹配不成功时, 通知所述消息发送模块发送路 由失败的应答信息。  The device may also have the following features: The called routing module is further configured to: when the primary called routing module and the called routing module are unsuccessful, notify the message sending module to send the response information of the routing failure.
本发明提供的一种实现消息类业务路由的方法及其装置, 能够使企业使 用统一的接入号码就能实现其内部的各个分支机构分别与其用户进行单独消 息交互, 并且不需要各个分支机构单独再申请新的接入号, 节省企业额外开 发的成本。 不仅如此, 更重要的是对于用户来说, 该公司统一使用相同的接 入号, 可以保持大企业的良好形象。 附图概述 The invention provides a method and device for implementing message-based service routing, which enables an enterprise to perform separate message interactions with its users by using a unified access number, and does not require separate branches. Apply for a new access number, saving the company an extra opening The cost of sending. Not only that, but more importantly, for the user, the company uses the same access number uniformly, which can maintain a good image of a large enterprise. BRIEF abstract
图 1是现有企业通用的接入客户的组网示意图;  FIG. 1 is a schematic diagram of networking of access clients commonly used by existing enterprises;
图 2是根据本发明实施例的实现消息类业务路由的方法的流程图; 图 3是根据本发明实施例的实现消息类业务路由的装置的示意图; 图 4为根据本发明实施例的实现消息类业务路由的方法的业务示意图。 本发明的较佳实施方式  2 is a flowchart of a method for implementing message type service routing according to an embodiment of the present invention; FIG. 3 is a schematic diagram of an apparatus for implementing message type service routing according to an embodiment of the present invention; FIG. 4 is an implementation message according to an embodiment of the present invention. A business schematic diagram of a method of class service routing. Preferred embodiment of the invention
基于大型公司的多个分支机构需要分别为其用户的需求服务, 本发明提 供一种利用主叫号码和被叫号码来实现消息类业务路由的方法, 使整个公司 可以使用统一规范的接入号, 各个分支机构可以方便地分别为自己的用户提 供服务。  A plurality of branch offices of a large company need to separately serve the needs of their users. The present invention provides a method for implementing message type service routing by using a calling number and a called number, so that the entire company can use the unified standard access number. Each branch office can conveniently provide services for its own users.
下面结合附图及实施例对本发明的技术方案进行更详细的说明。  The technical solution of the present invention will be described in more detail below with reference to the accompanying drawings and embodiments.
图 2是根据本发明实施例的实现消息类业务路由的方法的流程图。 如图 2所示, 本发明实施例的实现消息类业务路由的方法包括:  2 is a flow chart of a method for implementing message type service routing according to an embodiment of the present invention. As shown in FIG. 2, the method for implementing message type service routing in the embodiment of the present invention includes:
步骤 S201 : 预先将用户号码为主叫号码和服务提供商的统一接入号码作 为被叫号码的路由配置为指向该服务提供商内部为该用户服务的分支机构, 并将该路由存储在主被叫路由表中; 另外, 预先配置的服务提供商的统一接 入号码作为被叫号码的路由指向服务提供商总部, 并将该路由存储在被叫路 由表中。  Step S201: The route of the calling number of the user number and the unified access number of the service provider as the called number is configured in advance to point to a branch office serving the user inside the service provider, and the route is stored in the main In the routing table; in addition, the pre-configured service provider's unified access number is used as the route of the called number to the service provider headquarters, and the route is stored in the called routing table.
在本实施例中, 保存两种路由表, 即主被叫路由表和被叫路由表。  In this embodiment, two routing tables, that is, a primary called routing table and a called routing table are stored.
步骤 S202: 接收用户发送的上行消息后, 将用户发送的上行消息的主叫 号码和被叫号码与所述主被叫路由表中存储的路由进行匹配;  Step S202: After receiving the uplink message sent by the user, matching the calling number and the called number of the uplink message sent by the user with the route stored in the primary and called routing tables;
该上行消息的主叫号码和被叫号码分别是该用户的号码和服务提供商的 统一接入号码。 在本实施例中, 作为被叫的服务提供商的内部的各个分支机构都釆用该 服务提供商的统一的接入号码, 所以即使该服务提供商内部的某个分支机构 是专门用于与某个用户进行消息交互, 在用户发送上行消息时, 被叫号码也 仍然釆用该服务提供商的统一接入号码。 The calling number and the called number of the uplink message are the number of the user and the unified access number of the service provider, respectively. In this embodiment, each branch office as the called service provider uses the unified access number of the service provider, so even if a branch office inside the service provider is dedicated to A user performs message interaction. When the user sends an uplink message, the called number also uses the unified access number of the service provider.
在主被叫路由表中, 查询与用户发送的上行消息的主叫号码和被叫号码 均匹配的路由, 如果匹配成功, 则执行步骤 S203; 如果匹配不成功, 则执行 步骤 S204。  In the primary and secondary routing table, the route matching the calling number and the called number of the uplink message sent by the user is queried. If the matching is successful, step S203 is performed; if the matching is unsuccessful, step S204 is performed.
其中, 该步骤中匹配不成功的情况可以包括主叫号码匹配不成功或被叫 号码匹配不成功, 或者主叫号码和被叫号码二者匹配均不成功。  The unsuccessful matching in the step may include that the calling number matching is unsuccessful or the called number matching is unsuccessful, or both the calling number and the called number are unsuccessful.
匹配过程中可以釆用最长匹配算法对用户发送的上行消息的主叫号码和 被叫号码与主被叫路由表的中的路由进行匹配。 例如, 主被叫路由表中有三 条路由: 第一条路由的主叫号码为 023 , 被叫号码为 10655023; 第二条路由 的主叫号码为 0236666 , 被叫号码为 10655023 ; 第三条路由的主叫号码为 0236666 , 被叫号码为 106550231234。 如果上行消息的主叫号码为 02366661234 , 被叫号码为 106550231234 , 则匹配第三条路由, 如果上行消 息的主叫号码为 02366661234, 被叫号码为 106550235678, 则匹配第二条路 由; 如果上行消息的主叫号码为 02312345678, 被叫号码为 106550231234, 则匹配第一条路由。  In the matching process, the longest matching algorithm can be used to match the calling number and the called number of the uplink message sent by the user with the route in the primary and secondary routing tables. For example, there are three routes in the primary and secondary routing tables: the calling number of the first route is 023, the called number is 10655023; the calling number of the second route is 0236666, and the called number is 10655023; the third route The calling number is 0236666 and the called number is 106550231234. If the calling number of the upstream message is 02366661234 and the called number is 106550231234, the third route is matched. If the calling number of the upstream message is 02366661234 and the called number is 106550235678, the second route is matched; The calling number is 02312345678, and the called number is 106550231234, which matches the first route.
在主被叫路由表中的匹配过程中釆用最长匹配算法, 允许配置存在包含 关系的路由, 使相关路由模块在查找路由时显得更加灵活。 例如, 主被叫路 由表中有这样两条路由存在包含关系, 第一条路由的主叫号码为 023 , 被叫 号码为 10655023 , 第二条路由的主叫号码为 0234, 被叫号码为 10655023 , 第一条路由的主叫号码 023 (重庆整个地区)包含了 0234 (重庆某几个区县), 这样可以实现大地区中有特殊需要的小地区的用户单独由特定的服务提供商 提供服务。  The longest matching algorithm is used in the matching process in the primary and secondary routing tables. It is allowed to configure the routing with the relationship, so that the related routing module becomes more flexible when searching for routes. For example, in the primary and called routing tables, there are two routes containing the relationship. The calling number of the first route is 023, the called number is 10655023, the calling number of the second route is 0234, and the called number is 10655023. The calling number 023 of the first route (the entire area of Chongqing) contains 0234 (a few districts and counties in Chongqing), so that users in small areas with special needs in large areas can be served by specific service providers. .
步骤 S203: 将用户发送的上行消息发送到步骤 S202中与主被叫路由表 中的匹配成功的路由指向的服务提供商内部为该用户服务的分支机构;结束。  Step S203: Send the uplink message sent by the user to the branch office serving the user inside the service provider pointed to by the route with successful matching in the main called routing table in step S202;
步骤 S204: 当步骤 S202中的匹配不成功时, 将该用户发送的上行消息 的被叫号码与被叫路由表中存储的路由进行匹配, 如果匹配成功, 则执行步 骤 S205 , 如果匹配不成功, 则执行步骤 S206。 Step S204: When the matching in step S202 is unsuccessful, the called number of the uplink message sent by the user is matched with the route stored in the called routing table, and if the matching is successful, the step is executed. Step S205, if the matching is unsuccessful, step S206 is performed.
在本实施例中,通过步骤 S202首先查询在主被叫路由表中是否有与该上 行消息的主叫号码和被叫号码均匹配的路由, 如果有, 则由于该主被叫路由 表中预先存储着指向服务提供内部提供服务的分支机构的路由, 所以如果步 骤 S202匹配成功,则可以通过该路由将用户发送的上行消息发送到服务提供 商内部为该用户提供服务的分支机构。如果步骤 S202匹配不成功, 则将该用 户发送的上行消息的被叫号码与被叫路由表中的路由进行匹配。  In this embodiment, by step S202, it is first queried whether there is a route matching the calling number and the called number of the uplink message in the primary and secondary routing tables, and if yes, because the primary and the called routing table are pre- The route to the branch providing the service provided by the service is stored, so if the matching succeeds in step S202, the uplink message sent by the user can be sent to the branch office serving the user inside the service provider through the route. If the matching in step S202 is unsuccessful, the called number of the uplink message sent by the user is matched with the route in the called routing table.
匹配过程中可以釆用最长匹配算法对用户发送的上行消息的被叫号码与 被叫路由表中的路由进行匹配。 例如, 被叫路由表中有两条路由, 第一条路 由的被叫号码为 10655023 , 第二条路由的被叫号码为 106550231234。 如果上 行消息的被叫号码为 106550231234, 则匹配第二条路由, 如果上行消息的被 叫号码为 106550235678, 则匹配第一条路由。  In the matching process, the longest matching algorithm can be used to match the called number of the uplink message sent by the user with the route in the called routing table. For example, there are two routes in the called routing table. The called number of the first route is 10655023, and the called number of the second route is 106550231234. If the called number of the upstream message is 106550231234, the second route is matched. If the called number of the uplink message is 106550235678, the first route is matched.
在被叫路由表中的匹配过程中釆用最长匹配算法, 允许配置存在包含关 系的路由, 使相关路由模块在查找路由时显得更加灵活。 例如, 被叫路由表 中有这样两条路由存在包含关系, 第一条路由的被叫号码为 10655023 , 第二 条路由的被叫号码为 1065502351 , 第一条路由的主叫号码 10655023 (某个 SP的基本接入号) 包含了 1065502351 (该 SP提供的一种特定业务, 例如借 用其它平台提供服务给其用户), 这样可以 SP的特定业务发送给提供该特定 业务的提供商平台。  The longest matching algorithm is used in the matching process in the called routing table, which allows the configuration to have a route containing the relationship, which makes the related routing module more flexible when searching for routes. For example, there are two routes in the called routing table that contain the relationship. The called number of the first route is 10655023, the called number of the second route is 1065502351, and the calling number of the first route is 10655023. The basic access number of the SP) includes 1065502351 (a specific service provided by the SP, such as borrowing other platforms to provide services to its users), so that the specific service of the SP can be sent to the provider platform that provides the specific service.
步骤 S205: 当步骤 S204中匹配成功时, 将用户发送的上行消息发送到 步骤 S204中匹配成功的路由指向的服务提供商的总部; 结束。  Step S205: When the matching succeeds in step S204, the uplink message sent by the user is sent to the headquarters of the service provider pointed to by the route with successful matching in step S204;
其中, 由于被叫路由表中预先存储着服务提供商的统一接入号码作为被 叫号码且指向该服务提供商总部的路由, 所以当步骤 S204中匹配成功后, 可 以根据该匹配成功的路由将用户发送的上行消息发送到该服务提供商总部。  The route in the called routing table pre-stores the service provider's unified access number as the called number and points to the service provider's headquarters. After the matching succeeds in step S204, the route may be successfully matched according to the matching. The uplink message sent by the user is sent to the service provider headquarters.
步骤 S206: 当步骤 204中匹配不成功时, 终止消息发送流程, 并且可以 发送包含错误码为路由失败的应答消息至短信中心。  Step S206: When the matching in step 204 is unsuccessful, the message sending process is terminated, and a response message containing the error code as a routing failure may be sent to the short message center.
当步骤 S204中匹配不成功时,意味着在主被叫路由表中以及被叫路由表 两个路由表中均没有能够与该用户发送的上行消息相匹配的路由, 则可以终 止发送流程。 When the matching in step S204 is unsuccessful, it means that there is no route matching the uplink message sent by the user in the routing table of the called party and the routing table of the called routing table, and the terminal may be terminated. Stop the sending process.
图 3是根据本发明实施例的实现消息类业务路由的装置的示意图。 如图 3所示, 本发明实施例的实现消息类业务路由的装置 30包括: 配置管理模块 301、 消息接收模块 302、 主被叫路由模块 303、 被叫路由模块 304、 和消息 发送模块 305 , 其中,  FIG. 3 is a schematic diagram of an apparatus for implementing message type service routing according to an embodiment of the present invention. As shown in FIG. 3, the device 30 for implementing message-type service routing in the embodiment of the present invention includes: a configuration management module 301, a message receiving module 302, a calling and called routing module 303, a called routing module 304, and a message sending module 305. among them,
配置管理模块设置为将用户号码作为主叫号码和服务提供商 (下文也称 为 M公司)的统一接入号码作为被叫号码的路由配置为指向所述服务提供商 内部为该用户服务的分支机构, 将该路由存储在主被叫路由表中。 在配置管 理模块中配置主叫和被叫号码路由具体为:如果主叫号码为 A地用户号码段、 被叫号码为 M公司的接入号, 则将消息类业务发送给 A地分支机构; 如果主 叫号码为 D地用户号码段、被叫号码为 M公司的接入号, 则将消息类业务发 送给 D地分支机构。以此类推,为所有的分支机构配置主叫和被叫号码路由。 在配置管理模块中还保留被叫号码为 M公司的接入号到 M公司总部的路由, 即配置管理模块还设置为预先将服务提供商的统一接入号码作为被叫号码的 路由配置为指向所述服务提供商总部, 将该路由存储在被叫路由表中。  The configuration management module is configured to configure the user number as the calling number and the unified access number of the service provider (hereinafter also referred to as M company) as the route of the called number as a branch pointing to the service provider for the user. The organization stores the route in the primary and secondary routing tables. The configuration of the calling and called number routes in the configuration management module is specifically: if the calling number is the user number segment of the A, and the called number is the access number of the M company, the message type service is sent to the branch office of the A; If the calling number is the user number segment of D and the called number is the access number of company M, the message type service is sent to the branch office of D. By analogy, the calling and called number routes are configured for all branches. The configuration management module also keeps the route whose called number is the access number of company M to the headquarters of the company M. That is, the configuration management module is further configured to configure the route of the service provider's unified access number as the called number in advance. The service provider headquarters stores the route in the called routing table.
消息接收模块设置为负责接收从外部网元发送来的消息, 并将消息交给 相关路由模块查找路由, 例如, 接收用户发送的上行消息, 并将所述用户发 送的上行消息交给相关的路由模块, 消息接收模块收到用户上行消息后, 把 该消息首先交给主被叫路由模块查找路由。  The message receiving module is configured to receive the message sent from the external network element, and hand the message to the relevant routing module to search for the route, for example, receiving the uplink message sent by the user, and handing the uplink message sent by the user to the relevant route. After receiving the user uplink message, the message receiving module first hands the message to the calling and called routing module to find a route.
主被叫路由模块设置为将所述用户发送的上行消息的主叫号码和被叫号 码与所述主被叫路由表中存储的路由进行匹配。 主被叫路由模块在主被叫路 由表中查询主叫号码是否匹配, 如果匹配则看被叫号码是否也匹配, 如果被 叫号码也匹配则路由成功, 则告知上述消息发送模块; 如果主被叫路由模块 没有匹配到主叫号码, 或者主叫号码匹配后没有匹配到被叫号码, 则把上行 消息交给上述被叫路由模块继续查找路由。  The calling and called routing module is configured to match the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table. The calling and called routing module queries whether the calling number matches in the calling and called routing table. If the matching, the called number also matches. If the called number also matches, the routing is successful, and the message sending module is notified; If the routing module does not match the calling number, or the calling number does not match the called number, the uplink message is forwarded to the called routing module to continue searching for the route.
在主被叫路由表中的匹配过程中釆用最长匹配算法, 这样允许配置管理 模块配置存在包含关系的路由,使相关路由模块在查找路由时显得更加灵活。  The longest matching algorithm is used in the matching process in the calling and called routing tables. This allows the configuration management module to configure routes with inclusive relationships, making the related routing modules more flexible when searching for routes.
消息发送模块设置为根据匹配的路由把消息发送给对应的网元。 当所述 主被叫路由模块匹配成功时, 消息发送模块将用户发送的上行消息发送到该 匹配成功的路由指向的服务提供商内部的为该用户服务的分支机构。 The message sending module is configured to send a message to the corresponding network element according to the matched route. When the matching of the calling and called routing modules is successful, the message sending module sends an uplink message sent by the user to the A branch that serves the user within the service provider that the successful route points to.
当所述主被叫路由模块匹配不成功时, 被叫路由模块将所述用户发送的 上行消息的被叫号码与所述被叫路由表中存储的路由进行匹配。 被叫路由模 块在被叫路由表中查询被叫号码是否匹配, 如果匹配, 则路由成功, 并告知 消息发送模块。 消息发送模块根据该业务路由发送消息给对应的服务提供商 接入点 (可能是没有分支机构的地域用户发消息到企业的总部, 也有可能是 其他普通服务提供商的上行消息) 。 如果被叫路由模块在被叫路由表中也没 有匹配到记录, 则最终路由失败, 消息发送模块会根据需要发送错误应答或 者失败的状态报告给发送该消息的网元。  When the matching of the calling and called routing modules is unsuccessful, the called routing module matches the called number of the uplink message sent by the user with the route stored in the called routing table. The called routing module queries whether the called number matches in the called routing table. If it matches, the routing succeeds and the message sending module is notified. The message sending module sends a message according to the service route to the corresponding service provider access point (maybe a geographical user without a branch office sends a message to the headquarters of the enterprise, and may also be an uplink message of other common service providers). If the called routing module does not match the record in the called routing table, the final route fails. The message sending module sends an error response or a failed status report to the network element that sent the message according to the need.
在被叫路由表中的匹配过程中釆用最长匹配算法, 这样允许配置管理模 块配置存在包含关系的路由, 使相关路由模块在查找路由时显得更加灵活。  The longest matching algorithm is used in the matching process in the called routing table. This allows the configuration management module to configure the routing containing the relationship, making the related routing module more flexible when searching for routes.
下面以短信业务为例说明根据本发明实施例的实现消息类业务路由的方 法的应用示例。 图 4为才艮据本发明实施例的实现消息类业务路由的方法的业 务示意图。 如图 4所示, M公司 A地分支机构负责为 A地用户提供服务, M 公司 D地分支机构负责为 D地用户提供服务。 其他地域的用户由 M公司总 部提供服务。 对于下行消息, 各地分支机构直接向其用户下行消息, 流程和 图 1 中的流程一样。 但是各地用户上行消息时则需要使用到本发明实施例的 实现消息类业务路由的方法。  The following uses an SMS service as an example to illustrate an application example of a method for implementing message-type service routing according to an embodiment of the present invention. FIG. 4 is a schematic diagram of a service method for implementing message type service routing according to an embodiment of the present invention. As shown in Figure 4, the branch office of Company A is responsible for providing services to users in Area A, and the branch office of Company D is responsible for providing services to users of Area D. Users in other regions are served by the headquarters of M Company. For the downlink message, the branch offices directly send messages to their users, and the process is the same as the process in Figure 1. However, the method for implementing message type service routing in the embodiment of the present invention is required when the local user uplinks the message.
首先, 预先通过配置管理模块配置上行消息的业务路由:  First, configure the service route of the uplink message through the configuration management module in advance:
al、 配置主叫和被叫号码路由 R1 , 主叫号码 0236666到被叫号码 10001 的路由指向 M公司 A地分支机构第一服务提供商 SP1 ;  Al, configure the calling and called number routing R1, the calling number 0236666 to the called number 10001 route to the M company A branch office first service provider SP1;
a2、 配置被叫号码路由 R2, 被叫号码 10001指向 M公司总部第二服务 提供商 SP2;  A2, configure the called number route R2, the called number 10001 points to the second service provider SP2 of the M company headquarters;
a3、 配置主叫和被叫号码路由 R3 , 主叫号码 0239999到被叫号码 10001 的路由指向 M公司 D地分支机构服务提供商第三服务提供商 SP3。  A3. Configure the calling and called number routing R3, and the calling number 0239999 to the called number 10001 is directed to the third service provider SP3 of the branch office service provider of the M company.
若 A地用户 02366661234发送消息到被叫号码 10001 ,短信中心 12收到 该消息后发送给短信网关 11 ; 短信网关 11 的消息接收模块收到消息后, 首 先将消息交给主被叫路由模块;主被叫路由模块在主被叫路由表中查询路由, 路由成功并返回路由 Rl , 然后主被叫路由模块把消息交给消息发送模块; 消 息发送模块根据路由 R1将消息发送给 M公司 A地分支机构服务提供商 SP1 处理。 If the A user 02366661234 sends a message to the called number 10001, the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first hands the message to the calling and called routing module; The calling and called routing module queries the route in the primary and secondary routing tables. The route succeeds and returns the route R1, and then the primary called routing module forwards the message to the message sending module; the message sending module sends the message to the branch office service provider SP1 of the company A according to the route R1 for processing.
若 B地用户 02377771234发送消息到被叫号码 10001 ,短信中心 12收到 该消息后发送给短信网关 11 ; 短信网关 11 的消息接收模块收到消息后, 首 先将消息交给主被叫路由模块,主被叫路由模块在主被叫路由表中查询路由; 主被叫路由模块路由失败后, 消息接收模块将消息交给被叫理由模块继续查 找路由; 被叫路由模块在被叫路由表中根据被叫号码查找路由, 路由成功并 返回路由 R2, 然后被叫路由模块把消息交给消息发送模块; 消息发送模块根 据路由 R2将消息发送给 M公司总部 SP2处理。  If the B user 02377771234 sends a message to the called number 10001, the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first delivers the message to the calling and called routing module. The calling and called routing module queries the routing in the primary and secondary routing tables. After the primary and secondary routing modules fail to route, the message receiving module forwards the message to the called party to continue searching for the route; the called routing module is based on the called routing table. The called number finds the route, the route succeeds and returns the route R2, and then the called routing module delivers the message to the message sending module; the message sending module sends the message to the M company headquarters SP2 for processing according to the route R2.
若 C地用户 02388881234发送消息到被叫号码 10002,短信中心 12收到 该消息后发送给短信网关 11 ; 短信网关 11 的消息接收模块收到消息后, 首 先将消息交给主被叫路由模块;主被叫路由模块在主被叫路由表中查询路由; 主被叫路由模块路由失败后, 消息接收模块把消息交给被叫理由模块继续查 找路由; 被叫路由模块在被叫路由表中根据被叫号码查找路由, 最终路由失 败, 则被叫路由模块终止该消息流程, 并通知消息发送模块发送错误码为路 由失败的应答消息给短信中心。  If the C user 02388981234 sends a message to the called number 10002, the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first hands the message to the calling and called routing module; The calling and called routing module queries the routing in the calling and called routing tables. After the primary and secondary routing modules fail to route, the message receiving module sends the message to the called party to continue searching for the route; the called routing module is based on the called routing table. If the called number finds the route, if the final route fails, the called routing module terminates the message flow, and notifies the message sending module to send a response message whose error code is a route failure to the short message center.
若 D地用户 02399991234发送消息到被叫号码 10001 ,短信中心 12收到 该消息后发送给短信网关 11 ; 短信网关 11 的消息接收模块收到消息后, 首 先将消息交给主被叫路由模块,主被叫路由模块在主被叫路由表中查询路由, 路由成功并返回路由 R3 , 然后主被叫路由模块把消息交给消息发送模块; 消 息发送模块根据路由 R3将消息发送给 M公司 D地分支机构服务提供商 SP3 处理。  If the D user 02399991234 sends a message to the called number 10001, the short message center 12 receives the message and sends it to the short message gateway 11; after receiving the message, the message receiving module of the short message gateway 11 first delivers the message to the calling and called routing module. The calling and called routing module queries the route in the calling and called routing table, the route is successful and returns the route R3, and then the calling and routing module sends the message to the message sending module; the message sending module sends the message to the M company D according to the route R3. Branch service provider SP3 processing.
本发明提供的实现消息类业务路由的方法和装置, 可以支持跨地域型集 团公司各个分支机构使用相同的业务接入号, 分别为各自所属的用户提供服 务。  The method and device for implementing message type service routing provided by the present invention can support the use of the same service access number by each branch of the regional group company, and provide services for the users to which they belong.
应当理解的是, 上述仅是对典型的实施例的进行详细描述, 不能因此认 为是对本发明专利保护范围的限制, 本发明的专利保护范围应以所附权利要 求为准。 工业实用性 It is to be understood that the foregoing is a description of the exemplary embodiments of the invention, and is not to be construed as limiting the scope of the invention. Industrial applicability
本发明提供的一种实现消息类业务路由的方法及其装置, 能够使企业使 用统一的接入号码实现其内部的各个分支机构分别与其用户进行单独消息交 互, 并且不需要各个分支机构单独再申请新的接入号, 节省企业额外开发的 成本。  The invention provides a method and device for implementing message-based service routing, which enables an enterprise to use a unified access number to implement separate message interaction between its internal branches and its users, and does not require individual branches to apply separately. The new access number saves the cost of additional development for the enterprise.

Claims

权 利 要 求 书 Claim
1、 一种实现消息类业务路由的方法, 所述方法包括:  A method for implementing a message type service routing, the method comprising:
预先将用户号码作为主叫号码和服务提供商的统一接入号码作为被叫号 码的路由配置为指向所述服务提供商内部为用户服务的分支机构, 并将该路 由存储在主被叫路由表中;  The route in which the subscriber number is used as the calling number and the service provider's unified access number as the called number is configured to point to a branch office serving the user inside the service provider, and the route is stored in the calling and called routing table. Medium
接收到用户发送的上行消息后, 将所述用户发送的上行消息的主叫号码 和被叫号码与所述主被叫路由表中存储的路由进行匹配; 以及  After receiving the uplink message sent by the user, matching the calling number and the called number of the uplink message sent by the user with the route stored in the calling and called routing table;
若匹配成功, 将所述用户发送的上行消息发送到所述服务提供商内部为 该用户服务的分支机构。  If the matching is successful, the uplink message sent by the user is sent to a branch office serving the user inside the service provider.
2、 如权利要求 1所述的方法, 还包括:  2. The method of claim 1 further comprising:
预先将所述服务提供商的所述统一接入号码作为被叫号码的路由配置为 指向所述服务提供商总部, 并将该路由存储在被叫路由表中; 以及  Pre-configuring the unified access number of the service provider as a route of the called number to point to the service provider headquarters, and storing the route in the called routing table;
当将所述用户发送的上行消息的主叫号码和被叫号码与所述主被叫路由 表中的存储的路由匹配不成功时, 将所述上行消息的被叫号码与所述被叫路 由表中存储的路由进行匹配, 如果匹配成功, 则将用户发送的上行消息发送 到所述服务提供商总部。  When the calling number and the called number of the uplink message sent by the user are not successfully matched with the stored route in the primary called routing table, the called number of the uplink message and the called route are routed. The routes stored in the table are matched. If the matching is successful, the uplink message sent by the user is sent to the service provider headquarters.
3、 如权利要求 2所述的方法, 还包括: 当所述上行消息的被叫号码与所 述被叫路由表中存储的路由匹配不成功时, 终止消息发送流程。  3. The method of claim 2, further comprising: terminating the message sending process when the called number of the uplink message matches the route stored in the called routing table is unsuccessful.
4、 如权利要求 1至 3中任意一项所述的方法, 其中, 所述将所述用户发 送的上行消息的主叫号码和被叫号码与所述主被叫路由表中存储的路由进行 匹配的步骤包括:  The method according to any one of claims 1 to 3, wherein the calling number and the called number of the uplink message sent by the user are compared with the route stored in the calling and called routing table. The matching steps include:
釆用最长匹配算法对所述用户发送的上行消息的主叫号码和被叫号码与 所述主被叫路由表中存储的路由进行匹配。  The calling number and the called number of the uplink message sent by the user by the longest matching algorithm are matched with the route stored in the calling and called routing table.
5、 如权利要求 2或 3所述的方法, 其中, 将用户发送的上行消息的被叫 号码与所述被叫路由表中存储的路由进行匹配的步骤包括:  The method according to claim 2 or 3, wherein the step of matching the called number of the uplink message sent by the user with the route stored in the called routing table comprises:
釆用最长匹配算法对所述用户发送的上行消息的被叫号码与所述被叫路 由表中存储的路由进行匹配。 The called number of the uplink message sent by the user with the longest matching algorithm is matched with the route stored in the called routing table.
6、 一种实现消息类业务路由的装置, 包括: 配置管理模块、 消息接收模 块、 主被叫路由模块和消息发送模块, 其中, A device for implementing a message type service routing, comprising: a configuration management module, a message receiving module, a calling and called routing module, and a message sending module, where
所述配置管理模块设置为将用户号码作为主叫号码和服务提供商的统一 接入号码作为被叫号码的路由配置为指向所述服务提供商内部为用户服务的 分支机构, 将该路由存储在主被叫路由表中;  The configuration management module is configured to configure a route with the subscriber number as the calling number and the service provider's unified access number as the called number as a branch office that serves the user inside the service provider, and stores the route in the The main called routing table;
所述消息接收模块设置为接收用户发送的上行消息, 并将所述用户发送 的上行消息交给包括所述主被叫路由模块的路由模块;  The message receiving module is configured to receive an uplink message sent by the user, and deliver the uplink message sent by the user to a routing module that includes the calling and called routing module;
所述主被叫路由模块设置为将所述用户发送的上行消息的主叫号码和被 叫号码与所述主被叫路由表中存储的路由进行匹配; 所述消息发送模块设置为若所述主被叫路由模块匹配成功, 将用户发送 的上行消息发送到该匹配成功的路由指向的服务提供商内部为该用户服务的 分支机构。  The calling and routing module is configured to match the calling number and the called number of the uplink message sent by the user with the route stored in the primary called routing table; the message sending module is configured to be The primary and secondary routing modules are successfully matched, and the uplink message sent by the user is sent to the branch office serving the user within the service provider pointed to by the successful matching route.
7、 如权利要求 6所述的装置, 其中, 所述配置管理模块还设置为预先将 所述服务提供商的所述统一接入号码作为被叫号码的路由配置为指向所述服 务提供商总部, 并将该路由存储在被叫路由表中;  The device according to claim 6, wherein the configuration management module is further configured to pre-configure the unified access number of the service provider as a route of the called number to point to the service provider headquarters And storing the route in the called routing table;
所述装置还包括:  The device also includes:
被叫路由模块, 其设置为当所述主被叫路由模块匹配不成功时, 将所述 用户发送的上行消息的被叫号码与所述被叫路由表中存储的路由进行匹配; 其中, 所述消息发送模块还设置为将所述用户发送的上行消息发送到所 述被叫路由模块匹配成功的路由指向的服务提供商总部。  The called routing module is configured to match the called number of the uplink message sent by the user with the route stored in the called routing table when the matching of the calling and called routing modules is unsuccessful; The message sending module is further configured to send the uplink message sent by the user to the service provider headquarters pointed to by the route that the called routing module matches successfully.
8、 如权利要求 7所述的装置, 其中, 所述被叫路由模块还设置为: 当所 述主被叫路由模块和被叫路由模块均匹配不成功时, 通知所述消息发送模块 发送路由失败的应答信息。  8. The apparatus according to claim 7, wherein the called routing module is further configured to: notify the message sending module to send a route when the matching of the calling and called routing modules and the called routing module are unsuccessful Failure response message.
PCT/CN2010/073436 2009-07-30 2010-06-01 Method for implementing message-type traffic routing and device thereof WO2011012018A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
IN321DEN2012 IN2012DN00321A (en) 2009-07-30 2010-06-01
BR112012001781A BR112012001781A2 (en) 2009-07-30 2010-06-01 "method for implementing message type and device traffic routing"

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910161035.2 2009-07-30
CN200910161035.2A CN101990175B (en) 2009-07-30 2009-07-30 Method and device for realizing message service route

Publications (1)

Publication Number Publication Date
WO2011012018A1 true WO2011012018A1 (en) 2011-02-03

Family

ID=43528745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/073436 WO2011012018A1 (en) 2009-07-30 2010-06-01 Method for implementing message-type traffic routing and device thereof

Country Status (4)

Country Link
CN (1) CN101990175B (en)
BR (1) BR112012001781A2 (en)
IN (1) IN2012DN00321A (en)
WO (1) WO2011012018A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132042A (en) * 2019-12-26 2020-05-08 中消云(北京)物联网科技研究院有限公司 Short message concurrent control method and device, storage medium and processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627855A (en) * 2003-12-10 2005-06-15 华为技术有限公司 Route method of mobile long distance tandem center, and system
CN1756387A (en) * 2004-09-29 2006-04-05 华为技术有限公司 Method for realizing mobile data service unification route in communication system
CN1878349A (en) * 2006-07-03 2006-12-13 华为技术有限公司 Rate treating device, short message charge-deducting system and method
US20080080488A1 (en) * 2006-09-28 2008-04-03 Tekelec Methods, systems, and computer program products for enabling short code dialing in an ENUM environment
US7412051B1 (en) * 2000-05-25 2008-08-12 Cisco Technology, Inc. System and method for routing calls across call managers using a route plan

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE521583C2 (en) * 1999-04-23 2003-11-18 Ericsson Telefon Ab L M Procedure and apparatus for calling services in a telecommunications terminal
CN1180598C (en) * 2002-12-05 2004-12-15 得实信息科技(北京)有限公司 'One number and several phone set' service realizing method for telephone subscriber in fixed radio telecommunication network
CN101494619B (en) * 2008-12-30 2011-10-26 腾讯科技(深圳)有限公司 Communication method and device for instant communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412051B1 (en) * 2000-05-25 2008-08-12 Cisco Technology, Inc. System and method for routing calls across call managers using a route plan
CN1627855A (en) * 2003-12-10 2005-06-15 华为技术有限公司 Route method of mobile long distance tandem center, and system
CN1756387A (en) * 2004-09-29 2006-04-05 华为技术有限公司 Method for realizing mobile data service unification route in communication system
CN1878349A (en) * 2006-07-03 2006-12-13 华为技术有限公司 Rate treating device, short message charge-deducting system and method
US20080080488A1 (en) * 2006-09-28 2008-04-03 Tekelec Methods, systems, and computer program products for enabling short code dialing in an ENUM environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132042A (en) * 2019-12-26 2020-05-08 中消云(北京)物联网科技研究院有限公司 Short message concurrent control method and device, storage medium and processor
CN111132042B (en) * 2019-12-26 2022-05-31 中消云(北京)物联网科技研究院有限公司 Short message concurrent control method and device, storage medium and processor

Also Published As

Publication number Publication date
BR112012001781A2 (en) 2017-05-09
IN2012DN00321A (en) 2015-05-08
CN101990175B (en) 2013-01-16
CN101990175A (en) 2011-03-23

Similar Documents

Publication Publication Date Title
US7937067B2 (en) System and method for an emergency location information service (E-LIS)
CN101635772B (en) A kind of method of managing calling information and system thereof
TW200401553A (en) System for facilitating personal communications with multiple wireless transmit/receive units
EP2671355B1 (en) Method and system for unified management of communication events
CN101682618A (en) A node and method to provide and keep real-time up-to-date data in a distributed hash table
CN101262522A (en) System and method for call initiation using availability information
WO2014028512A2 (en) Messaging in a hosted private branch exchange
JP5895307B2 (en) Short message system
JP3819232B2 (en) Call transfer communication system
WO2011127717A1 (en) Method and system for data synchronization for internet work mobile number portability application
WO2011012018A1 (en) Method for implementing message-type traffic routing and device thereof
TWI430648B (en) A correspondent-party-dependent real-time reconfigurable telephone numbering system and the communication method utilizing the system
CN100438509C (en) Method for realizing unified information intelligent route and system thereof
WO2012000259A1 (en) Method and system for realizing short message number portability
JP4880387B2 (en) Communication device, management device, and program
US20060002376A1 (en) Telephone exchange and network telephone system
EP2193672B1 (en) Distributed fault-tolerant voice message system for independent mobile telephony networks
TWI241834B (en) Method of sending a paging announcement over a roaming telephone network
JP4897053B2 (en) Method for terminating a call in a distributed system
US8750336B1 (en) Distributed multimedia system for IP networks
US8811585B1 (en) Communication routing plans that are based on communication device contact lists
JP2006295735A (en) Autonomous distributed information communication system and autonomous distributed information terminal
JP2004088336A (en) Communication system
JP2013232808A (en) Data center device, control method and program
JP5360108B2 (en) Telephone number processing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10803851

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 321/DELNP/2012

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10803851

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112012001781

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112012001781

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20120126