Hello again; I had a wrong call from my smsc fake; now the cript is executed; but: my script is like this echo "word1" rm file1 echo "word2"
the file1 is not removed the file1 is in the same directory than my script, but perhaps I need write the absolute path because is executed from faketest folder. Is correct? Other problem: kannel return me "word1" and "word2" in the sms; and if I delete the echo lines from my script; kannel returns me empty sms. It is possible that kannel don't return me any sms? thanks 2011/11/24 Daniel Boira <[email protected]> > Hello, > I have Kannel 1.4.3 version and I want execute a script shell with the > exec parameter > > this is my kannel conf and the script doesn't works. Where is my > mistake(s)? > thanks in advance > > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = bar > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > log-level = 0 > log-file = "/home/daniel/Documents/queue/bearer_01.log" > access-log = "/home/daniel/Documents/queue/kannel_01.access" > > #--------------------------------------------- > # SMSBOX SETUP > # > # Smsbox(es) do higher-level SMS handling after they have been received > from > # SMS centers by bearerbox, or before they are given to bearerbox for > delivery > > group = smsbox > bearerbox-host = 127.0.0.1 > sendsms-port = 13013 > global-sender = 13013 > log-level = 0 > log-file = "/home/daniel/Documents/queue/smsbox_01.log" > > group = smsc > smsc = fake > smsc-id = test00 > host = localhost > connect-allow-ip = 127.0.0.1 > port = 10000 > log-level = 0 > log-file = "/home/daniel/Documents/queue/test_01.log" > #address-range=11 > #my-number = 555 > > > group = sms-service > keyword = default > text = "hola noi" > max-messages = 1 > > group = sms-service > keyword = pep > text = "hola pepitoo" > max-messages = 1 > > group = sms-service > keyword = page > post-url = "http://127.0.0.1/index.php" > concatenation = true > > group = sms-service > keyword = ww > exec="/home/daniel/aa.sh" > #exec = "java -jar '/home/daniel/NetBeansProjects/bbdd/dist/bbdd.jar'" > #exec = "java /home/daniel/Documents/J/P1 %r" > #accepted-smsc=test00 > > #--------------------------------------------- > # SEND-SMS USERS > # > # These users are used when Kannel smsbox sendsms interface is used to > # send PUSH sms messages, i.e. calling URL like > # > http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar. > .. > > group = sendsms-user > username = tester > password = foobar > #user-allow-ip = "" >
