eXosip_v4.1.0开发手册

     使用eXosip、osip开发SIP程序是很多人的选择,但在网上找了一个些开发说明,大部分是很早以前的版本说明。近 段有点时间,写一个eXosip新版的开发手册。目录如下:

目录
1、 前言............................................................................................................................... 5
1.1 概述 ............................................................................................................................ 5
2、 The eXtented eXosip stack ...................................................................................... 6
2.1 How-To initialize libeXosip2 ............................................................................... 7
2.1.1 Initialize eXosip and prepare transport layer ..................................... 7
2.1.2 Choosing UDP,TCP,TLS or DTLS ....................................................................... 8
2.1.3 Specific setup for TLS ................................................................................... 8
2.1.4 Additionnal setup ............................................................................................. 9
2.1.5 NAT and Contact header ................................................................................. 10
2.1.6 About DNS ........................................................................................................... 11
2.1.7 Handle eXosip2 events(eXoisp_event_t) ................................................... 12
2.2 How-To initiate,modify or terminate calls ................................................... 14
2.2.1 Initaite a call ............................................................................................... 14
2.2.2 Answer a call ................................................................................................... 16
2.2.3 Terminate a Call ............................................................................................. 17
2.2.4 Sending INFO,REFER,UPDATE,NOTIFY,OPTIONS request ............................. 17
2.2.5 Sending any other request,with any header ........................................... 18
2.3 How-To send or update registrations ............................................................... 18
2.3.1 Initiate a registration ............................................................................... 18
2.3.2 Contact header in REGISTER ......................................................................... 19
2.3.3 Set password(s) ............................................................................................... 19
2.3.4 Delete all registration ............................................................................... 20
2.3.5 Update a registration ................................................................................... 20
2.3.6 Closeing the registration ........................................................................... 20
2.3.7 Discard registration context ..................................................................... 21
3、 General purpose API ................................................................................................ 22
3.1 eXosip2 configuration API ................................................................................... 22
3.1.1 Data Structures ............................................................................................... 22
3.1.2 Macros ................................................................................................................. 22
3.1.3 Enumerations ..................................................................................................... 22
3.1.4 Functions ........................................................................................................... 23
3.1.5 Macro Definition Documentation ................................................................. 23
3.1.6 Enumeration Type Documentation ................................................................. 25
3.1.7 Functions Documentation ............................................................................... 26
3.2 eXosip2 network API ............................................................................................... 30
3.2.1 Functions ........................................................................................................... 30
3.2.2 Functions Documentation ............................................................................... 31
3.3 eXoisp event API ..................................................................................................... 31
3.3.1 Enumerations ..................................................................................................... 31
3.3.2 Functions ........................................................................................................... 32
3.3.3 Enumeration Type Documentation ................................................................. 33
3.3.4 Functions Documentation ............................................................................... 34
4、 SIP MESSAGE and call control API ...................................................................... 36
4.1 eXosip2 INVITE and Call Management ................................................................. 36
4.1.1 Functions ........................................................................................................... 36
4.1.2 Function Documentation ................................................................................. 37
4.2 eXosip2 request outside of dialog ................................................................... 43
4.2.1 Functions ........................................................................................................... 43
4.2.2 Function Documentation ................................................................................. 43
4.3 eXosip2 OPTIONS and UA capabilities Management ......................................... 45
4.3.1 Functions ........................................................................................................... 45
4.3.2 Function Documentation ................................................................................. 45
4.4 eXosip2 Publication Management ......................................................................... 47
4.4.1 Functions ........................................................................................................... 47
4.4.2 Function Documentation ................................................................................. 47
4.5 eXosip2 REFER and blind transfer Management outside of calls ............. 48
4.5.1 Functions ........................................................................................................... 48
4.5.2 Function Documentation ................................................................................. 48
4.6 eXosip2 REGISTER and Registration Management ............................................. 49
4.6.1 Functions ........................................................................................................... 49
4.6.2 Function Documentation ................................................................................. 49
4.7 eXosip2 SUBSCRIBE and outging subscriptions ............................................... 51
4.7.1 Enumerations ..................................................................................................... 51
4.7.2 Functions ........................................................................................................... 52
4.7.3 Enumeration Type Documentation ................................................................. 52
4.7.4 Function Documentation ................................................................................. 53
4.8 SUBSCRIBE and incoming subscriptions ............................................................. 55
4.8.1 Functions ........................................................................................................... 55
4.8.2 Function Documentation ................................................................................. 55
4.9 authentication API ................................................................................................. 57
4.9.1 Functions ........................................................................................................... 57
4.9.2 Function Documentation ................................................................................. 57
4.10 SDP helper API ....................................................................................................... 60
4.10.1 Functions ......................................................................................................... 60

4.10.2 Function Documentation ............................................................................... 60

具体内容下载地址为:https://download.csdn.net/download/lbc2100/10375286

猜你喜欢

转载自blog.csdn.net/lbc2100/article/details/80095195
今日推荐