Centos 6.4 minimal kamailio编译安装

开发者福利!热门AI工具限时免费用 购周边即赠Coding Plan Lite,Claude Code、Cursor等20+工具畅享,效率翻倍! 阅读详情

安装websocket模块所需库

 yum install libunistring libunistring-devel


提示:/usr/bin/ld: cannot find -lmysqlclient

解决办法:rpm -ivh MySQL-shared-5.6.14-1.linux_glibc2.5.x86_64.rpm

 rpm -ivh MySQL-devel-5.6.14-1.linux_glibc2.5.x86_64.rpm


提示:chown: invalid user: `kamailio:kamailio'

解决办法:adduser -U kamailio


提示:/etc/init.d/kamailio: line 148: start-stop-daemon: command not found

下载:http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz

tar xvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz

cd apps/sys-utils/start-stop-daemon-IR1_9_18-2/

 gcc start-stop-daemon.c -o start-stop-daemon

cp start-stop-daemon /usr/sbin



Install And Maintain Kamailio v4.0.x Version From GIT

Main author:
   Daniel-Constantin Mierla <miconda (at) gmail.com>

This is a step by step tutorial about how to install and maintain Kamailio SIP Server version 4.0.x using the sources downloaded from GIT repository - the choice for those willing to write code for Kamailio or to try the new features to be released in the future with the next major stable version.

This document focuses on Kamailio v4.0.x with MySQL support, using a Debian unstable system.

The first version in release series 4.0 is 4.0.0, 4.0.x refers to the most recent version released at some point in time that starts with 4.0.

Note that Kamailio provides APT repositories for several Debian/Ubuntu releases, you can use them to do the install from .deb packages, see:

Notes on Kamailio vs SER

Since version 4.0.0, Kamailio and SER integration was fully completed, there are no more duplicated modules and a single database schema. Default flavour is kamailio, setting this name to the application and database. SER flavour can be compiled using make command line options (practically, flavour system is now just about naming the application and related components).

1. Prerequisites

To be able to follow the guidelines from this document you need root access.

The following packages are required before proceeding to the next steps.

  • git client: apt-get  install git-core - it is recommended to have a recent version, if your Linux distro has an old version, you can download newer one from:  http://git-scm.com/
  • gcc compiler: apt-get  install gcc
  • flex - apt-get  install flex
  • bison - apt-get  install bison
  • libmysqlclient-dev - apt-get  install libmysqlclient-dev
  • make - apt-get  install make
  • if you want to enable more modules, some of them require extra libraries:
    • libssl - apt-get  install libssl-dev
    • libcurl - apt-get  install libcurl4-openssl-dev
    • libxml2 - apt-get  install libxml2-dev
    • libpcre3 - apt-get  install libpcre3-dev

2. Getting sources from GIT

First of all, you have to create a directory on the file system where the sources will be stored.

  mkdir -p /usr/local/src/kamailio-4.0
  cd /usr/local/src/kamailio-4.0

Download the sources from GIT using the following commands.

  git clone --depth 1 --no-single-branch git://git.sip-router.org/sip-router kamailio
  cd kamailio
  git checkout -b 4.0 origin/4.0

Note: if your git client version does not support –no-single-branch command line parameter, then just remove it.

3.Tuning Makefiles

The first step is to generate config files for build system.

WebRTC+Kamamilio+rtpengine+Websocket SIP服务器搭建教程 发现国内使用SIP的资料真的很少,由于公司需要使用语音视频电话,在网上找了一大圈也没找到相关案例,最后自己折腾出一个方案,故此分享出来。 开始之前不得不介绍一下这五个东西。 Kamamilio 是 OpenSER 的前身,是C语言写的一个Sip服务,支持在 在Linux/UNIX系统上运行,优点就是快,可配置性强,可直接写C语言配置,其它的我就不多做介绍了,可自行google FreeSWITCH... 阅读详情

相关推荐

Kamailio-SIP代理服务器单节点的安装与部署

使用背景:存在 Freeswitch 等语音网关应用服务,期望实现负载均衡、前置处理的功能,类似于Web应用服务的Nginx的角色Kamailio和OpenSIPS由于其灵活性、高性能和强大的路由能力,在开源SIP服务器领域尤其受到欢迎。基于以上背景,从头开始学习并了解Kamailio.

c_zyer的博客 3553

start-stop-daemon

start-stop-daemon拷贝到/usr/local/bin/目录下即可

Firebird在CENTOS7下的安装配置全过程

一、首先记录下查找问题遇到需要记录的几个Linux 命令 Linux下可执行程序包括可执行程序exe和so, 两者文件都是ELF打头的。 objdump -x libxxxxx.so | grep NEEDED 会列出相关库所需要的依赖,方便查找相关库如果不被调用是否相关依赖没有被安装 **linux之如何查看哪些进程在使用某一个so lsof .so 查找整个Linux 系统中相关文件名是否存在: find / -name 文件名 二、安装linux中守护进程启停工具start-stop-da

u011846249的专栏 1172

linux下redis安装

转载地址:http://2015.iteye.com/blog/1189527 1、下载安装 Linux代码   wget http://redis.googlecode.com/files/redis-2.2.13.tar.gz   tar -xvzf redis-2.2.13.tar.gz   cd redis-2.2.13   make

kaosini的专栏 1121

CentOS安装使用start-stop-daemon

CentOS是没有start-stop-daemon的,因为start-stop-daemon在debian的dpkg包里。要安装的话,需要自己折腾。 相关命令如下: wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz tar z

fbfsber008的专栏 5132

Bug修复:dpkg cannot find ldconfig/start-stop-daemon

Debian或者Ubuntu操作系统下,安装软件时,出现如下报错 Preconfiguring packages ... dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found i...

weixin_33701617的博客 3048

command not found】原因分析及解决

在使用Linux时,会经常遇到 “” 的错误。错误信息提示的是:Linux没有找到该命令。原因主要分类有:1.命令拼写错误2.软件路径配置错误3.Linux 系统就没有安装该命令。

weixin_47288291的博客 1万+

一分钟带你解决“command not found“报错

2.如果是echo、mv、vim等都出现command not found 报错的话,很大概率就是未配置环境变量。这类错误出现的原因有很多,根据具体情况分析,常见的有以下3种。1.不是可执行命令,也就是你输入的代码不合法,没有被定义。"command not found" 找不到命令。3.如果命令别名被修改也会出现这类错误。

weixin_62107875的博客 4万+

CentOS使用 star-stop-daemon

wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz tar xf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz rm -fr dpkg_1.17.27.tar.xz cd apps...

小树苗 757

centos 编译 start-stop-daemon,支持最新的option(--chdir)

start-stop-daemon 是 debian的工具。 在centos/redhat发布版本中没有此库。为了兼容一些脚本调用此程序,我们需要手工编译此工具。 目前网上能够搜索到的版本是这个版本 http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz

wu4long的专栏 3935

Kamailio 开源 SIP 服务器常见问题解决方案

Kamailio 是一个开源的 SIP 信令服务器,用于构建大规模的 VoIP 和实时通信平台。SIP(会话发起协议)是一种由 IETF 制定的开放标准协议,核心规范文档为 RFC3261。Kamailio 设计用于可扩展性,适用于大型部署(如 IP 电话运营商或拥有大量用户或高呼叫量的运营商),但也适用于企业和个人需求,提供 VoIP、即时消息和存在服务。 Kamailio 的主要编程语言是 ...

gitblog_00064的博客 1249

kamailio编译websocket模块,找不到unistr.h

usr/include/unistr.h 这里就有这个文件了。然后,你继续编译你的websocket模块吧。报这个错,怎么解决呢,请看下面分解。

岁月漫步的专栏 426

ngrok linux开机自启动,开机自动启动

Ngrok开机自启动有些用户需要开机随系统启动服务,本文将讲解如何在Linux下实现开机自动启动Ngrok客户端。本文支持Ubuntu、树莓派、Centos7以下、Debian系列的系统。如果Centos系统没有安装start-stop-daemon请看 Centos安装 start-stop-daemon操作步骤1、下载客户端2、编写脚本3、测试脚本4、设置开机启动1、下载客户端这一步就都不用说...

weixin_35724224的博客 468

【亲测免费】 探秘Kamailio v5.8:实时通信的强大力量

--- ## 1. 项目介绍 **Kamailio** 是一款强大且稳定的开源服务器,基于Session Initiation Protocol(SIP RFC3261)实现实时通信。它不仅适用于IP电话和在线存在基础设施,还能支持大规模部署。Kamailio集成了现代通信标准,如WebSocket/WebRTC、HTTP、XSRP和XMLrpc,以及Json-rpc接口,无论是IPv4还是I...

gitblog_00003的博客 974

抛弃CentOSKamailio+WebSocket+SIP服务在Debian的避坑指南(含RTPEngine配置模板)

本文详细介绍了从CentOS迁移到Debian平台部署Kamailio+WebSocket+SIP服务的全流程避坑指南,包含RTPEngine配置模板和性能优化技巧。针对WebRTC通信场景,重点解析了NAT穿透解决方案和RTPEngine集成方法,帮助开发者高效构建实时通信系统。

weixin_29290963的博客 375

分享fred的kamailio脚本

分享fred的kamailio脚本

fs交流的博客 793

实战指南:基于WebRTC与Kamailio的WebSocket SIP服务器部署与优化

本文详细介绍了基于WebRTC与Kamailio的WebSocket SIP服务器部署与优化实战指南。通过WebSocket传输SIP信令,实现全平台实时音视频通信,结合Kamailio的高性能和RTPEngine的NAT穿透能力,构建稳定高效的通信系统。文章涵盖环境搭建、核心配置、性能优化及客户端集成等关键步骤,助力开发者快速掌握WebRTC与SIP服务器整合技术。

weixin_30823001的博客 56

Kamailio实时通信协议栈:SIP、RTP、WebSocket等技术深度剖析

Kamailio是一款开源SIP服务器,专为大型VoIP和实时通信平台设计,支持SIP、RTP、WebSocket等多种通信协议,具备高可扩展性和灵活性,广泛应用于IP电话运营商、企业通信系统等场景。 ## 一、SIP协议:实时通信的核心骨架 SIP(会话发起协议)是Kamailio的核心协议,负责建立、修改和终止实时会话。Kamailio作为SIP服务器,能够处理注册、呼叫路由、会话管理等关

gitblog_00444的博客 826
上一篇: Siremis 安装
下一篇: Starting MySQL… ERROR! The server quit without updating PID file
baiyangliu
博客等级 码龄16年 45粉丝 84原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值