Preprint
Article

This version is not peer-reviewed.

Reference Phone Number: A Secure and QoS-Improved SIP-Based Phone System

A peer-reviewed version of this preprint was published in:
Electronics 2025, 14(5), 874. https://doi.org/10.3390/electronics14050874

Submitted:

25 January 2025

Posted:

27 January 2025

You are already at the latest version

Abstract
With the improvement of the internet and the widespread adoption of digital communication devices such as smartphones, VoIP has largely replaced traditional telephone systems. Many companies are deploying VoIP systems due to their scalability and low cost. In this paper, address the issue of remote clients or traveling employees being unable to contact business partners due to specific phone numbers. We propose a reference phone number mechanism that combines a set of related business partners' phone numbers to enhance call availability. To ensure the confidentiality of calls, we also designed an algorithm to integrate key exchange protocols into the proposed mechanism. The mechanism can flexibly customize the required security protocols. A performance analysis is conducted by deploying the proposed mechanism in a medium-sized company. The results prove that the mechanism is feasible and the effect is satisfactory.
Keywords: 
;  ;  ;  ;  

1. Introduction

With the widespread deployment of optical fiber lines in wired networks and the vigorous development of 4G/5G mobile networks, the bandwidth of the network has increased significantly. Voice over Internet Protocol (VoIP) has almost replaced the traditional phone systems such as the analog PBX phone system. People who own smartphones have mobile numbers, but in order to save communication costs, they still prefer to communicate through VoIP applications installed in their smartphones. Many companies have also deployed VoIP systems to reduce operating costs, especially for multinational companies that require overseas phone calls or video conferencing. Moreover, VoIP also provides scalability, allowing growing businesses to expand their branches and employees. The portability of virtual phone numbers like VoIP also brings convenience to employees who frequently travel. In order to provide a stable and versatile method to perform VoIP, many protocols have been invented to support VoIP services, such as H.323 [27], Media Gateway Control Protocol (MGCP) [28] and SIP. Among all these protocols, 3GPP defines SIP as one of the most important signaling protocols for VoIP, because SIP has many advantages such as ease to implement, support for multimedia communications, modularity, and Extensibility. SIP has user-friendly syntax and operations similar to HTTP, making it rapid to understand and deploy. SIP supports multimedia communication sessions, including voice, video, instant messaging, and presence. The modular architecture of SIP allows the addition of new features and functionalities through extensions and adjustments.

2. Background and Motivation

There has been a long-standing demand for secure VoIP communication between private companies and public institutions. Therefore, numerous encryption mechanisms have been designed and adopted to protect end-to-end communication. These encryption mechanisms require the establishment of a session between two user agents, in which the two user agents exchange certificates containing their public keys. That is, callers must remember the callee's phone number to initiate a dial-up call. This presents a significant inconvenience for users who must communicate with a large number of customers or colleagues, as well as for engineers who are traveling or working remotely and need to temporarily reach out to operators in the data center. To offer users more convenient VoIP services, the need for virtual reference phone numbers arises. Figure 1 illustrates the demand structure. The reference phone numbers are virtual, meaning corresponding physical certificates cannot be exchanged to negotiate session keys. Therefore, to address this need, this article makes the following contributions:
  • We proposed a mechanism for converting reference phone numbers to physical phone numbers and demonstrated its feasibility by implementing the mechanism.
  • After deployment and application, as well as the statistical data analysis in this paper, the call success rate proves to be efficient and meets users' expectations.
  • The proposed mechanism is universal, meaning users have the flexibility to replace the key agreement algorithm or VoIP protocol with their preferred choices.
The structure of this article is as follows. Section III describes the necessary knowledge and related work. In Section IV, we propose architecture employing algorithmic reference phone numbers. The performance of the proposed approach is shown in Section V, along with a discussion of its benefits and drawbacks. Section VI concludes the work as well as some ideas for future research.

4. Proposed Method

4.1. The Architecture

We implemented a realistic framework, as shown in Figure 4, to verify the practicality of the proposed mechanism and analyze its performance. The fundamental idea is
comparable to that of a SIP proxy server that is commonly deployed. In order to establish a call session, each SIP proxy server provides authentication, grants access, and routes call setup signals to other servers where the callee is registered. Additionally, each SIP proxy server contains a directory that houses all user certificates, including the public key. The database containing information on SIP servers, agents, and related data is protected by a firewall. Communication ports have been modified to help prevent attacks targeted to compromise standard SQL and SIP settings. VoIP end devices register with the SIP proxy server over the Internet and set up a Transport Layer Security (TLS) tunnel before sending SIP signals. Additionally, each VoIP end device has a private key stored in secure memory.

4.2. Algorithms

In order to protect the confidentiality of the session, we refer to [23] and adopt the ECMQV algorithm to be integrated into the SIP protocol. Symbols, algorithm, and integrated protocol are illustrated in Table 1, Algorithm 1, and Figure 5, respectively.
As shown in Figure 5, the caller sends a SIP invite message containing his/her ephemeral public key cG. A SIP proxy server checks its database and the directory containing public keys. If the callee exists, the SIP proxy server will respond to the caller with the callee’s static public key (bG) and forward the INVITE message to the callee. After receiving the INVITE message, the callee will reply with a SIP 200 OK message including his/her ephemeral public key dG. The SIP proxy server will return the caller’s static public key (aG) to the callee and transfer the 200 OK message to the caller. The caller uses the callee's temporary and static public key received from the SIP proxy server paired with its own long- and short-term private key to calculate the Q-point. The session key K is then generated by hashing the extracted x-coordinate of the Q point. Finally, the caller sends the message authentication code of the session key MAC(K) which is produced by encrypting 16 bytes of zeros. The callee verifies the MAC by calculating the common session key.
Next, the pseudocode proposed in Algorithm 2 is used to solve the virtual reference phone number that does not have a corresponding public key. When a caller dials a reference phone number, the SIP proxy server searches for the group it represents. For example, a reference phone number 77777 may represent a group of numbers (70001, 70002, 70003, 70004) with related services. If the SIP proxy server cannot find its group, the number may be wrong and the algorithm 2 returns 0 which will be converted into a SIP 404 Not Found message to the caller. If the group exists, the algorithm checks the status of the numbers in the group one by one. When the algorithm finds an available number, then it searches the directory for the corresponding certificate. If the certificate is not found, -1 is returned, which is converted into a SIP 403 Forbidden message. If all the conditions are met, the number is passed back to the SIP proxy server; otherwise, the SIP proxy server will obtain 1 and interpret it as a SIP 486 Busy message. As a result, when the SIP proxy server gets an available number n, it will send the static public key of n to the caller and proceed the process as illustrated in Figure 5.
Algorithm 1: ECMQV algorithm
Input: A set of domain parameters (#E(Fp), q, h, G),
               private keys (a, c), and
       public keys (aG, cG, bG, dG)
Output: A session key K
1. l o g 2 # E ( F q ) / 2 n
2. x c G m o d   2 n + 2 n u
   #The x coordinate of the public key ( c G ) is converted to an integer
3. c + u a   m o d   q s
4. x d G m o d   2 n + 2 n v
   #The x coordinate of the public key ( d G ) is converted to an integer
5. s ( d G + v b G ) Q
6. return K = H a s h ( Q x )

5. Result and Analysis

The experimental environment is set up with the following. A hypervisor VMware ESXi 6.5 is installed and configured on a 1U rack Dell PowerEdge R450 server with DDR4-2400 64GB Memory and Intel Xeon Silver 4210 2.20GHz, 10 cores. Then we created and configured five virtual machines on the ESXi management console, including four SIP proxy servers and one RTP relay server running on the Ubuntu 18.04 operating system. The SIP proxy server is developed and modified from the free open source framework - Asterisk. A MySQL database virtual machine was created using a 1U rack Dell PowerEdge R350 server with Intel Xeon E-2300 3.1G 8 cores and DDR4-3200 16GB, and the virtual machine hypervisor VMware ESXi 6.5 installed.
Algorithm 2: Reference Phone Number algorithm
Input: A reference phone number R
Output: A real number n or 1 or 0
1. S e a r c h _ G r o u p ( R ) N
2. i f   N   e x i s t s
3.         f o r   n   i n   N
4.                           C h e c k _ S t a t u s ( n ) s
5.                           i f   s   b u s y
6.                                           i f   f i l e _ e x i s t ( s e a r c h _ c e r t ( n ) )
7.                                                                   r e t u r n   n
8.                                            e l s e
9.                                                                   r e t u r n - 1
10.           r e t u r n   1
11. e l s e
12.       r e t u r n   0
The deployment of terminal devices has become complex due to the presence of wired and wireless (mobile) equipment. The smartphone model is the HTC U20, equipped with a MicroSD card that has encryption capabilities, and installed a customized VoIP application designed by us. The conceptual diagram is illustrated as Figure 6.
A wired desk phone connects to a custom VoIP gateway equipped with a Hardware Security Module (HSM) for key exchange and encryption. The conceptual diagram is shown in Figure 7.
The proposed system is deployed in an organization with 200 employees. The statistical results of call establishment success are presented in Table 2. The author divides the status of calls into 12 categories. "Successful Call Setup" means that the communicating parties successfully conducted a conversation. "Missed Call" means the called party did not answer the call. "Line Busy" indicates that the callee's line is currently in use or occupied. "Offline" means that the callee is not registered to the SIP proxy server. "Callee No Response" means that the SIP proxy server forwarded the INVITE signal to the callee, but the callee did not respond for some unknown reason. "Wrong Number" means the caller dialed a phone number that does not exist. "Call Rejected" means the callee hangs up the phone directly. "Call Forbidden" means the callee’s account is illegal or the callee’s certificate does not exist. "System Service Abnormality" means that the SIP proxy server cannot process SIP signals normally. "ACK timeout" refers to the situation where, after receiving a SIP 200 OK response, the system waits for the final SIP ACK signal for a duration that exceeds the specified time limit. "Unstable Network, Msg Lost" indicates that the SIP signal is lost or cannot be successfully delivered due to unstable network conditions. All remaining cases are classified as "Other" status. The statistical data collection period is from January 15th to 19th. In order to evaluate the trend changes, the "Connection Success Rate" is defined as the following equation,
S u c c e s s f u l   C a l l   S e t u p + M i s s e d   C a l l + L i n e   B u s y   + W r o n g   N u m b e r + C a l l   R e j e c t e d t o t a l   c a l l s
, and the equation for "Call Setup Rate" is defined as follows.
C a l l e e   N o   R e s p o n s e   +   L i n e   B u s y t o t a l   c a l l s
And the equation of "System Abnormality Rate" is defined as the below.
S u c c e s s f u l   C a l l   S e t u p +   C a l l   F o r b i d d e n +   S y s t e m   S e r v i c e   A b n o r m a l i t y + U n s t a b l e   N e t w o r k ,   M s g   L o s t t o t a l   c a l l s
The trend of call success rate is shown in Figure 8, the call connection success rate is as high as over 95%, which means users can smoothly access services and initiate calls. As we can see, the call is not dialed to a specific callee, but to a reference phone number that multiple callees can respond to. As a result, callers will experience fewer busy lines. However, an idle number does not guarantee that the callee is necessarily available at their seat, so there is still a possibility of missed calls happened. Since the caller may be in an unstable or poor network environment, SIP signals may sometimes be lost. States 4 and 10 can be classified as the aforementioned situations. Definitely, even with a reference phone number, callers may still dial the wrong number. Overall, the probability that users were able to find the callee and establish a call is about 80%, indicating that customers or employees traveling abroad can usually reach a business partner when making a phone call, thereby improving service satisfaction.

6. Conclusions

In order to solve the issue of not being able to reach the relevant business personnel by phone while other personnel are available to answer the call, this study presents a practical VoIP service that improves call availability by utilizing reference phone numbers. The system can be built on the traditional SIP VoIP framework. By incorporating the proposed algorithms into existing servers and terminals, upgrading services can be seamlessly integrated. We also analyzed the performance of the reference phone number mechanism through actual deployment, and the mechanism showed satisfactory results, proving its practicality. As future work, research will be conducted on transferring calls from landline numbers to mobile numbers while implementing the corresponding key exchange mechanisms to ensure call security.

Author Contributions

The research contribution is as following statements. WenBin Hsieh is responsible for Conceptualization, methodology, software, validation, resources, data curation, writing—original draft preparation, writing—review and editing, visualization, supervision, and project administration. All authors have read and agreed to the published version of the manuscript.

Funding

There is no funding for this research.

Data Availability Statement

All research data is included within the content of the research.

Acknowledgments

We acknowledge the support provided to all users of this system.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. C. Shen, E. Nahum, H. Schulzrinne, and C. Wright, "The impact of TLS on SIP server performance," in Principles, Systems and Applications of IP Telecommunications (IPTComm '10), New York, NY, USA, 2010, pp. 59–70.
  2. T. Zourzouvillys and E. Rescorla, "An Introduction to Standards-Based VoIP: SIP, RTP, and Friends," in IEEE Internet Computing, vol. 14, no. 2, pp. 69-73.
  3. R. Rivest. The MD5 Message-Digest Algorithm. RFC 1321, April 1992.
  4. H. Schulzrinne, S. Casner, R. Frederick, and V. Jacobson. RTP: A Transport Protocol for Real-Time Applications. RFC 3550, July 2003.
  5. S. Paul, "Real-Time Transport Protocol (RTP)," in Multicasting on the Internet and its Applications, Boston, MA: Springer, 1998, pp. 193-201.
  6. Z. Liping, T. Shanyu, Z. Shaohui, "An energy efficient authenticated key agreement protocol for SIP-based green VoIP networks, " Journal of Network and Computer Applications, Volume 59, 2016, pp. 126-133.
  7. [7] M. Azrour, M. Ouanan, and Y. Farhaoui, "A New Efficient SIP Authentication and Key Agreement Protocol Based on Chaotic Maps and Using Smart Card," In Proceedings of the 2nd International Conference on Computing and Wireless Communication Systems (ICCWCS'17), NY, USA, Article 70, 2017, pp. 1–8.
  8. S.A. Chaudhry, H. Naqvi, M. Sher, M.S. Farash, M.U. Hassan, "An improved and provably secure privacy preserving authentication protocol for SIP," Peer-Peer Netw. Appl., 10, 2017, pp. 1–15. [CrossRef]
  9. M. Nikooghadam, R. Jahantigh, H. Arshad, "A lightweight authentication and key agreement protocol preserving user anonymity," Multimed. Tools Appl., 76, 2017, pp.13401–13423. [CrossRef]
  10. M. Burrows, M. Abadi, and R. Needham, "A logic of authentication," ACM Trans. Computer Systems, vol. 8, no. 1, 1990, pp. 18-36. [CrossRef]
  11. N. Ravanbakhsh, M. Mohammadi, M. Nikooghadam, "Perfect forward secrecy in VoIP networks through design a lightweight and secure authenticated communication scheme," Multimed. Tools Appl., 78, 2019, pp. 11129–11153. [CrossRef]
  12. W. Diffie, P.C. Van Oorschot, and M.J. Wiener, "Authentication and authenticated key exchanges," Des Codes Crypt, vol. 2, 1992, pp. 107–125. [CrossRef]
  13. Armando, D. Basin, Y. Boichut, Y. Chevalier, L. Compagna, J. Cuéllar, P.H. Drielsma, P.C. Héam, O. Kouchnarenko, J. Mantovani, "The AVISPA tool for the automated validation of internet security protocols and applications," In: International Conference on Computer Aided Verification. Springer, 2005, pp 281–285. [CrossRef]
  14. M. Nikooghadam, H. Amintoosi, "Perfect forward secrecy via an ECC-based authentication scheme for SIP in VoIP," J. Supercomput., 76, 2020, pp. 3086–3104. [CrossRef]
  15. C. Cremers, "Scyther, Semantics and Verifcation of Security Protocols," Ph.D. dissertation, Eindhoven University of Technology, 2006.
  16. D. Xu, S. Zhang, J. Chen, and M. Ma, "A provably secure anonymous mutual authentication scheme with key agreement for SIP using ECC," Peer-to-Peer Networking and Applications, vol. 11, pp. 837–847, Sep. 2018. [CrossRef]
  17. M. Ul Hassan, S. Chaudhry, and A. Irshad, "An improved SIP authenticated key agreement based on Dongqing et al.," Wireless Personal Communications, vol. 110, pp. [page numbers], Feb. 2020. [CrossRef]
  18. Vocal Technologies Ltd., "Secure SIP," Vocal Technologies, [Online]. Available: https://vocal.com/sip/secure-sip/. [Accessed: March 20, 2024].
  19. J. Rosenberg, H. Schulzrinne, G. Camarillo, A. Johnston, J. Peterson, R. Sparks, M. Handley, and E. Schooler, "SIP: Session Initiation Protocol," RFC 3261, Internet Engineering Task Force, June 2002.
  20. B. Roach, "Security Mechanism Agreement for the Session Initiation Protocol (SIP)," RFC 3329, Internet Engineering Task Force, January 2003.
  21. SIPTRUNK, "A Brief Guide to SIP Security," SIPTRUNK, [Online]. Available: https://www.siptrunk.com/2019/08/a-brief-guide-to-sip-security/. [Accessed: March 23, 2024].
  22. T. T. Carrara, R. Housley, C. J. Kalt, and J. C. R. Lazzaro, "The Secure Real-time Transport Protocol (SRTP)," RFC 3711, Internet Engineering Task Force, March 2004.
  23. W.-B. Hsieh and J.-S. Leu, "Implementing a secure VoIP communication over SIP-based networks," Wireless Networks (WINET), vol. 24, no. 8, pp. 2915-2926, Nov. 2018. [CrossRef]
  24. Blake, G. Seroussi, and N. Smart, "Advances in elliptic curve cryptography," London Mathematical Society Lecture Note Series, vol. 317, Cambridge, UK: Cambridge University Press, 2005.
  25. [HTC, "Inserting SIM and SD - HTC U20 5G - Support | HTC Taiwan," HTC Taiwan, [Online]. Available: https://www.htc.com/tw/support/htc-u20-5g/howto/inserting-sim-and-sd.html. [Accessed: April 8, 2024].
  26. Yeastar. (n.d.). VoIP Gateways. [Online]. Available: https://www.yeastar.com/voip-gateways/. [Accessed: April 8, 2024].
  27. ITU-T Recommendation H.323: "Packet-based multimedia communications systems," ITU-T H.323, 2009.
  28. ITU-T, "Gateway control protocol," ITU-T Recommendation H.248, 2015.
Figure 1. A virtual reference phone number to physical VoIP numbers.
Figure 1. A virtual reference phone number to physical VoIP numbers.
Preprints 147244 g001
Figure 2. SIP stateful proxy for authentication.
Figure 2. SIP stateful proxy for authentication.
Preprints 147244 g002
Figure 3. Location of RTP/RTCP in the protocol stack.
Figure 3. Location of RTP/RTCP in the protocol stack.
Preprints 147244 g003
Figure 4. A realistic operational framework.
Figure 4. A realistic operational framework.
Preprints 147244 g004
Figure 5. The standard SIP protocol integrates ECMQV algorithm.
Figure 5. The standard SIP protocol integrates ECMQV algorithm.
Preprints 147244 g005
Figure 6. [25]: The smartphone is equipped with a MicroSD card that has encryption capabilities.
Figure 6. [25]: The smartphone is equipped with a MicroSD card that has encryption capabilities.
Preprints 147244 g006
Figure 7. [26]. This schematic illustrates a VoIP phone connecting to a VoIP gateway equipped with HSM.
Figure 7. [26]. This schematic illustrates a VoIP phone connecting to a VoIP gateway equipped with HSM.
Preprints 147244 g007
Figure 8. Statistical trend line chart.
Figure 8. Statistical trend line chart.
Preprints 147244 g008
Table 1. Domain parameters in Elliptic curve cryptography.
Table 1. Domain parameters in Elliptic curve cryptography.
Symbol Meaning
G The base point consists of (x, y) coordinate.
SEED If the elliptic curve was produced randomly in a verifiable manner, an optional bit string is added.
q The size of a field, which is a number p or 2m where p and m are primes.
FR A basis indication.
a, b Two field variables that establish the curve's equation.
n The point G’s order
h The cofactor that results from dividing the curve's order by n.
Table 2. Statistics of call status.
Table 2. Statistics of call status.
Date
Status
’24/01/15 ’24/01/16 ’24/01/17 ’24/01/18 ’24/01/19
Successful Call Setup*1 300 256 255 199 181
Missed Call*2 48 34 41 20 38
Line Busy*3 24 16 7 3 7
Offline 5 10 14 0 7
Callee No Response*4 5 2 0 0 2
Wrong Number*5 6 4 3 11 2
Call Rejected*6 0 0 0 0 0
Call Forbidden*7 0 0 0 0 0
System Service Abnormality*8 0 0 0 0 0
ACK timeout*9 0 0 0 0 0
Unstable Network, Msg Lost*10 1 5 3 1 1
Other*11 1 0 0 0 0
*1. Connection Success Rate = (1 + 2 + 3 + 5 + 6)/Total. *2. Call Setup Rate = (1 + 3)/Total. *3. System Abnormality Rate = (4+7+8+10)/Total.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated