Hi! Let me first describe the problem I'm trying to solve: I have an account with Clickatell. I'd like to offer sendsms access to a few different entities. I'd like to track how much their use is costing me, so that I can charge them accordingly.
The only way to get this information I know of is to use the http interface and request DLR's. That way, the Clickatell gateway includes the price in the DLR's it sends back. However, AFAICS the only instance in which Kannel requests DLR's at all from the gateway, is if the submitter sets a dlr-mask. The hack to work around this is to put some sort of proxy in front of kannel that sets dlr-mask and forwards the request to Kannel. I don't think anyone will disagree that this is a horrible and wrong solution in the general case. What I find is the real issue is the fact that there's a disconnect between what *I*, as the gateway operator, want DLR's, but the message's submitter might not. The solution I would propose is to add a dlr-mask to the smsc-group. The effective DLR mask that will be sent to the smsc will be the something like "smsc->dlr_mask | sms->sms.dlr_mask". When the DLR's actually come, only the DLR's the user actually requested will be forwarded. That way, I'll get all the DLR's I want, and the user will not see anything he didn't ask for. Am I missing some other way of solving my problem, or does this sound sensible at all? If so, I can start working on a patch to do it. Thanks for your attention. -- | Soren Hansen | Linux2Go | http://Linux2Go.dk/ | | Seniorkonsulent | Miskousvej 8 | +45 46 90 26 42 | | [EMAIL PROTECTED] | 9200 Aalborg SV | GPG key: E8BDA4E3 |
signature.asc
Description: Digital signature
