On Sat, Jul 19, 2008 at 10:47 AM, James Mubhoyi <[EMAIL PROTECTED]> wrote: > info.ubichip <info.ubichip <at> free.fr> writes:
> I toyed with this idea but realised that it will only be the last message I > will be able to trap. Only being able to trap the last message is the gotcha! > I > am trying to workaround, as recipients will receive any number of messages and > reply to any in the list sent. I don't want to sound discouraging, but this is to complicated and it depends on too many things: your connection to the SMSC - SMS Center (if you are using cell phone I don't see how you can do this), the structure of the operators SMSC and the operators policy. The SMSC marks every message with a different ID. In the thing that you want to accomplish the only parameters that are the same are the numbers of the recipient and the sender but they are switched in the reply messages. Therefore the pairing should be first done on the SMSC side and then on the SMPP (Simple message point-to-point protocol [1]) client side (Kannel in this case). Theoretically speaking, to track the messages the way you want to, you need to have SMPP connection to the SMSC so you can send optional PDU (protocol data unit) parameters to tag the sending message. You'll send the message to the SMSC with some SMPP optional parameter, the SMSC will deliver the message to the recipient, the recipient will send reply message, the SMSC will somehow pair the messages and set the same optional parameter which you send with the original message and when Kannel receives the reply message you'll check the value of the optional parameter sent and pair the messages. I know it sounds complicated, but from my experience that's the only way it could be done. The whole chain goes through one part where you don't have access, the operator SMSC. Talk to your operator and check if you can accomplish this. If you don't really need it, just forget about this, because it gonna cost you ;) [1] www.alvento.com/productos/sms/smpp/smpp34.pdf BR, Jovan