19.2 用 ESL 重写空中充值服务 ....................................................................................................................834
19.3 用 ESL 写一个 ACD ................................................................................................................................ 849
19.4 用 Inbound 模式实现 IVR .................................................................................................................... 856
19.5 使用 Java 连接 ESL ............................................................................................................................... 861
19.6 使用 Erlang 控制呼叫流程 ................................................................................................................... 863
19.6.1 准备工作 ............................................................................................................................................ 863
19.6.2 将来话交给 Erlang 处理 ................................................................................................................... 865
1.7777 法 .............................................................................................................................................................. 867
2.7778 法 .............................................................................................................................................................. 867
19.6.3 用 Erlang 实现空中充值服务 ........................................................................................................... 869
19.6.4 用 Erlang 状态机实现空中充值服务 ................................................................................................ 874
19.6.5 其他 .................................................................................................................................................... 884
19.7 定时呼叫................................................................................................................................................ 888
19.8 小结........................................................................................................................................................ 889
第 20 章 源代码导读及编译指南 ..................................................................................................................... 890
20.1 准备 FreeSWITCH 源代码环境 ............................................................................................................ 891
20.2 FreeSWITCH 源代码目录结构 ................................................................................................................. 892
20.3 FreeSWITCH 源代码导读 ......................................................................................................................... 893
20.3.1 APR ......................................................................................................................................................... 893
20.3.2 SWITCH APR ......................................................................................................................................... 893
1.命名空间 ............................................................................................................................................................ 893
2.声明的宏 ............................................................................................................................................................ 895
3.apr_status_t 和返回值 ...................................................................................................................................... 895
4.内存池................................................................................................................................................................ 896
5.其他.................................................................................................................................................................... 896
20.3.3 main 函数 .............................................................................................................................................. 896
20.3.4 可加载模块 ........................................................................................................................................ 900
20.3.5 模块的结构 ........................................................................................................................................ 907
20.3.6 Session 和 Channel............................................................................................................................... 911
20.3.7 SWITCH IVR........................................................................................................................................... 917
20.3.8 Core IO .................................................................................................................................................. 919
20.3.9 Core Media ........................................................................................................................................... 925
20.3.10 Core RTP ............................................................................................................................................ 927
20.3.11 SWITCH XML ..................................................................................................................................... 931
20.3.12 SWITCH Event ................................................................................................................................... 933
20.3.13 Core Codec 和 Core File .................................................................................................................. 938
20.4 FreeSWITCH 源代码的编译 ................................................................................................................. 943
20.4.1 首次编译 ............................................................................................................................................ 943
20.4.2 增量编译 ............................................................................................................................................ 947
20.4.3 常见问题及最佳实践 ........................................................................................................................ 947
20.5 小结........................................................................................................................................................ 949