|
Balance display for HS Teliann IP phones |
|
Friday, 20 April 2007 |
The description below outlines what needs to be done to implement Get Account Balance from Data Tech Labs Arrow Billing on IP Phone or other device.
Querying the server:
It follows the standard HTTP protocol, just like what you do to browse the internet, additionally passes string containing request parameters and key used as checksum to verify validity of received request. The query procedure is as follows: - Open a socket connection to the IP address as aforementioned
- Send in the encrypted parameters in the format as stated in the docs
- Read the output from server and do necessary parsing.
Input format: GET http://hostname[:port]/billing/balance.php?attr1=value1[&attr2=value2][&site=name] [&format=name]\n
Description of properties: - hostname - Hostname or IP address of DataTechLabs Arrow Billing
- port - IP port, default 8000 (443 for secure HTTPS)
- site - optional attribute for multisite Arrow Billing installations. User selectable. Not specified by default
- format - optional attribute, specifying format of returned attributes. Default = 1. See description below.
Description of attributes:
attr1, attr2 - Attributes, one of following combinations: - Protocol: H.323, Authentication by H.323 ID + E.164 number:
attr1 = uid - H.323 I attr2 = e164num - E.164 number (or one of numbers if more exist for account) - Protocol: H.323, Authentication by H.323 ID + Password:
attr1 = uid - H.323 ID attr2 = passwd - Password of account - Protocol: H.323 or SIP, Authentication by PIN only:
attr1 = uid - PIN of the account - Protocol: SIP, Authentication by User ID + Password:
attr1 = uid - User ID arrt2 = passwd - Password for account Format of values: - site - Alphanumeric (small and capital letters, numbers) and underscore symbol ( _ ), maximum 20 characters long;
- uid - Alphanumeric (small and capital letters, numbers) and following special symbols (_ @), maximum 20 characters long;
- e164num - Numeric only, maximum 20 characters long;
- passwd - Alphanumeric (small and capital letters, numbers) and following special symbols (_ @), maximum 20 characters long;
Order of Attributes: - Order of Attributes is not important
Returned Attributes: - InitBalance - Initial (starting balance of Account)
- Balance - cuurent balance of account
- CurrencyCode - currency code, according to Appendix A
- CurrencyName - currency name, abbreviated, according to Appendix A
Return format:
Return format could be modified by supplying "format" attribute. Following formats are currently supported: format=1: Return: CurrencyCode=x|InitBalance=xxx.xx|Balance=xxx.xx format=2: Return: CurrencyName=XXX|InitBalance=xxx.xx|Balance=xxx.xx format=3: Return: XXX YYY.YY XXX - cuurency name YYY.YY - balance format=4: Return: YYY.YY YYY.YY - balance Error Format: Error codes according to Appendix B. Appendix A Currency Codes: - 1 - RMD
- 2 - USD
- 3 - YEN
- 4 - INR
- 5 - GBP
- 6 - EUR
- 7 - CAD
Appendix B Error Codes - 102 - NO PERMISSION
- 103 - DATABASE ERROR - Can not prepare
- 104 - DATABASE ERROR - Can not open cursor
- 105 - INTERNAL ERROR
- 106 - NO RETURN
- 107 - INFORMATION UNAVAILABLE
- 108 - DATABASE ERROR - Can not connect to DB
- 110 - MISSING ATTRIBUTE
- 1001 - ACCOUNT NOT FOUND
|
|
|
Hosted services now on new website |
|
We are glad to announce the reelease of new website, dedicated to Hosted VoIP Switching and Hosting services only. From now, our hosted services will be served from new website: http://dtlvoip.com. |
|
Read more...
|
|
ArrowBilling2 now also available Hosted |
|
New ArrowBilling Series 2 software is now also available when signing for Hosted Platform. Sign up to get your fee demo account with dedicated Switch IP |
|
Read more...
|
|
Welcome to ArrowBilling series 2 . This is major rewrite of ArrowBilling, feauring completely new Interface, unlimited Reseller levels and many other features. |
|
Read more...
|
|
The next current release of ArrowBilling series 1 is version 1.8.7. It is one of the last ArrowBilling versions before launch of series 2 later this month. Please read Release Notes for more information. |
|
Read more...
|
|
Intermediate release of ArrowBilling version 1.8.6 focuses on carrier-related features. It can do post-time reprocessing of postpaid CDRs, alert of low ASR/ACD and many more. Please read Release Notes for more information. |
|