chkconfig mysqld on service mysqld start mysqladmin -u root password 'pass' #to log into mysql server mysql -u root -p drop database test; yum install mysql-connector-odbc wget http://www.kamailio.org/pub/kamailio/latest/src/kamailio-1.5.1-tls_src.tar.gz tar xvfz kamailio-1.5.1-tls_src.tar.gz cd kamailio-1.5.1 edit Makefile and uncomment Tls=1 to compile with tls make sure openssl, openssl-devel are installed (ec2 already are) from http://www.kamailio.org/docs/tls-devel.html#id2470286To enable the server_name (aka SNI) TLS extension an openssl version with TLS extension support must be installed, e.g. openssl 0.9.9 or openssl 0.9.8h. When compiling OpenSSL, run "./configure --enable-tlsext".
Kamailio TLS support requires OpenSSL from http://www.openssl.org. For FreeBSD, you can either use the system OpenSSL or OpenSSL from the ports system. In Linux, it's distributed in the following packages:
openssl or libssl >= 0.9.6
openssl-dev or libssl-dev
make all include_modules="db_mysql" make install include_modules="db_mysql" nano /user/local/etc/kamailio/kamctlrc uncomment SIP_DOMAIN=kamailio.local uncomment DBENGINE=MYSQL uncomment DBHOST=localhost /usr/local/sbin/kamdbctl create This will create a database named 'openser' and will add a Mysql user 'openser' with full access to it. The default password is 'openserrw', do change it before (by editing /usr/local/etc/kamctlrc) or immediately after you create the database. nano /etc/kamailio/kamailio.cfg and uncomment the following lines set mydomain.com to your domain (kamailio.local): loadmodule "db_mysql.so" loadmodule "auth.so" loadmodule "auth_db.so" modparam("usrloc", "db_mode", 2) modparam("usrloc", "db_url", "mysql://openser:openserrw@localhost/openser") modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "password") modparam("auth_db", "db_url", "mysql://openser:openserrw@localhost/openser") modparam("auth_db", "load_credentials", "") if (!www_authorize("mydomain.com", "subscriber")) { www_challenge("mydomain.com", "0"); exit; } if (!check_to()) { sl_send_reply("403","Forbidden auth ID"); exit; } In the file /etc/odbcinst.ini you must add: # Driver from the MyODBC package # Setup from the unixODBC package [MySQL] Description = ODBC for MySQL Driver = /usr/lib/libmyodbc3.so Setup = /usr/lib/libodbcmyS.so FileUsage = 1 kamctl start cd /usr/local/src wget http://b2bua.org/chrome/site/rtpproxy-1.2.0.tar.gz tar -xf rtpproxy-1.2.0.tar.gz cd rtpproxy-1.2.0 ./configure make make install adduser rtpproxy -d /home/rtpproxy -s /bin/false to start where 174.129.12.103 is the ip of the server rtpproxy -l 174.129.12.103 -s udp:localhost:7722 -u rtpproxy to stop pid= cat "/var/run/rtpproxy.pid" 2>/dev/null kill pid Did you check if rtpproxy is running if it is running try to use force_sock function as shown below modparam("nathelper", "force_socket", "udp:localhost:8899") another option to run ur RTP proxy is rtpproxy -F -l your-public-ip -s udp:localhost:port-no rtpproxy -F -l 174.129.12.103 -s udp:127.0.0.1:7722 if u use the above command to start rtp proxy. then change ur cfg file like this modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:port-no") modparam("nathelper", "force_socket", "udp:localhost:port-no") yum install ngrep ngrep -d any port 5060
0 comments:
Post a Comment