CN115696230B - Call testing method, electronic equipment and computer storage medium - Google Patents
Call testing method, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN115696230B CN115696230B CN202211595790.3A CN202211595790A CN115696230B CN 115696230 B CN115696230 B CN 115696230B CN 202211595790 A CN202211595790 A CN 202211595790A CN 115696230 B CN115696230 B CN 115696230B
- Authority
- CN
- China
- Prior art keywords
- network
- terminal
- sip message
- control device
- epc
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 67
- 230000006854 communication Effects 0.000 claims abstract description 67
- 230000002159 abnormal effect Effects 0.000 claims abstract description 51
- 230000005856 abnormality Effects 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000010998 test method Methods 0.000 claims abstract description 27
- 230000000977 initiatory effect Effects 0.000 claims abstract description 4
- 230000015654 memory Effects 0.000 claims description 37
- 210000001956 EPC Anatomy 0.000 claims description 21
- 230000003993 interaction Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 3
- 230000011664 signaling Effects 0.000 description 61
- 230000006870 function Effects 0.000 description 42
- 238000007726 management method Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 13
- 230000005236 sound signal Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 210000004027 cell Anatomy 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 239000010985 leather Substances 0.000 description 3
- 210000000352 storage cell Anatomy 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000011269 treatment regimen Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本申请涉及通话测试方法、电子设备及计算机存储介质。所述方法应用在控制设备中。所述控制设备与网络的演进分组核心网EPC建立通信连接;所述控制设备与终端进行会话初始协议SIP消息的交互,通过Python工具生成网络异常的SIP消息,并通过所述网络向所述终端发送所述网络异常的SIP消息,其中所述终端的SIM卡不接入所述网络的IMS网络服务器。上述方案通过Python工具生成网络异常的SIP消息,并向终端发送网络异常的SIP消息,以检测终端在收到网络异常的SIP消息后能否进行正常通话,从而使得终端在获知网络异常的SIP消息的条件下,准确地进行网络兼容性的测试。
The application relates to a call test method, an electronic device and a computer storage medium. The method is used in a control unit. The control device establishes a communication connection with the evolved packet core network EPC of the network; the control device and the terminal interact with a session initiation protocol SIP message, generate a network abnormal SIP message through the Python tool, and send the message to the terminal through the network Sending a SIP message indicating that the network is abnormal, wherein the SIM card of the terminal does not access the IMS network server of the network. The above solution uses the Python tool to generate a SIP message of network abnormality, and sends the SIP message of network abnormality to the terminal to detect whether the terminal can make a normal call after receiving the SIP message of network abnormality, so that the terminal can obtain the SIP message of network abnormality Under certain conditions, the network compatibility test is carried out accurately.
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及通话测试方法、电子设备及计算机存储介质。The present application relates to the technical field of communications, and in particular to a call test method, electronic equipment and computer storage media.
背景技术Background technique
现有执行长期演进网络语音业务(Voice over LTE,VoLTE)功能时,终端需向网络发送通话请求以建立与网络之间的通话连接。网络响应通话请求与终端进行会话初始协议(Session Initiation Protocol,SIP)消息交互实现通话连接的建立。现有通话测试方法在进行终端的通话功能的测试时,要求终端在接收到网络发送的异常SIP消息时仍可以兼容异常SIP消息的场景,保证终端通话功能的正常。然而,在实际的通话测试过程中,由于网络的异常是不可控的,因而现有通话测试无法准确地完成终端对网络出现异常的兼容性的测试。When executing the existing long-term evolution network voice service (Voice over LTE, VoLTE) function, the terminal needs to send a call request to the network to establish a call connection with the network. The network responds to the call request and exchanges Session Initiation Protocol (SIP) messages with the terminal to establish a call connection. When testing the call function of the terminal in the existing call test method, the terminal is required to be compatible with the scene of the abnormal SIP message when receiving the abnormal SIP message sent by the network, so as to ensure the normal call function of the terminal. However, in the actual call test process, since the abnormality of the network is uncontrollable, the existing call test cannot accurately complete the test of the compatibility of the terminal with respect to the abnormality of the network.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种通话测试方法、电子设备及计算机存储介质以解决无法准确地完成终端对网络出现异常的兼容性的测试的问题。In view of the above, it is necessary to provide a call test method, electronic equipment and computer storage medium to solve the problem that the terminal cannot accurately complete the test of the abnormal compatibility of the network.
第一方面,本申请实施例提供一种通话测试方法,应用在控制设备中,所述方法包括:所述控制设备与网络的演进分组核心网EPC建立通信连接;所述控制设备与终端进行会话初始协议SIP消息的交互,通过Python工具生成网络异常的SIP消息,并通过所述网络向所述终端发送所述网络异常的SIP消息,其中所述终端的SIM卡不接入所述网络的IMS网络服务器。上述方案通过Python工具生成网络异常的SIP消息,并向终端发送网络异常的SIP消息,以检测终端在收到网络异常的SIP消息后能否进行正常通话,从而使得终端在获知网络异常的SIP消息的条件下,准确地进行网络兼容性的测试。In the first aspect, the embodiment of the present application provides a call test method, which is applied in a control device, and the method includes: the control device establishes a communication connection with the evolved packet core network EPC of the network; the control device conducts a session with the terminal The interaction of the initial protocol SIP message, generating the SIP message of the abnormal network through the Python tool, and sending the SIP message of the abnormal network to the terminal through the network, wherein the SIM card of the terminal does not access the IMS of the network Network Server. The above solution uses the Python tool to generate a SIP message of network abnormality, and sends the SIP message of network abnormality to the terminal to detect whether the terminal can make a normal call after receiving the SIP message of network abnormality, so that the terminal can obtain the SIP message of network abnormality Under certain conditions, the network compatibility test is carried out accurately.
在一种实现方式中,所述控制设备与所述网络的EPC建立通信连接包括:设置所述控制设备与所述网络的EPC之间的路由,并通过所述路由建立所述控制设备与所述网络的EPC之间的通信连接。上述方案中,通过构建网络的EPC与控制设备的路由,使得终端通过网络能够与控制设备进行通信。In an implementation manner, establishing a communication connection between the control device and the EPC of the network includes: setting a route between the control device and the EPC of the network, and establishing the communication connection between the control device and the EPC through the route. The communication connection between the EPCs of the above network. In the above solution, by constructing a route between the EPC of the network and the control device, the terminal can communicate with the control device through the network.
在一种实现方式中,所述设置所述控制设备与所述网络的EPC之间的路由,并通过所述路由建立所述控制设备与所述网络的EPC之间的通信连接包括:所述控制设备设置路由表,所述路由表记录所述网络的网际协议IP地址,并将所述网络的IP地址作为数据转发的目的地址;所述控制设备根据所述路由表进行数据转发。上述技术方案中,通过在控制设备设置用于数据转发的路由表,使得控制设备与网络之间构建了稳定通信通道。In an implementation manner, the setting the route between the control device and the EPC of the network, and establishing the communication connection between the control device and the EPC of the network through the route includes: the The control device sets up a routing table, the routing table records the Internet Protocol IP address of the network, and uses the IP address of the network as the destination address of data forwarding; the control device performs data forwarding according to the routing table. In the above technical solution, by setting a routing table for data forwarding on the control device, a stable communication channel is established between the control device and the network.
在一种实现方式中,所述通过Python工具生成网络异常的SIP消息包括:通过所述Python工具在SIP消息中增加预设符号。上述方案中,控制设备在回复给终端的SIP消息中添加预设符号后生成网络异常的SIP消息,以便于终端在接收到携带有预设符号的网络异常的SIP消息时进行通话功能的测试。In an implementation manner, the generating the SIP message of network exception by using the Python tool includes: adding preset symbols in the SIP message by using the Python tool. In the above solution, the control device generates a network abnormality SIP message after adding preset symbols to the SIP message returned to the terminal, so that the terminal can perform a call function test when receiving the network abnormality SIP message carrying the preset symbols.
在一种实现方式中,所述通过Python工具生成网络异常的SIP消息包括:通过所述Python工具在SIP消息中增加或删除代码字段。上述方案中,控制设备在回复给终端的SIP消息中增加或删除代码字段后生成网络异常的SIP消息,以便于终端在接收到多余或缺失的代码字段的网络异常的SIP消息时进行通话功能的测试。In an implementation manner, the generating the SIP message of network exception by using the Python tool includes: adding or deleting a code field in the SIP message by using the Python tool. In the above solution, the control device generates a network abnormal SIP message after adding or deleting the code field in the SIP message replied to the terminal, so that the terminal can perform the call function when receiving the network abnormal SIP message with redundant or missing code fields test.
在一种实现方式中,所述通过Python工具生成网络异常的SIP消息包括:通过所述Python工具在SIP消息中删除空行。通过所述Python工具在SIP消息中增加或删除代码字段。上述方案中,控制设备在回复给终端的SIP消息中通过删除空行生成网络异常的SIP消息,以便于终端在接收到缺少空行的网络异常的SIP消息时进行通话功能的测试。In an implementation manner, the generating the SIP message of the network exception by using the Python tool includes: deleting blank lines in the SIP message by using the Python tool. Add or delete the code field in the SIP message through the Python tool. In the above scheme, the control device generates a network abnormal SIP message by deleting blank lines in the SIP message replied to the terminal, so that the terminal can test the call function when receiving the network abnormal SIP message lacking blank lines.
第二方面,本申请实施例还提供一种通话测试方法,应用在通话测试系统中,所述通话测试系统包括网络,终端及控制设备,所述方法包括:所述网络设置所述终端的SIM卡不接入所述网络的IMS网络服务器;所述控制设备与所述网络的演进分组核心网EPC建立通信连接;所述控制设备通过所述网络与所述终端进行会话初始协议SIP消息的交互,通过Python工具生成网络异常的SIP消息,并通过所述网络向所述终端发送所述网络异常的SIP消息。上述方案中网络设置所述终端的SIM卡不接入所述网络的IMS网络服务器后建立与控制设备的通信连接,控制设备通过Python工具生成网络异常的SIP消息,并通过网络向终端发送网络异常的SIP消息,以检测终端在收到网络异常的SIP消息后能否进行正常通话,从而使得终端在准确获知网络异常的SIP消息的条件下,进行网络兼容性的测试。In the second aspect, the embodiment of the present application also provides a call test method, which is applied in a call test system. The call test system includes a network, a terminal and a control device. The method includes: the network sets the SIM of the terminal The card does not access the IMS network server of the network; the control device establishes a communication connection with the evolved packet core network EPC of the network; the control device performs session initiation protocol (SIP) message interaction with the terminal through the network , using a Python tool to generate a SIP message of network abnormality, and sending the SIP message of network abnormality to the terminal through the network. In the above scheme, the network sets the SIM card of the terminal to not access the IMS network server of the network and establishes a communication connection with the control device, and the control device generates a SIP message of network exception through the Python tool, and sends a network exception to the terminal through the network SIP message to detect whether the terminal can make a normal call after receiving the SIP message of network abnormality, so that the terminal can perform a network compatibility test under the condition of accurately knowing the SIP message of network abnormality.
在一种实现方式中,所述通过Python工具生成网络异常的SIP消息包括:所述控制设备通过所述Python工具在SIP消息中增加预设符号,在所述SIP消息中增加代码字段,在所述SIP消息中删除代码字段,或在所述SIP消息中删除空行。上述方案中,控制设备通过Python工具生成网络异常的SIP消息回复给终端,以便于终端在接收到网络异常的SIP消息时进行通话功能的测试。In an implementation manner, the generating the SIP message of the network exception through the Python tool includes: the control device adds a preset symbol to the SIP message through the Python tool, adds a code field to the SIP message, and adds a code field to the SIP message. Delete the code field in the SIP message, or delete the blank line in the SIP message. In the above solution, the control device generates a network abnormal SIP message through the Python tool and replies to the terminal, so that the terminal can test the call function when receiving the network abnormal SIP message.
在一种实现方式中,所述向所述终端发送所述网络异常的SIP消息包括:所述控制设备将所述网络异常的SIP消息发送给网络的EPC;所述网络的EPC将所述网络异常的SIP消息通过基站发送给所述终端。In an implementation manner, the sending the SIP message of the network exception to the terminal includes: sending the SIP message of the network exception to the EPC of the network by the control device; The abnormal SIP message is sent to the terminal through the base station.
在一种实现方式中,所述控制设备与所述网络的EPC建立通信连接包括:设置所述控制设备与所述网络的EPC之间的路由,并通过所述路由建立所述控制设备与所述网络的EPC之间的通信连接。上述方案中,通过构建网络的EPC与控制设备的路由,使得终端通过网络能够与控制设备进行通信。In an implementation manner, establishing a communication connection between the control device and the EPC of the network includes: setting a route between the control device and the EPC of the network, and establishing the communication connection between the control device and the EPC through the route. The communication connection between the EPCs of the above network. In the above solution, by constructing a route between the EPC of the network and the control device, the terminal can communicate with the control device through the network.
在一种实现方式中,所述通过Python工具生成网络异常的SIP消息,并向所述终端发送所述网络异常的SIP消息包括:所述终端向所述网络的EPC发送register指令以请求进行所述终端的身份注册;所述EPC将所述register指令发送给所述控制设备;所述控制设备响应所述register指令,通过所述Python工具生成200 ok指令,并将所述200 ok指令发送给所述EPC;所述EPC将所述200 ok指令发送给所述终端,并完成所述终端的身份注册;所述控制设备通过所述Python工具生成所述网络异常的invite指令,并将所述网络异常的invite指令发送给所述EPC以请求与所述终端进行通话;所述EPC将所述网络异常的invite指令发送给所述终端;所述终端响应所述网络异常的invite指令,与所述控制设备进行SIP交互。上述技术方案中,控制终端在与终端建立通信连接后,通过Python工具生成正常的SIP信息发送给终端,并与终端完成注册后,通过Python工具生成网络异常的SIP消息发送给终端,以检测终端在收到网络异常的SIP消息后能否进行正常的通话,从而使得用户在获知网络异常的SIP消息的条件下,准确地对终端的网络兼容性进行测试。In an implementation manner, the generating the SIP message of the network exception through the Python tool, and sending the SIP message of the network exception to the terminal includes: the terminal sends a register instruction to the EPC of the network to request The identity registration of the terminal; the EPC sends the register command to the control device; the control device responds to the register command, generates a 200 ok command through the Python tool, and sends the 200 ok command to The EPC; the EPC sends the 200 ok instruction to the terminal, and completes the identity registration of the terminal; the control device generates the abnormal invite instruction of the network through the Python tool, and sends the The invite instruction of the abnormal network is sent to the EPC to request a conversation with the terminal; the EPC sends the invite instruction of the abnormal network to the terminal; the terminal responds to the invite instruction of the abnormal network, and communicates with the terminal The control device performs SIP interaction. In the above technical solution, after the control terminal establishes a communication connection with the terminal, it generates normal SIP information through the Python tool and sends it to the terminal, and after completing registration with the terminal, it generates a network abnormal SIP message through the Python tool and sends it to the terminal to detect the terminal. Whether a normal call can be performed after receiving the SIP message of network abnormality, so that the user can accurately test the network compatibility of the terminal under the condition of knowing the SIP message of network abnormality.
第三方面,本申请的一些实施例提供一种电子设备,电子设备包括存储器和处理器:其中,存储器,用于存储程序指令;处理器,用于读取并执行存储器中存储的程序指令,当程序指令被处理器执行时,使得电子设备执行上述通话测试方法。In a third aspect, some embodiments of the present application provide an electronic device, and the electronic device includes a memory and a processor: wherein, the memory is used to store program instructions; the processor is used to read and execute the program instructions stored in the memory, When the program instructions are executed by the processor, the electronic device is made to execute the above call testing method.
第四方面,本申请的一些实施例提供一种计算机存储介质,计算机存储介质存储有程序指令,当程序指令在电子设备上运行时,使得电子设备执行上述通话测试方法。In a fourth aspect, some embodiments of the present application provide a computer storage medium, where program instructions are stored in the computer storage medium, and when the program instructions are run on the electronic device, the electronic device is made to execute the above call test method.
另外,第三方面至第四方面所带来的技术效果可参见上述方法部分各设计的方法相关的描述,此处不再赘述。In addition, for the technical effects brought about by the third aspect to the fourth aspect, please refer to the descriptions related to the methods of each design in the above method part, and will not be repeated here.
附图说明Description of drawings
图1为本申请一实施例中通话测试系统的架构示意图。FIG. 1 is a schematic structural diagram of a call test system in an embodiment of the present application.
图2为本申请一实施例提供的主叫装置与被叫装置之间进行SIP消息交互的流程图。Fig. 2 is a flow chart of SIP message interaction between a calling device and a called device according to an embodiment of the present application.
图3为本申请一实施例中通话测试系统的架构图。FIG. 3 is a structural diagram of a call test system in an embodiment of the present application.
图4为本申请一实施例中的通话测试方法的流程图。FIG. 4 is a flowchart of a call test method in an embodiment of the present application.
图5为本申请另一实施例中的通话测试方法的流程图。Fig. 5 is a flowchart of a call testing method in another embodiment of the present application.
图6为本申请一实施例中电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the present application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的一些实施例的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请的一些实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of some embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in some embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请的一些实施例中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个”是指一个或者多个。“多个”是指两个或多于两个。例如,a、b或c中的至少一个,可以表示:a,b,c,a和b,a和c,b和c,a、b和c七种情况。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of this application. The terms used in the description of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. It should be understood that unless otherwise stated in this application, "/" means or. For example, A/B can mean either A or B. "And/or" in some embodiments of the present application is only an association relationship describing associated objects, indicating that there may be three relationships. For example, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. "At least one" means one or more. "A plurality" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
参考图1所示,为本申请一实施例中通话测试系统的架构示意图。如图1所示,通话测试系统10包括主叫装置20、网络30、被叫装置40、基站50。主叫装置20、被叫装置40分别通过基站50与网络30进行通信连接。所述基站50包括,但不限于,4G-LET基站或5G新空口(5G-New Radio)基站。其中,主叫装置20或被叫装置40可以为手机、平板电脑、笔记本电脑、个人电脑等具备通话功能的电子设备或软终端,为便于说明,图1以手机为例。本申请实施例所指的网络30为负责处理语音业务的核心网、接入网设备的统称,包括互联网协议(internetprotocol,IP)多媒体子系统(IP multimedia subsystem,IMS)网络。IMS网络包括IMS域核心网和演进分组核心网(Evolved Packet Core,EPC)。IMS域核心网包括:服务-呼叫控制功能(serving-call session control function,S-CSCF)、查询-呼叫、会话控制功能(interrogating-call session control function,I-CSCF)、代理-呼叫会话控制功能(proxy-call session control function,P-CSCF)会话边界控制器(session bordercontroller,SBC),以及若干个专用服务器,如多媒体电话应用服务器(multimediatelephony application server,MMTel AS)。其中I-CSCF 可以和S-CSCF合设在一起,可以简称为“I/S-CSCF”。SBC和P-CSCF可以合设在一起,可以简称为“SBC/P-CSCF”。EPC可包括分组数据网网关(packet data network gateway,PGW)、服务网关(serving gateway,SGW)和移动管理实体(mobile management entity,MME)。其中,PGW和SGW可以合设在一起,可以简称为“SGW/PGW”。Referring to FIG. 1 , it is a schematic structural diagram of a call test system in an embodiment of the present application. As shown in FIG. 1 , the
上述网元都是现有技术中IMS网络中的相应网元,在这里不做详细描述,仅做简要说明。例如:S-CSCF可以用于用户的注册、鉴权控制、会话路由和业务触发控制,并维持会话状态信息。I-CSCF可以用于用户注册的S-CSCF的指配和查询。P-CSCF可以用于信令和消息的代理。SBC可以提供安全接入和媒体处理。MMTel AS提供多媒体电话基本业务及补充业务。MME是EPC网络的核心设备。SGW可以用于IMS核心网与无线网络的连接,PGW可以用于IMS核心网和IP网络的连接。The above-mentioned network elements are all corresponding network elements in the IMS network in the prior art, and will not be described in detail here, but only briefly explained. For example: S-CSCF can be used for user registration, authentication control, session routing and service trigger control, and maintain session state information. The I-CSCF can be used for assignment and query of the S-CSCF registered by the user. P-CSCF can be used as a proxy for signaling and messages. SBC can provide secure access and media processing. MMTel AS provides multimedia telephony basic services and supplementary services. MME is the core equipment of EPC network. The SGW can be used for the connection between the IMS core network and the wireless network, and the PGW can be used for the connection between the IMS core network and the IP network.
上述的说明并不构成对本申请实施例的通话测试系统10的架构图的限定,本申请实施例的通话测试系统10的架构包括但不限于如图1所示的架构。The above description does not constitute a limitation on the structure diagram of the
参考图2所示,为本申请实施例提供的主叫装置与被叫装置之间进行SIP消息交互的流程图。Referring to FIG. 2 , it is a flow chart of SIP message interaction between the calling device and the called device provided in the embodiment of the present application.
(1)主叫装置20向网络30发送invite信令, 网络30将从主叫装置20接收的invite信令发送给被叫装置40。(1) The calling
(2)被叫装置40向网络30发送100 trying信令,网络30将从被叫装置40接收的100trying信令发送给主叫装置20。(2) The called
(3)被叫装置40向网络30发送183会话进程(Session Progress)信令,网络30将从被叫装置40接收的183 Session Progress信令发送给主叫装置20。(3) The called
(4)主叫装置20向网络30发送PRACK信令,网络30将从主叫装置20接收的PRACK信令发送给被叫装置40。(4) The calling
(5)被叫装置40响应PRACK信令,向网络30发送PRACK/OK信令,网络30将从被叫装置40接收的PRACK/OK信令发送给主叫装置20。(5) The called
(6)主叫装置20向网络30发送UPDATE信令,网络30将从主叫装置20接收的UPDATE信令发送给被叫装置40。(6) The calling
(7)被叫装置40响应UPDATE信令,向网络30发送UPDATE/OK信令,网络30将从被叫装置40接收的UPDATE/OK信令发送给主叫装置20。(7) The called
(8)被叫装置40向网络30发送180 Ring信令,网络30将从被叫装置40接收的180Ring信令发送给主叫装置20。(8) The called
(9)被叫装置40向网络30发送用于回复INVITE信令的INVITE/200 OK信令,网络30将从被叫装置40接收的INVITE/200 OK信令发送给主叫装置20。(9) The called
(10)主叫装置20向网络30发送INVITE/ACK信令,网络30将从主叫装置20接收的INVITE/ACK信令发送给被叫装置40。(10) The calling
被叫装置40接收到SIP消息的ACK信令后,主叫装置20和被叫装置40之间可以正式进行通话。After the called
现有通话测试方法有在网络30发送的SIP消息出现异常时对主叫装置20或被叫装置40的通话功能(即网络兼容性)进行测试的需求。然而,现有通话测试方法在对通话功能的能力(即网络兼容性)进行测试时,由于网络30发送的SIP消息的异常是无法预先获知的,导致目前的通话测试无法准确地对主叫装置20或被叫装置40的网络兼容性进行测试。In the existing call testing method, there is a need to test the call function (ie, network compatibility) of the calling
为了解决上述存在的技术问题,本申请实施例提供一种通话测试方法,建立核心网与控制设备之间的通信连接,并通过Python工具生成网络异常的SIP消息,并将网络异常的SIP消息发送给终端,从而在准确获知网络异常的SIP消息的条件下,实现对网络兼容性进行测试的目的。In order to solve the above-mentioned existing technical problems, the embodiment of the present application provides a call test method, establishes a communication connection between the core network and the control device, and generates a SIP message of network abnormality through a Python tool, and sends the SIP message of network abnormality to To the terminal, so as to realize the purpose of testing the network compatibility under the condition of accurately knowing the abnormal SIP message of the network.
本申请提供一种通话测试方法,可应用在通话测试系统中。参考图3所示,为本申请一实施例中通话测试系统的架构图。通话测试系统10包括终端20’。为区别于图1,图3所示的终端20’可以为图1中的主叫装置20或被叫装置40中的至少一者。终端20’通过基站50与网络30连接。网络30与控制设备60通信连接。网络30包括IMS网络服务器,所述IMS网络服务器位于IMS域核心网中。下文将结合图4所示的流程图,说明各个装置之间的信号交互过程,以实现终端20’的通话测试。The present application provides a call test method, which can be applied in a call test system. Referring to FIG. 3 , it is a structural diagram of a call test system in an embodiment of the present application. The
参考图4所示,为本申请一实施例提供的通话测试方法的流程图,具体包括如下步骤。Referring to FIG. 4 , it is a flowchart of a call test method provided by an embodiment of the present application, which specifically includes the following steps.
步骤S41,网络30设置终端20’的用户识别(Subscriber Identity Module,SIM)卡不接入网络30的IMS网络服务器。Step S41, the
在本申请的一实施例中,网络30设置终端20’的SIM卡不接入网络30的IMS网络服务器包括:网络30获取终端20’的SIM卡的身份信息,从IMS网络服务器中存储的合法用户列表中删除终端20’的SIM卡的身份信息,其中合法用户列表中记录所有授权访问IMS网络服务器的SIM卡的身份信息。在本申请的一实施例中,若SIM卡的身份信息存储在IMS网络服务器的合法用户列表中,则插入所述SIM卡的终端20’可以访问网络30的IMS网络服务器;若SIM卡的身份信息从IMS网络服务器的合法用户列表中删除后,则插入所述SIM卡的终端20’不能访问网络30的IMS网络服务器。In an embodiment of the present application, the setting by the
在本申请的一实施例中,SIM卡的身份信息包括国际移动用户识别码(International Mobile SubscriberIdentification Number,IMSI)。例如,以下以终端20’为手机为例说明网络30设置终端20’的SIM卡不接入网络30的IMS网络服务器的具体内容。网络30通过基站50获取手机的SIM卡的IMSI号码,并从MS网络服务器中存储的合法用户列表中删除终端20’的SIM卡的IMSI号码,如此手机不能接入网络30的IMS网络服务器。然而,此时手机仍然能够接入网络30的EPC (演进分组核心网),并能接入EPC的PGW(分组数据网网关)、SGW(服务网关)和MME(移动管理实体)。In an embodiment of the present application, the identity information of the SIM card includes an International Mobile Subscriber Identification Number (IMSI). For example, the specific content of the
步骤S42,控制设备60与网络30的EPC建立通信连接。Step S42 , the
在本申请的一实施例中,控制设备60与网络30的EPC建立通信连接,包括:设置控制设备60与网络30的EPC之间的路由,并通过所述路由建立控制设备60与网络30的EPC之间的通信连接。In an embodiment of the present application, establishing a communication connection between the
在本申请的一实施例中,控制设备60设置路由表,所述路由表记录网络30的IP地址,并将网络30的IP地址作为数据转发的目的地址,所述控制设备60根据所述路由表进行数据转发,如此实现与网络30的EPC的通信连接。在本申请的一实施例中,所述路由表记录网络30的PGW的IP地址,并将网络30的PGW的IP地址作为数据转发的目的地址,所述控制设备60通过所述路由表实现与EPC的PGW的通信连接。In an embodiment of the present application, the
步骤S43,控制设备60与终端20’进行SIP消息的交互,通过Python工具生成网络异常的SIP消息,并向网络30发送网络异常的SIP消息。In step S43, the
步骤S44,网络30向终端20’发送网络异常的SIP消息。In step S44, the
在本申请的一实施例中,控制设备60与终端20’按照图2的SIP消息的交互流程实现通话功能。控制设备60与终端20’进行SIP消息的交互的过程中,由于在步骤S41中已设置终端20’的SIM卡不接入网络30的IMS网络服务器,因而网络30无法将终端20’发送的SIP消息发送给IMS网络服务器,而是通过路由将SIP消息发送给控制设备60。In an embodiment of the present application, the
在本申请的一实施例中,通过Python工具生成网络异常的SIP消息,并向终端20’发送网络异常的SIP消息包括:控制设备60通过Python工具生成网络异常的SIP消息,将网络异常的SIP消息发送给网络30的EPC;网络30的EPC将网络异常的SIP消息通过基站50发送给终端20’。In an embodiment of the present application, generating the SIP message of network abnormality through the Python tool, and sending the SIP message of network abnormality to the terminal 20' includes: the
在本申请的一实施例中,通过Python工具生成网络异常的SIP消息包括如下的一种或多种方式:通过Python工具在SIP消息中增加预设符号,例如,@符号;在SIP消息中增加代码字段;在SIP消息中删除代码字段;在SIP消息中删除空行。In an embodiment of the present application, generating a SIP message of a network exception through the Python tool includes one or more of the following methods: adding a preset symbol, for example, the @ symbol, in the SIP message through the Python tool; Code field; remove code field in SIP message; remove empty line in SIP message.
参考图2,在本申请的一实施例中,网络异常的SIP消息包括invite信令、100trying信令、183 Session Progress信令、PRACK信令、200 OK信令、UPDATE信令、180 Ring信令、ACK信令中的至少一种,此仅为示例性说明,实际应用中并不局限于此。本申请中仅以invite信令为例说明控制设备60生成网络异常的SIP消息的具体内容。With reference to Fig. 2, in one embodiment of the present application, the SIP message of network abnormality includes invite signaling, 100trying signaling, 183 Session Progress signaling, PRACK signaling, 200 OK signaling, UPDATE signaling, 180 Ring signaling At least one of ACK signaling and ACK signaling, which is only an exemplary description, and is not limited to this in practical applications. In this application, only the invite signaling is taken as an example to illustrate the specific content of the SIP message of network abnormality generated by the
例如,控制设备60向终端20’发送网络异常的invite信令以请求与终端20’进行VoLTE通话。在本申请的一实施例中,所述网络异常的invite信令包括To头域为SIP URI格式的invite信令及TO头域为TEL URI格式的invite信令。For example, the
在本申请的一实施例中,正确格式的invite信令如下所示:In an embodiment of the present application, the invite signaling in the correct format is as follows:
INVITE tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0INVITE tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0
Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=z9hGcbKKX20…Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=z9hGcbKKX20…
From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=HiE1EK…From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=HiE1EK…
P-Preferred-Identity: sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.orgP-Preferred-Identity: sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org
Contact:< sip:+8618342202675@ [2409:8170:1071:2c94:1:2:face:5e85]:50038>;…Contact:< sip:+8618342202675@ [2409:8170:1071:2c94:1:2:face:5e85]:50038>;…
To: <tel:198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org>To: <tel:198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org>
Allow:INVITE, ACK, CANCEL, BYE, UPDATE, REFER, NOTIFY, MESSAGE,PRACK, OPTIONSAllow:INVITE, ACK, CANCEL, BYE, UPDATE, REFER, NOTIFY, MESSAGE,PRACK, OPTIONS
Supported:100rel, precondition, replaces, timer, histinfoSupported: 100rel, precondition, replaces, timer, histinfo
Max-Forwards: 70Max-Forwards: 70
Accept: application/sdp, application/3gpp-ims+xmlAccept: application/sdp, application/3gpp-ims+xml
User-Agent:VoLTE/WFC UAUser-Agent: VoLTE/WFC UA
P-Preferred-Service; urn: urn-7:3gpp-service.ims.icsi.mmtelP-Preferred-Service; urn: urn-7:3gpp-service.ims.icsi.mmtel
Accept-Contact:*;+g.3gpp.icsi-ref=” urn%3Aurn—7%3A3gpp-service.ims.icsi.mmtel”Accept-Contact:*;+g.3gpp.icsi-ref="urn%3Aurn—7%3A3gpp-service.ims.icsi.mmtel"
P-Early-Media: supportedP-Early-Media: supported
CSeq: 1 INVITECSeq: 1 INVITE
Call-ID JotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]Call-ID JotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]
Session-Expires:1800Session-Expires: 1800
Min-SE:90Min-SE:90
Route: <sip:[2409:8070:5002:e69:0:0:1:a01]:9900;lr>, <sip:orig_000e03f7c9281b...Route: <sip:[2409:8070:5002:e69:0:0:1:a01]:9900;lr>, <sip:orig_000e03f7c9281b...
Content-Type: application/sdpContent-Type: application/sdp
P-Access-Network-Info: 3GPP-E-UTRAN-TDD;utran-cell-id-3gpp=4600090F39E42647P-Access-Network-Info: 3GPP-E-UTRAN-TDD;utran-cell-id-3gpp=4600090F39E42647
Require: sec-agreeRequire: sec-agree
Proxy-Require: sec-agreeProxy-Require: sec-agree
Content-length: 629Content-length: 629
Security-Verify: ipsec-3gpp; alg=hmac-md5-96; prot=esp; mod=trans;ealg=null; spi-c=…Security-Verify: ipsec-3gpp; alg=hmac-md5-96; prot=esp; mod=trans;ealg=null; spi-c=…
在本申请的一实施例中,通过Python工具生成网络异常的invite信令包括:通过Python工具在正确格式的invite信令中添加@符号,并生成网络异常的invite信令。例如,通过Python工具在正确格式的invite信令的字段“INVITE tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0”中添加3个@符号,生成的网络异常的invite信令包括字段:“INVITE@@@tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0”。In an embodiment of the present application, generating the invite signaling of the abnormal network through the Python tool includes: adding the @ symbol to the invite signaling of the correct format through the Python tool, and generating the invite signaling of the abnormal network. For example, add 3 @ symbols to the field "INVITE tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0" in the correct format invite signaling field through the Python tool, and the generated network abnormal invite The signaling includes the field: "INVITE@@@tel: 198xxxxxxxx; phone-context=ims.mnc002.mcc460.3gppnetwork.org SIP/2.0".
例如,通过Python工具在正确格式的invite信令的字段“From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=HiE1EK…”中添加一个@符号,生成的网络异常的invite信令包括字段:“From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=@HiE1EK…”。For example, add an @ symbol to the field "From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=HiE1EK…" in the correct format of the invite signaling through the Python tool, and the generated network The abnormal invite signaling includes the field: "From:<sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org>;tag=@HiE1EK…".
例如,通过Python工具在正确格式的invite信令的字段“Call-IDJotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]”中添加一个@符号,生成的网络异常的invite信令包括字段:“Call-ID @JotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]”。For example, add an @ symbol to the field "Call-IDJotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]" in the correct format of the invite signal through the Python tool, and the generated invite signal of network exception The order includes the field: "Call-ID @JotXLtZC8VYSQEqDX8@ [2409:8170:1071:2c94:1:2:face:5e85]".
在本申请的一实施例中,通过Python工具生成网络异常的invite信令包括:通过Python工具在正确格式的invite信令中添加代码字段,并生成网络异常的invite信令。例如,通过Python工具在正确格式的invite信令的字段“Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=z9hGcbKKX20…”中添加test字段,生成的网络异常的invite信令包括字段:“Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=testz9hGcbKKX20…”。In an embodiment of the present application, generating the invite signaling of the abnormal network by using the Python tool includes: adding a code field to the invite signaling of the correct format by using the Python tool, and generating the invite signaling of the abnormal network. For example, add test to the field "Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=z9hGcbKKX20..." in the correct format invite signaling field through the Python tool Field, the generated invite signaling of network exception includes the field: "Via: SIP/2.0/TCP [2409:8170:1071:2c94:1:2:face:5e85]:50038; branch=testz9hGcbKKX20...".
又如,通过Python工具在正确格式的invite信令的字段“CSeq: 1 INVITE”中添加as字段生成网络异常的invite信令。For another example, add the as field to the field "CSeq: 1 INVITE" of the correctly formatted invite signal through the Python tool to generate the network abnormal invite signal.
在本申请的一实施例中,通过Python工具生成网络异常的invite信令包括:通过Python工具在正确格式的invite信令中删除代码字段,并生成网络异常的invite信令。例如,通过Python工具在正确格式的invite信令中删除“P-Preferred-Identity: sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org”字段,生成网络异常的invite信令。In an embodiment of the present application, generating the invite signaling of the abnormal network by using the Python tool includes: deleting the code field in the invite signaling of the correct format by using the Python tool, and generating the invite signaling of the abnormal network. For example, delete the "P-Preferred-Identity: sip:+8618342202675@ln.ims.mnc000.mcc460.3gppnetwork.org" field in the invite signaling with the correct format through the Python tool to generate an invite signaling with an abnormal network.
例如,通过Python工具在正确格式的invite信令中删除“To: <tel:198xxxxxxxx;phone-context=ims.mnc002.mcc460.3gppnetwork.org>”字段中的198xxxxxxxx字段,生成网络异常的invite信令。For example, delete the 198xxxxxxxx field in the "To: <tel:198xxxxxxxx;phone-context=ims.mnc002.mcc460.3gppnetwork.org>" field in the invite signaling with the correct format using the Python tool to generate an invite signaling with a network exception .
例如,通过Python工具在正确格式的invite信令中删除“Content-length: 629”字段中的629字段,生成网络异常的invite信令。For example, use the Python tool to delete the 629 field in the "Content-length: 629" field in the invite signaling with the correct format to generate an invite signaling with a network exception.
在本申请的一实施例中,在步骤S43之后,所述方法还包括:控制设备60或外设设备获取终端20’的通话日志,分析终端20’与控制设备60通话是否成功。例如,控制设备60或外设设备分析通话日志中的通话连接状态,通话时长等信息确定终端20’与控制设备60通话成功或通话失败。在本申请的一实施例中,外设设备可以是计算机,服务器等计算设备。In an embodiment of the present application, after step S43, the method further includes: the
若确定终端20’与控制设备60通话成功,则确定终端20’在接收到网络异常的SIP消息后能够正常通话,并确定终端20’的通话功能满足网络兼容性。若确定终端20’与控制设备60通话失败,则确定终端20’在接收到网络异常的SIP消息后不能够正常通话,并确定终端20’的通话功能不满足网络兼容性。If it is determined that the terminal 20' communicates successfully with the
本申请实施例通过Python工具生成网络异常的SIP消息,并向终端20’发送网络异常的SIP消息,以检测终端20’在收到网络异常的SIP消息后能否进行正常通话,从而在获知网络异常的SIP消息的条件下,能够准确地对终端20’的网络兼容性进行测试。The embodiment of the present application generates a SIP message of network abnormality through a Python tool, and sends the SIP message of network abnormality to the terminal 20', so as to detect whether the terminal 20' can carry out a normal call after receiving the SIP message of network abnormality, so as to know the network Under the condition of an abnormal SIP message, the network compatibility of the terminal 20' can be accurately tested.
参考图5所示,为本申请另一实施例中的通话测试方法的流程图,具体包括如下步骤。Referring to FIG. 5 , it is a flowchart of a call test method in another embodiment of the present application, which specifically includes the following steps.
步骤S51,网络30设置终端20’的SIM卡不接入网络30的IMS网络服务器。Step S51, the
步骤S52,控制设备60与网络30的EPC建立通信连接。In step S52 , the
需要说明的是,图6中的步骤S61至步骤S62的内容分别与上述图5中步骤S51至步骤S52的内容相同,步骤S61至步骤S62的具体实现手段可参照图5中关于步骤S51至步骤S52的描述内容,这里不再重复描述。It should be noted that the contents of steps S61 to S62 in FIG. 6 are the same as those of steps S51 to S52 in FIG. The description of S52 will not be repeated here.
步骤S53,终端20’向网络30的EPC发送register指令以请求进行终端20’的身份注册。In step S53, the terminal 20' sends a register command to the EPC of the
步骤S54,EPC将register指令发送给控制设备60。In step S54 , the EPC sends the register command to the
步骤S55,控制设备60响应register指令,通过Python工具生成200 ok指令,并将200 ok指令发送给EPC。Step S55, the
步骤S56,EPC将200 ok指令发送给终端20’,并完成终端20’的身份注册。Step S56, the EPC sends the 200 ok instruction to the terminal 20', and completes the identity registration of the terminal 20'.
步骤S57,控制设备60通过Python工具生成网络异常的invite指令,并将网络异常的invite指令发送给EPC以请求与终端20’进行通话。In step S57, the
在本申请的一实施例中,控制设备60通过Python工具生成网络异常的invite指令包括如下的一种或多种方式:通过Python工具在invite指令中增加@符号,在invite指令中增加代码字段,在invite指令中删除代码字段,在invite指令中删除空行。具体的生成方式可以参考上述实施例中的举例说明。In an embodiment of the present application, the
步骤S58,EPC将网络异常的invite指令发送给终端20’。In step S58, the EPC sends the invite instruction of network abnormality to the terminal 20'.
步骤S59,终端20’响应网络异常的invite指令,通过网络30与控制设备60进行SIP交互。In step S59, the terminal 20' responds to the invite instruction that the network is abnormal, and performs SIP interaction with the
在本申请的一实施例中,终端20’响应网络异常的invite指令,与控制设备60按照图2的交互流程进行SIP交互,以使得终端20’与控制设备60之间进行VoLTE通话的测试。In an embodiment of the present application, the terminal 20' responds to the invite command of the abnormal network, and performs SIP interaction with the
本申请的实施例中,控制终端60在与终端20’建立通信连接后,通过Python工具生成正常的SIP信息发送给终端20’,并与终端完成注册后,通过Python工具生成网络异常的SIP消息发送给终端20’,以检测终端20’在收到网络异常的SIP消息后能否进行正常的通话,从而使得用户在获知网络异常的SIP消息的条件下,准确地对终端20’的网络兼容性进行测试。In the embodiment of the present application, after the
参考图6所示,为本申请一实施例中电子设备100的硬件结构示意图。所述电子设备100包括终端20’或控制设备60。所述电子设备100具体可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digitalassistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence, AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请的一些实施例对该电子设备100的具体类型不作特殊限制。Referring to FIG. 6 , it is a schematic diagram of a hardware structure of an
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备100,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。The
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system ,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(BEIDOUnavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrixorganic light-emitting diode) , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The
ISP 用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The
NPU为神经网络(neural-network ,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (neural-network, NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM )和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory, SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory, DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等;Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell, MLC)、三阶储存单元(triple-level cell, TLC)、四阶储存单元(quad-level cell, QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。According to the operating principle, flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. According to the potential order of storage cells, it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), three-level storage unit (triple-level cell, TLC), fourth-level storage unit (quad-level cell, QLC), etc., can include universal flash storage (English: universal flash storage, UFS) according to storage specifications , embedded multimedia memory card (embedded multi media Card, eMMC), etc.
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用的数据等。The random access memory can be directly read and written by the processor 110 , can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store user and application data.
非易失性存储器也可以存储可执行程序和存储用户及应用的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into random access memory in advance for the processor 110 to directly read and write.
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。The
内部存储器121或外部存储器接口120用于存储一个或多个计算机程序。一个或多个计算机程序被配置为被该处理器110执行。该一个或多个计算机程序包括多个指令,多个指令被处理器110执行时,可实现上述实施例中在电子设备100上执行的通话测试方法,以实现电子设备100的通话测试功能。The internal memory 121 or the
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备100平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of theUSA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100姿态,应用于横竖屏切换,计步器等应用。距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的通话测试方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to realize the call testing method in the above embodiment.
另外,本申请的一些实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的通话测试方法。In addition, some embodiments of the present application also provide a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the call testing method in the above method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请的一些实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of some embodiments of the present application are essentially or part of the contribution to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the software products are stored in a The storage medium includes several instructions for enabling a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes. .
最后应说明的是,以上实施例仅用以说明本申请的一些实施例的技术方案而非限制,尽管参照较佳实施例对本申请的一些实施例进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的一些实现例的技术方案进行修改或等同替换,而不脱离本申请的一些实施例的技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of some embodiments of the present application and not to limit them. Although some embodiments of the present application have been described in detail with reference to preferred embodiments, those of ordinary skill in the art should It is understood that the technical solutions of some implementation examples of the present application may be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of some embodiments of the present application.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211595790.3A CN115696230B (en) | 2022-12-13 | 2022-12-13 | Call testing method, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211595790.3A CN115696230B (en) | 2022-12-13 | 2022-12-13 | Call testing method, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115696230A CN115696230A (en) | 2023-02-03 |
CN115696230B true CN115696230B (en) | 2023-05-02 |
Family
ID=85055791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211595790.3A Active CN115696230B (en) | 2022-12-13 | 2022-12-13 | Call testing method, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115696230B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050098513A (en) * | 2004-04-07 | 2005-10-12 | 엠아이피텔레콤 주식회사 | The test method of sip system using sip and http |
CN101068274A (en) * | 2007-06-20 | 2007-11-07 | 中兴通讯股份有限公司 | IMS system large telephone traffic call automatic testing method and device |
CN101848481A (en) * | 2010-05-12 | 2010-09-29 | 杭州东信北邮信息技术有限公司 | System and method for testing bearer independent call control (BICC) service under access network-free condition |
CN104660587A (en) * | 2015-01-16 | 2015-05-27 | 北京邮电大学 | Malformed SIP generation method and system based on SIP processing mode |
CN112416739A (en) * | 2019-08-23 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Test method and device and electronic equipment |
CN113875287A (en) * | 2019-08-06 | 2021-12-31 | 华为技术有限公司 | An IMS voice communication method, wireless communication device and communication system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007016270A2 (en) * | 2005-07-28 | 2007-02-08 | Dilithium Networks Pty Ltd. | Method and apparatus for providing interactive media during communication in channel-based media telecommunication protocols |
-
2022
- 2022-12-13 CN CN202211595790.3A patent/CN115696230B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050098513A (en) * | 2004-04-07 | 2005-10-12 | 엠아이피텔레콤 주식회사 | The test method of sip system using sip and http |
CN101068274A (en) * | 2007-06-20 | 2007-11-07 | 中兴通讯股份有限公司 | IMS system large telephone traffic call automatic testing method and device |
CN101848481A (en) * | 2010-05-12 | 2010-09-29 | 杭州东信北邮信息技术有限公司 | System and method for testing bearer independent call control (BICC) service under access network-free condition |
CN104660587A (en) * | 2015-01-16 | 2015-05-27 | 北京邮电大学 | Malformed SIP generation method and system based on SIP processing mode |
CN113875287A (en) * | 2019-08-06 | 2021-12-31 | 华为技术有限公司 | An IMS voice communication method, wireless communication device and communication system |
CN112416739A (en) * | 2019-08-23 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Test method and device and electronic equipment |
Non-Patent Citations (2)
Title |
---|
刘树新 ; 彭建华 ; 刘彩霞 ; 谢晓龙 ; .基于Fuzz测试的IMS网络SIP漏洞挖掘模型.计算机应用研究.2019,2019年(第09期),全文. * |
张永智.基于SIP的企业通讯服务器系统设计与实现.中国优秀硕士学位论文全文数据库.2015,2015年(第03期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN115696230A (en) | 2023-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110191241B (en) | A voice communication method and related device | |
WO2020224486A1 (en) | Calling method, device and system | |
CN113542512B (en) | Call processing system, method, electronic device and storage medium | |
EP4135303B1 (en) | Method for preventing missed calls, system, electronic device, and storage medium | |
EP3826280A1 (en) | Method for generating speech control command, and terminal | |
EP3883331B1 (en) | Connection establishment method, and terminal apparatus | |
CN114095885B (en) | Communication method, system and related device | |
US20220141636A1 (en) | Emergency call method and user terminal | |
CN114697955A (en) | Encrypted call method, device, terminal and storage medium | |
CN114466324A (en) | Calling method and related device | |
CN114338913B (en) | Fault diagnosis method, electronic device and readable storage medium | |
CN115696230B (en) | Call testing method, electronic equipment and computer storage medium | |
CN114980152B (en) | A method for improving voice call quality | |
CN115019410B (en) | Sending method and electronic equipment | |
CN114050962B (en) | Communication fault detection method and device and computer readable storage medium | |
CN115017498A (en) | Operation method and electronic device of applet | |
CN115134404A (en) | Method and electronic device for managing push connections | |
CN118450043B (en) | Call processing method, terminal and storage medium | |
CN114285946B (en) | Number portability number display method, electronic equipment and storage medium | |
US20250141884A1 (en) | Communication method, communication system, and electronic device | |
CN116708674B (en) | Communication method and electronic equipment | |
CN116709220B (en) | Network connection method, device, electronic device and computer-readable storage medium | |
CN114500725B (en) | Target content transfer method, master device, slave device and storage medium | |
CN116405594A (en) | Voice communication method and device | |
CN115993592A (en) | Bluetooth ranging method, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |