diff --git a/config.yaml b/config.yaml index e1574c759..0f96c9f76 100644 --- a/config.yaml +++ b/config.yaml @@ -126,17 +126,21 @@ menu: url: /vim/ weight: 10 - identifier: id_fe - name: "Frontend" + name: "前端" url: /fe/ weight: 10 - - identifier: id_container - name: "k8s/docker" - url: /container/ - weight: 10 - - identifier: id_shell - name: "Shell" - url: /shell/ + - identifier: id_kama + name: "Kamailio" + url: /kamailio/ weight: 10 + # - identifier: id_container + # name: "k8s/docker" + # url: /container/ + # weight: 10 + # - identifier: id_shell + # name: "Shell" + # url: /shell/ + # weight: 10 - identifier: id_opensips name: "OpenSIPS" url: /opensips/ diff --git a/content/kamailio/_index.md b/content/kamailio/_index.md new file mode 100644 index 000000000..42a336ece --- /dev/null +++ b/content/kamailio/_index.md @@ -0,0 +1,12 @@ +--- +title: 新朋友 - kamailio学习笔记 +linktitle: Kamailio +description: Kamailio VOIP +toc: true +--- + +本笔记针对有有一定OpenSIPS基础的人来看, 否则,建议您查看[OpenSIPS2.4.X 中文实战系列](/opensips/),。 + +在后文中,我们简称Kamailio为km。 + +# 文章列表 \ No newline at end of file diff --git a/content/kamailio/docs-index/atta/2024-12-02-22-57-06.png b/content/kamailio/docs-index/atta/2024-12-02-22-57-06.png new file mode 100644 index 000000000..8bf18194c Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-22-57-06.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-03-53.png b/content/kamailio/docs-index/atta/2024-12-02-23-03-53.png new file mode 100644 index 000000000..acea0dbb8 Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-03-53.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-05-57.png b/content/kamailio/docs-index/atta/2024-12-02-23-05-57.png new file mode 100644 index 000000000..7b3fae7d0 Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-05-57.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-07-06.png b/content/kamailio/docs-index/atta/2024-12-02-23-07-06.png new file mode 100644 index 000000000..4ddaf3747 Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-07-06.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-12-53.png b/content/kamailio/docs-index/atta/2024-12-02-23-12-53.png new file mode 100644 index 000000000..1c46d7c9e Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-12-53.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-16-07.png b/content/kamailio/docs-index/atta/2024-12-02-23-16-07.png new file mode 100644 index 000000000..da17a3191 Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-16-07.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-31-00.png b/content/kamailio/docs-index/atta/2024-12-02-23-31-00.png new file mode 100644 index 000000000..1e9bc2a20 Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-31-00.png differ diff --git a/content/kamailio/docs-index/atta/2024-12-02-23-33-15.png b/content/kamailio/docs-index/atta/2024-12-02-23-33-15.png new file mode 100644 index 000000000..746567dab Binary files /dev/null and b/content/kamailio/docs-index/atta/2024-12-02-23-33-15.png differ diff --git a/content/kamailio/docs-index/index.md b/content/kamailio/docs-index/index.md new file mode 100644 index 000000000..d52d13da9 --- /dev/null +++ b/content/kamailio/docs-index/index.md @@ -0,0 +1,64 @@ +--- +title: "第一节 如何熟悉Kamailio文档的文档结构" +date: "2024-12-02 22:43:24" +draft: false +type: posts +tags: +- kamailio +categories: +- all +--- + +对于熟悉OpenSIPS的文档结构来说的人,看了Kamailio的文档,往往觉得无从下手。 + +当我们打开Km的官网(kamailio.org)后, 会重定向到https://www.kamailio.org/w/, 在页面的右侧, + +![](atta/2024-12-02-22-57-06.png) + +接着,我们会导航到 https://www.kamailio.org/w/documentation/ + +这个页面的结构需要烂熟于心 + +# 1. 模块文档 + +如果你知道km的版本号和对应的模块,可以点击这里进入对应版本,然后再选择对应模块 + +![](atta/2024-12-02-23-03-53.png) + + +# 2. wiki部分 + +## 2.1 必学部分 +wiki部分主要是一些教程,非常值得看。 + +![](atta/2024-12-02-23-05-57.png) + +其中有三个重点部分 +1. **core cookbook**: 主要讲解km的脚本的结构、全局参数、模块参数、路由类型、预处理、脚本操作等等,是编写km脚本的必学之处,各种参数都可以看看 +2. **Pseudo-Variables CookBook**:主要讲解各种伪变量,用来读写SIP消息 +3. **Transformations CookBook**: 主要讲解各种操作变换,例如把字符串型转为int型数据 + +![](atta/2024-12-02-23-07-06.png) + +## 源码安装 + +这部分讲解如何通过GIT进行源码安装。 + +![](atta/2024-12-02-23-12-53.png) + +## FAQ +https://www.kamailio.org/wikidocs/tutorials/faq/main/ + +## 外部资源 + +这里涉及了如何用km和常见的媒体服务器如何集成 + +![](atta/2024-12-02-23-16-07.png) + +![](atta/2024-12-02-23-31-00.png) + +![](atta/2024-12-02-23-33-15.png) + +# 总结 + +总体来说,km的文档算是非常完整了,但是相比于OpenSIPS, 还是缺少一个全局的函数指引,例如我知道函数名,但是不知道是在哪一个模块里,想找到这个模块,就只能靠搜索引擎的支持了。 \ No newline at end of file