Open byoungdale opened 6 years ago
Probably you need to run composer install
from the a2billing
directory. This should create the vendor
directory and download all the 3rd party php packages into it.
Ok, that worked. I see. So, the composer.json file comes with the repo and then you get the composer install and run composer.phar install. So, the composer install steps should be after the getting the repo.
Thank you!
@byoungdale Good 😃 Yes composer
is part of the symfony
PHP app framework, so you must run composer install
to have it download and setup the app's required 3rd party PHP packages listed in composer.json
.
@chris001 It seems the documentation is full of errors. Would you recommend running composer in the src directory, before the install, or in the www root where you have placed it? Wondering because I am getting a different Composer error, in which I created an issue (about Documentation)
@chris001 It seems the documentation is full of errors. Would you recommend running composer in the src directory, before the install, or in the www root where you have placed it? Wondering because I am getting a different Composer error, in which I created an issue (about Documentation)
Normally, you run composer install
from the www-root
where you have placed a2billing
software, which is the same place where the composer.json
file is located. composer
will then download the required PHP packages, and place them into a vendor
subdirectory ,under the www-root
.
Thank you for the very useful information, and taking the time to reply. It would be if they would have a real wiki or other place where we can have some input to have correct documentation on the install and usage of this project.
Thank you for the very useful information, and taking the time to reply. It would be if they would have a real wiki or other place where we can have some input to have correct documentation on the install and usage of this project.
Welcome! There's a wiki for this project here on github, which lets you edit the pages, and add new pages!: https://github.com/Star2Billing/a2billing/wiki
I knew there is a wiki on here, but did not realize anyone could possibly edit it.
Thanks for the info.
@chris001 This is off thread topic, but I am having another issue. Instead of having a2b answer calls into a menu system,I want to pass calls (termination) through the system and bill valid accounts. Creating SIP accounts , then trying to make calls results in “…rejected because extension not found in context 'a2billing' ”
Anything you can point me to on this?
Their own web page says it can be done, but documentation is not very useful:
http://www.asterisk2billing.org/documentation/overview-of-a2billing/
Thanks again!
Update: I found "Context = a2billing" in peer_friend setting. I changed it to a2billing-out as what is in /etc/asterisk/extensions_custom.conf
[a2billing-did]
exten => _X.,1,AGI(a2billing.php,1,did)
exten => _X.,n,Hangup()
Still getting same result
I am not able to cp the vendor directory from the installation instructions because it is not in the project anywhere. I feel like I am missing something, but I am stuck on what. I have downloaded from this git repository, from the website, and from a link from #104 but none of them has a vendor directort. Can anyone point me in the right direction?
root@a2billing:/usr/local/src# cp -rf /usr/local/src/a2billing/vendor /var/www/html/a2billing/vendor cp: cannot stat ‘/usr/local/src/a2billing/vendor’: No such file or directory