my-number = "12345"
to smsc configuration. it must be change your number to 12345
ah, that's unfortunate!! because i'm going to be using the same
installation for multiple inbound numbers, and because i don't have a
'service based' inbound sms but rather using a catchall (and also cos i
have to do the concatentation externally) i need to pass through different
numbers into my service.
i can't see anything in the userguide that would allow me to specify that
a given service is used based on inbound destination number, rather than
based on the first word of the sms.
so i guess at the moment my big phat hack of adding the message id to the
access log and then parsing it out in my php script using
shell_exec/grep/sed is about the only way to achieve what i need to do ...
cheers
iain
On Mon, Mar 17, 2008 at 5:37 AM, Iain Dooley
<[EMAIL PROTECTED]> wrote:
hi tulga,
> I think it is not destination number. it is my-number in your smsc
> group. could you send your configuration file?
so, file below. whether i use %P or %Q it still produces the send sms port
number. i have gotten around this problem by ading the %I placeholder to
the log file, then doing:
trim(shell_exec('egrep "'.$id.'" /tmp/access.log | sed
"s/.*to:\+\([0-9]*\).*/+\1/g"'));
to grep the destination out of the log file :S very non-ideal but i needed
it working by today!!
any help you can offer is most appreciated.
cheers
iain
MY CONFIGURATION FILE:
group = core
admin-port = APORT
smsbox-port = SBPORT
admin-password = PASS
dlr-storage = internal
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
log-file = "/tmp/kannel.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/tmp/access.log"
access-log-format= "%I %t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B]
[from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]"
#sms-combine-concatenated-mo=true
# SMSC CONNECTIONS
group = smsc
smsc = smpp
host = MYHOST
port = 0
receive-port = RPORT
system-type = "VMA"
connect-allow-ip = 127.0.0.1
smsc-username = USERNAME
smsc-password = PASSWORD
smsc-id = 0001
transceiver-mode = 0
msg-id-type = 0x01
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = SPORT
global-sender = SPORT
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 1
access-log = "/tmp/access.log"
# SEND-SMS USERS
# SERVICES
group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
accept-x-kannel-headers=1
get-url = "URL?from=%p&to=%Q&msg=%a&udh=%u&id=%I"
# there should be default always
group = sms-service
keyword = default
max-messages=0
text="No service set"
--
Head Technology Department
G-Mobile Corporation
Ulaanbaatar, Mongolia
Mobile: +976-98101111
Tel: +976-11-311198
Fax: +976-11-311195
Web: http://www.g-mobile.mn