Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
byoungdale opened this issue Jul 25, 2017 · 9 comments
Open

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

byoungdale opened this issue Jul 25, 2017 · 9 comments

Comments

@byoungdale
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

@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
Copy link

tcreek commented Jun 26, 2020

@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
Copy link

@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
Copy link

tcreek commented Jun 26, 2020

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
Copy link

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
Copy link

tcreek commented Jun 27, 2020

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

Thanks for the info.

@tcreek
Copy link

tcreek commented Jul 22, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants