{"id":299,"date":"2013-01-12T14:21:30","date_gmt":"2013-01-12T08:51:30","guid":{"rendered":"http:\/\/askadmin.com\/?p=299"},"modified":"2013-01-12T14:21:30","modified_gmt":"2013-01-12T08:51:30","slug":"auto-start-freeswitch-in-cent-os","status":"publish","type":"post","link":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/","title":{"rendered":"Auto start freeswitch in cent OS"},"content":{"rendered":"<p>After compiling and \u00a0installing freeswitch on centOS from freeswitch source files , we can just copy \u00a0<strong><em>\/usr\/src\/freeswitch\/build\/freeswitch.init.redhat<\/em><\/strong> \u00a0 file to <strong><em>\/etc\/init.d<\/em><\/strong> directory and \u00a0 correct the freeswitch path entries \u00a0to make it start at boot time .<\/p>\n<p>copy the file to init.d directory and \u00a0add permissions<\/p>\n<p>#<em><strong>cp \/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \/etc\/init.d\/freeswitch<\/strong><\/em><\/p>\n<p>#<strong><em>chmod 755\u00a0\/etc\/init.d\/freeswitch<\/em><\/strong><\/p>\n<p>edit the file \u00a0and correct the freeswitch path entries . On my \u00a0freeswicth \u00a0test\u00a0server\u00a0the entries are like below<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>PROG_NAME=freeswitch<\/em><\/strong><br \/>\n<strong><em>PID_FILE=${PID_FILE-\/usr\/local\/freeswitch\/log\/freeswitch.pid}<\/em><\/strong><br \/>\n<strong><em>FS_USER=${FS_USER-freeswitch}<\/em><\/strong><br \/>\n<strong><em>FS_FILE=${FS_FILE-\/usr\/local\/freeswitch\/bin\/freeswitch}<\/em><\/strong><br \/>\n<strong><em>FS_HOME=${FS_HOME-\/usr\/local\/freeswitch}<\/em><\/strong><br \/>\n<strong><em>LOCK_FILE=\/var\/lock\/subsys\/freeswitch<\/em><\/strong><br \/>\n<strong><em>FREESWITCH_ARGS=&#8221;-nc&#8221;<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>save the file \u00a0and \u00a0add it to\u00a0auto start\u00a0services list<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>chkconfig &#8211;level 345 freeswitch on<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>now\u00a0<strong><em>chkconfig &#8211;list freeswitch<\/em><\/strong>\u00a0should\u00a0show something like below<\/p>\n<p>&lt;25&gt;:chkconfig &#8211;list freeswitch<br \/>\nfreeswitch 0:off 1:off 2:off 3:on 4:on 5:on 6:off<\/p>\n<p>&nbsp;<\/p>\n<p>If we restart the system it should start\u00a0free-switch\u00a0automatically .<\/p>\n<p><strong><em>netstat -ptuln \u00a0<\/em><\/strong>command output will show if \u00a0free-switch\u00a0is\u00a0listening\u00a0to the ports<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/capture\/\" rel=\"attachment wp-att-300\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-300\" alt=\"Capture\" src=\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg\" width=\"834\" height=\"364\" srcset=\"https:\/\/askadmin.com\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg 834w, https:\/\/askadmin.com\/aa\/wp-content\/uploads\/2013\/01\/Capture-500x218.jpg 500w\" sizes=\"(max-width: 834px) 100vw, 834px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After compiling and \u00a0installing freeswitch on centOS from freeswitch source files , we can just copy \u00a0\/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \u00a0 file to \/etc\/init.d directory and \u00a0 correct the freeswitch path entries \u00a0to make it start at boot time . copy the file to init.d directory and \u00a0add permissions #cp \/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \/etc\/init.d\/freeswitch #chmod [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[7,6],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"og:description\" content=\"After compiling and \u00a0installing freeswitch on centOS from freeswitch source files , we can just copy \u00a0\/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \u00a0 file to \/etc\/init.d directory and \u00a0 correct the freeswitch path entries \u00a0to make it start at boot time . copy the file to init.d directory and \u00a0add permissions #cp \/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \/etc\/init.d\/freeswitch #chmod [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/\" \/>\n<meta property=\"og:site_name\" content=\"Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-12T08:51:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"balu sreekanth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/askadmin.com\/aa\/#website\",\"url\":\"https:\/\/askadmin.com\/aa\/\",\"name\":\"Ask Admin - A Lifelong Learner\",\"description\":\"Mobile App Development | IP Telephony | Linux\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/askadmin.com\/aa\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg\",\"contentUrl\":\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#webpage\",\"url\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/\",\"name\":\"Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner\",\"isPartOf\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#primaryimage\"},\"datePublished\":\"2013-01-12T08:51:30+00:00\",\"dateModified\":\"2013-01-12T08:51:30+00:00\",\"author\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345\"},\"breadcrumb\":{\"@id\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/askadmin.com\/aa\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auto start freeswitch in cent OS\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345\",\"name\":\"balu sreekanth\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/askadmin.com\/aa\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g\",\"caption\":\"balu sreekanth\"},\"sameAs\":[\"http:\/\/askadmin.com\"],\"url\":\"https:\/\/askadmin.com\/aa\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/","og_locale":"en_US","og_type":"article","og_title":"Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner","og_description":"After compiling and \u00a0installing freeswitch on centOS from freeswitch source files , we can just copy \u00a0\/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \u00a0 file to \/etc\/init.d directory and \u00a0 correct the freeswitch path entries \u00a0to make it start at boot time . copy the file to init.d directory and \u00a0add permissions #cp \/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \/etc\/init.d\/freeswitch #chmod [&hellip;]","og_url":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/","og_site_name":"Ask Admin - A Lifelong Learner","article_published_time":"2013-01-12T08:51:30+00:00","og_image":[{"url":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg"}],"twitter_misc":{"Written by":"balu sreekanth","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/askadmin.com\/aa\/#website","url":"https:\/\/askadmin.com\/aa\/","name":"Ask Admin - A Lifelong Learner","description":"Mobile App Development | IP Telephony | Linux","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/askadmin.com\/aa\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#primaryimage","inLanguage":"en-US","url":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg","contentUrl":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2013\/01\/Capture.jpg"},{"@type":"WebPage","@id":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#webpage","url":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/","name":"Auto start freeswitch in cent OS - Ask Admin - A Lifelong Learner","isPartOf":{"@id":"https:\/\/askadmin.com\/aa\/#website"},"primaryImageOfPage":{"@id":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#primaryimage"},"datePublished":"2013-01-12T08:51:30+00:00","dateModified":"2013-01-12T08:51:30+00:00","author":{"@id":"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345"},"breadcrumb":{"@id":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/askadmin.com\/aa\/auto-start-freeswitch-in-cent-os\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/askadmin.com\/aa\/"},{"@type":"ListItem","position":2,"name":"Auto start freeswitch in cent OS"}]},{"@type":"Person","@id":"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345","name":"balu sreekanth","image":{"@type":"ImageObject","@id":"https:\/\/askadmin.com\/aa\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g","caption":"balu sreekanth"},"sameAs":["http:\/\/askadmin.com"],"url":"https:\/\/askadmin.com\/aa\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/299"}],"collection":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":3,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/299\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}