โปรแกรม A2Billing ทำอะไรได้บ้าง

Open Source Calling Card/Billing for Asterisk

โปรแกรม A2Billing ทำอะไรได้บ้าง

โพสต์โดย voip4share » 21 ธ.ค. 2009 20:53

ก่อนอื่นมาดูกันก่อนครับว่าโปรแกรม A2Billing ทำอะไรให้เราได้บ้าง

เว็บไซต์ http://www.asterisk2billing.org

a2billing-overall-diagram-small.jpg
A2Billing Diagram
a2billing-overall-diagram-small.jpg (63.44 KiB) เปิดดู 11169 ครั้ง


โปรแกรม A2Billing มีไว้ทำอะไร

โปรแกรม A2Billing เป็นโปรแกรมประเภท Billing ทำหน้าที่ควบคุมการโทรของ Asterisk นะครับ ทั้งโทรเข้าและโทรออกผ่านช่องทาง Trunk ต่างๆ เช่น PSTN, SIP, IAX เป็นต้น โดยทั่วไปเน้นการโทรออก เมื่อยูสเซอร์ต้องการโทรออกคำสั่งจะถูกส่งไปที่ A2Billing ซึ่งจะตรวจสอบสิทธิ เช่นเบอร์โทรศัพท์ที่ใช้โทร รหัสพิน เป็นต้น ถ้าตรวจสอบผ่านก็จะยอมให้โทร พร้อมทั้งตัดยอดเงินในแอ๊คเค๊าท์ตามจำนวนระยะเวลาที่โทร

แต่อย่างไรก็ตามเมื่อเราใช้ Asterisk เราไม่จำเป็นต้องใช้โปรแกรมประเภท Billing ก็ได้ เพราะ Asterisk สามารถทำงานได้โดยไม่ต้องใช้โปรแกรมประเภทนี้ แต่ถ้าเมื่อใดก็ตามที่เราต้องการคิดเงินค่าโทรหรือให้เฉพาะผู้ที่มีสิทธิเท่านั้น เราควรใช้โปรแกรมประเภทนี้

- บริการ Calling Card ได้ โปรแกรม A2Billing สามารถให้บริการ Calling Card ได้ทันที พร้อมระบบการตรวจสอบผู้ใช้งานโดยใช้ PIN หรือ CID
- บริการ Callback โปรแกรม A2Billing สามารถรองรับบริการ Callback ได้หลายแบบ เช่น ANI, DID และ Web based callback
- บริการ VoIP แก่ลูกค้าทั่วไป ลูกค้าที่ใช้ซอฟท์โฟนหรือเกตเวย์ที่มีแอ๊คเค๊าท์อยู่บน A2Billing จะโทรออกไปโดยมีการคิดเงินค่าโทรด้วย
- บริการ VoIP Wholesale Termination ใช้ A2Billing + Asterisk เพื่อทำงานเป็น Softswitch รับคอลจำนวนมากๆ คิดค่าโทรเป็นนาที
- โปรแกรม Billing สำหรับ Asterisk IPPBX
- ควบคุมการรับและส่งเบอร์ DID สำหรับผู้ให้บริการเบอร์ DID สามารถคิดค่าใช้จ่ายเป็นรายเดือนหรือตามระยะเวลาการใช้งานได้

เราสามารถพูดได้อย่างเต็มปากว่าเมื่อใช้ A2Billing ร่วมกับ Asterisk เราจะมี Softswitch ที่พร้อมจะให้บริการเกี่ยวกับ VoIP ได้แทบทุกชนิด มี Billing ทั้งแบบ Prepaid และ Postpaid มีรายงานและสถิติการใช้งาน มีค่าบริการที่จะคิดกับผู้ใช้บริการ สามารถรับชำระเงินผ่านช่องทางออนไลน์ต่างๆได้ เช่น PayPal

Note! อาจเคยได้ยินคำว่า CDR และ Billing แล้วสงสัยว่ามันต่างกันยังไง เราเรียกถูกหรือไม่ ผมมีข้อแนะนำดังนี้ครับ
1. CDR ย่อมาจาก Call Detail Record เป็นการบันทึกการใช้งานโทรศัพท์ไม่ว่าจะเป็นการโทรเข้าหรือโทรออกก็ตาม จะเกิดขึ้นหลังจากวางสายแล้ว แต่ละรายการที่บันทึกไว้ก็จะประกอบไปด้วย วันที่ เวลา เบอร์ต้นทาง เบอร์ปลายทาง ระยะเวลาที่โทร มีคนรับสายหรือไม่มี เป็นต้น สามารถเรียกดูย้อนหลังได้ ไม่ได้มีการคิดเงิน โปรแกรม VoIP ทุกโปรแกรมสามารถสร้าง CDR ได้

2. Billing เป็นการคิดเงินค่าโทร อาจจะตัดเงินจริงๆจากแอ๊คเค๊าท์ของผู้ใช้งานหรือแค่บันทึกไว้เฉยๆว่าการโทรแต่ละครั้งมีค่าใช้จ่ายเท่าไหร่เพื่อสรุปค่าใช้จ่าย

จะติดตั้ง A2Billing ควรมีอะไรบ้าง

- คอมพิวเตอร์เซอร์เวอร์ อาจเป็นเครื่องเดียวกับที่ติดตั้ง Asterisk หรือคนละเครื่องกันก็ได้
- Trunk ที่ใช้โทรออกหรือรับสายเข้า เช่น SIP Trunk, ZAP Trunk
- ระบบปฏิบัติการ Linux ตัวไหนก็ได้ เช่น CentOS โดยถ้าติดตั้ง A2Billing บนเครื่องเดียวกับ Asterisk ก็ใช้ Linux ตัวเดียวกัน แต่ถ้าแยกเครื่องก็ต้องติดตั้ง Linux ต่างหาก
- Asterisk เวอร์ชั่นไหนก็ได้ แนะนำให้เป็นเวอร์ชั่นล่าสุดครับ ติดตั้งเองนะครับเพราะ A2Billing ไม่ได้มีไว้ให้
- Apache Web Server เราใช้งานโปรแกรม A2Billing ผ่านทางเว็บเพจ
- MySQL หรือ Postgresql เป็นดาต้าเบสเซอร์เวอร์ โปรแกรม A2Billing เก็บข้อมูลเกือบทุกอย่างไว้ในดาต้าเบส เช่น คอนฟิก บัญชีรายชื่อผู้ใช้งาน รหัสพินโค๊ด อัตราค่าโทร เป็นต้น
- A2Billing จะทำหน้าที่ทั้งตรวจสอบความถูกต้องของผู้ใช้งาน (Authentication), ตรวจสอบสิทธิการใช้งาน (Authorization) และทำบัญชีการใช้งาน ( Accounting)

สำหรับการเชื่อมต่อ Trunk กับ PSTN อาจจะติดตั้งการ์ด E1 เข้าไป หากใช้ฮาร์ดแวร์ที่เหมาะสมจะสามารถรองรับการโทรได้มากกว่า 120 แชนแนลพร้อมๆกัน หรือ 4 E1 เลยทีเดียว ถ้าต้องการประสิทธิภาพที่สูงขึ้นก็เพิ่ม Asterisk Server และเซ็ตให้ทำงานเป็น Load Balance

ลิขสิทธ์ของโปรแกรม

โปรแกรม A2Billing มีลิขสิทธิ์ภายใต้ AGPL ซึ่งหมายความว่าสามารถแก้ไขโปรแกรมได้อย่างอิสระเพื่อให้ทำงานตามที่เราต้องการแต่ต้องกระทำภายใต้กฏของ AGPL อยากรู้รายละเอียดของ AGPL ลองค้นใน Google ดูครับ
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: โปรแกรม A2Billing ทำอะไรได้บ้าง

โพสต์โดย voip4share » 26 ธ.ค. 2009 13:39

FEATURES LIST:

The features list are split into three sections for clarity: IVR, Web management interface & Customer interface :

IVR FEATURES :

•Caller ID & Card Number and SIP/IAX2 Friend authentication
•Multi-Language support - force specific language, give a menu for language choices
•Customize the IVR rapidly, chose to play Balance, Time to call, Intro prompt, etc...
•Recording of all calls
•Speed-dial
•Play balance with multi currency support
•Free VoIP calls between application users
•Support simultaneous or single access on same card
•Support call at Zero-Cost & Negative cost
•Auto creation card option for new callerID
•Web based, DID & CID based Call Back
•Top-up account via IVR menu.

--------------------------------------------------------------------------------

WEB MANAGEMENT INTERFACE :

•Advanced Card and Customer management : Creation ; Edit ; Search engine ; batch update ; CallerID handling ; Refill Cards.
•Define : post-pay/prepay ; Language ; Currency ; Expiry ; VAT ; Recurring Service, User Data, etc...
•SIP / IAX Friends + ARA support (Asterisk Realtime)
•Speed dial
•BILLING MANAGEMENT & REPORTING
◦Check the Customers balance; see Refills made, payment received, amount to pay
◦browse online payments made by Paypal and Moneybooker
◦Voucher support : creation ; browsing ; batch creation
◦Multi-Currencies support : automatic update based currently base on Yahoo Financial
◦Reporting statistics: CDR ; Maximum Concurrent calls ; Graphing ; Profit Margin analysis
•POWERFUL RATE-ENGINE
◦LCR(Least cost routing) & LCD (Least Cost Dialling) management
◦Billing Increment: Progressively different rates through the call
◦Scheduled Rates (days/hours of the weeks - PEAK & OFF-PEAK)
◦Expiry of rates;
◦Import Rate Cards
◦Rate-card Simulator
◦trunk/voip-provider management
◦Failover Trunks
◦Batch update for rates
◦Calling Packages - X number free minutes to specified destinations
◦Subscription services
◦Callback Rating
•DID SALES
◦Manage your DIDs and sell them to your customer for monthly usage.
◦Customer can reserve DIDs for themselves and configure a Follow-me to redirect the calls over the PSTN by VoIP.
•REPORTING
◦Monthly & daily reporting
◦Earnings calculation and markup/margin on report
◦Monthly traffic reports (pie chart)
◦Daily load
◦Compare call-load with previous days
◦Criteria definition for reporting
◦Export report to PDF & CSV
◦Generate invoices to PDF format
◦Email invoices to customers Automatically
•RECURRING SERVICE OVER THE CARD
◦Auto refill existing card with auto refill option
◦Periodically remove credit from customer balance

•OTHERS
◦E-Product : allows interaction with third party ecommerce platforms in order to create cards such as OS-commerce
◦Signup modules
◦Email activation to verify customer email address.
◦Customise mail templates
◦ACL (Access control) support for admin users
◦DB backup/restore tool
◦SOAP-Webservice : Create Card, Remove card, Update... See WSDL : A2Billing_UI/api/SOAP/soap-card-server.php?wsdl
◦Export data into XML or CSV
◦Customise look and feel of the interface
◦Call-back, Web based, DDI based, CID based and URL / Text triggered Call back
◦Call-back triggered through multiple asterisk servers.
◦API to display ratecard on own website
◦Asterisk Info
◦PHPSysInfo (http://phpsysinfo.sourceforge.net)
◦Asterisk Config

--------------------------------------------------------------------------------

CUSTOMER INTERFACE :

•Online signup, selection of tariff, language and currency with email verification.
•Account info, including update details
•Call history - CDR
•Voucher usage and voucher entry
•Invoice Viewing
•DID selling support - features to sell to pre-configured DID. Customers can redirect DID to his phone-number and even deploy a Follow-Me
•Speed dial configuration
•Ratecard browsing & ratecard simulator
•Web based callback
•Web-phone (Applet Java - IAX Web Phone)
•Caller id : list / add so that customer can authenticate to the service without needing to enter account and PIN
•Multi-Language support for the customer interface (Spanish, English, French, Chinese, Italian, Romanian, Turkish, Urdu)
•Forget password option
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: โปรแกรม A2Billing ทำอะไรได้บ้าง

โพสต์โดย opatsavao » 30 มี.ค. 2010 22:32

พี่ครับ...ขอถามนิดนึงครับ

คือว่า A2Billing นี่มันจะจัดการแค่พวก Billing อย่างเดียวใช่ป่าวครับ

มันจะเข้าไปยุ่งกับพวก file config แบบพวก elastix ทำนองนั้นหรือป่าวครับ จำพวก add user หรือ dial plan อ่ะครับ

ขอบคุณครับ
opatsavao
Bronz Member
 
โพสต์: 12
ลงทะเบียนเมื่อ: 14 ม.ค. 2010 15:49

Re: โปรแกรม A2Billing ทำอะไรได้บ้าง

โพสต์โดย nuiz » 31 มี.ค. 2010 09:34

ใช่แล้วครับ A2billing เป็น Application ตัวนึ่งซึ่งจะอยู่ตรงกลางระหว่าง SIP/IAX ทั้ง User/Peer กับ Asterisk ครับ ในการใช้งานทั่วๆไปไม่ต้องมี A2Billing มีแค่ SIP/IAX User/Peer และ Asterisk หน่ะครับ

ถ้าเราต้องการจะคิด Billing เราค่อยติดตั้ง A2Billing เข้าไปแทรกครับ เอ่อ Billing กับ CDR มันไม่เหมือนกันนะครับ ซึ่ง CDR มีแค่การเก็บรายการโทร ส่วน Billing มีทั้งเก็บรายการโทรแล้วก็ตัดเงินจากบัญชีด้วย

ในการใช้งาน A2Billing เราก็ต้องคอนฟิก SIP/IAX Users/Peers และ Dialplan ด้วย และเราก็ต้องสร้าง PIN Code หรือ Account Code จาก A2Billing แล้วก็เอาไปใส่ไว้ในบรรทัด accountcode ของ User/Peers ในไฟล์ sip.conf ครับ แล้วเวลาโทรก็ต้องสร้าง Extension พิเศษขึ้นมาใน Dialplan เพื่อให้มันไปเรียก A2Billing มาทำงานครับ แล้วมันก็จะคิดเงินจากบัญชี Account Code นั้น

ตอนที่เราสร้าง SIP/IAX Users/Peer นี่เราสร้างใน A2Billing ก็ได้นะครับ ไม่ต้องไปแก้ไขไฟล์ sip.conf ตรงๆ คือเราสร้างบน A2Billing หน่ะครับ แล้วมันก็จะไปไรท์ลงไฟล์ sip.conf เอง จริงๆแล้วไฟล์ชื่อ additional_a2billing_sip.conf และ additional_a2billing_iax.conf ครับ หรืออาจไม่ต้องไรท์ลงไฟล์ก็ได้นะครับ ถ้าเราใช้งานแบบ Asterisk Realtime ไร้ท์ลงดาต้าเบสแทน ซึ่ง A2Billing ก็ทำงานแบบนี้ได้

ส่วน Dialplan เราต้องสร้างเองครับ ซึ่งก็ไม่ได้ยากอะไร บรรทัดเดียวก็เสร็จแล้ว ตัวอย่าง

exten => _9X.,1,AGI(a2billing.php|1)

พอเรากด 9 ตามด้วยอะไรก็ได้ Asterisk ก็จะเรียก AGI Script ขึ้นมาทำงาน จากนั้นก็จะเข้าวงจรของ A2Billing ถ้าโทรได้ มันก็จะสั่งงาน Asterisk ให้โทรไปเบอร์ปลายทางได้ครับ
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6993
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: โปรแกรม A2Billing ทำอะไรได้บ้าง

โพสต์โดย opatsavao » 31 มี.ค. 2010 13:19

nuiz เขียน:ใช่แล้วครับ A2billing เป็น Application ตัวนึ่งซึ่งจะอยู่ตรงกลางระหว่าง SIP/IAX ทั้ง User/Peer กับ Asterisk ครับ ในการใช้งานทั่วๆไปไม่ต้องมี A2Billing มีแค่ SIP/IAX User/Peer และ Asterisk หน่ะครับ

ถ้าเราต้องการจะคิด Billing เราค่อยติดตั้ง A2Billing เข้าไปแทรกครับ เอ่อ Billing กับ CDR มันไม่เหมือนกันนะครับ ซึ่ง CDR มีแค่การเก็บรายการโทร ส่วน Billing มีทั้งเก็บรายการโทรแล้วก็ตัดเงินจากบัญชีด้วย

ในการใช้งาน A2Billing เราก็ต้องคอนฟิก SIP/IAX Users/Peers และ Dialplan ด้วย และเราก็ต้องสร้าง PIN Code หรือ Account Code จาก A2Billing แล้วก็เอาไปใส่ไว้ในบรรทัด accountcode ของ User/Peers ในไฟล์ sip.conf ครับ แล้วเวลาโทรก็ต้องสร้าง Extension พิเศษขึ้นมาใน Dialplan เพื่อให้มันไปเรียก A2Billing มาทำงานครับ แล้วมันก็จะคิดเงินจากบัญชี Account Code นั้น

ตอนที่เราสร้าง SIP/IAX Users/Peer นี่เราสร้างใน A2Billing ก็ได้นะครับ ไม่ต้องไปแก้ไขไฟล์ sip.conf ตรงๆ คือเราสร้างบน A2Billing หน่ะครับ แล้วมันก็จะไปไรท์ลงไฟล์ sip.conf เอง จริงๆแล้วไฟล์ชื่อ additional_a2billing_sip.conf และ additional_a2billing_iax.conf ครับ หรืออาจไม่ต้องไรท์ลงไฟล์ก็ได้นะครับ ถ้าเราใช้งานแบบ Asterisk Realtime ไร้ท์ลงดาต้าเบสแทน ซึ่ง A2Billing ก็ทำงานแบบนี้ได้

ส่วน Dialplan เราต้องสร้างเองครับ ซึ่งก็ไม่ได้ยากอะไร บรรทัดเดียวก็เสร็จแล้ว ตัวอย่าง

exten => _9X.,1,AGI(a2billing.php|1)

พอเรากด 9 ตามด้วยอะไรก็ได้ Asterisk ก็จะเรียก AGI Script ขึ้นมาทำงาน จากนั้นก็จะเข้าวงจรของ A2Billing ถ้าโทรได้ มันก็จะสั่งงาน Asterisk ให้โทรไปเบอร์ปลายทางได้ครับ



ขอบคุณสำหรับข้อมูลครับ
opatsavao
Bronz Member
 
โพสต์: 12
ลงทะเบียนเมื่อ: 14 ม.ค. 2010 15:49


ย้อนกลับไปยัง A2Billing - Calling Card & Billing Application

ผู้ใช้งานขณะนี้

่กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 1 ท่าน