{"id":38,"date":"2011-08-17T08:46:00","date_gmt":"2011-08-17T03:16:00","guid":{"rendered":"http:\/\/asgaur.com\/wp\/?p=38"},"modified":"2011-08-17T08:46:00","modified_gmt":"2011-08-17T03:16:00","slug":"opensips-installation","status":"publish","type":"post","link":"http:\/\/www.asgaur.com\/wp\/opensips-installation\/","title":{"rendered":"Opensips installation"},"content":{"rendered":"<p><!-- Adsense block #144 not displayed since it exceed the limit of 3 --><!-- Adsense block #145 not displayed since it exceed the limit of 3 --><!-- Adsense block #146 not displayed since it exceed the limit of 3 -->Before going ahead with opensips installation, update the system to use the latest packages.<\/p>\n<\/p>\n<p>yum update<\/p>\n<p>This will download all the latest versions of the installed components.<\/p>\n<p>Once done, start with opensips dependencies installation.<\/p>\n<ul>\n<li>yum install bison<\/li>\n<li>yum install libxml2-devel<\/li>\n<li>yum &#160;install gcc-c++<\/li>\n<li>xmlrpc installation:<\/li>\n<\/ul>\n<ul>\n<li>download xmlrpc-c-1.06.41<\/li>\n<li>untar sources and run<\/li>\n<li>.\/configure &#8211;disable-abyss-threads<\/li>\n<li>make<\/li>\n<li>make install<\/li>\n<li>go to \/etc\/ld.so.conf.d<\/li>\n<li>\n<p>create a file xmlrpc.conf and write one line: <\/p>\n<ul>\n<li>\/usr\/local\/lib<\/li>\n<li>save and exit<\/li>\n<\/ul>\n<\/li>\n<li>run ldconfig<\/li>\n<\/ul>\n<p>All the prerequisites are installed.<\/p>\n<p>Now start with compilation of opensips<\/p>\n<ul>\n<li>cd \/usr\/local\/src\/opensips-src<\/li>\n<li>make all<\/li>\n<li>make modules=modules\/db_mysql      modules<\/li>\n<li>make modules=modules\/presence      modules<\/li>\n<li>make modules=modules\/mi_xmlrpc      modules<\/li>\n<li>make install<\/li>\n<\/ul>\n<p>This will install only the default modules in the right directories<\/p>\n<p>copy the .so files from each additional module (mentioned above) directory to \/usr\/loca\/lib\/opensips\/modules\/<\/p>\n<p>Now copy the startup script for start\/stop\/restart of opensips<\/p>\n<ul>\n<li>cp \/usr\/local\/src\/opensips-1.6.4-2-notls\/packaging\/rpm\/opensips.init      \/etc\/init.d\/opensips<\/li>\n<li>chmod 777 \/etc\/init.d\/opensips<\/li>\n<li>cp      \/usr\/local\/src\/opensips-1.6.4-2-notls\/scripts\/opensipsdbctl.mysql      \/usr\/local\/lib\/opensips\/opensipsdbctl\/opensipsdbctl.mysql<\/li>\n<\/ul>\n<p>Opensips needs an user account for running the service.<\/p>\n<ul>\n<li>useradd opensips<\/li>\n<\/ul>\n<p>Open init script in \/etc\/init.d\/opensips<\/p>\n<p>Change all the references of config files to point to \/usr\/local\/etc<\/p>\n<p>Copy the opensips.cfg file to the location: \/usr\/local\/etc\/opensips\/opensips.cfg<\/p>\n<p>Create file \/etc\/default\/opensips and put the below contents in the file:<\/p>\n<p>RUN_OPENSIPS=yes<\/p>\n<p>USER=opensips<\/p>\n<p>GROUP=opensips<\/p>\n<p>MEMORY=128<\/p>\n<p>Open file \/usr\/local\/etc\/opensips\/opensipsctlrc<\/p>\n<p>Change all the usernames and passwords in opensipsctlrc for cluster, configure database IP as cluster virtual IP instead of localhost<\/p>\n<p>Starting opensips:<\/p>\n<p>run the following command:<\/p>\n<p>\/etc\/init.d\/opensips start<\/p>\n<p>Stopping opensips:<\/p>\n<p>run the following command:<\/p>\n<p>\/etc\/init.d\/opensips stop<\/p>\n<div class=\"item_footer\">\n<p><small><a href=\"http:\/\/asgaur.com\/asgaur.php\/2011\/08\/17\/opensips-installation\" target=\"_blank\" rel=\"noopener\">Original post<\/a> blogged on <a href=\"http:\/\/b2evolution.net\/\" target=\"_blank\" rel=\"noopener\">b2evolution<\/a>.<\/small><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Before going ahead with opensips installation, update the system to use the latest packages. yum update This will download all the latest versions of the installed components. Once done, start with opensips dependencies installation. yum install bison yum install libxml2-devel yum &#160;install gcc-c++ xmlrpc installation: download xmlrpc-c-1.06.41 untar sources and run .\/configure &#8211;disable-abyss-threads make make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}