I am still having trouble seting up the customer DID manually. I am new to a2billing (have been messing around for about 2 days now).I have created the DID groups,destinations etc however i would like to know how to activate the DID for the customer. The DID listed on the admin interface is active however after selecting the the DID on the customer interface the DID is stated as inactive.
How do I activate it manualy?
I have been thinkin, and I am sure that I must be wrong but do you think the following implementation of the DIDx API would work....
Instead of creating DID's in the admin may we...
1. Edit the DID php page ( the page where the customer usually selects the set up DIDs) to intergrate with the DIDX api ie.setup so that all DIDX available numbers are listed using the API
2.The customer has a look at the avaialble DID's and selects their choice eg 44208123456. At this point the selected DID is reserved (on your DIDX account) as normal with the DIDx API scripts
Then the same "number" selected eg. 44208123456 is posted to the database and linked to the customer account
and at the same time a DID is automatically created in the config files and allocated to the cutomer as usual (ie When the customer selects the DID in the current system)
3.Once payment is made for, example via paypal, the DID "number" is posted with the IP (or domain) using the DIDX API to set the sip uri for the DIDX number.
example: 44208123456@IP/domain is posted and set on the DIDX system as the sip URI. This is done via the DIDX API
4. Thus
>the DIDX number is forwarded to SIP URI 44208123456@IP/domain .
>DID set in the a2billing cofig files upon purchase ,44208123456 is linked to the customer. Similar to seting up IVR with DIDX number forwarded to sip uri which is infacted the DID number setup in a2billing
>The DID is setup now for the customer and all that is needed for him to complete is to set the destination number.
Well I am just fishing here and I am still a novice at a2billing as well as using API, asterisk and linux and I am sure that there are many things that I have either confused due to ignorance or misinformation, however I would like to know what you think and if this may work.
Please dont laugh if you think I am foolish. We all have to start somewhere I guess