Hi
Im not sure about it but in my config I see that sometimes only 1 action is 
working (text="hello" is the 1st action, then the exec"..." is not working )

This is how im using it : ( if I try uncommenting the #text , then I have some 
issues  ... )


group = sms-service
keyword = "moto"
exec = "mysql smsdb -e "insert into table1_moto (Date,Code,MSISDN,Message) 
values ('%t','','%q','%a')""
#text = "merci pour votre vote 2"
omit-empty = true



Regards,

Chen Alkabets
VAS/Billing Manager
CCIP/CCNP/CCSP/JNCIS.
 
           
Mobile  +224 65 777 772
Office  +224 65 100 772
Israel  +972 54 443 4545
MSN     [email protected]
Skype   chenchuk1977
Pour le  respect de l'environnement, merci de n'imprimer ce mail qu'en cas de 
nécessité

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
toshibata
Sent: Sunday, October 16, 2011 22:41
To: [email protected]
Subject: Save SMS to database


Hello, I currently have Kannel installed and I am using the following
service: 

group = sms-service
text = "hello" 
keyword = register
catch-all = yes
exec = "/home/kannel/sms_store.pl %p %a" 

In which sms_store.pl is a perl script to save to a MySQL DB the message and 
the number. However the gateway receives the message and the exec appears not 
to happen. I've tried manually adding stuff to DB using the script and it works 
fine. 

Any ideas? Thanks
--
View this message in context: 
http://old.nabble.com/Save-SMS-to-database-tp32663270p32663270.html
Sent from the Kannel - User mailing list archive at Nabble.com.


**********************************************************************************************
IMPORTANT: The contents of this email and any attachments are confidential. 
They are intended for the 
named recipient(s) only.
If you have received this email in error, please notify the system manager or 
the sender immediately and do 
not disclose the contents to anyone or make copies thereof.
*** eSafe scanned this email for viruses, vandals, and malicious content. ***
**********************************************************************************************

Reply via email to