Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
181 stars 175 forks source link

/usr/local/src/a2billing/vendor does not exist #150

Open byoungdale opened 6 years ago

byoungdale commented 6 years ago

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

chris001 commented 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.

byoungdale commented 6 years ago

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!

chris001 commented 6 years ago

@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.

tcreek commented 4 years ago

@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 commented 4 years ago

@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.

tcreek commented 4 years ago

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.

chris001 commented 4 years ago

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

tcreek commented 4 years ago

I knew there is a wiki on here, but did not realize anyone could possibly edit it.

Thanks for the info.

tcreek commented 3 years ago

@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