Yate Learning--based on CentOS installation run Yate

Source: Internet
Author: User

CentOS-based installation Yate

1 Preface

After thinking, a lot of things now understand, will use. It's a long time to bug fix this system. Many know things will forget the same, need to re-spend more time to understand and learn. As the saying goes: good memory is better than bad writing. Or the honest use of words and pictures of the method to record.

In order to let the future of their own ease, as long as the present self to do a little more work, re-start to build yate environment.

2 Source Download

Best downloaded from official website,

Website address: http://www.yate.ro/

: Http://docs.yate.ro/wiki/Download

Because there is no CentOS version, had to download Windows source package, this time source: http://yate.null.ro/tarballs/yate5/yate-5.5.0-1.tar.gz

Download using svn: svncheckout http://voip.null.ro/svn/yate/trunk YATE-SVN

3 Installation

After the download is complete, enter YATE-SVN

Generate Configure File

Generate makefile

Compile

#make

(ran too fast, did not get down the picture)


Installation

#make Install

4 run

#./run

5 Operating Instructions

This requires reference to the operating parameters of the Yate

If you want to add debug information:

If you want to output debug information to a log file:

Running in the background:


6 Modification to service services

We know that running scripts for services under Linux are typically managed by service. So what if we want to use service commands to manage Yate services?

We can refer to the run file to write yated:

#!/bin/sh## chkconfig:-35# description:starts and stops the Yate daemon # used to provide Yate services . # # Pidfile:/var/run/yate.pid# Source function Library.if [-f/etc/init.d/functions]; Then. /etc/init.d/functionselif [-f/etc/rc.d/init.d/functions]; Then. /etc/rc.d/init.d/functionselse exit 1fi# Avoid using root ' s Tmpdirunset tmpdir# Source networking configuration: /etc/sysconfig/network# Check that networking are up. [${networking} = "No"] && exit 1retval=0yate= "Yate" opts=${opts:--l/var/log/yate.log-s 60-r-vvvvvvvvvv-dt}p idfile=${pidfile:-/var/run/yate.pid}set_conf= "-c/usr/local/etc/yate" set_mods= "-m/usr/local/lib/yate" SET_SHARE=         "-e/usr/local/share/yate" Start () {kind= "Yate" Echo-n $ "Starting $KIND services:" Daemon $KIND        -d-p "${pidfile}" ${opts} ${set_conf} ${set_share} retval=$?            echo [$RETVAL-eq 0] && touch/var/lock/subsys/yate | |       Retval=1 return $RETVAL}stop () {kind= "Yate" Echo-n $ "shutting down $KIND services:" Killproc Yate R        Etval=$?        echo [$RETVAL-eq 0] && rm-f/var/lock/subsys/yate return $RETVAL}restart () {Stop Start}rhstatus () {status-l yated Yate return $?} Rhstatus () {status-l yated Yate return $?} # Allow status as Non-root.if ["$" = status];  Then Rhstatus exit $?ficase "$" in start) start;  stop) stop;;  restart) restart;;  status) Rhstatus;; *) echo $ "Usage: $ start|stop|restart|status}" Exit 2esacexit $?

Copy the yated to the/etc/init.d/

Will/usr/local/bin/yate/usr/sbin/

Then see if you can run:

Kill Process 25417


Yate Learning--based on CentOS installation run Yate

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.