install a2billing callshop module on trixbox 2.x

this is a quick install,
first I thought maybe trixbox 2.x cannot interwork with a2b 1.3 very well,so I first install pure a2b 1.3,it's good

so what I do next
1. run one sql command to add some tables,fields to existing a2b database
2. download and copy callshop web pages to /var/www/html , so callshop owner is http:///callshop
3.download a2billingcs.php, Class.A2Billingcs.php,Class.RateEnginecs.php,etc
to /var/lib/asterisk/agi-bin and /var/lib/asterisk/agi-bin/v13libs_a2billing
I use different filename so it wont did some side effects to your normal a2billing operations
4. config in a2billing.conf ,extensions.conf
5. in A2Billing UI,I create trunk, then callplan,then ratecard, then I add rates to the ratecard,and then create one customer (sip account=yes)
6. then I goto /callshop use the customer's alias/uipassword, then I create booths, for each booths, it automatically create unique callerid (THIS IS IMPORTANT),and I define callshop rates ok
7. then I config x-lite softphone or linksys ata, sip username =customer sip username,secret=customer sip secret, display name( for each fxs port) will be set to booth's callerid
8. then it's ok to make calls now,when you dial, you can see realtime call status(called number,
call status,answer time,call time,call fee)
9. after calls done, you can click "calls",then you can see the calls made from the booth
10. it should ok now

Releases