CN1269340C - Implementation of dialing device - Google Patents
Implementation of dialing device Download PDFInfo
- Publication number
- CN1269340C CN1269340C CN 03106593 CN03106593A CN1269340C CN 1269340 C CN1269340 C CN 1269340C CN 03106593 CN03106593 CN 03106593 CN 03106593 A CN03106593 A CN 03106593A CN 1269340 C CN1269340 C CN 1269340C
- Authority
- CN
- China
- Prior art keywords
- user
- management module
- number conversion
- index
- dialing mode
- 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.)
- Expired - Lifetime
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信网络中的拨号器技术,特别涉及一种拨号器的实现方法。The invention relates to the dialer technology in the communication network, in particular to a method for realizing the dialer.
背景技术Background technique
拨号器是指在用户拨出的号码前,能自动加拨特殊号码的设备。目前市场上的拨号器主要是以硬件拨号器为主,与用户电话终端直接相连。A dialer is a device that can automatically dial a special number before the number dialed by the user. Dialers currently on the market are mainly hardware dialers, which are directly connected to user telephone terminals.
现有的拨号器属于用户终端设备,存在难于控制和管理的缺点;该类拨号器还需要使用相应的硬件实体,因而成本较高;而目前拨号器加拨号码主要是IP电话特服号码,应用也比较单一。Existing dialers belong to user terminal equipment, which is difficult to control and manage; this type of dialer also needs to use corresponding hardware entities, so the cost is relatively high; and the current dialer dialing numbers are mainly IP phone special service numbers. The application is also relatively simple.
发明内容Contents of the invention
本发明的目的在于提供简单易用、成本较低的一种拨号器的实现方法。The purpose of the present invention is to provide a dialer implementation method that is easy to use and low in cost.
本发明包括步骤:The present invention comprises steps:
A、网关管理模块接收到主叫用户的呼叫事件时查询数据库,以判断该主叫用户是否已配置为与拨号器方式关联;A. When the gateway management module receives the call event of the calling user, it queries the database to determine whether the calling user has been configured to be associated with the dialer mode;
B、如果判断结果为是,则进行步骤C;如果判断为否,则网关管理模块将该用户的拨出号码直接发送至交换机;B. If the judgment result is yes, then proceed to step C; if the judgment is no, the gateway management module directly sends the user's dialed-out number to the exchange;
C、网关管理模块根据主叫用户的拨出号码查询数据库,得到号码变换方案;C. The gateway management module queries the database according to the outgoing number of the calling user, and obtains the number conversion scheme;
D、网关管理模块根据号码变换方案对所述拨出号码进行处理;D. The gateway management module processes the dialed-out number according to the number conversion scheme;
E、网关将处理后的号码发送至交换机。E. The gateway sends the processed number to the exchange.
根据上述方法:According to the method above:
所述数据库采用用户标识与拨号方式对应关系表、拨号方式表和号码变换表相互关联来提供号码变换方案。The database adopts the relationship table between the user identification and the dialing mode, the dialing mode table and the number conversion table to provide a number conversion scheme.
所述用户标识与拨号方式对应关系表包括字段:用户标识、拨号方式索引;所述拨号方式表包括字段:拨号方式索引、号码和号码变换表索引;所述号码变换表包括字段:号码变换索引、号码变换类型、变换起始位置、号码变换长度、地址性质指示和新号码。The user identification and dialing mode correspondence table includes fields: user identification, dialing mode index; the dialing mode table includes fields: dialing mode index, number and number conversion table index; the number conversion table includes fields: number conversion index , number conversion type, conversion start position, number conversion length, address property indication and new number.
步骤C包括步骤:Step C includes the steps of:
C1、管理模块根据用户标识和当前号码的位置顺序号,从用户标识与拨号方式关联表中得到拨号方式索引;C1, the management module obtains the dialing mode index from the user identification and dialing mode association table according to the position sequence number of the user identification and the current number;
C2、管理模块根据拨号方式索引和所述当前号码从拨号方式表中得到号码变换表索引;C2. The management module obtains the number conversion table index from the dialing mode table according to the dialing mode index and the current number;
C3、管理模块根据号码变换表索引从号码变换表中得到相关字段规定的号码变换方案。C3. The management module obtains the number conversion scheme specified in the relevant field from the number conversion table according to the index of the number conversion table.
所述的处理至少包括不变换号、删号、替换号、插号和改号操作中的一种操作。Said processing includes at least one operation of not changing numbers, deleting numbers, replacing numbers, inserting numbers and changing numbers.
本发明与现有拨号器相比,除了实现拨号器的基本功能外,还具有以下优点:Compared with the existing dialer, the present invention has the following advantages in addition to realizing the basic functions of the dialer:
1、基于软件的实现方式,利用现有网关设备即可,不需增加新的硬件设备,使用简单,成本低。1. Based on software, the existing gateway equipment can be used without adding new hardware equipment, which is easy to use and low in cost.
2、除满足一般的IP电话外,还可满足设备自环测试、对端局对号码有特殊的要求等需求,适用面广,可根据用户需要升级软件。2. In addition to meeting the needs of general IP phones, it can also meet the needs of equipment self-loop testing and the special requirements of the end office for numbers. It has a wide range of applications and can upgrade the software according to user needs.
3、对应用户拨号器的设置、管理均集中于网关设备上,利于运营商统一管理、控制。3. The settings and management of corresponding user dialers are all concentrated on the gateway device, which is beneficial to the unified management and control of operators.
附图说明Description of drawings
图1为本发明在边缘中继网关中使用的组网图;Fig. 1 is the networking diagram used in the edge relay gateway of the present invention;
图2为本发明网关中管理模块、数据库的关系示意图;Fig. 2 is a schematic diagram of the relationship between the management module and the database in the gateway of the present invention;
图3为本发明的流程图。Fig. 3 is a flowchart of the present invention.
具体实施方式Detailed ways
参见图1:网络业务系统由本地交换机、边缘中继网关、综合接入设备(IAD)、接入媒体网关(AMG)等设备组成。其中,本地交换机负责实现呼叫业务以及对资源控制;边缘中继网关实现信令转换和媒体流转换功能;综合接入设备和接入媒体网关实现连接窄带侧电话用户和宽带网络,实现IP接入。窄带侧电话用户通过用户线连接到各接入网关设备上,各接入网关设备和边缘中继网关通过五类线或网线连接到IP城域网。边缘中继网关通过E1/T1中继线与本地交换机相连。本地交换机通过边缘中继网关控制接入网关设备所带电话用户的呼叫,实现语音业务。其中,边缘中继网关和接入网关设备之间采用媒体网关控制协议(MGCP)、H.248协议、H.323协议或会话发起协议(SIP)通信;本地交换机和边缘中继网关采用V5信令协议、7号信令协议、1号信令或会话发起信令协议(SIP)通信。See Figure 1: The network service system consists of local switches, edge trunk gateways, integrated access devices (IAD), access media gateways (AMG) and other devices. Among them, the local switch is responsible for implementing call services and resource control; the edge relay gateway implements signaling conversion and media stream conversion functions; the integrated access device and access media gateway realize the connection between the narrowband side telephone users and the broadband network, and realize IP access . The telephone users on the narrowband side are connected to each access gateway device through a subscriber line, and each access gateway device and edge relay gateway are connected to the IP MAN through a category-five line or a network cable. The edge trunk gateway is connected to the local exchange through E1/T1 trunk lines. The local exchange controls the call of the telephone user carried by the access gateway device through the edge trunk gateway to realize the voice service. Among them, the media gateway control protocol (MGCP), H.248 protocol, H.323 protocol or session initiation protocol (SIP) is used for communication between the edge trunk gateway and the access gateway device; the local switch and the edge trunk gateway use V5 communication Signaling Protocol, SS7, SS1 or Session Initiation Signaling Protocol (SIP) communication.
对于本发明,如果在边缘中继网关上实现软件拨号其功能,则当用户号码由接入网关设备送到边缘中继网关后,边缘中继网关根据用户号码查询数据库,得到对应的匹配方案后,输出变换后的号码到交换机,从而完成软件拨号器的功能。同样,如果是在接入网关设备上实现软件拨号器功能,则由接入网关设备根据用户号码查询数据库,得到对应的匹配方案后,输出变换后的号码到边缘中继网关,由边缘中继网关将号码透传至交换机。For the present invention, if the function of software dialing is implemented on the edge relay gateway, then after the user number is sent to the edge relay gateway by the access gateway device, the edge relay gateway queries the database according to the user number and obtains the corresponding matching scheme , and output the converted number to the exchange, thus completing the function of the software dialer. Similarly, if the software dialer function is implemented on the access gateway device, the access gateway device queries the database according to the user number, and after obtaining the corresponding matching scheme, outputs the converted number to the edge relay gateway, and the edge relay The gateway transparently transmits the number to the switch.
参阅图2,本实施例是在边缘中继网关设备上采用软件实现拨号器,在该网关上预先建立有数据库,该数据库用于存储用户配置信息,该配置信息主要包括号码变换策略,即如何根据用户的配置实现号码的变换。Referring to Fig. 2, in this embodiment, a dialer is realized by using software on the edge relay gateway device. A database is pre-established on the gateway, and the database is used to store user configuration information. The configuration information mainly includes the number change strategy, that is, how to Realize the transformation of the number according to the configuration of the user.
在网关上设有一个管理模块,用于接收用户号码,查询数据库完成用户号码变换,最终将号码上报交换机。数据库提供相应接口供管理模块调用查询。There is a management module on the gateway, which is used to receive the user number, query the database to complete the conversion of the user number, and finally report the number to the exchange. The database provides a corresponding interface for the management module to call and query.
在使用前需要用户输入以下配置信息:Users are required to enter the following configuration information before use:
用户标识:用于区分不同的用户。User ID: used to distinguish different users.
变换起始位置:从第几位开始进行号码变换,最小位数为1。Transformation start position: From which digit to start the number transformation, the minimum digit is 1.
号码变换索引:不同号码变换方式的编号,供其他表引用。Number conversion index: the number of different number conversion methods, for reference by other tables.
号码变换类型:表示号码变换的方法,如删号,插号等。Number conversion type: Indicates the method of number conversion, such as deleting numbers, inserting numbers, etc.
号码变换长度:需要改变的号码长度。Number change length: the length of the number that needs to be changed.
地址性质指示:指明是否改变号码的地址性质。Address property indication: indicate whether to change the address property of the number.
新号码:改变后的号码,该字段只对“改号”、“插号”和“替换”等变换类型有意义。New number: the changed number, this field is only meaningful for transformation types such as "number change", "insert number" and "replacement".
上述的用户信息存于表1、表2和表3中,表1为用户标识与拨号方式关联表,表2为拨号方式表,表3为拨号方式表。The above-mentioned user information is stored in Table 1, Table 2 and Table 3. Table 1 is the association table between user identification and dialing mode, Table 2 is the dialing mode table, and Table 3 is the dialing mode table.
表1-用户标识与拨号方式关联表
表2-拨号方式表
表3-号码变换表
当用户输入上述配置信息后,信息分别保存在数据库“用户标识与拨号方式关联表”、“拨号方式表”和“号码变换表”中。用户可通过电话或WEB方式或营业厅业务申请输入信息,同时也可对其进行修改、删除等操作。After the user enters the above configuration information, the information is stored in the database "user identification and dialing mode association table", "dialing mode table" and "number conversion table" respectively. Users can enter information by telephone or WEB or apply for business in the business hall, and can also modify and delete it at the same time.
例1:有一个用户,标识为100,要求满足如下需求:Example 1: There is a user, identified as 100, who is required to meet the following requirements:
拨号首位为0,插号17931The first digit of the dial is 0, and the insertion number is 17931
拨号首位为″#″,去掉″#″,不插号The first digit of the dial is "#", remove "#", and do not insert the number
其他情况不插号。In other cases do not insert a number.
将用户需求通过命令行参数配置后保留在表中,如表1、表2和表3中所示。After user requirements are configured through command line parameters, they are reserved in the table, as shown in Table 1, Table 2, and Table 3.
本发明的主要流程参阅图3:The main process of the present invention is referring to Fig. 3:
步骤10:边缘中继网关的管理模块接收到主叫用户的呼叫事件时查询数据库,以判断该用户是否是已配置为与拨号器方式关联。Step 10: When the management module of the edge trunk gateway receives the call event of the calling user, it queries the database to determine whether the user has been configured to be associated with the dialer.
在主叫用户一开始发起呼叫的时候,调用数据库函数,根据用户标识查询用户标识与拨号方式关连表(未示出),确定主叫用户是否已经配置了和拨号器方式关连。When the calling user initially initiates a call, the database function is invoked to query the user ID-dialing mode association table (not shown) according to the user ID to determine whether the calling user has been configured to be associated with the dialer mode.
步骤20:根据查询结果判断该主叫用户是否是已配置为与拨号器方式关联,如果判断结果为是,则进行步骤30;如果判断为否,则进行步骤60。Step 20: According to the query result, it is judged whether the calling user has been configured to be associated with the dialer mode, if the judgment result is yes, go to step 30; if the judgment is no, go to step 60.
步骤30:管理模块根据主叫用户的拨出号码查询数据库,得到号码变换方案。Step 30: The management module queries the database according to the dialed-out number of the calling user, and obtains a number conversion plan.
管理模块调用数据库提供的函数,并输入用户标识、号码、以及这是第几位号码。首先根据用户标识和当前号码的位置顺序号,从用户标识与拨号方式关联表中得到拨号方式索引;然后根据拨号方式索引和所述当前号码从拨号方式表中得到号码变换表索引;最后根据号码变换表索引从号码变换表中得到相关字段规定的号码变换方案。The management module invokes the function provided by the database, and inputs the user ID, number, and which number is the number. First, according to the user identification and the position sequence number of the current number, the dialing mode index is obtained from the user identification and dialing mode association table; then according to the dialing mode index and the current number, the number conversion table index is obtained from the dialing mode table; finally according to the number The conversion table index obtains the number conversion scheme specified by the relevant fields from the number conversion table.
步骤40:管理模块根据号码变换方案对所述拨出号码进行处理。Step 40: The management module processes the dialed number according to the number conversion scheme.
步骤50:边缘中继网关管理模块将号码发送至交换机,结束拨号。Step 50: The edge trunk gateway management module sends the number to the switch, and ends the dialing.
步骤60:网关管理模块将该用户的拨出号码直接发送至交换机,结束拨号。Step 60: The gateway management module directly sends the dial-out number of the user to the exchange, and ends the dialing.
管理模块在查询数据库时,如果用户没有配置,则数据库返回0,管理模块不进行拨号器处理。如果用户已经配置,则数据库返回“变换起始位置”的最大值,例如2,则管理模块将前2个号码都依次进行查询变换方案,根据号码选择匹配的变换方案。其中,每个号码的号码变换方案都执行步骤30至步骤50,直到处理完成规定位数的号码。When the management module queries the database, if the user does not configure it, the database returns 0, and the management module does not process the dialer. If the user has already configured it, the database returns the maximum value of "transformation start position", for example 2, then the management module will query the transformation schemes for the first two numbers in turn, and select the matching transformation scheme according to the number. Wherein, the number conversion scheme of each number executes step 30 to step 50 until the number with a specified number of digits is processed.
如果号码没有匹配到变换方案,则将该号码不做任何变化,直接返回。If the number does not match the conversion scheme, the number will be returned without any change.
以例1为例:Take Example 1 as an example:
收到用户输入的第一个号码“0”后,首先查询数据库,数据库根据用户标识,查到用户有号码变换设置,于是查找表1,根据该用户所有的配置项查询后返回1,即要求管理模块输入用户的第一个号码。管理模块输入用户标识=100、号码=“0”、是第“1”位号码。数据库根据输入,查找表1,得到拨号方式索引为1,以此为索引再查找表2,得到有两条记录,根据号码为“0”,确认号码变换表索引为3,由此查找到表3,根据索引3查找到对应纪录是从起始位插号,插入号码是“17931”,则返回“17931”给管理模块。收到后,管理模块将新号码发送到交换机,完成软件拨号器功能。After receiving the first number "0" entered by the user, first query the database. According to the user ID, the database finds that the user has number conversion settings, then looks up Table 1, and returns 1 after querying all the configuration items of the user, that is, the request The management module enters the user's first number. The management module inputs the user ID=100, the number=“0”, which is the “1” digit number. According to the input, the database looks up Table 1, and the index of the dialing method is 1, and then looks up Table 2 with this index, and there are two records. According to the number "0", confirm that the index of the number conversion table is 3, and thus find the table 3. According to the index 3, find that the corresponding record is inserted from the start digit, and the inserted number is "17931", then return "17931" to the management module. After receiving it, the management module sends the new number to the switchboard to complete the function of the software dialer.
由于网关设备由各电信运营商统一管理,因此基于网关的软件拨号器在实现现有拨号器功能的同时,可以保证运营商对用户拨号器集中管理和控制,另外软件的实现方案简单易用,与硬件相比成本较低,除应用于IP电话拨号外,还可满足其它拨号需求。Since the gateway equipment is managed by each telecom operator, the software dialer based on the gateway can ensure the centralized management and control of the user's dialer by the operator while realizing the function of the existing dialer. In addition, the software implementation scheme is simple and easy to use. Compared with hardware, the cost is lower, and it can meet other dialing requirements besides being applied to IP phone dialing.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 03106593 CN1269340C (en) | 2003-03-07 | 2003-03-07 | Implementation of dialing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 03106593 CN1269340C (en) | 2003-03-07 | 2003-03-07 | Implementation of dialing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1527573A CN1527573A (en) | 2004-09-08 |
| CN1269340C true CN1269340C (en) | 2006-08-09 |
Family
ID=34282782
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 03106593 Expired - Lifetime CN1269340C (en) | 2003-03-07 | 2003-03-07 | Implementation of dialing device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1269340C (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101039348B (en) * | 2006-03-17 | 2010-05-12 | 中国电信股份有限公司 | Method for distinguishing and processing two kinds of dialing fault of soft switching users |
| US20170147710A1 (en) * | 2015-11-20 | 2017-05-25 | Google Inc. | Multi-format search results in dialer application |
-
2003
- 2003-03-07 CN CN 03106593 patent/CN1269340C/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| CN1527573A (en) | 2004-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1855901A (en) | IP telephone apparatus and searching method of IP telephone apparatus | |
| CN1124725C (en) | Telephone exchange system and method based on internet protocol | |
| CN1298152C (en) | Method of handset dialing automatic additional dialing IP | |
| US20050190743A1 (en) | Telecommunications gateway | |
| CN1104818C (en) | Process for making connections and accounting for connections in telecommunication system | |
| CN1855923A (en) | Communication based on interactive network | |
| CN101102366A (en) | A method for displaying the calling number of one number service | |
| CN1269340C (en) | Implementation of dialing device | |
| US6668052B2 (en) | Method and system for signaling in a telecommunication system | |
| CN102045463A (en) | Method and device for analyzing calls | |
| CN1848876A (en) | Method and system for realizing dialing directly of cross-domain user exchanger extension | |
| US7653046B2 (en) | Method and apparatus for providing multiple simultaneous VOIP call sessions for a single directory number | |
| CN101068230A (en) | Method for realizing user exchanger in media gateway | |
| CN1406043A (en) | Method for network system of telecommunication operation trader to provide calling transfer for users of other telecommunication network | |
| CN1275448C (en) | A method for controlling telephone call via computer | |
| CN1167238C (en) | Method for realizing data telephone with number resource by data communication network | |
| CN1571446A (en) | Method for implementing one-number dual-machine dual-ringing | |
| CN1309238C (en) | Method for providing virtual office equipment number service of group by virtual office equipment apparatus | |
| CN1099184C (en) | Method for implementing a communication link via a public switching station | |
| CN1812444A (en) | A group switchboard and realizing method and communicating method thereof | |
| WO2006102834A1 (en) | A call connection method | |
| CN100349471C (en) | Main call number analysis method for program controlled exchanger | |
| CN1266915C (en) | Method for initiating telephone call via E-mail | |
| CN1306779C (en) | Medium flow processing method in IP network | |
| CN104125357B (en) | Cross-domain exchange network-building method 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 | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CX01 | Expiry of patent term |
Granted publication date: 20060809 |
|
| CX01 | Expiry of patent term |