Hello,
My version kannel is: 1.4.0
My configuration file:
#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#
# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.
# include = "/etc/kannel/modems.conf"
group = core
admin-port = 13000
admin-password = xxxx
admin-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 1
smsbox-port = 13001
box-allow-ip = "127.0.0.1"
# SMSC
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
speed = 9600
keepalive = 5
pin = 9750
validityperiod = 5
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
init-string = "AT"
keepalive-cmd = "AT"
enable-mms = true
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#sendsms-chars = "0123456789 +-"
#global-sender = 12345
#log-file = "/tmp/smsbox.log"
#log-level = 0
access-log = "smsbox_access.log"
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =
# SEND-SMS USERS
group = sendsms-user
username = alo
password = alo
#max-messages = 4
concatenation = 1
#user-deny-ip = ""
#user-allow-ip = ""
# SERVICES
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"
# there should be default always
group = sms-service
keyword = default
text = "No service specified"
I execute this:
exec_msg("printenv SRCIP; lynx -dump
'10.22.1.249:13013/cgi-bin/sendsms?username=alo&password=alo&from=123456789&validity=5&to='$(cat|grep
To:|cut -f1 -d@|cut -f3 -d:)'&text=hello world'");
I need that in my sms shows: hello world#sendernumber#
How can i get this?
Thank you.