| CPC H04W 76/20 (2018.02) [H04L 65/1016 (2013.01); H04L 65/1073 (2013.01); H04L 65/1104 (2022.05); H04W 88/06 (2013.01)] | 17 Claims |

|
1. A communication configuration method, performed by an electronic device, wherein the electronic device comprises:
at least two Subscriber Identity Module (SIM) cards, wherein a first SIM card of the at least two SIM cards is used to provide mobile data service communication, a second SIM card of the at least two SIM cards is registered with an IP Multimedia Subsystem (IMS) service, and the method comprises:
during the electronic device is used as a Session Initiation Protocol (SIP) client and, at the same time, performs data communication through the first SIM card,
configuring that the second SIM card communicates with a SIP server by using a User Datagram Protocol (UDP) transmission mode; or
configuring that the second SIM card communicates with the SIP server by using a Transmission Control Protocol (TCP) transmission mode, and
after determining that the second SIM card has completed sending of a SIP request and receiving of a SIP response, interrupting an established TCP socket; and
during the electronic device is used as a SIP server, prohibiting the second SIM card of the electronic device from sending a heartbeat packet that is used to maintain a TCP connection.
|