Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Opensisp 1.6.2 on Ubuntu Ubuntu 10.04.2

paddy
2011-02-16
2013-05-09
  • paddy
    paddy
    2011-02-16

    Hi, I tried the following steps for OpenSips on Ubuntu, but got stuck up @ step 33. Pasted the error below the procedure.

    "1. sudo apt-get install bison bison++ bisonc++

    2. sudo apt-get install flex

    3. sudo apt-get install libsctp1
    4. sudo apt-get install mysql-server
    5. sudo apt-get install libmysqlclient-dev
    6. sudo apt-get install libxml2-dev
    7. sudo apt-get install libexpat1-dev
    8. sudo apt-get install libradius-ng2 libradius-ng-dev
    9. sudo apt-get install libcurl3-dev
    10. sudo apt-get install libxmlrpc-c3 libxmlrpc-c3-dev
    11. sudo apt-get install libperl-dev
    12. sudo apt-get install libsnmp-dev
    13. sudo apt-get install libconfuse0 libconfuse-dev
    14. sudo apt-get install build-essential
    15. sudo tar xvfz opensips-1.5.0-tls_src.tar.gz
    16. edit opensips-1.5.0-tls/Makefile/
    change : #TLS=1 to : TLS=1 remove : – jabber - cpl-c - xmpp - rls - mi_xmlrpc - xcap_client - db_mysql - presence - presence_xml - presence_mwi - presence_dialoginfo - pua - pua_bla - pua_mi - pua_usrloc - pua_xmpp - pua_dialoginfo - perl - snmpstats - peering - carrierroute from : exclude_modules=
    17. sudo make
    18. sudo make install
    19. sudo cp opensips-1.5.0-tls/packaging/debian-etch/opensips.default /etc/default/opensips sudo cp opensips-1.5.0-tls/packaging/debian-etch/opensips.init /etc/init.d/opensips
    20. sudo nano /etc/default/opensips
    change : RUN_OPENSIPS=no to : RUN_OPENSIPS=yes
    21. sudo nano /etc/init.d/opensips change : DAEMON=/usr/sbin/opensips RUN_OPENSIPS=no to : DAEMON=/usr/local/sbin/opensips RUN_OPENSIPS=yes
    22. sudo chmod +x /etc/init.d/opensips
    23. sudo groupadd opensips sudo useradd -g opensips opensips
    24. sudo mkdir /var/run/opensips sudo chmod 777 /var/run/opensips
    25. sudo chmod 777 /usr/local/etc/opensips/
    26. sudo apt-get install bind9
    27. sudo nano /etc/bind9/named.conf
    add : zone “opensips.org” { type master; file “/etc/bind/db.opensips”; };
    zone “18.14.10.in-addr.arpa” { type master; file “/etc/bind/db.18.14.10″; };
    28. sudo nano /etc/bind9/db.opensips
    contains : ; ; BIND data file for opensips.org ;
    $TTL 604800 @ IN SOA opensips.org. root.opensips.org. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ;
    Negative Cache TTL ; IN NS opensips.org. opensips.org. IN A 10.14.18.56

    29. sudo nano /etc/bind9/db.18.14.10
    contains : ; ;
    BIND data file for opensips.org ;
    $TTL 604800 @ IN SOA opensips.org. root.opensips.org. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ;
    IN NS opensips.org. opensips.org. IN A 10.14.18.56

    30. sudo nano /etc/bind9/named.conf.option

    add : recursion no; in : option { }

    31. sudo /etc/init.d/bind9 restart
    32. sudo nano /usr/local/etc/opensips/opensipsctlrc
    uncomment : # SIP_DOMAIN=opensips.org
    # DBENGINE=MYSQL
    # DBHOST=localhost
    # DBNAME=opensips
    # DBRWUSER=opensips
    # DBRWPW=”opensipsrw”
    # DBROUSER=opensipsro
    # DBROPW=opensipsro
    # DBROOTUSER=”root”
    # USERCOL=”username”
    # INSTALL_EXTRA_TABLES=ask
    # INSTALL_PRESENCE_TABLES=ask uncomment and change :
    # PID_FILE=/var/run/opensips.pid to : PID_FILE=/var/run/opensips/opensips.pid

    33. sudo mysqladmin -u root password ‘root’
    34. sudo opensipsdbctl create
    35. sudo nano /usr/local/etc/opensips/opensips.cfg
    uncomment : #loadmodule “db_mysql.so”
    #loadmodule “auth.so”
    #loadmodule “auth_db.so”
    #modparam(“usrloc”, “db_mode”, 2)
    #modparam(“usrloc”, “db_url”,
    # “mysql://opensips:opensipsrw@localhost/opensips”)
    #modparam(“auth_db”, “calculate_ha1″, yes)
    #modparam(“auth_db”, “password_column”, “password”)
    #modparam(“auth_db”, “db_url”,
    # “mysql://opensips:opensipsrw@localhost/opensips”) comment : modparam(“usrloc”, “db_mode”, 0)
    36. sudo nano mysql -u root -p mysql>
    GRANT ALL PRIVILEGES ON *.* TO opensips@localhost IDENTIFIED BY ‘opensipsrw’;
    mysql> GRANT ALL PRIVILEGES ON *.* TO opensips@127.0.0.1 IDENTIFIED BY ‘opensipsrw’;

    37. start opensips,
    choose one of these method:
    1. sudo opensipsctl start
    2. sudo /etc/init.d/opensips start

    38. sudo opensipsctl add 1001 1001

    ****************************************GOT STUCKUP @ step 33, getting following error*******************************

    oot@gconf1-apac:~# sudo apt-get remove mysql-server
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following packages will be REMOVED:
    mysql-server
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 131kB disk space will be freed.
    Do you want to continue ? Y
    (Reading database … 281786 files and directories currently installed.)
    Removing mysql-server …
    root@gconf1-apac:~# sudo apt-get install mysql-server
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following NEW packages will be installed:
    mysql-server
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 94.8kB of archives.
    After this operation, 131kB of additional disk space will be used.
    Fetched 94.8kB in 0s (894kB/s)
    Selecting previously deselected package mysql-server.
    (Reading database … 281784 files and directories currently installed.)
    Unpacking mysql-server (from …/mysql-server_5.1.41-3ubuntu12.9_all.deb) …
    Setting up mysql-server (5.1.41-3ubuntu12.9) …
    root@gconf1-apac:~# sudo mysqladmin -u root password ‘root’
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’
    root@gconf1-apac:~# sudo mysqladmin -u root password
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’
    root@gconf1-apac:~# sudo mysqladmin -u root password ‘root01′
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’
    root@gconf1-apac:~#

    So need help for further steps………

    Thanks,
    Paddy

     
  • Hi,

    Try with : Mysql –u root –proot

     
  • paddy
    paddy
    2011-02-17

    Thanks for replying,

    I tried but getting following error please check

    root@gconf1-apac:~# mysql -u root -proot
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    Thanks,
    Paddy

     
  • paddy
    paddy
    2011-02-18

    Hi,

    Any help please………………

    Thanks,
    Paddy

     
  • Hi Paddy,

    I tried successfully with the command. I don't know why it didn't work.

    Where do you live, give your yahoo ID or skype ,you and I will discuss it.

    I am in Viet Nam, I have just do thesis about opensips.

    Nice to see you.

    Thanks,
    Trung Le

     
  • paddy
    paddy
    2011-02-21

    Thanks Trung Le,

    you can add me pradep_san1982@yahoo.com

    Thanks,
    paddy

     
  • paddy
    paddy
    2011-02-21

    Sorryyyyyyy :(

    its pradeep_san1982@yahoo.com

     
  • Anh Pham
    Anh Pham
    2011-03-16

    Hi Trung,
    where do you live in Vietnam: Hanoi or HCM city? please give me your mobile phone number or call me at 097 379 2006.
    Trung, have you try Opensips 2.0?
    Regards,

    Anh Quang Pham

     
  • Hi Anh,

    Nice to meet you.
    I have been busy recently, I haven't visited the forum for a long time so I didn't reply you.
    My YahooID: anhtrung87vn@yahoo.com
    We can discuss about Opensips.

    Regards,
    Trung Le.