{"id":639,"date":"2014-12-18T12:41:59","date_gmt":"2014-12-18T11:41:59","guid":{"rendered":""},"modified":"2018-10-31T22:24:23","modified_gmt":"2018-10-31T21:24:23","slug":"upgrade-freeswitch-compiled-package-158","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/upgrade-freeswitch-compiled-package-158\/","title":{"rendered":"Upgrade FreeSWITCH from compiled to package 1.5.8"},"content":{"rendered":"<h2>\n\tInstallation<\/h2>\n<p>\n\tFirst, add repository to system<\/p>\n<pre>\r\nvim \/etc\/apt\/sources.list<\/pre>\n<p>\n\tadd line<\/p>\n<pre>\r\ndeb http:\/\/files.freeswitch.org\/repo\/deb-master\/debian\/ wheezy main<\/pre>\n<p>\n\tThen add GPG key to repository<\/p>\n<pre>\r\ngpg --keyserver pool.sks-keyservers.net --recv-key D76EDC7725E010CF\r\ngpg -a --export D76EDC7725E010CF | apt-key add -<\/pre>\n<p>\n\tNow, update repository<\/p>\n<pre>\r\napt-get update<\/pre>\n<p>\n\tFreeSWITCH is ready to install. Just run<\/p>\n<pre>\r\napt-get install freeswitch freeswitch-meta-vanilla<\/pre>\n<p>\n\tVanilla is package with configuration files. FreeSWITCH will not create config files, so we must download them separately.<\/p>\n<p>\n\tNow, copy new config files<\/p>\n<pre>\r\ncp -a \/usr\/share\/freeswitch\/conf\/vanilla \/etc\/freeswitch<\/pre>\n<p>\n\tBasicly, FreeSWITCH is ready, and you can use it.<\/p>\n<h2>\n\tSet values defined in old FreeSWITCH<\/h2>\n<h4>\n\tSIP port<\/h4>\n<p>\n\tFreeSWITCH is now listening on port 5060, which may colide with other SIP proxies.<\/p>\n<p>\n\tYou can set SIP port in file \/etc\/freeswitch\/sip_profiles\/internal.xml<\/p>\n<p>\n\tOn line 88 set desired value of SIP port (We had FreeSWITCH previously on port 5090)<\/p>\n<pre>\r\nvim \/etc\/freeswitch\/sip_profiles\/internal.xml\r\n&lt;param name=&quot;sip-port&quot; value=&quot;5090&quot;\/&gt;\r\n<\/pre>\n<h4>\n\tUsers<\/h4>\n<p>\n\tIf you had users created in FreeSWITCH, copy them to new FreeSWITCH<\/p>\n<p>\n\tCompilled FreeSWITCH is located in \/usr\/local\/freeswitch<\/p>\n<pre>\r\ncd \/usr\/local\/freeswitch\/conf\/directory\/default\r\ncp user.xml \/etc\/freeswitch\/directory\/default<\/pre>\n<h4>\n\tDialplan<\/h4>\n<p>\n\tYou can simply rewrite whole dialplan folder<\/p>\n<pre>\r\ncp \/usr\/local\/freeswitch\/conf\/dialplan \/etc\/freeswitch<\/pre>\n<h4>\n\tACL<\/h4>\n<p>\n\tIf you had configured access-lists, you can also rewrite whole file<\/p>\n<pre>\r\ncp \/usr\/local\/freeswitch\/conf\/autoload_configs\/acl.conf.xml \/etc\/freeswitch\/autoload_configs<\/pre>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tDo not forget restart FreeSWITCH<\/p>\n<pre>\r\nservice freeswitch restart<\/pre>\n<p>\n\tThat is all. You can now remove old FreeSWITCH and enjoy your new version.<\/p>","protected":false},"excerpt":{"rendered":"<h2>\n\tInstallation<\/h2>\n<p>\n\tFirst, add repository to system<\/p>\n<pre>\r\nvim \/etc\/apt\/sources.list<\/pre>\n<p>\n\tadd line<\/p>\n<pre>\r\ndeb http:\/\/files.freeswitch.org\/repo\/deb-master\/debian\/ wheezy main<\/pre>\n<p>\n\tThen add GPG key to repository<\/p>\n<pre>\r\ngpg --keyserver pool.sks-keyservers.net --recv-key D76EDC7725E010CF\r\ngpg -a --export D76EDC7725E010CF | apt-key add -<\/pre>\n<p>\n\tNow, update repository<\/p>\n<pre>\r\napt-get update<\/pre>\n<p>\n\tFreeSWITCH is ready to install. Just run<\/p>","protected":false},"author":15668,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[779],"tags":[],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-freeswitch-en"],"taxonomy_info":{"category":[{"value":779,"label":"FreeSWITCH"}]},"featured_image_src_large":false,"author_info":{"display_name":"","author_link":"https:\/\/nil.uniza.sk\/en\/author\/"},"comment_info":2,"category_info":[{"term_id":779,"name":"FreeSWITCH","slug":"freeswitch-en","term_group":0,"term_taxonomy_id":777,"taxonomy":"category","description":"","parent":771,"count":2,"filter":"raw","cat_ID":779,"category_count":2,"category_description":"","cat_name":"FreeSWITCH","category_nicename":"freeswitch-en","category_parent":771}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/15668"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=639"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/639\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}