摘 要
IP电话技术以其巨大的应用优势赢得了市场的青睐,成为当今世界上发展最快的应用技术之一。其中由IETF(Internet Engineering Task Force,Internet工程任务组 )提出的IP电话信令协议SIP,以其简单、灵活、开放性、分布式控制和易于扩展等优点逐渐在VoIP通信领域内占据主导地位。
本文主要对基于SIP的VoIP系统进行了分析。该系统包括定位服务器、用户代理、注册服务器、重定向服务器、代理服务器,并简单介绍系统各模块,同时也简单的介绍了SIP协议。本文重点设计了定位服务器,它实际上是一个数据库,它是使用SIP协议的体系结构中的重要组成部分。首先介绍定位服务器设计的三个主要方面,然后分析了定位服务器在整个网路中的位置和功能以及在整个呼叫过程中所起的作用。同时也对定位服务器的路由体制进行了简单的介绍。最后介绍了定位服务器的几种工作模式:代理模式、重定向模式等并对定位机制进行了扩展。大学论文网www.wnwu.com.txt
最后,在局域网对该系统的各项功能进行了测试,实现了定位服务器的各项功能,测试结果表明定位服务器可以较好的完成设计的预期功能。
关键词:SIP,VOIP,定位服务器
ABSTRACT
IP telephone applications with its huge advantages win the favor of the market and become one of the world's fastest growing application of technology. One proposed by IETF (Internet Engineering Task Force, Internet Engineering Task Force)has gradually domained in the VoIP communications field because of its simple, flexible, open, distributed controlled and easy to expanded advantages.
In this paper, the SIP-based VoIP systems were analyzed. The system includes location server, the user agent, registered servers, redirect servers, proxy servers, and a brief introduction of the system modules and the SIP protocol. This article focused on the design of the location server, which is actually a database. It uses the important components of the SIP protocol architecture. First, the paper introduced the three main areas of location server design, and then analyzed the location server in the network and the location and function in the whole process of calling the role. Also the paper had a brief introduction on the routing system of location Server. Finally, the paper introduced several server mode of the location: Acting mode, redirect mode and positioning mechanism for the expansion. 大学论文网www.wnwu.com.txt
Finally,the system was tested in the LAN function, and the various functions of the positioning of server were realized. Test results showed that the location server can be used to complete the expected features of design.
Keywords: SIP,VoIP,Location Server
目 录
第1章 绪论 1
1.1项目背景 1
1.2项目意义 2
1.3本文主要内容 3
第2章 相关技术介绍 4
2.1 SIP协议栈 4
2.1.1协议栈结构 4
2.1.2 C/S网络结构 5
2.2会话初始协议 5
2.2.1功能概述 5
2.2.2协议分层结构 6
2.2.3 SIP请求 6
2.2.4 SIP响应 7
2.3会话描述协议 7
2.4 MySQL相关介绍 8
2.4.1 MySQL体系结构 8
2.4.2创建数据库 8
2.4.3查询的处理 9
2.4.4 MySQL服务器对数据的访问 9
2.4.5 OpenSER与Mysql的整合 10
第3章 基于SIP的VOIP系统 11
3.1体系设计大学论文网www.wnwu.com.txt 11
3.2用户代理功能概述 12
3.3代理服务器功能概述 12
3.4注册服务器模块 13
3.5定位服务器 14
3.6重定向服务器 15
第4章 定位服务器设计 17
4.1定位服务器设计 17
4.1.1定位服务器功能概述 17
4.1.2定位服务器设计 17
4.2定位服务器路由体系 18
4.3 SIP网络结构 18
4.4 SIP基本呼叫过程 20
4.5定位服务及其实现 21
4.5.1代理服务模式 21
4.5.2重定向服务模式 22
4.5.3多个返回位置情况 24
4.5.4定位机制扩展 25
4.5.5定位服务器所涉及的流程图 27
4.6 本章小结 28
第5章大学论文网www.wnwu.com.txt 系统实现 29
5.1运行环境 29
5.2运行过程及结论 29
5.2.1注册过程 29
5.2.2会话建立过程 31
5.2.3主要功能实现代码 34
5.2.4运行结论 36
总结与展望 1
参考文献 1
致谢 1
附 录1 1
附 录2 1