apsf wrote: > hello everyone, > I'll just assume that there's an imaginary monetary unit u. > we have the following service: > > group = sms-service > keyword = "help" > get-url = > "http://localhost/service/fetch.php?sender=%p&message=%r&info=%B" > > I have two questions: > 1. Is there any way to query the sms provider about the current balance > of the sms sender, or will the sms provider provide me with the balance > information if it is inadequate? (I'm pretty sure it's in the '%B', but I > don't know how..) > 2. For example, I have only 2u of balance in my account, but the service > I need requires 2.5u. Is it possible to use the service, provided that the > returned information is limited that the 2.5u one? > > Thanks for the help :)
This does all depend on your provider, and which API (if any) they provide, so you will have to confirm with them. In your example 2. above you might get a delivered status (1) if customer has enough balance, and a failed status (2) if balance is to low. Some providers give you an HTTP or SOAP service to do charging, and then you only use kannel to send the content after a succesfull charge. Arne
