Hi Yahya, I guest you need to a webservice can update or insert all the messages into your database.
use get-url config into sms-service # SMS SERVICE Two group = sms-service keyword = default #keyword-regex = default #text = "Service two auto reply goes here" accept-x-kannel-headers = true catch-all = true max-messages = 1 omit-empty = true concatenation = true get-url = " http://localhost/handler?key=%k&from=%p&to=%P&sword=%a&binfo=%B&smsc_id=%i&nword=%s " You can use this kind of parameters. I hope helps. Best regards On Wed, Oct 3, 2018 at 3:04 AM Yahya M. <yahiyamohammed...@gmail.com> wrote: > I am using kannel 1.4.4 and I want to register subscribers based on the > keyword they send to my short code number. So far I am using smsbox.log to > register subscribers manually by adding them to appropriate group. > > > What I want is some script that can be called when message arrives and > save the phone number that sent message to appropriate database based on > the sent keyword and at the same time, send them auto reply. > > Thanks. Regards. > > Here is my kannel.conf file > > # CORE > group = core > admin-port = 13000 > admin-password = myPass > status-password = myPass > log-file = /var/log/kannel/kannel.log > log-level = 0 > access-log = /var/log/kannel/access.log > smsbox-port = 13001 > store-type = spool > store-location = /var/spool/kannel/store > smsbox-max-pending = 100 > #dlr-storage = mysql > dlr-storage = internal > > # SMSBOX > group = smsbox > bearerbox-host = localhost > bearerbox-port = 13001 > sendsms-port = 13131 > sendsms-chars = "0123456789+ " > log-file = /var/log/kannel/smsbox.log > log-level = 0 > access-log = /var/log/kannel/access.log > mo-recode = true > #immediate-sendsms-reply = true > global-sender = 6506 > > ## SMSC smpp1 > group = smsc > smsc = smpp > smsc-id = smpp1 > allowed-smsc-id = smpp1 > preferred-smsc-id = smpp1 > host = SMSC_IP > port = SMSC_Port > transceiver-mode = yes > smsc-username = username > smsc-password = myPass > system-type = "VMA" > log-file = /var/log/kannel/smsc-smpp1.log > log-level = 0 > throughput = 10 > > > > > # SENDSMS-USER > group = sendsms-user > default-smsc = none > username = myUsername > password = myPass > max-messages = 6 > concatenation = true > > > # SMS SERVICE HELP > group = sms-service > keyword = HELP > text = "Text to be sent to users who send Help" > omit-empty = true > max-messages = 3 > concatenation = true > > > > # SMS SERVICE One > group = sms-service > keyword-regex = ^O$ > text = "Service one auto-reply goes here" > omit-empty = true > max-messages = 2 > concatenation = true > > > # SMS SERVICE Two > group = sms-service > keyword-regex = ^B$ > text = "Service two auto reply goes here" > omit-empty = true > max-messages = 2 > concatenation = true > > > # SMS SERVICE default > group = sms-service > keyword = default > text = "Dear customer, you have sent a wrong keyword. " > omit-empty = true > max-messages = 2 > concatenation = true > > > > -- Lic. Jean-Claude Adams Entrepreneur phone: +595 971 371794 skype: arrobasoft Visit us at arrobasoft <http://www.arrobasoft.com>