{"id":107,"date":"2016-06-03T17:57:00","date_gmt":"2016-06-03T17:57:00","guid":{"rendered":"http:\/\/symbioticindia.in\/docu\/?p=107"},"modified":"2016-06-03T17:59:16","modified_gmt":"2016-06-03T17:59:16","slug":"configuring-sangoma-card-with-asterisk-goautodial-vicidial-freepbx","status":"publish","type":"post","link":"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/configuring-sangoma-card-with-asterisk-goautodial-vicidial-freepbx\/","title":{"rendered":"Configuring Sangoma Card with Asterisk , goautodial, vicidial , Freepbx"},"content":{"rendered":"<h1><a href=\"http:\/\/3.bp.blogspot.com\/-BSSdyFwzSSc\/VWIFh-3sJOI\/AAAAAAAAAYc\/AjvZexXfKXA\/s1600\/sangomacard_vicidial_goautodial_asterisk.png\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-BSSdyFwzSSc\/VWIFh-3sJOI\/AAAAAAAAAYc\/AjvZexXfKXA\/s1600\/sangomacard_vicidial_goautodial_asterisk.png\" border=\"0\" \/><\/a><\/h1>\n<p><strong>how to install and configure sangoma \u00a0card on Asterisk , vicidial ,goautodial , Freepbx based pbx<\/strong><br \/>\n<strong><br \/>\n<\/strong><strong><br \/>\n<\/strong><\/p>\n<ol>\n<li>If you are using the precompiled iso&#8217;s of asterisks pbx then by default the wanpipe will be installed.<\/li>\n<\/ol>\n<p>&#8220;wanpipe is the driver for the sangoma cards&#8221;<\/p>\n<ol start=\"2\">\n<li>if the wanpipe is not installed you need to install the latest wanpipe<\/li>\n<li>Installing the wanpipe in centos<\/li>\n<\/ol>\n<p>installing the dependicies<\/p>\n<p>yum -y install kernel-devel-$(uname -r) libtool* gcc make patch perl bison gcc-c++ \u00a0\u00a0ncurses-devel flex \u00a0 \u00a0 \u00a0libtermcap-devel autoconf* automake*<\/p>\n<ol start=\"4\">\n<li>download the latest wanpipe from below link<\/li>\n<\/ol>\n<p>http:\/\/wiki.sangoma.com\/wanpipe-linux-drivers#latest<\/p>\n<ol start=\"5\">\n<li>Untar the wanpipe file<\/li>\n<\/ol>\n<p>tar xvfz wanpipe-&lt;version&gt;.tgz<\/p>\n<ol start=\"6\">\n<li>cd wanpipe-&lt;version&gt;<\/li>\n<li>type .\/Setup dahdi<\/li>\n<li>if it prompts yes just press y and enter<\/li>\n<li>Proceed with Defaults for the rest of the compilation<\/li>\n<\/ol>\n<p>Once wanpipe installation done , now you need to configure your sangoma card<\/p>\n<ol>\n<li>type lspci \u00a0command to check whether your server have recognizied the sangoma card<\/li>\n<\/ol>\n<p>the above command will return sometink like below<\/p>\n<p>&#8220;Sangoma Technologies Corp. A200\/Remora FXO\/FXS Analog AFT card&#8221;<\/p>\n<ol start=\"2\">\n<li>now type \u00a0wancfg_dahdi<\/li>\n<\/ol>\n<p>would you like to generate \/etc\/asterisk\/chan_dahdi.conf<\/p>\n<ol>\n<li>YES<\/li>\n<li>NO<\/li>\n<\/ol>\n<p>[1-2]:1<\/p>\n<p>Configuring port 1 on A101 slot:4 bus:4.<\/p>\n<p>Select media type for AFT-A101 on port 1 [slot:4 bus:4 span:1]<\/p>\n<ol>\n<li>T1<\/li>\n<li>E1<\/li>\n<li>Unused<\/li>\n<li>Exit<\/li>\n<\/ol>\n<p>[1-4]:2 \u00a0 \u00a0&#8212;&#8212;- if your connection is T1 then enter 1 mine is E1 (india)<\/p>\n<p>Configuring port 1 on 101 as E1, line coding:HDB3, framing:CRC4<\/p>\n<ol>\n<li>YES &#8211; Keep these settings<\/li>\n<li>NO \u00a0&#8211; Configure line coding and framing<\/li>\n<\/ol>\n<p>[1-2, ENTER=&#8217;YES&#8217;]:1<\/p>\n<p>note: for the above you need to ask your provider for the detaisl like crc4 is enable to disable based on that u need to enter<\/p>\n<p>Select clock for AFT-A101 on port 1 [slot:4 bus:4 span:1]<\/p>\n<ol>\n<li>NORMAL<\/li>\n<li>MASTER<\/li>\n<\/ol>\n<p>[1-2]:2<\/p>\n<p>Select signalling type for AFT-A101 on port 1 [slot:4 bus:4 span:1]<\/p>\n<ol>\n<li>Zaptel\/Dahdi &#8211; PRI CPE<\/li>\n<li>Zaptel\/Dahdi &#8211; PRI NET<\/li>\n<li>Zaptel\/Dahdi &#8211; E &amp;amp; M<\/li>\n<li>Zaptel\/Dahdi &#8211; E &amp;amp; M Wink<\/li>\n<li>Zaptel\/Dahdi &#8211; FXS &#8211; Loop Start<\/li>\n<li>Zaptel\/Dahdi &#8211; FXS &#8211; Ground Start<\/li>\n<li>Zaptel\/Dahdi &#8211; FXS &#8211; Kewl Start<\/li>\n<li>Zaptel\/Dahdi &#8211; FX0 &#8211; Loop Start<\/li>\n<li>Zaptel\/Dahdi &#8211; FX0 &#8211; Ground Start<\/li>\n<li>Zaptel\/Dahdi &#8211; FX0 &#8211; Kewl Start<\/li>\n<li>Sangoma SMG\/sangoma_prid- PRI CPE<\/li>\n<li>Sangoma SMG\/sangoma_prid- PRI NET<\/li>\n<\/ol>\n<p>[1-12]:1<\/p>\n<p>note: if the line is from the provider select 1 , if you are connecting card to leagal epabx then give 2<\/p>\n<p>Select switchtype for AFT-A101 on port 1<\/p>\n<ol>\n<li>National ISDN 2<\/li>\n<li>Nortel DMS100<\/li>\n<li>AT&amp;amp;T 4ESS<\/li>\n<li>Lucent 5ESS<\/li>\n<li>EuroISDN<\/li>\n<li>Old National ISDN 1<\/li>\n<li>Q.SIG<\/li>\n<\/ol>\n<p>[1-7]:5<\/p>\n<p>Configuring port 1 on AFT-A101 as a full E1<\/p>\n<ol>\n<li>YES &#8211; Use all channels<\/li>\n<li>NO \u00a0&#8211; Configure for fractional<\/li>\n<\/ol>\n<p>[1-2, ENTER=&#8217;YES&#8217;]:1<\/p>\n<p>Select dialplan context for AFT-A101 on port 1<\/p>\n<ol>\n<li>from-pstn<\/li>\n<li>from-internal<\/li>\n<li>Custom<\/li>\n<\/ol>\n<p>[1-3]:1 \u00a0 \u00a0 \u00a0&#8212;&#8212; mine is freepbx so i selected from-pstn , if yours is different then select custom and enter your incomming context<\/p>\n<p>Input the group for this port<\/p>\n<p>:0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;- i have give zero , if you want the group name 1 then give 1<\/p>\n<p>this is based on how you write your outgoing dialplan<\/p>\n<p>Port 1 on AFT-A101 configuration complete&#8230;<\/p>\n<p>Press any key to continue:<\/p>\n<p>T1\/E1 card configuration complete.<\/p>\n<p>Press any key to continue:<\/p>\n<p>Configuration Complete! Please select following:<\/p>\n<ol>\n<li>YES &#8211; Continue<\/li>\n<li>NO &#8211; Exit<\/li>\n<\/ol>\n<p>[1-2]:1<\/p>\n<p>Dahdi and Wanpipe configuration complete: choose action<\/p>\n<ol>\n<li>Save cfg: Restart Asterisk &amp;amp; Wanpipe now<\/li>\n<li>Save cfg: Restart Asterisk &amp;amp; Wanpipe when convenient<\/li>\n<li>Save cfg: Stop Asterisk &amp;amp; Wanpipe now<\/li>\n<li>Save cfg: Stop Asterisk &amp;amp; Wanpipe when convenient<\/li>\n<li>Save cfg: Save cfg only (Not Recommanded!!!)<\/li>\n<li>Do not save cfg: Exit<\/li>\n<\/ol>\n<p>[1-6]:1<\/p>\n<p>Would you like wanrouter to start on system boot?<\/p>\n<ol>\n<li>YES<\/li>\n<li>NO<\/li>\n<\/ol>\n<p>[1-2]:1<\/p>\n<p>Would you like to execute &#8216;dahdi_cfg&#8217; each time wanrouter starts?<\/p>\n<ol>\n<li>YES<\/li>\n<li>NO<\/li>\n<\/ol>\n<p>[1-2]:1<\/p>\n<p>end of wanroute configuration<\/p>\n<p>Now you need to check pri status ,<\/p>\n<p>Wanrouter status\u00a0\u00a0 ; it should show connected<\/p>\n<p>type dahdi_cfg \u00a0 -vv \u00a0this shows does the card configured properly or not , shows the channels configured<\/p>\n<p>go to asterisk cli<\/p>\n<p>asterisk -vvvvr<\/p>\n<p>dahdi show status<\/p>\n<p>dahdi show channels<\/p>\n<p>pri show spans<\/p>\n<p>once the pri is up , now check the incomming and outgoing<\/p>\n","protected":false},"excerpt":{"rendered":"<p>how to install and configure sangoma \u00a0card on Asterisk , vicidial ,goautodial , Freepbx based pbx If you are using the precompiled iso&#8217;s of asterisks pbx then by default the wanpipe will be installed. &#8220;wanpipe is the driver for the sangoma cards&#8221; if the wanpipe is not installed you need to install the latest wanpipe ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/configuring-sangoma-card-with-asterisk-goautodial-vicidial-freepbx\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,22],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-asterisk","category-pri-card"],"_links":{"self":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":2,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":109,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/107\/revisions\/109"}],"wp:attachment":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}