#!/bin/bash

echo Install Kamailio

yum -y install kamailio kamailio-evapi kamailio-mysql kamailio-presence kamailio-tls kamailio-websocket kamailio-xmpp 

# fix kamailio config
sed -i /etc/sysconfig/kamailio -e 's/^#PKG_MEMORY=.*$/PKG_MEMORY=32/' -e 's/^PKG_MEMORY=.*$/PKG_MEMORY=32/' -e 's/^#SHM_MEMORY=.*$/SHM_MEMORY=64/' -e 's/^SHM_MEMORY=.*$/SHM_MEMORY=64/'
