On Mon, 2004-08-09 at 07:42, Stipe Tolj wrote: > Oscar Medina Duarte wrote: > > > Hello my kannel e-friends ! > > > > I'm doing some testing on kannel 1.3.2 in order to put it to deploy > > services in the real world, but, I have a doubt, I want to use > > keyword-regex to differentiate two (and more) services, because, the > > messages arrive from my Operator with a prefix, lets say pm4s, so if I > > have 2 services, one named puebla and the other cholula, the request to > > those would be something like : > > > > pm4s puebla > > and > > pm4s cholula > > > > I tried this on kannel: > > > > 8><----------------------- > > > > group = sms-service > > keyword = pm4s > > keyword-regex = ^(pm4s)[ ]+(puebla) > > text = "de bolas !!!!" > > catch-all = true > > > > > > > > group = sms-service > > keyword = pm4s > > keyword-regex = ^(pm4s)[ ]+(cholula) > > get-url = "http://%S" > > > > 8><------------------------- > > > > But only puebla service is recognized, even if I send a pm4s message the > > puebla service is triggered. > > > > I tought that was because both have keyword = pm4s, so I tried without > > the keyword config, but smsbox wouldnt start. > > > > Could be a good idea to base a service in a keyword-regex or a keyword > > and not necessarily both, that would be a nice feature! > > > > Cheers ! > > == Oscar > > OM MANI PEME HUM > > now, obiously you are mis-using the 'keyword' directive here, IMO. > Because you have in both(!) groups the 'keyword = pm4s', this will > cause smsbox to catch always the first group, which is exactly the > behaviour that you are experiencing. > > I guess you have to leavce away(/comment out) the 'keyword = pm4s' > from both(!) blocks.
I've tried with out the keyword directive in both cases, but smsbox doesnt like it that way: 2004-08-12 17:10:24 [12956] [0] DEBUG: Kannel smsbox version cvs-20040812 starting 2004-08-12 17:10:24 [12956] [0] ERROR: Group 'sms-service' must include 'keyword'. 2004-08-12 17:10:24 [12956] [0] ERROR: Couldn't create a URLTranslation. 2004-08-12 17:10:24 [12956] [0] PANIC: urltrans_add_cfg failed 2004-08-12 17:10:24 [12956] [0] PANIC: gw/smsbox(gw_panic+0x175) [0x807ccd2] 2004-08-12 17:10:24 [12956] [0] PANIC: gw/smsbox(main+0x1eb) [0x805ab89] 2004-08-12 17:10:24 [12956] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xf0) [0x5ef750] 2004-08-12 17:10:24 [12956] [0] PANIC: gw/smsbox(SSL_write+0x41) [0x8050b29] Any other suggestion someone ? I think kannel should accept an sms-service group with only keyword-regex to work, is this correct? thanks! == Oscar
