The composition principle of IP telephone communication system based on SIP protocol

Publisher:码字奇才Latest update time:2012-12-08 Source: 维库开发网 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

IP phones have been widely recognized by many consumers for their advantages such as low call rates, convenient integration and intelligence, and have thus had a huge impact on the long-distance and international telephone services of the original fixed-line operators. Therefore, with the direct access of Ethernet interfaces to households, it is very necessary to develop an IP phone with an RJ-45 Ethernet interface and direct connection to the Internet, which makes it more convenient to use. With this IP phone, users can directly dial the remote phone number, and the gatekeeper converts the dialed phone number into the IP address of the remote IP phone to establish a call connection. In fact, the new IP phone terminal can directly digitize the input voice signal and complete the real-time compression of the input voice signal according to certain voice compression coding algorithms such as G.728 or G.729, so that the bandwidth is reduced from 64kbps to 8kbps, thereby greatly improving the utilization rate of the channel. IP phone terminals usually follow the SIP (or H.323) protocol and realize the intercommunication between IP phones and ordinary phones through gateways.

1 IP Phone System Composition

The basic principle of IP telephone communication is to use digital communication technology to digitally compress and encode voice signals, then package them according to TCP/IP standards, and then send the data packets to the receiving location through the Internet. At the same time, these voice data packets are strung together at the receiving end. Then they are decoded and decompressed to restore them to the original voice signals, thereby achieving the purpose of transmitting voice over the Internet. The basic composition principle of IP telephone is shown in Figure 1.



IP phone system generally has four basic components, including IP Phone, Gateway, Multipoint Control Unit MCU (Multipoint Control Unit) and Gatekeeper. The IP Phone is the client terminal of IP phone, which is mostly in the form of hardware. It can be directly connected to the IP network for real-time voice or multimedia communication. The Gateway is the key device that provides PHONE-TO-PHONE voice communication through the IP network. It is the interface device between IP network and PSTN/ISDN/PRX network. The function of Multipoint Control Unit (MCU) is to realize multipoint communication by using IP network, so that IP phone can support one-to-many communication such as network conference. As for the Gatekeeper, sometimes also called Gatekeeper, it is mainly used to provide management of the endpoints and calls of the entire telephone system.

The main functions of the gatekeeper include address translation, call admission control, call management, and call authority. In the H. 323 recommendation, the gatekeeper is an optional part, but for the actual LAN IP telephone system, the gatekeeper is an important component. In this system, the gatekeeper is set up on a terminal with an IP address. The gatekeeper can uniformly register and manage the names and IP addresses of all terminal users, and pre-assign a virtual telephone number similar to a telephone extension to each terminal user for other terminal users to call. The calling user does not need to know the IP address of the called user's terminal, but only needs to enter the corresponding virtual telephone number or real name.

2 Hardware Design of IP Phone Standalone

IP phones are divided into receivers and callers. The end that initiates the call request is called the caller, and the other end is the receiver. Depending on different application scenarios, the caller and receiver can switch roles, that is, either party can initiate a call request. The caller initiates the call request and enters the receiver's IP address. After the two parties are successfully connected through the network, they can talk using a microphone and a handset.

The main work of IP calling is in the *stand-alone part. With the high development and maturity of ARM microprocessor technology, the design selects ARM9 microprocessor S3C2410 and μC/0S-II to build the platform to make the *stand-alone part. The basic working block diagram of the general stand-alone is shown in Figure 2.

[page]

In Figure 2, the CPU core module is a working core with CPU and memory. The microprocessor used is Samsung's S3C2410 (ARM920T), the Flash uses SST's SST39VFl60 NOR Flash, and the SDRAM uses hynix's HY57V641620HG; the Ethernet interface mainly helps the CPU to complete the reception and transmission of TCP/IP data packets. The RTL8019AS used in this design is a full-duplex plug-and-play Ethernet controller. It is compatible with RTL8019 control software and NE2000 8bit or 16bit transmission, and supports UTP, AUI, BNC and PNP automatic detection modes, and supports external flash memory read and write operations and full decoding of I/O port addresses. In addition, it also has LED indication function, and its interface complies with Ethernet2 and E802.3, 10Base5, 10Base2, 10BaseT and other standards.

The display module in the system uses an ordinary digital LCD, which is mainly used to display the telephone number and some working status of the machine; the keyboard module and EEPROM mainly provide network power

The dialing keypad of the telephone is used to complete the dialing and telephone function settings. EEPROM is mainly used to set and store system parameters. The voice module can use the UDA1341TS audio codec of Philips Semiconductor. In addition, the host computer interface in the system mainly completes the setting of some parameters and the reading of some recorded parameters.

3 System Software Design

The software work mainly includes three aspects: driver writing, task division and task writing. Since μC/OS-II basically does not provide API interface library or needs to be purchased separately, the main driver software that needs to be written in the system includes TCP/IP, LCD driver, EEPROM driver, keyboard driver, IO driver, USB driver and other programs. The writing of these driver programs generally has fixed patterns and routines. In general, IP phone software should include all the functions required to complete voice calls. The software can be divided into four parts according to the functions as shown in Figure 3.



3.1 Call processing module

The call processing module mainly completes the call establishment and removal functions. Call control can use the SIP protocol to establish a session. The call establishment process usually starts with a SIP terminal sending a call request to the local proxy server. The local proxy server queries the local redirect server to find the address of the next proxy server and forwards the call request to it. When the next proxy server receives the call request, it first searches for the proxy server of the called party's network through the redirect server, and then forwards the call request to the proxy server. After the proxy server of the called party's network determines the called terminal, it forwards the call request to the called terminal. Finally, the called terminal answers, thus achieving a connection.

3.2 Speech encoding/decoding module

Although the PCM coded data obtained by voice collection can provide good voice quality for long-distance communication, its rate is often too high, thus occupying too much network bandwidth resources. For this reason, it is generally necessary to further compress the voice data to reduce the rate of voice coding. In this way, correspondingly, the same decompression algorithm is required at the receiving end to restore the original voice data. To compile this part of the code, the current more mature voice coding and decoding algorithm can be used, and some improvements can be made to improve the quality of voice calls.

3.3 Data Packaging/Unpacking Module

The data packetization/unpacking software module mainly packs the compressed and encoded voice data, including adding a packet header, a time stamp and other information to form a voice packet. When receiving, the corresponding unpacking should be performed to extract the voice compression packet.

3.4 Data transmission module

This module mainly completes the sending and receiving of voice packets. Because the real-time transmission of audio data to the other party is the key to ensure real-time voice communication. Therefore, when considering reliability and real-time performance, more attention should be paid to speed and real-time performance. Therefore, when selecting a protocol, the UDP protocol can be used, and the corresponding datagram socket can be used when programming.

4 Conclusion

The IP telephone communication system is a telephone communication system composed of existing computer network resources. It does not require the laying of telephone lines and the purchase of telephone communication network equipment, so it can save a lot of equipment fees, line fees and engineering costs for building telephone networks. It can conveniently realize telephone communication without the need to lay telephone lines, increase telephone users, shorten the installation project cycle, improve the utilization rate of computer network resources, expand the popularity of telephones, and at the same time increase the amount of information transmission, thus having good social and economic benefits.

References:

[1]. SST datasheet http://www.dzsc.com/datasheet/SST_1180824.html.
[2]. HY57V641620HG datasheet http://www.dzsc.com/datasheet_390467.html.
[3]. RTL8019AS datasheet http://www.dzsc.com/datasheet/.html.
[4]. RTL8019 datasheet http://www.dzsc.com/datasheet/RTL8019_1063656.html.
[5]. BNC datasheet http://www.dzsc.com/datasheet/BNC_2319479.html.

Reference address:The composition principle of IP telephone communication system based on SIP protocol

Previous article:Application design of PWM music player based on STM32
Next article:Design of embedded infrared thermal imaging system based on Linux

Recommended ReadingLatest update time:2024-11-16 22:45

Linux driver: s3c2410/s3c2440 ts driver analysis part two
I. Introduction The loading process of the ts (touch) driver was analyzed previously based on the "Platform Bus-Device-Driver" model. Now let's analyze the specific implementation of the driver. It involves a detailed explanation of the input subsystem, input core layer program analysis, evdev event processing layer p
[Microcontroller]
S3C2410 GPIO interface
GPIO is a set of pins that can be used to: (1). Output: high level / low level (2). Read the pin status: high level / low level   S3C2410 has a total of 117 GPIO pins, divided into 8 groups: GPA/GPB/GPC/GPD/GPE/GPF/GPG/GPH   You can set a register to determine whether a pin is used for input/output/or othe
[Microcontroller]
S3C2410 GPIO interface
A comprehensive comparison between s3c2410 and s3c2440
1. The maximum main frequency is different: 2410 is 200M, 2440 is 400M.       When we use these two processors, we usually use different main frequencies. This difference not only affects the running speed, but also affects the clocks of some peripherals (such as serial ports). If the clocks of these peripherals are
[Microcontroller]
Brief Introduction of Windows CE.NET Porting on S3C2410 Processor
This paper analyzes the characteristics of embedded operating system Windows CE. NET and uses the tool Platform Builder 4.2 to customize it on S3C2410 processor with ARM920T as the core. 1 Windows CE system and Platform Builder 4.2 Windows CE is a 32-bit, multi-threaded, multi-tasking embedde
[Microcontroller]
Brief Introduction of Windows CE.NET Porting on S3C2410 Processor
Design of IP Phone Communication Based on ARM9 Microprocessor S3C2410
0 Introduction IP phones have been widely recognized by many consumers for their advantages such as low call rates, convenient integration and intelligence, and have thus had a huge impact on the long-distance and international call services of the original fixed-line operators. Therefore, with the direct access
[Microcontroller]
Design of IP Phone Communication Based on ARM9 Microprocessor S3C2410
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号