Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Yate telephony engine on pfsense 2.1 ($ plz quote)

    Bounties
    3
    31
    15.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xbipin
      last edited by

      i need some1 to make me a package or atleast install and get yate running on pfsense alix box with nanobsd, i need the regexroute, accfile and manager to function on it so i can route calls through it and use manager for telnet

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Did you tried this package from freebsd ports?

        I've compiled it and published on my personal repo, you can try to install it via pkg_add on a test machine and see if it works.

        amd64
        http://e-sac.siteseguro.ws/packages/amd64/8/All/yate-4.0.0.p1.tbz

        i386
        http://e-sac.siteseguro.ws/packages/amd64/8/All/yate-4.0.0.p1.tbz

        A gui for it may take a while but the first step is to get freebsd package working on pfsense.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • X
          xbipin
          last edited by

          i havent tried it coz freebsd is very new for me, gui i dont care much, i just need a few modules running which i can control using telnet etc.

          would it be possible to create a bare minimum version without any of the help, docs etc files.
          i just use the below modules
          accfile
          manager
          regexroute
          sipfeatures
          yate
          yrtpchan
          ysipchan

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            As I did never used  yate, can you send me/post how to test these features?

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • X
              xbipin
              last edited by

              its simple, first u goto the conf.d folder which r the config for each module, u need to rename each to modulename.conf and basically tog et started u need only the below ones

              accfile.conf
              manager.conf
              regexroute.conf
              sipfeatures.conf
              yate.conf
              yrtpchan.conf
              ysipchan.conf

              then u simply open each and configure as mentioned each of the fields, comments on how to configure r provided. the accfile is where ur userid/pass of remote sip server will go, manager is for telnet acces, regexroute is used for routing calls to gateways etc, sipfeatures u dont need to modify, yate also no change required, yrtpchan is to set ur local ip, port for media in voip calls, ysipchan is used to configure sip related things, such as local ip, port, udp, codecs, etc etc

              when u configure these stuff and simply run the yate binary in console, it will read out some stuff which will tell u if something went wrong in locading a module or no, if nothing went wrong its loaded, it will process calls as configured

              1 Reply Last reply Reply Quote 0
              • marcellocM
                marcelloc
                last edited by

                What errors are you getting with package I've published on my repo?

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • X
                  xbipin
                  last edited by

                  i havent tried it coz i dont know how to go about it in freebsd.

                  1 Reply Last reply Reply Quote 0
                  • marcellocM
                    marcelloc
                    last edited by

                    well, I just…

                    • installed it using pkg_add from my repo(as described above)

                    • edited /usr/local/etc/rc.d/yate changing from yate_enable=${yate_enable="NO"} to yate_enable=${yate_enable="YES"}

                    • exec /usr/local/etc/rc.d/yate start

                    And it's started with default config options…

                    671  ??  Ss     0:00.02 /usr/local/bin/yate -Du -d -l /var/log/yate/messages -p /var/run/yate.pid -s
                     703  ??  S      0:02.91 /usr/local/bin/yate -Du -d -l /var/log/yate/messages -p /var/run/yate.pid -s

                    Supervisor (671) is starting
                    Yate (703) is starting Thu Jan 17 00:30:37 2013
                    Loaded module Analyzer
                    Loaded module Call Forker
                    Loaded module Call Generator
                    Loaded module CdrBuild
                    Loaded module CdrFile
                    Loaded module Conference
                    Loaded module DumbChannel
                    Loaded module ExtModule
                    Loaded module File Transfer
                    Loaded module GSM - based on libgsm-1.0.10
                    Loaded module Javascript
                    Loaded module MOH
                    Loaded module MsgSniffer
                    Loaded module MUX
                    Loaded module PBX
                    Loaded module RegexRoute
                    Loaded module RManager
                    Loaded module Speex - based on libspeex-1.1.16
                    Loaded module ToneDetector
                    Loaded module ToneGen
                    Loaded module WaveFile
                    Loaded module YIAX
                    Loaded module YJingle
                    Loaded module YRTP
                    Loaded module SIP Channel
                    Loaded module YSOCKS
                    Loaded module YSTUN
                    Loaded module ZLib - using zlib library version 1.2.3
                    Loaded module Accounts from file
                    Loaded module Analog Channel
                    Loaded module Analog Detector
                    Loaded module Cache
                    Loaded module CallCounters
                    Loaded module CCongestion
                    Loaded module Cisco SM
                    Loaded module Clustering
                    Loaded module Cpu
                    Loaded module PBX for database
                    Loaded module DbWave
                    Loaded module Heartbeat
                    Loaded module Late Router
                    Loading module LKSCTP
                    Loaded module MGCP-CA
                    Loaded module MGCP-GW
                    Loaded module Monitoring
                    Loaded module MRCP
                    Loaded module Call Parking
                    Loaded module Presence
                    Loaded module Queues
                    Loaded module Queues Notify
                    Loaded module Registration from file
                    Loaded module Register for database
                    Loaded module SigTransport
                    Loaded module SIP Features
                    Loaded module Subscriptions
                    Loaded module Users Management
                    Loaded module Radius client
                    Loaded module Signalling Channel
                    Loaded module SNMP Agent
                    Loaded module Jabber Server
                    Loaded module Jabber Server Features
                    Initializing plugins
                    Initializing module Jabber Server Features
                    Initializing module Jabber Server
                    Initializing module Subscriptions
                    Initializing module SigTransport
                    Initializing module MGCP Call Agent
                    Initialize module LKSCTP
                    Initializing module DbWave
                    Initializing module Cpu
                    Initializing module Clustering
                    Initializing module Cisco SM
                    Initializing module Analog Detector
                    Initializing module ZLib
                    Initializing module YSOCKS
                    Initializing module MUX
                    Initializing module Javascript
                    Initializing module CdrFile
                    Initializing module Analyzer
                    Initializing module Call Forker
                    Initializing module Call Generator
                    Initializing module CdrBuild
                    Initializing module Conference
                    Initializing module DumbChannel
                    DumbChannel initialized
                    Initializing module ExtModule
                    Initializing module File Transfer
                    Initializing module MOH
                    Initializing module MsgSniffer
                    Initializing module PBX
                    Initializing module RegexRoute
                    Initializing module RManager
                     <rmanager:goon>Failed to bind to 127.0.0.1:5038 : Address already in use
                    Initializing module ToneDetector
                    Initializing module ToneGen
                    Initializing module WaveFile
                    Initializing module YIAX
                     <iaxengine:warn>Failed to bind socket on '0.0.0.0:4569' - trying a random port. 48: 'Address already in use'
                    Initializing module YJingle
                    Initializing module YRTP
                    Initializing module SIP Channel
                    Initializing module YSTUN
                    Initializing module Accounts from file
                     <sip:warn>Listener(UDP,'general') unable to bind on '0.0.0.0:5060' - trying a random port. 48 'Address already in use'
                    Initializing module Analog Channel
                    Initializing module Cache
                    Initializing module CCongestion
                    Initializing module PBX for database
                    Initializing module Late Router
                    Initializing module MGCP Gateway
                    Initializing module Monitoring
                    Initializing module MrcpSpeech
                    Initializing module Call Parking
                    Initializing module Presence
                    Initializing module Queues for database
                    Initializing module Queues Notify
                    Initializing module Register from file
                    Initializing module Register for database
                    Initializing module SIP Features
                    Initializing module Users Management
                    Initializing module Radius client
                    Initializing module Signalling Channel
                    Initializing module SNMP Agent
                    Initialization complete
                    Yate engine is initialized and starting up on pfsense.local
                     <cpuload:stub>System CPU load is not implemented for this OS</cpuload:stub></sip:warn></iaxengine:warn></rmanager:goon> 
                    

                    I saw a lot of config options, it may take a while to code into gui and create the config files.

                    As you can see, default config is unable to bind sockets on pfsense and startup script returns some shell cmd erros too if /usr/local/etc/yate/cdrfile.conf has no file set.

                     /usr/local/etc/rc.d/yate start
                    usage: dirname string [...]
                    usage: mkdir [-pv] [-m mode] directory_name ...
                    usage: dirname string [...]
                    usage: chown [-fhvx] [-R [-H | -L | -P]] owner[:group] file ...
                           chown [-fhvx] [-R [-H | -L | -P]] :group file ...
                    Starting yate.
                    
                    

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • X
                      xbipin
                      last edited by

                      ok it seems to run fine i guess looking at the log, would u attempt the latest version which is v4.3 as 2.1 is very old and lack many features and has few bugs related to SIP

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        it will need a port update on freebsd first.

                        the latest version on ports is yate-4.0.0.p1

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • X
                          xbipin
                          last edited by

                          so would u do that or some1 from freebsd needs to do that as yate is pretty easy to compile i guess

                          1 Reply Last reply Reply Quote 0
                          • X
                            xbipin
                            last edited by

                            regarding the web gui for yate on pfsense, for a start just a start/stop button and text boxes to edit those conf files in yate would be enough, meaning click the conf file and its content load up, then u edit and hit save and the new content gets saved after which just a reload command would apply them immediately. the reason y this coz it would be better than using console or ssh etc and yate is so good that this would be more than enough

                            1 Reply Last reply Reply Quote 0
                            • marcellocM
                              marcelloc
                              last edited by

                              It has some patches applied on yate freebsd port package. It will need some work to update it. I'll try to contacto it's maintainer.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • X
                                xbipin
                                last edited by

                                any update on this?

                                1 Reply Last reply Reply Quote 0
                                • marcellocM
                                  marcelloc
                                  last edited by

                                  @xbipin:

                                  any update on this?

                                  I'll ping developer again.

                                  Treinamentos de Elite: http://sys-squad.com

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • marcellocM
                                    marcelloc
                                    last edited by

                                    ports package was updated on feb 15. It still has some bugs but I'll try to compile.

                                    Treinamentos de Elite: http://sys-squad.com

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • marcellocM
                                      marcelloc
                                      last edited by

                                      package compiled sucessfull.

                                      Can you check if it works the way you need?

                                      i386
                                      e-sac.siteseguro.ws/packages/8/All/yate-4.3.0.p1.tbz

                                      amd64
                                      e-sac.siteseguro.ws/packages/amd64/8/all/yate-4.3.0.p1.tbz

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • X
                                        xbipin
                                        last edited by

                                        can u plz provide some guide on how to install with commands as im not at all good with freebsd commands

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          xbipin
                                          last edited by

                                          i ran pkg_add from shell and i get tons of not found and errors

                                          [2.1-BETA1][root@firewall.xbipin]/root(4): pkg_add http://e-sac.siteseguro.ws/pa
                                          ckages/8/All/yate-4.3.0.p1.tbz
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/yate-4.3.0.p1.tbz... Done.
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/expat-2.0.1_2.tbz... Done.
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/cyrus-sasl-2.1.25_1.tbz... Do
                                          ne.
                                          pkg_add: could not find package db41-4.1.25_4 !
                                          pkg_add: pkg_add of dependency 'cyrus-sasl-2.1.25_1' failed!
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/openldap-sasl-client-2.4.26.t
                                          bz... Done.
                                          pkg_add: could not find package db41-4.1.25_4 !
                                          pkg_add: could not find package cyrus-sasl-2.1.25_1 !
                                          pkg_add: pkg_add of dependency 'openldap-sasl-client-2.4.26' failed!
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/jpeg-8_3.tbz... Done.
                                          Error: Unable to get http://e-sac.siteseguro.ws/packages/8/All/jbigkit-1.6.tbz:
                                          Not Found
                                          Error: Unable to get http://e-sac.siteseguro.ws/packages/8/All/tiff-4.0.3.tbz: N
                                          ot Found
                                          Fetching http://e-sac.siteseguro.ws/packages/8/All/db41-4.1.25_4.tbz... Done.
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • marcellocM
                                            marcelloc
                                            last edited by

                                            Amd64?

                                            Treinamentos de Elite: http://sys-squad.com

                                            Help a community developer! ;D

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.