{"id":280,"date":"2012-11-03T19:58:44","date_gmt":"2012-11-03T14:28:44","guid":{"rendered":"http:\/\/askadmin.com\/?p=280"},"modified":"2015-03-27T14:27:06","modified_gmt":"2015-03-27T08:57:06","slug":"a2billing-and-astersik","status":"publish","type":"post","link":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/","title":{"rendered":"A2billing and Astersik"},"content":{"rendered":"<p>Finallly I got the <a href=\"http:\/\/www.asterisk.org\" target=\"_blank\">Asterisk<\/a>+<a href=\"https:\/\/freeswitch.org\" target=\"_blank\">freeswitch<\/a> \u00a0in a single system up and running \u00a0with <a href=\"http:\/\/www.fusionpbx.com\" target=\"_blank\">fusion pbx<\/a> as front end for freeswitch \u00a0and <a href=\"http:\/\/www.asterisk2billing.org\" target=\"_blank\">A2billin<\/a>g for Astersik .<\/p>\n<p>You may wonder why we needed this complicated \u00a0single box all-in one setup . I wanted to use this setup for our office internal PBX \u00a0 as well as integrating DID number purchase panel and for international calls.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/attachment\/1\/\" rel=\"attachment wp-att-282\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-282\" title=\"1\" src=\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg\" alt=\"\" width=\"501\" height=\"215\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I have got few issues while configuring \u00a0this system .<\/p>\n<p><strong>Issue 1 :<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>After installing freepbx and asterisk on teh same system i wanted to change\u00a0free switch\u00a0sip port from 5060 to any other port \u00a0as asterisk is already using the port 5060 .<\/p>\n<p>So i edited the file vars.xml<\/p>\n<p># vi \/usr\/local\/freeswitch\/conf\/vars.xml<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Issue2:<\/strong><\/p>\n<p>Just after installing a2billing , i renamed the default web directory \u00a0\/var\/www\/html\/a2billing \u00a0to something else \u00a0and \u00a0it caused the extensions\/pins i created not registering and I could not reload asterisk from a2billing interface .<\/p>\n<p>I\u00a0realized\u00a0that this is \u00a0because of missing short link for\u00a0\/var\/lib\/asterisk\/agi-bin\/lib -&gt; \/var\/www\/html\/renamed\/common\/lib<\/p>\n<p># cd\u00a0\/var\/lib\/asterisk\/agi-bin<\/p>\n<p>#ln -s \/var\/www\/html\/a2billing\/common\/lib \u00a0lib<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u00a0<strong>Issue 3:<\/strong><\/strong><\/p>\n<p>I wanted a2billing take care of asterisk configuration files and not to restart\u00a0asterisk\u00a0manually\u00a0when\u00a0there is a change ,<\/p>\n<p>for this i turn of \u00a0&#8220;Asterisk\u00a0real time&#8221; in system settings &#8211;&gt;global list &#8212;&gt;global<\/p>\n<p>use_realtime=NO<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Issue4:<\/strong><\/p>\n<p>Every-time I place a outbound call , a2billing plays the audio saying &#8221; enter the number you wish to dial and press the pound key&#8221;. I dont want this but \u00a0place the calls directly .<\/p>\n<p>under systemsettings&#8211;&gt;Global list &#8211;&gt; Agi-conf1 \u00a0, I\u00a0changed\u00a0below values to &#8216;NO&#8217;<\/p>\n<p>play_audio=no<\/p>\n<p>say_timetocall =no<br \/>\nsay_balance_after_auth=no<br \/>\nsay_balance_after_call=no<br \/>\nsay_rateinitial=no<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Issue 5:<\/strong><\/p>\n<p>By enabling debug level =4 \u00a0in agi-conf , I understood why my outbound calls are not connecting .<\/p>\n<p>by disabling caller id authentication in agi-conf, \u00a0i made it work finally .<\/p>\n<p>cid_enable = NO<\/p>\n<p>below is the log from a2billing log files<\/p>\n<p>&nbsp;<\/p>\n<p>#tail -f \u00a0\/var\/log\/a2billing\/a2billing_agi.log<\/p>\n<p>[03\/11\/2012 18:25:33]:[file:Class.A2Billing.php &#8211; line:2807 &#8211; uniqueid:1351947326.58]:[CallerID:27071]:[CN:27071]:[[SET CHANNEL(language) en]]<\/p>\n<p>[03\/11\/2012 18:25:33]:[file:Class.A2Billing.php &#8211; line:2811 &#8211; uniqueid:1351947326.58]:[CallerID:27071]:[CN:27071]:[[credit= :: tariff= :: status= :: isused= :: simultaccess= :: typepaid=0 :: creditlimit=0 :: language=en]]<br \/>\n[03\/11\/2012 18:25:33]:[file:Class.A2Billing.php &#8211; line:2850 &#8211; uniqueid:1351947326.58]:[CallerID:27071]:[CN:27071]:[[ERROR CHECK CARD : prepaid-auth-fail (cardnumber:27071)]]<br \/>\n[03\/11\/2012 18:25:33]:[file:a2billing.php &#8211; line:178 &#8211; uniqueid:1354547326.58]:[CallerID:27071]:[CN:27071]:[[TRY : callingcard_ivr_authenticate]]<br \/>\n[03\/11\/2012 18:25:33]:[file:a2billing.php &#8211; line:620 &#8211; uniqueid:1354547326.58]:[CallerID:27071]:[CN:27071]:[[AUTHENTICATION FAILED (cia_res:-2)]]<br \/>\n[03\/11\/2012 18:25:33]:[CallerID:27071]:[CN:27071]:[[exit]]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finallly I got the Asterisk+freeswitch \u00a0in a single system up and running \u00a0with fusion pbx as front end for freeswitch \u00a0and A2billing for Astersik . You may wonder why we needed this complicated \u00a0single box all-in one setup . I wanted to use this setup for our office internal PBX [&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":[6],"tags":[94,96,95],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A2billing and Astersik - 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\/a2billing-and-astersik\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A2billing and Astersik - Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"og:description\" content=\"Finallly I got the Asterisk+freeswitch \u00a0in a single system up and running \u00a0with fusion pbx as front end for freeswitch \u00a0and A2billing for Astersik . You may wonder why we needed this complicated \u00a0single box all-in one setup . I wanted to use this setup for our office internal PBX [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/\" \/>\n<meta property=\"og:site_name\" content=\"Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-03T14:28:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-27T08:57:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.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=\"2 minutes\" \/>\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\/a2billing-and-astersik\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg\",\"contentUrl\":\"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#webpage\",\"url\":\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/\",\"name\":\"A2billing and Astersik - Ask Admin - A Lifelong Learner\",\"isPartOf\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#primaryimage\"},\"datePublished\":\"2012-11-03T14:28:44+00:00\",\"dateModified\":\"2015-03-27T08:57:06+00:00\",\"author\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345\"},\"breadcrumb\":{\"@id\":\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/askadmin.com\/aa\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A2billing and Astersik\"}]},{\"@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":"A2billing and Astersik - 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\/a2billing-and-astersik\/","og_locale":"en_US","og_type":"article","og_title":"A2billing and Astersik - Ask Admin - A Lifelong Learner","og_description":"Finallly I got the Asterisk+freeswitch \u00a0in a single system up and running \u00a0with fusion pbx as front end for freeswitch \u00a0and A2billing for Astersik . You may wonder why we needed this complicated \u00a0single box all-in one setup . I wanted to use this setup for our office internal PBX [&hellip;]","og_url":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/","og_site_name":"Ask Admin - A Lifelong Learner","article_published_time":"2012-11-03T14:28:44+00:00","article_modified_time":"2015-03-27T08:57:06+00:00","og_image":[{"url":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg"}],"twitter_misc":{"Written by":"balu sreekanth","Est. reading time":"2 minutes"},"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\/a2billing-and-astersik\/#primaryimage","inLanguage":"en-US","url":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg","contentUrl":"https:\/\/askadmin.com\/aa\/aa\/wp-content\/uploads\/2012\/11\/1-e1351952147972.jpg"},{"@type":"WebPage","@id":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#webpage","url":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/","name":"A2billing and Astersik - Ask Admin - A Lifelong Learner","isPartOf":{"@id":"https:\/\/askadmin.com\/aa\/#website"},"primaryImageOfPage":{"@id":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#primaryimage"},"datePublished":"2012-11-03T14:28:44+00:00","dateModified":"2015-03-27T08:57:06+00:00","author":{"@id":"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345"},"breadcrumb":{"@id":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/askadmin.com\/aa\/a2billing-and-astersik\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/askadmin.com\/aa\/"},{"@type":"ListItem","position":2,"name":"A2billing and Astersik"}]},{"@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\/280"}],"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=280"}],"version-history":[{"count":10,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/280\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}