On Thu, 2004-08-19 at 16:51, Aidan Kehoe wrote: > Hi! > > As I understand the docs and the example files, with the following in > kannel.conf, > > group = sms-service > keyword = first > catch-all = true > get-url = > "http://127.0.0.1/sms_inbox.php?message=%a&message_date=%t&phone=%P&from=%p" > max-messages = 0 > > group = sms-service > keyword = default > catch-all = true > text = "No service specified" > > if I send in a message with "first" at the start, its details should be passed > to sms_inbox.php. If I send a message without the word "first" at the start, a > response should be sent, with "No service specified" as the text. > > I'm not seeing this. What I'm seeing in the bearerbox logs is messages received > but nothing being acted on, whether or not the word "first" is involved. > > What I want to have happen is, when we receive an SMS over SMPP, an external > URL is called with the contents of that SMS as its arguments, and no response > is sent. (There's an external program that has most of the intelligence of our > setup, and we want that to send any responses.) > > I would think that > > group = sms-service > keyword = default > catch-all = true > get-url = > "http://127.0.0.1/sms_inbox.php?message=%a&message_date=%t&phone=%P&from=%p" > max-messages = 0 > > would be an appropriate config for that, but evidently not. > > Any pointers as to what I'm doing wrong? > > Best regards, > > - Aidan
Dear Aidan, Just try to switch the keyword value in your kannel conf. group = sms-service keyword = message aliases = first catch-all = true get-url = "http://127.0.0.1/sms_inbox.php?message=%a&message_date=%t&phone=%P&from=%p" max-messages = 0 group = sms-service keyword = default catch-all = true text = "No service specified" I use message (variable name use in get-url), instead of first, and add aliases to filter the first word in sms message to perform the service. I use similar conf and works fine in 1.3.1 (I haven't got a chance to switch to 1.3.2. If you have more than one command (first word) add in aliases and separate them with semicolon. Hope this help you. Heru
