Elastix and camailio integration

Discussion in 'General' started by tataghost, Apr 3, 2011.

  1. tataghost

    Joined:
    Apr 1, 2010
    Messages:
    46
    Likes Received:
    0
    Dear All ,
    I tried to follow the 2 parts in elastix blogs to do this integration http://blogs.elastix.org/en/
    first i want to know if i use to correct package , i already attached it ?
    2nd when i tried to run the script install_camailio.sh i got these errors


    START (((([root@localhost kamailio]# ./install_kamailio.sh
    -------------------------------------------
    installing Base YUM Deps
    -------------------------------------------
    update :: system :: OK
    installing :: kamailio base deps :: OK
    -------------------------------------------
    installing Kamailio
    -------------------------------------------
    install :: kamailio rpms :: FAILED
    copy :: kamailio.cfg :: OK
    set permissions :: kamailio.cfg :: OK
    change :: ipforwarding :: OK
    -------------------------------------------
    installing Kamailio FreePBX
    -------------------------------------------
    copy :: freepbx module :: OK
    change directory :: freepbx module :: OK
    untar :: freepbx module :: FAILED
    start on boot :: kamailio ::error reading information on service kamailio: No such file or directory
    FAILED
    start on boot :: rtpproxy :: OK)))))))END


    i think the script has some missing right directories

    here is the log file
    START
    -------------------------------------------
    installing Base YUM Deps
    -------------------------------------------
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: helios.imbb.forth.gr
    * base: centos.syn.co.il
    * elastix-base: repoelastix.office-center.cl
    * elastix-extras: repoelastix.office-center.cl
    * elastix-updates: repoelastix.office-center.cl
    * epel: ftp.rhd.ru
    * extras: ftp.ntua.gr
    * updates: centos.syn.co.il
    Excluding Packages from CentOS-5 - Addons
    Finished
    Excluding Packages from CentOS-5 - Base
    Finished
    Excluding Packages from CentOS-5 - Extras
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Update Process
    No Packages marked for Update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: helios.imbb.forth.gr
    * base: centos.syn.co.il
    * elastix-base: repoelastix.office-center.cl
    * elastix-extras: repoelastix.office-center.cl
    * elastix-updates: repoelastix.office-center.cl
    * epel: ftp.rhd.ru
    * extras: ftp.ntua.gr
    * updates: centos.syn.co.il
    Excluding Packages from CentOS-5 - Addons
    Finished
    Excluding Packages from CentOS-5 - Base
    Finished
    Excluding Packages from CentOS-5 - Extras
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Install Process
    Package sqlite-devel-3.3.6-5.i386 already installed and latest version
    Package 1:net-snmp-utils-5.3.2.2-9.el5_5.1.i386 already installed and latest version
    Package libtool-1.5.22-7.el5_4.i386 already installed and latest version
    Package libcap-devel-1.10-26.i386 already installed and latest version
    Package 2:postfix-2.3.3-2.1.el5_2.i386 already installed and latest version
    Package gcc-4.1.2-48.el5.i386 already installed and latest version
    Package gcc-c++-4.1.2-48.el5.i386 already installed and latest version
    Package 1:mc-4.6.1a-35.el5.i386 already installed and latest version
    Package subversion-1.4.2-4.el5_3.1.i386 already installed and latest version
    Package python-setuptools-0.6c5-2.el5.noarch already installed and latest version
    Package python-devel-2.4.3-27.el5_5.3.i386 already installed and latest version
    Package gnutls-devel-1.4.1-3.el5_4.8.i386 already installed and latest version
    Package iptables-devel-1.3.5-5.3.el5_4.1.i386 already installed and latest version
    Package cvs-1.11.22-7.el5.i386 already installed and latest version
    Package libxml2-devel-2.6.26-2.1.2.8.el5_5.1.i386 already installed and latest version
    Package pcre-devel-6.6-2.el5_1.7.i386 already installed and latest version
    Package rtpproxy-1.2.1-2.el5.i386 already installed and latest version
    Package libconfuse-2.5-4.el5.i386 already installed and latest version
    Package libconfuse-devel-2.5-4.el5.i386 already installed and latest version
    Nothing to do
    -------------------------------------------
    installing Kamailio
    -------------------------------------------
    error: Failed dependencies:
    libpurple.so.0 is needed by kamailio-purple-3.0.2-0.i386
    libradiusclient-ng.so.2 is needed by kamailio-radius-3.0.2-0.i386
    cp: missing destination file operand after `/var/kamailio/kamailio.cfg/etc/kamailio.cfg'
    Try `cp --help' for more information.
    1
    -------------------------------------------
    installing Kamailio FreePBX
    -------------------------------------------
    tar: kamailio-freepbx.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    END


    sorry i already attached the install script i couldn't attach the whole package


    Waiting for your professional replies http://forum.elastix.org/old_files/kamailio.rar
     
  2. ccccp

    Joined:
    Jan 18, 2011
    Messages:
    29
    Likes Received:
    0
    try to run
    yum -y install radiusclient-ng.i386 libpurple
    should work as a charm
    or simply in the script install_kamailio.sh add radiusclient-ng.i386 libpurple to the row starting with yum -y install.
    nothing wrong with the script -)) just need those lib installed before hand
     
  3. longstand

    Joined:
    Jun 1, 2011
    Messages:
    12
    Likes Received:
    0
    Most people has alot more file that needs to be install..

    try this

    yum -y install libcurl.so.1 libnetsnmpmibs.so.10 libnetsnmphelpers.so.10 libnetsnmpagent.so.10 libnetsnmp.so.10 install libcurl.so.3 radiusclient-ng.i386 libpurple

    ...

    if you need to install more file,

    go to
    --
    cd /var/kamailio/log
    more install.log
    ---

    check what other file you need

    installing Kamailio
    -------------------------------------------
    error: Failed dependencies:
    libodbc.so.1 is needed by kamailio-unixodbc-3.0.2-0.i386

    you you will add
    ---
    yum -y install libodbc.so.1
     
  4. tataghost

    Joined:
    Apr 1, 2010
    Messages:
    46
    Likes Received:
    0
    Hi all

    I back again , i made the whole steps and i got now kamailio module and service working well ,

    But my question now , i have SIP trunk and many customers call it and use it i need all this call come to the sip trunk go through kamailio as it has much load and so many customers use it ,

    How this can be done ?
     
  5. MrjayM

    Joined:
    Jan 16, 2013
    Messages:
    3
    Likes Received:
    0
    what is the configuration you did to call kamailio to sip trunk?
     
  6. originaltba

    Joined:
    Aug 17, 2010
    Messages:
    93
    Likes Received:
    0
    You can also create a custom trunk with
    “Local/$OUTNUM$@from-trunk/n” without the quotes as the custom dial string and then create and outbound route with the DID in the match patern box and choose the custom trunk you created as the only available trunk for that route
    Then all you need to do is create an incomming route for that DID
    Works great.. I tested with several numbers from ipkall.com

    Have fun!!!!!!
     
  7. ikamp

    Joined:
    Feb 3, 2010
    Messages:
    28
    Likes Received:
    0
    Hello,

    Does anyone still have the kamailio-v2.tgz file, because it is not up on mbit site.

    Best regards
     

Share This Page