CN102333167B - VoIP (Voice over Internet Protocol) switching method and device - Google Patents
VoIP (Voice over Internet Protocol) switching method and device Download PDFInfo
- Publication number
- CN102333167B CN102333167B CN201110302778.4A CN201110302778A CN102333167B CN 102333167 B CN102333167 B CN 102333167B CN 201110302778 A CN201110302778 A CN 201110302778A CN 102333167 B CN102333167 B CN 102333167B
- Authority
- CN
- China
- Prior art keywords
- voip protocol
- voip
- protocol
- entity
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
本发明实施例公开了一种VoIP协议切换方法及装置,用于根据配置客户端请求,实现不同VoIP协议之间的无缝快速切换。本发明实施例方法包括:配置管理逻辑实体接收VoIP协议切换命令,获取VoIP协议切换命令中的VoIP协议的信息,根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同,若否,则向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送启动所获取的VoIP协议的命令。
The embodiment of the invention discloses a VoIP protocol switching method and device, which are used to realize seamless and fast switching between different VoIP protocols according to the configuration client request. The method in the embodiment of the present invention includes: the configuration management logic entity receives the VoIP protocol switching command, obtains the VoIP protocol information in the VoIP protocol switching command, and judges the corresponding VoIP protocol in the obtained VoIP protocol information according to the obtained VoIP protocol information. Whether the protocol is the same as the current VoIP protocol, if not, send a request to the VoIP protocol application entity to stop the current VoIP protocol, and when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol, then send a request to the VoIP protocol corresponding to the obtained VoIP protocol The application entity sends a command to start the acquired VoIP protocol.
Description
技术领域 technical field
本发明涉及通信领域,尤其涉及一种VoIP协议切换方法及装置。 The invention relates to the communication field, in particular to a VoIP protocol switching method and device. the
背景技术 Background technique
VoIP(Voice over Internet Protocol)是指将模拟的声音讯号(Voice)经过压缩与封包之后,以网协(IP,Internet Protocol)数据封包(Data Packet)的形式在网络的环境进行语音讯号的传输。目前,VoIP呼叫控制协议主要有:H.323协议、会话发起协议(SIP,Session Initiation Protocol)、媒体网关控制协议H.248/MGCP(MGCP,Media Gateway Control Protocol)。 VoIP (Voice over Internet Protocol) refers to the transmission of voice signals in the network environment in the form of Internet Protocol (IP, Internet Protocol) data packets (Data Packet) after the analog voice signal (Voice) is compressed and packaged. At present, VoIP call control protocols mainly include: H.323 protocol, Session Initiation Protocol (SIP, Session Initiation Protocol), and Media Gateway Control Protocol H.248/MGCP (MGCP, Media Gateway Control Protocol). the
以上VoIP协议由不同的标准化组织制定,在数据的封装,命令命名域和执行域,协议实体之间的关系上千差万别,采用不同VoIP协议终端设备之间不能直接互联互通。 The above VoIP protocols are formulated by different standardization organizations. In terms of data encapsulation, command naming domain and execution domain, the relationship between protocol entities varies greatly, and terminal devices using different VoIP protocols cannot be directly interconnected. the
发明内容 Contents of the invention
本发明实施例提供了一种VoIP协议切换方法及装置,用以根据配置客户端请求,实现不同VoIP协议之间的切换。 The embodiment of the present invention provides a VoIP protocol switching method and device, which are used to realize the switching between different VoIP protocols according to the configuration client request. the
本发明实施例提供的VoIP协议切换方法,包括:配置管理逻辑实体接收VoIP协议切换命令,获取所述VoIP协议切换命令中的VoIP协议的信息;根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同;若否,则向VoIP协议应用实体发送停止当前VoIP协议的请求;当监测到所述VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送启动所获取的VoIP协议的命令。 The VoIP protocol switching method provided by the embodiment of the present invention includes: configuring the management logic entity to receive the VoIP protocol switching command, and obtaining the VoIP protocol information in the VoIP protocol switching command; judging the obtained VoIP protocol information according to the obtained VoIP protocol information. Whether the corresponding VoIP protocol in the information of the VoIP protocol is the same as the current VoIP protocol; if not, send a request to stop the current VoIP protocol to the VoIP protocol application entity; when detecting that the VoIP protocol application entity has stopped the current VoIP protocol, then A command to start the acquired VoIP protocol is sent to the VoIP protocol application entity corresponding to the acquired VoIP protocol. the
本发明实施例提供的VoIP协议切换装置,包括:获取单元,用于接收VoIP协议切换命令,获取VoIP协议切换命令中的VoIP协议的信息;判断单元,用于根据根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同;发送单元,用于若判断 所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求,还用于当监测到所述VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送启动所获取的VoIP协议的命令。 The VoIP protocol switching device provided by the embodiment of the present invention includes: an acquisition unit, configured to receive a VoIP protocol switching command, and obtain the information of the VoIP protocol in the VoIP protocol switching command; , judging whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the current VoIP protocol; the sending unit is used to send a stop to the VoIP protocol application entity if judging that the obtained VoIP protocol is not the same as the current VoIP protocol The current VoIP protocol request is also used to send a command to start the acquired VoIP protocol to the VoIP protocol application entity corresponding to the acquired VoIP protocol when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol. the
从以上技术方案可以看出,本发明实施例具有以下优点:配置管理逻辑实体接收VoIP协议切换命令,获取其中VoIP协议的信息,根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同,若否,则向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到VoIP协议应用实体已停止当前VoIP协议,向VoIP协议应用实体发送启动所获取的VoIP协议的命令,从而实现不同VoIP协议之间的无缝切换,使得采用此种技术的VoIP协议终端设备能够快速连入下一代网络(NGN,Next Generation Network),和其他VoIP终端之间互联互通,提高工作效率。 As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages: the configuration management logic entity receives the VoIP protocol switching command, obtains the information of the VoIP protocol, and judges the information of the obtained VoIP protocol according to the obtained information of the VoIP protocol Whether the VoIP protocol corresponding to the current VoIP protocol is the same as the current VoIP protocol, if not, a request to stop the current VoIP protocol is sent to the VoIP protocol application entity, and when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol, it sends a start The command of the VoIP protocol obtained, so as to realize the seamless switching between different VoIP protocols, so that the VoIP protocol terminal equipment using this technology can quickly connect to the next generation network (NGN, Next Generation Network), and other VoIP terminals Interconnection and interoperability to improve work efficiency. the
附图说明 Description of drawings
图1为本发明实施例中的VoIP协议切换方法的一个实施例示意图; Fig. 1 is a schematic diagram of an embodiment of the VoIP protocol switching method in the embodiment of the present invention;
图2为本发明实施例中的VoIP协议切换方法的另一个实施例示意图; Fig. 2 is another embodiment schematic diagram of the VoIP protocol switching method in the embodiment of the present invention;
图3为本发明实施例中的VoIP协议切换方法中功能实体的结构示意图; Fig. 3 is the structural representation of functional entity in the VoIP protocol switching method in the embodiment of the present invention;
图4为本发明实施例中的VoIP协议切换装置的一个实施例示意图; Fig. 4 is a schematic diagram of an embodiment of the VoIP protocol switching device in the embodiment of the present invention;
图5为本发明实施例中的VoIP协议切换装置的另一个实施例示意图。 Fig. 5 is a schematic diagram of another embodiment of the VoIP protocol switching device in the embodiment of the present invention. the
具体实施方式 Detailed ways
本发明实施例提供了一种VoIP协议切换方法及装置,用于用以根据配置客户端请求,切换不同的VoIP协议,提高工作效率。 The embodiment of the present invention provides a VoIP protocol switching method and device, which are used to switch between different VoIP protocols according to a configuration client request, so as to improve work efficiency. the
请参阅图1,本发明实施例中的VoIP协议切换方法的一个实施例包括: Referring to Fig. 1, an embodiment of the VoIP protocol switching method in the embodiment of the present invention comprises:
101、配置管理逻辑实体接收VoIP协议切换命令,获取其中VoIP协议的信息; 101. The configuration management logic entity receives the VoIP protocol switching command, and obtains the information of the VoIP protocol;
本实施例中,通过控制客户端中的配置管理逻辑实体,配置存取实体,和多个VoIP协议应用实体,无缝的完成VoIP协议使用的切换。 In this embodiment, by controlling the configuration management logic entity, the configuration access entity, and multiple VoIP protocol application entities in the client, the switching of VoIP protocol use is seamlessly completed. the
系统上电后,对配置存取实体进行初始化,配置存取实体为非易失存取设备,例如闪存(FLASH)。初始化包括将非易失存取设备进行分区,具体可由引导加载程序BootLoad对FLASH分区,将专属配置区格式化,写入默认VoIP配置信息。 After the system is powered on, the configuration access entity is initialized, and the configuration access entity is a non-volatile access device, such as a flash memory (FLASH). Initialization includes partitioning the non-volatile access device. Specifically, the bootloader BootLoad can partition the FLASH, format the exclusive configuration area, and write the default VoIP configuration information. the
配置管理逻辑实体是VoIP终端系统中的组件,承担配置VoIP信息的解析、存取、应用,匹配不同配置客户的配置操作,监视VoIP协议应用实体的活动。 The configuration management logic entity is a component in the VoIP terminal system, which undertakes the analysis, access, and application of configuration VoIP information, matches the configuration operations of different configuration clients, and monitors the activities of VoIP protocol application entities. the
VoIP协议应用实体是VoIP终端系统中的最大部件,完成数字信号处理器(DSP,Digital Signal Processor)资源的调度,语音芯片的控制,VoIP控制协议栈衔接,补充业务实现,由于VoIP协议的复杂性,导致补充业务的实现上重构代价大,每种协议对应一个VoIP协议应用实体,通过配置管理逻辑实体来调度它。 The VoIP protocol application entity is the largest component in the VoIP terminal system. It completes the scheduling of digital signal processor (DSP, Digital Signal Processor) resources, the control of the voice chip, the connection of the VoIP control protocol stack, and the realization of supplementary services. Due to the complexity of the VoIP protocol , resulting in a high cost of reconfiguration in the implementation of supplementary services. Each protocol corresponds to a VoIP protocol application entity, which is scheduled by configuring the management logic entity. the
配置管理逻辑实体接收VoIP协议切换命令,获取此切换命令中的VoIP协议的信息。 The configuration management logic entity receives the VoIP protocol switching command, and obtains the VoIP protocol information in the switching command. the
102、根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同; 102. According to the obtained VoIP protocol information, determine whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the current VoIP protocol;
配置管理逻辑实体将步骤101中所获取的VoIP协议,根据获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议,与当前运行中的VoIP协议是否相同。 The configuration management logic entity determines whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the currently running VoIP protocol based on the VoIP protocol acquired in step 101 . the
103、若所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求; 103. If the acquired VoIP protocol is different from the current VoIP protocol, send a request to the VoIP protocol application entity to stop the current VoIP protocol;
若步骤102中判断的结果是所获取的VoIP协议与当前的VoIP协议不相同,则向当前正在工作的VoIP协议应用实体,发送停止当前VoIP协议的请求。 If the result of judgment in step 102 is that the obtained VoIP protocol is different from the current VoIP protocol, a request to stop the current VoIP protocol is sent to the currently working VoIP protocol application entity. the
若判断的结果是所获取的VoIP协议与当前的VoIP协议相同,则不需切换,继续执行该VoIP协议。 If the result of the judgment is that the obtained VoIP protocol is the same as the current VoIP protocol, the VoIP protocol continues to be executed without switching. the
104、当监测到VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送所获取的VoIP协议的启动命令。 104. When it is detected that the VoIP protocol application entity has stopped the current VoIP protocol, send the acquired VoIP protocol start command to the VoIP protocol application entity corresponding to the acquired VoIP protocol. the
配置管理逻辑实体监测到VoIP协议应用实体已停止当前VoIP协议,则 向步骤101中获取的VoIP协议对应的VoIP协议应用实体发送启动命令,命令该VoIP协议应用实体启动所获取的VoIP协议。 The configuration management logic entity detects that the VoIP protocol application entity has stopped the current VoIP protocol, and then sends a start command to the VoIP protocol application entity corresponding to the VoIP protocol obtained in step 101, ordering the VoIP protocol application entity to start the obtained VoIP protocol. the
本发明实施例中,配置管理逻辑实体接收VoIP协议切换命令,获取其中VoIP协议的信息,判断所获取的VoIP协议与当前的VoIP协议是否相同,若否,则向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到VoIP协议应用实体已停止当前VoIP协议,向VoIP协议应用实体发送启动所获取的VoIP协议的命令,从而完成不同VoIP协议之间的切换,使得采用此种技术的VoIP协议终端设备能够快速连入下一代网络(NGN,Next GenerationNetwork),和其他VoIP终端之间互联互通。 In the embodiment of the present invention, the configuration management logic entity receives the VoIP protocol switching command, obtains the information of the VoIP protocol therein, and judges whether the obtained VoIP protocol is the same as the current VoIP protocol, and if not, sends the VoIP protocol application entity to stop the current VoIP protocol. Protocol request, when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol, it sends a command to the VoIP protocol application entity to start the acquired VoIP protocol, thereby completing the switch between different VoIP protocols, making the VoIP protocol using this technology Terminal equipment can quickly connect to the next generation network (NGN, Next Generation Network) and communicate with other VoIP terminals. the
为便于理解,下面以另一实施例详细说明本发明实施例中的VoIP协议切换方法,请参阅图2,本发明实施例中的VoIP协议切换方法的另一实施例包括: For ease of understanding, the VoIP protocol switching method in the embodiment of the present invention will be described in detail below with another embodiment. Referring to FIG. 2, another embodiment of the VoIP protocol switching method in the embodiment of the present invention includes:
201、配置管理逻辑实体获取当前VoIP协议的信息; 201. The configuration management logic entity obtains the information of the current VoIP protocol;
配置管理逻辑实体获取配置存取实体中的VoIP协议信息,以获知当前VoIP协议的类型。 The configuration management logic entity obtains the VoIP protocol information in the configuration access entity to know the type of the current VoIP protocol. the
202、向当前VoIP协议对应的VoIP协议应用实体发送启动命令; 202. Send a start command to the VoIP protocol application entity corresponding to the current VoIP protocol;
配置管理逻辑实体向当前VoIP协议对应的VoIP协议应用实体发送启动命令,命令该VoIP协议应用实体启动。 The configuration management logic entity sends a start command to the VoIP protocol application entity corresponding to the current VoIP protocol, ordering the VoIP protocol application entity to start. the
203、当监测到VoIP协议应用实体发送的启动成功时,向VoIP协议应用实体发送对应的VoIP协议参数; 203. When it is detected that the VoIP protocol application entity is successfully started, send the corresponding VoIP protocol parameters to the VoIP protocol application entity;
当配置管理逻辑实体监测到VoIP协议应用实体发送的启动成功时,一般的,VoIP协议应用实体启动成功,开始运行时,向配置管理逻辑实体发送运行状态消息。而后,配置管理逻辑实体向VoIP协议应用实体发送对应的VoIP协议参数,配置VoIP协议应用实体对应协议的参数,将当前配置信息下发给VoIP协议应用实体后,VoIP终端才可在现网中运转。 When the configuration management logic entity detects that the start-up sent by the VoIP protocol application entity is successful, generally, the VoIP protocol application entity starts up successfully and starts running, and sends an operation status message to the configuration management logic entity. Then, the configuration management logic entity sends the corresponding VoIP protocol parameters to the VoIP protocol application entity, configures the parameters of the corresponding protocol of the VoIP protocol application entity, and sends the current configuration information to the VoIP protocol application entity before the VoIP terminal can operate in the live network . the
204、接收VoIP协议切换命令,获取其中VoIP协议的信息; 204. Receive a VoIP protocol switching command, and obtain the information of the VoIP protocol;
配置管理逻辑实体接收VoIP协议切换命令,获取此切换命令中的VoIP协议的信息。 The configuration management logic entity receives the VoIP protocol switching command, and obtains the VoIP protocol information in the switching command. the
205、根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中 对应的VoIP协议与当前的VoIP协议是否相同; 205. According to the obtained VoIP protocol information, determine whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the current VoIP protocol;
配置管理逻辑实体将所获取的VoIP协议的信息中对应的VoIP协议,与与当前系统中运行的VoIP协议进行对比,判断而二者是否相同。 The configuration management logic entity compares the corresponding VoIP protocol in the obtained VoIP protocol information with the VoIP protocol running in the current system, and judges whether the two are the same. the
206、若所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求; 206. If the acquired VoIP protocol is different from the current VoIP protocol, send a request to the VoIP protocol application entity to stop the current VoIP protocol;
若步骤205中判断的结果是所获取的VoIP协议与当前的VoIP协议不相同,则向当前正在工作的VoIP协议应用实体,发送停止当前VoIP协议的请求,让VoIP协议应用实体为停止运转做前期准备,如释放系统使用的内存,释放占用的DSP资源,停止目前正在进行的呼叫连接。 If the result judged in step 205 is that the obtained VoIP protocol is not the same as the current VoIP protocol, then to the currently working VoIP protocol application entity, send a request to stop the current VoIP protocol, so that the VoIP protocol application entity can do the early stage for stopping operation Preparations, such as releasing the memory used by the system, releasing the occupied DSP resources, and stopping the ongoing call connection. the
若判断的结果是所获取的VoIP协议与当前的VoIP协议相同,则不需切换,继续执行该VoIP协议。 If the result of the judgment is that the obtained VoIP protocol is the same as the current VoIP protocol, the VoIP protocol continues to be executed without switching. the
207、当监测到VoIP协议应用实体已停止当前VoIP协议,则向配置存取实体发送获取的VoIP协议的信息,向VoIP协议应用实体发送启动所获取的VoIP协议的命令。 207. When detecting that the VoIP protocol application entity has stopped the current VoIP protocol, send the obtained VoIP protocol information to the configuration access entity, and send a command to start the obtained VoIP protocol to the VoIP protocol application entity. the
当配置管理逻辑实体监测到VoIP协议应用实体已停止当前VoIP协议,则向配置存取实体发送获取的VoIP协议的信息,更新配置存储实体内的协议信息,之后向VoIP协议应用实体发送启动命令,命令该VoIP协议应用实体启动所获取的VoIP协议。 When the configuration management logic entity detects that the VoIP protocol application entity has stopped the current VoIP protocol, it sends the obtained VoIP protocol information to the configuration access entity, updates the protocol information in the configuration storage entity, and then sends a start command to the VoIP protocol application entity, Command the VoIP protocol application entity to start the acquired VoIP protocol. the
具体的,VoIP协议应用实体向配置管理逻辑实体反馈停止运行消息,配置管理逻辑实体则删除当前VoIP协议应用实体相关信息,并监控其完全退出运行状态。 Specifically, the VoIP protocol application entity feeds back a stop operation message to the configuration management logic entity, and the configuration management logic entity deletes the relevant information of the current VoIP protocol application entity and monitors its complete exit from operation status. the
配置管理逻辑实体监测到VoIP协议应用实体已停止当前VoIP协议,则向配置存取实体发送获取的VoIP协议的信息,更新配置存储实体内的VoIP协议的信息,使得系统重启也能保证切换后的VoIP协议应用实体运行。再根据该VoIP协议信息启动对应的VoIP协议应用实体,之后重复步骤202,使得VoIP协议应用实体循环执行不同VoIP协议。 The configuration management logic entity detects that the VoIP protocol application entity has stopped the current VoIP protocol, and then sends the obtained VoIP protocol information to the configuration access entity, and updates the VoIP protocol information in the configuration storage entity, so that the system can be restarted to ensure the switching. The VoIP protocol application entity runs. Then start the corresponding VoIP protocol application entity according to the VoIP protocol information, and then repeat step 202, so that the VoIP protocol application entity executes different VoIP protocols cyclically. the
本发明实施例中,配置管理逻辑实体获取当前VoIP协议的信息,向当前VoIP协议对应的VoIP协议应用实体发送启动命令,当监测到VoIP协议应用实体发送的启动成功时,向VoIP协议应用实体发送对应的VoIP协议参数, 使得VoIP协议应用实体在现网中运行,接收VoIP协议切换命令,获取其中VoIP协议的信息,若所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到VoIP协议应用实体已停止当前VoIP协议,则向配置存取实体发送获取的VoIP协议的信息,向VoIP协议应用实体发送启动所获取的VoIP协议的命令,实现从当前VoIP协议到所获取的新的VoIP协议的切换及执行过程。 In the embodiment of the present invention, the configuration management logic entity obtains the information of the current VoIP protocol, and sends a startup command to the VoIP protocol application entity corresponding to the current VoIP protocol. The corresponding VoIP protocol parameters enable the VoIP protocol application entity to run in the live network, receive the VoIP protocol switching command, and obtain the information of the VoIP protocol. If the obtained VoIP protocol is different from the current VoIP protocol, the VoIP protocol application entity Send a request to stop the current VoIP protocol. When the VoIP protocol application entity has stopped the current VoIP protocol, it will send the obtained VoIP protocol information to the configuration access entity, and send the VoIP protocol application entity to start the obtained VoIP protocol command. Realize the switching and execution process from the current VoIP protocol to the acquired new VoIP protocol. the
下面以一具体实例详细说明本发明实施例中的VoIP协议切换方法,请参阅图3,图3为前述各功能实体的结构示意图,各功能实体可以具体化: The VoIP protocol switching method in the embodiment of the present invention is described in detail below with a specific example, please refer to Figure 3, Figure 3 is a schematic structural diagram of the foregoing functional entities, and each functional entity can be embodied:
其中,配置存取实体一般采用闪存(FLASH ROM)301来实现; Among them, the configuration access entity is generally realized by flash memory (FLASH ROM) 301;
配置管理实体细化成配置管理逻辑(CFGMGR CORE LOGIC)模块302,进程控制逻辑(CFGMGR PROCESS)模块303,VoIP管理模块(VOICEMODULE)304,VoIP配置(PROVISION MODULE)模块305,网络数据上报模块(NWM MODULE)306; The configuration management entity is refined into configuration management logic (CFGMGR CORE LOGIC) module 302, process control logic (CFGMGR PROCESS) module 303, VoIP management module (VOICEMODULE) 304, VoIP configuration (PROVISION MODULE) module 305, network data reporting module (NWM MODULE )306;
VoIP协议实体细化成SIP VoIP应用进程(SIP VOICE APP)模块307,H238 VoIP应用进程(H238 VOICE APP)模块308,H323 VoIP应用进程(H323VOICE APP)模块309。 The VoIP protocol entity is refined into SIP VoIP application process (SIP VOICE APP) module 307, H238 VoIP application process (H238 VOICE APP) module 308, and H323 VoIP application process (H323VOICE APP) module 309. the
以上各模块的具体功能为: The specific functions of the above modules are:
闪存301:存在配置的主体,需要初始化才能使用,提供设备访问的接口; Flash memory 301: There is a configuration subject, which needs to be initialized before it can be used, and provides an interface for device access;
配置管理逻辑模块302:处理配置客户端的交互,如设置/获取配置,查询设备状态,协议栈切换等,管理配置实体的内部模块,建立内部模块通讯路由机制; Configuration management logic module 302: process the interaction of configuring the client, such as setting/obtaining configuration, querying device status, protocol stack switching, etc., manage the internal modules of the configuration entity, and establish an internal module communication routing mechanism;
进程控制逻辑模块303:控制进程周期,记录各进程从产生至结束的运行状态; Process control logic module 303: control the process cycle, record the running status of each process from generation to end;
VoIP管理模块304:管理SIP VoIP应用进程模块307,H238 VoIP应用进程模块308,H323 VoIP应用进程模块309,处理与此三个模块的交互,如VoIP启动/停止完毕,设备VoIP注册成功,VoIP异常退出; VoIP management module 304: manage SIP VoIP application process module 307, H238 VoIP application process module 308, H323 VoIP application process module 309, handle the interaction with these three modules, such as VoIP start/stop is completed, device VoIP registration is successful, VoIP is abnormal quit;
VoIP配置模块305:VoIP配置解析、分发、应用到管理SIP VoIP应用进程模块307,H238 VoIP应用进程模块308,H323 VoIP应用进程模块309; VoIP configuration module 305: VoIP configuration analysis, distribution, application to management SIP VoIP application process module 307, H238 VoIP application process module 308, H323 VoIP application process module 309;
网络数据上报模块306:提供VoIP必需的网络运行数据; Network data reporting module 306: providing necessary network operation data for VoIP;
SIP VoIP应用进程模块307,H238 VoIP应用进程模块308及H323 VoIP应用进程模块309:为承载各种协议栈业务的进程的实体。 SIP VoIP application process module 307, H238 VoIP application process module 308 and H323 VoIP application process module 309: entities that carry various protocol stack business processes. the
以上各模块参与到本发明实施例中的流程中来,则本发明实施例中的VoIP协议切换方法的一个实例包括:系统上电后,由BootLoad对闪存301进行分区,写入系统默认配置;配置管理逻辑模块302读取闪存301的系统默认配置信息中的VoIP初始配置信息,初始化整个管理逻辑模块302,准备运行VoIP应用实体。VoIP管理模块304根据读取的VoIP初始配置信息,判断其中的VoIP协议信息具体的类型,向进程控制逻辑模块303请求启动VoIP应用实体。进程控制逻辑模块303创建(fork)一个子进程,并划出一个空白的进程控制块,记录该子进程的进程标识号(PID,Process Identifier)、对应的进程名、以及运行状态,并监控该子进程,根据该子进程的退出情况进入不同处理流程,若异常退出则通知VoIP管理模块304重新启动,若正常退出系统则主动停止运行。 Above each module participates in the flow process in the embodiment of the present invention, then an example of the VoIP protocol switching method in the embodiment of the present invention comprises: after the system is powered on, the flash memory 301 is partitioned by BootLoad, and the system default configuration is written into; The configuration management logic module 302 reads the VoIP initial configuration information in the system default configuration information of the flash memory 301, initializes the entire management logic module 302, and prepares to run the VoIP application entity. The VoIP management module 304 judges the specific type of the VoIP protocol information according to the read VoIP initial configuration information, and requests the process control logic module 303 to start the VoIP application entity. The process control logic module 303 creates (fork) a child process, and draws a blank process control block, records the process identification number (PID, Process Identifier) of the child process, the corresponding process name, and the running state, and monitors the process The sub-process enters different processing flows according to the exit situation of the sub-process. If it exits abnormally, it will notify the VoIP management module 304 to restart, and if it exits the system normally, it will actively stop running. the
当VoIP配置模块305接收到VoIP启动成功消息,将VoIP的配置应用给SIP VoIP应用进程模块307,H238 VoIP应用进程模块308,H323 VoIP应用进程模块309中对应的VoIP协议应用进程。同时,网络数据上报模块306提供网络接口信息给该VoIP协议应用进程,此后,VoIP协议应用模块进入稳定运性状态。 When the VoIP configuration module 305 receives the VoIP startup success message, the configuration of VoIP is applied to the SIP VoIP application process module 307, the H238 VoIP application process module 308, and the corresponding VoIP protocol application process in the H323 VoIP application process module 309. At the same time, the network data reporting module 306 provides network interface information to the VoIP protocol application process, and then the VoIP protocol application module enters a stable operation state. the
当VoIP管理模块304接收到VoIP协议切换的命令后,判断该命令中的VoIP协议与当前运行的VoIP协议是否相同,如果不相同,VoIP管理模块304命令闪存301保存该命令中的VoIP协议信息,同时,发起停止当前VoIP协议运行的请求。若SIP VoIP应用进程模块307,H238 VoIP应用进程模块308,H323 VoIP应用进程模块309中对应的VoIP协议应用进程,由于资源不能释放而需要等待直到资源释放成功,VoIP管理模块304收到停止VoIP请求的确认,向进程控制逻辑模块303指示终止VoIP协议应用进程。进程控制逻辑模块303查找到对应的VoIP应用进程模块,发送终止信号给运行中的VoIP协议应用进程,待该VoIP协议应用进程正常退出后,再释放该对应的VoIP应用进程模块,并向VoIP管理模块304报告该VoIP协议应用进程已经销毁。 After VoIP management module 304 receives the command of VoIP protocol switching, judge whether the VoIP agreement in this order is identical with the VoIP agreement of current operation, if not identical, VoIP management module 304 commands flash memory 301 to save the VoIP protocol information in this order, At the same time, a request to stop the operation of the current VoIP protocol is initiated. If the SIP VoIP application process module 307, the H238 VoIP application process module 308, and the corresponding VoIP protocol application process in the H323 VoIP application process module 309 need to wait until the resource release is successful because resources cannot be released, the VoIP management module 304 receives the stop VoIP request confirmation, instructs the process control logic module 303 to terminate the VoIP protocol application process. The process control logic module 303 finds the corresponding VoIP application process module, sends a termination signal to the running VoIP protocol application process, and releases the corresponding VoIP application process module after the VoIP protocol application process exits normally, and reports to the VoIP management Module 304 reports that the VoIP protocol application process has been destroyed. the
VoIP管理模块304收到VoIP协议应用进程终止结束的报告,根据当前协 议切换的任务,向进程控制逻辑模块303请求启动需要切换的协议对应的VoIP应用实体,重复上述各相应步骤,直至该对应的VoIP应用实体处于稳定运行状态。 The VoIP management module 304 receives the report that the VoIP protocol application process terminates, and according to the task of the current protocol switching, requests the process control logic module 303 to start the VoIP application entity corresponding to the protocol that needs to be switched, and repeats the above-mentioned corresponding steps until the corresponding The VoIP application entity is in a stable running state. the
下面介绍本发明实施例中的VoIP协议切换装置,请参阅图4,本发明实施例中的VoIP协议切换装置的一个实施例包括: Introduce below the VoIP protocol switching device in the embodiment of the present invention, referring to Fig. 4, an embodiment of the VoIP protocol switching device in the embodiment of the present invention comprises:
获取单元401,用于配置管理逻辑实体接收VoIP协议切换命令,获取VoIP协议切换命令中的VoIP协议的信息; The acquisition unit 401 is used to configure the management logic entity to receive the VoIP protocol switching command, and obtain the information of the VoIP protocol in the VoIP protocol switching command;
判断单元402,用于根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同; The judging unit 402 is used to determine whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the current VoIP protocol according to the obtained VoIP protocol information;
发送单元403,用于若判断所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求,还用于当监测到该VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送启动所获取的VoIP协议的命令。 The sending unit 403 is used to send a request to stop the current VoIP protocol to the VoIP protocol application entity if it is judged that the acquired VoIP protocol is not the same as the current VoIP protocol, and is also used to stop the current VoIP protocol when the VoIP protocol application entity is monitored. protocol, send a command to start the acquired VoIP protocol to the VoIP protocol application entity corresponding to the acquired VoIP protocol. the
本实施例中的各单元实现的具体过程,参见前述图1或图2所示的实施例中的相关内容,此处不再赘述。 For the specific process implemented by each unit in this embodiment, refer to the relevant content in the embodiment shown in FIG. 1 or FIG. 2 above, and will not be repeated here. the
本发明实施例中,获取单元401接收VoIP协议切换命令,获取其中VoIP协议的信息,判断单元402根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议是否相同,若否,则发送单元403向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到该VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体发送启动所获取的VoIP协议的命令,从而完成不同VoIP协议之间的切换,使得采用此种技术的VoIP协议终端设备能够快速连入下一代网络(NGN,Next Generation Network),和其他VoIP终端之间互联互通。 In the embodiment of the present invention, the obtaining unit 401 receives the VoIP protocol switching command, obtains the information of the VoIP protocol, and the judging unit 402 judges the VoIP protocol corresponding to the obtained VoIP protocol information according to the obtained VoIP protocol information and the current VoIP protocol information. Whether the VoIP protocol is the same, if not, the sending unit 403 sends a request to stop the current VoIP protocol to the VoIP protocol application entity, and when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol, then the VoIP protocol corresponding to the acquired VoIP protocol The application entity sends a command to start the obtained VoIP protocol, so as to complete the switching between different VoIP protocols, so that the VoIP protocol terminal equipment using this technology can quickly connect to the next generation network (NGN, Next Generation Network), and other VoIP Terminals communicate with each other. the
为便于理解,下面以另一实施例详细描述本发明实施例中的VoIP协议切换装置,请参阅图5,本发明实施例中的VoIP协议切换装置的另一个实施例包括: For ease of understanding, the VoIP protocol switching device in the embodiment of the present invention is described in detail below in another embodiment. Please refer to FIG. 5. Another embodiment of the VoIP protocol switching device in the embodiment of the present invention includes:
获取单元501,用于配置管理逻辑实体接收VoIP协议切换命令,获取VoIP协议切换命令中的VoIP协议的信息,还用于获取当前VoIP协议的信息,; The acquisition unit 501 is used to configure the management logic entity to receive the VoIP protocol switching command, to obtain the information of the VoIP protocol in the VoIP protocol switching command, and to obtain the information of the current VoIP protocol;
判断单元502,用于根据所获取的VoIP协议的信息,判断所获取的VoIP 协议的信息中对应的VoIP协议与当前的VoIP协议是否相同; The judging unit 502 is used to determine whether the corresponding VoIP protocol in the obtained VoIP protocol information is the same as the current VoIP protocol according to the obtained VoIP protocol information;
发送单元503,用于向当前VoIP协议对应的VoIP协议应用实体发送启动命令,当监测到VoIP协议应用实体发送的启动成功时,向所该VoIP协议应用实体发送对应的VoIP协议参数;还用于若判断所获取的VoIP协议与当前的VoIP协议不相同,则向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到该VoIP协议应用实体已停止当前VoIP协议,则向所获取的VoIP协议对应的VoIP协议应用实体,发送启动所获取的VoIP协议的命令,以及向配置存取实体发送所获取的VoIP协议的信息。 The sending unit 503 is used to send a startup command to the VoIP protocol application entity corresponding to the current VoIP protocol, and when it is detected that the startup of the VoIP protocol application entity is successfully sent, the corresponding VoIP protocol parameter is sent to the VoIP protocol application entity; If it is judged that the obtained VoIP protocol is not the same as the current VoIP protocol, a request to stop the current VoIP protocol is sent to the VoIP protocol application entity. The corresponding VoIP protocol application entity sends a command to start the obtained VoIP protocol, and sends the obtained VoIP protocol information to the configuration access entity. the
本实施例中的各单元实现的具体过程,参见前述图1或图2所示的实施例中的相关内容,此处不再赘述。 For the specific process implemented by each unit in this embodiment, refer to the relevant content in the embodiment shown in FIG. 1 or FIG. 2 above, and will not be repeated here. the
本发明实施例中,获取单元501获取当前VoIP协议的信息,发送单元503向当前VoIP协议对应的VoIP协议应用实体发送启动命令,当监测到VoIP协议应用实体发送的启动成功时,发送单元503向VoIP协议应用实体发送对应的VoIP协议参数,使得VoIP协议应用实体在现网中运行,接收VoIP协议切换命令,获取单元501获取其中VoIP协议的信息,若判断单元502根据所获取的VoIP协议的信息,判断所获取的VoIP协议的信息中对应的VoIP协议与当前的VoIP协议不相同,则发送单元503向VoIP协议应用实体发送停止当前VoIP协议的请求,当监测到VoIP协议应用实体已停止当前VoIP协议,则发送单元503向配置存取实体发送获取的VoIP协议的信息,向VoIP协议应用实体发送启动所获取的VoIP协议的命令,实现从当前VoIP协议到所获取的新的VoIP协议的切换及执行过程。 In the embodiment of the present invention, the obtaining unit 501 obtains the information of the current VoIP protocol, and the sending unit 503 sends a startup command to the VoIP protocol application entity corresponding to the current VoIP protocol. The VoIP protocol application entity sends the corresponding VoIP protocol parameters, so that the VoIP protocol application entity runs in the live network, receives the VoIP protocol switching command, and the acquisition unit 501 acquires the information of the VoIP protocol. , judging that the VoIP protocol corresponding to the obtained VoIP protocol information is not the same as the current VoIP protocol, then the sending unit 503 sends a request to stop the current VoIP protocol to the VoIP protocol application entity, and when it is detected that the VoIP protocol application entity has stopped the current VoIP protocol agreement, then the sending unit 503 sends the information of the obtained VoIP protocol to the configuration access entity, and sends a command to start the obtained VoIP protocol to the VoIP protocol application entity, so as to realize switching from the current VoIP protocol to the obtained new VoIP protocol and Implementation process. the
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 Those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, the above-mentioned storage medium It can be read-only memory, disk or CD-ROM, etc. the
以上对本发明所提供的一种VoIP协议切换方法及装置进行了详细介绍,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 A VoIP protocol switching method and device provided by the present invention have been introduced in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. As mentioned above, the contents of this specification should not be construed as limiting the present invention. the
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110302778.4A CN102333167B (en) | 2011-10-09 | 2011-10-09 | VoIP (Voice over Internet Protocol) switching method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110302778.4A CN102333167B (en) | 2011-10-09 | 2011-10-09 | VoIP (Voice over Internet Protocol) switching method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102333167A CN102333167A (en) | 2012-01-25 |
| CN102333167B true CN102333167B (en) | 2014-08-27 |
Family
ID=45484764
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110302778.4A Expired - Fee Related CN102333167B (en) | 2011-10-09 | 2011-10-09 | VoIP (Voice over Internet Protocol) switching method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102333167B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103888479B (en) * | 2014-04-18 | 2017-04-12 | 中国人民解放军信息工程大学 | Method, device and electronic equipment for determining associated non-standard VOIP data flow |
| CN106331401A (en) * | 2015-06-30 | 2017-01-11 | 中兴通讯股份有限公司 | A voice protocol switching method and voice terminal equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000041014A (en) * | 1998-07-22 | 2000-02-08 | Nec Corp | Multiple timer for frame multiple protocol processing |
| CN1599376A (en) * | 2004-07-28 | 2005-03-23 | 沈逸林 | Application and communication method of terminal of network media phone |
| CN1655551A (en) * | 2004-02-09 | 2005-08-17 | 三星电子株式会社 | Handle session initiation protocol signaling for voice/data integrated switching systems |
| CN101084659A (en) * | 2004-12-21 | 2007-12-05 | 三星电子株式会社 | Method and system for providing private voice call service to mobile subscribers and wireless soft handover device therefor |
| CN101087310A (en) * | 2007-07-12 | 2007-12-12 | 烽火通信科技股份有限公司 | A method and device for voice multi-protocol upper link in Ethernet passive optical network |
| CN101599854A (en) * | 2008-06-06 | 2009-12-09 | 中国移动通信集团公司 | Component-based protocol stack reconfiguration method, device and system |
-
2011
- 2011-10-09 CN CN201110302778.4A patent/CN102333167B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000041014A (en) * | 1998-07-22 | 2000-02-08 | Nec Corp | Multiple timer for frame multiple protocol processing |
| CN1655551A (en) * | 2004-02-09 | 2005-08-17 | 三星电子株式会社 | Handle session initiation protocol signaling for voice/data integrated switching systems |
| CN1599376A (en) * | 2004-07-28 | 2005-03-23 | 沈逸林 | Application and communication method of terminal of network media phone |
| CN101084659A (en) * | 2004-12-21 | 2007-12-05 | 三星电子株式会社 | Method and system for providing private voice call service to mobile subscribers and wireless soft handover device therefor |
| CN101087310A (en) * | 2007-07-12 | 2007-12-12 | 烽火通信科技股份有限公司 | A method and device for voice multi-protocol upper link in Ethernet passive optical network |
| CN101599854A (en) * | 2008-06-06 | 2009-12-09 | 中国移动通信集团公司 | Component-based protocol stack reconfiguration method, device and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102333167A (en) | 2012-01-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9774704B2 (en) | Home gateway, cloud server, and method for communication therebetween | |
| US20090113460A1 (en) | Systems and methods for providing a generic interface in a communications environment | |
| CN110191059B (en) | Routing information monitoring method and device | |
| JP2022533238A (en) | Methods, devices, and systems for communication between controllers in the TSN | |
| US11064058B1 (en) | Methods, systems, and computer program products for sharing information for detecting at least one time period for a connection | |
| CN112838940B (en) | Network controller frame and data processing method | |
| JP2004355628A5 (en) | ||
| CN101674198A (en) | Method and device for realizing stacking | |
| CN115004650B (en) | Node configuration method, device, distributed system and computer-readable medium | |
| CN109587071B (en) | SDN-based Microservice Load Balancing Method | |
| CN101485141B (en) | Method and system for a two-phase mechanism for management service discovery of web services | |
| CN101009588B (en) | Method and system for configuring distributed proxy server information | |
| CN103036729A (en) | System and method for opening network capability, and relevant network element | |
| CN112202877A (en) | Gateway linkage method, gateway, cloud server and user terminal | |
| CN116132435A (en) | Double-stack cross-node communication method and system of container cloud platform | |
| CN102333167B (en) | VoIP (Voice over Internet Protocol) switching method and device | |
| CN100433645C (en) | Network device management method and network management system | |
| CN103001962B (en) | Business support method and system | |
| CN101047752B (en) | Ip telephone system | |
| WO2012155571A1 (en) | Base station self-configuration method and device | |
| US8560638B2 (en) | Systems and methods for changing the address of an interface | |
| US20130067083A1 (en) | Transmitting Data Over Multiple Networks | |
| CN111630814B (en) | Method for automatically establishing a session in compliance with a dynamic routing protocol by a first device and a second device | |
| CN102833211A (en) | Network communication method, system, network elements and call session control function entity | |
| CN104702602A (en) | System and method of realizing dynamically creating channel and expansion of gateway cluster based on SIP (System in Package) |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140827 |