Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7089889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:58:38+00:00 2026-05-28T07:58:38+00:00

I have been trying to get a2billing to work for the past 4 days

  • 0

I have been trying to get a2billing to work for the past 4 days now, i followed 4 tutorials and they all gave me some insight into how things work.. but the a2billing is still not working..

my Asterisk works fine, freepbx i can make extension and place calls on trunks, internals perfect…

I installed a2billing.. the admin,user,agents.. all that works – i can log in add rates,trunks, the simulator get the correct routes,rates and trunks..

I can make a user log in using a sip device.. but for the love of god.. every single time i dial I get error q931_disconnect_code_21

ISDN Code says–
Cause No. 21 - call rejected.
This cause indicates that the equipment sending this cause does not wish to accept this call. although it could have accepted the call because the equipment sending this cause is neither busy nor incompatible. This cause may also be generated by the network, indicating that the call was cleared due to a supplementary service constraint. The diagnostic field may contain additional information about the supplementary service and reason for rejection.

Which means the host(a2billing and asterisk) knows about the call but activbely denied routing the call.. IN the simulator i use the same number that works in there on my sip.

I am on Ubuntu 10.4LTS – Asterisk was installed using apt-get -> /usr/share/asterisk but i also have a /var/lib/asterisk

i made a ln -s to /usr/src/a2billing/AGI/a2billing.php /usr/share/asterisk/agi-bin (the asterisk conf defines this as the agi location-and freepbx time,freebpx echo works)

Another problem is that a2billing has not made 1 single log file and i cannot determine what the heck is going on(the permissions are set write global and belong to asterisk).. asterisk logs are clean.. sip, trunks are all registered.

I connect to a2billing user, place call– silence. and just error q931(zoiper on iphone) if i use the freepbx extension i can talk with anybody iusing freepbx routes.

I followed this guide
http://www.data4ict.com/tutorials/a2billing/a2billing.asp

basically i skipped freepbx out of the picture, so its just asterisk direct to a2billing.. and all the steps and verifications are just like he shows (execpt i use /usr/share/asterisk instead of /var/lib/asterisk… ??.. step by step idiot tutorial and i still cant get it working.

I set all the version to 1_6, permissions are good- i even wrote test into the a2billing_agi.log and it shows the test string on the admin end.. but never writes anything to the log file.

apache2 runs runs as www-data:www-data
asterisk runs as asterisk:asterisk
freepbx (i disabled it for now but runs as asterisk)

I made links to both var and usr agi-bin folder back to placed the a2billing.php with the lib link

my current config is like the ones in the turorial extensions,sips,iax’as

~# php -v PHP Deprecated: Comments starting with ‘#’ are deprecated in
/etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP
5.3.2-1ubuntu4.10 with Suhosin-Patch (cli) (built: Oct 15 2011 00:09:58) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0,
Copyright (c) 1998-2010 Zend Technologies

asterisk -v Asterisk 1.8.8.0~rc4-1digium0+1~lucid, Copyright (C) 1999
– 2011 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type
‘core show warranty’ for details. This is free software, with
components licensed under the GNU General Public License version 2 and
other licenses; you are welcome to redistribute it under certain
conditions. Type ‘core show license’ for details.
========================================================================= Running as group ‘asterisk’ Running as user ‘asterisk’ Unable to
access the running directory (Permission denied). Changing to ‘/’ for
compatibility. Asterisk already running on
/var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect..

Asterisk 1.8.8.0~rc4-1digium0+1~lucid

A2Billing 1.9.4 (Cuprum)

Has anybody have any suggestion how to debug what is going on. Maybe if i can jsut get the logs to work that will help.. I am really bumbed out now .. 5days later.

Or is there a ready to go a2billing distro i dont know about maybe..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:58:39+00:00Added an answer on May 28, 2026 at 7:58 am

    You have a problem with the PHPAGI not connecting properly back to asterisk.

    Using FreePBX will be layered out, any extensions in freepcb will not apply in A2Billing unless you use custom extension routes.

    A2Billing is not very easy to setup.

    Also, try to debug Asterisk by typing in the console

    asterisk -rvvvvvvvvvvvvvvv

    And read what it logs back to screen, all the v set it to the higherst verbosity level, so it will tell you everything that happens step by step

    Good Luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get this to work for about three solid days
I have been trying to get this to work with several tutorials/answers here, but
I have been trying to get this to work for 12 hrs now and
I have been trying to get this to work for quite a while now:
I have been trying to get this to work for some time. I'm just
I have been trying to get this code to work for a while now
I have been trying to get my Arduino/Eclipse environment setup. For some reason I
I have been trying to get Twitter Bootstrap btn-group with dropdown to work for
I have been trying to get nServiceBus to work with Ninject 2.0 as the
I have been trying to get some basic dynamic code compilation working using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.