{"id":81,"date":"2009-10-01T02:07:20","date_gmt":"2009-10-01T09:07:20","guid":{"rendered":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/?p=81"},"modified":"2009-10-01T02:09:25","modified_gmt":"2009-10-01T09:09:25","slug":"making-asterisk-trixbox-work-in-the-uk","status":"publish","type":"post","link":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/making-asterisk-trixbox-work-in-the-uk\/","title":{"rendered":"Making Asterisk (Trixbox) work in the UK"},"content":{"rendered":"<p>Asterisk is an open-source PABX.\u00a0 It can connect existing telephones, &#8220;soft phones&#8221; running on a PC, and physical IP phones to the VOIP networks and to existing &#8220;POTS&#8221; telephone lines.\u00a0 Connectivity to existing telephones and exchange lines is provided by either external hardware boxes such as <a title=\"Astribank\" href=\"http:\/\/www.voipon.co.uk\/xorcom-astribank-6-fxs-2-fxo-xr0030-p-566.html\">Astribank<\/a> (for large systems) or PCI plug-in cards such as Digium&#8217;s <a title=\"TDM400P\" href=\"http:\/\/www.digiumcards.com\/tdm400p.html\">TDM400P<\/a>.\u00a0 Cards are also available to connect to digital lines such as T1\/E1 to provide multiple lines.<\/p>\n<p>Using Asterisk, I can connect telephones in my children&#8217;s bedrooms to the one in the kitchen, and allow them to make phone calls (with restrictions).\u00a0 I can also connect to my home telephone system from the Internet and call my wife on a real phone from my iPod Touch, or make a call apparently from home when I am in a conference room in the USA.\u00a0 Also, I can provide new telephone numbers in minutes (via <a title=\"VOIPuser\" href=\"http:\/\/www.voipuser.org\">VOIPuser<\/a> for example) which connect directly to a particular phone in my house, or my PC wherever it is in the world that day, or to an automated message.\u00a0 I can receive voicemails and have them sent to me by email.\u00a0 I can also write simple teleohony apps which (for example) tell my wife how many emails she has when she dials *90 on the phone in the kitchen.\u00a0 The telecoms world becomes my oyster.<\/p>\n<p>Asterisk is available in many forms, both in source and binary distributions designed to run on a PC.\u00a0 The easiest approach is to dedicate a PC to running Asterisk (though mine also runs a firewall for my home network and a disk server).\u00a0 Pre-packaged distribtions for this are available and the one I prefer is <a title=\"Trixbox\" href=\"http:\/\/www.trixbox.org\">Trixbox<\/a>.<\/p>\n<p>Getting Asterisk to work in the UK with caller-id can be tricky.\u00a0 Having struggled with it several times and found a solution which works, I thought I&#8217;d write it down both for my own reference and to help other people struggling with this problem.<\/p>\n<ol>\n<li>Install Trixbox 2.8.0.1 from CD.\u00a0 Trixbox is based on the CentOS Linux distribution.\u00a0 <strong>Mind, it will find and destroy *all* your hard disks at installation time.<\/strong><\/li>\n<li>Upgrade to Asterisk 1.6.0.10 (I think)<\/li>\n<blockquote><p># yum clean all<br \/>\n# rpm -del &#8211;nodeps kmod-dahdi-linux dahdi-linux<br \/>\n# yum -y update\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (this takes a while)<br \/>\n# yum install kmod-dahdi-linux dahdi-linux<\/p><\/blockquote>\n<li>Then edit \/etc\/modprobe.d\/dahdi to add a line as follows:<\/li>\n<blockquote><p>options wctdm opermode=UK fwringdetect=1 battthresh=4<\/p><\/blockquote>\n<li>Then edit \/etc\/asterisk\/chan_dahdi.conf to add the following lines after &#8220;usecallerid=yes&#8221;<\/li>\n<blockquote><p>cidsignalling=v23<br \/>\ncidstart=polarity<\/p><\/blockquote>\n<\/ol>\n<p>NOTE that Asterisk seems to refuse to use the outgoing line after a reboot until the line is unplugged and plugged back in again!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Asterisk is an open-source PABX.\u00a0 It can connect existing telephones, &#8220;soft phones&#8221; running on a PC, and physical IP phones to the VOIP networks and to existing &#8220;POTS&#8221; telephone lines.\u00a0 Connectivity to existing telephones and exchange lines is provided by either external hardware boxes such as Astribank (for large systems) or PCI plug-in cards such [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[16,17],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-technology","tag-asterisk","tag-telephony"],"_links":{"self":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":3,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/81\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}