Hi Aldo, Check the online documentation (e.g http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html) .. search for allow/deny (e.g allow-prefix in smsc config group).
Cheers, Alan On 07/07/10 13:53, Aldo Zavala wrote: > Hi, I have two more questions: > > 1.- How can I setup the autostart up daemon, I compiled Gateway with the > --enable-start-stop-daemon directive and I have compiled and installed the > following binaries: > > /usr/local/sbin/start-stop-daemon > /usr/local/sbin/run_kannel_box > > At the moment I use these commands to start manually my configuration (in > given order): > > /usr/local/sbin/bearerbox -v 1 /etc/kannel.conf > /usr/local/sbin/smppbox -v 1 /etc/smppbox.conf > > > 2.- Since I have defined two SMC Centers, how can I define MDN-Based delivery > routes? For instance: > - if destination MDN starting with 760* prefix will be routed to SMC-1 > - if destination MDN starting with 970* prefix will be routed to SMC-2 > > Here my current configuration: > > /etc/kannel.conf > -------------------- > group = core > admin-port = 13000 > admin-password = [protected] > status-password = [protected] > admin-deny-ip = "" > admin-allow-ip = "*" > smsbox-port = 13009 > box-deny-ip = "" > box-allow-ip = "*" > dlr-storage = mysql > smsbox-max-pending = 100 > log-file = "/var/log/kannel/bearerbox.log" > log-level = 1 > > group = mysql-connection > id = mydlr > host = localhost > username = kannel > password = [protected] > database = kannel > max-connections = 1 > > group = dlr-db > id = mydlr > table = dlr > field-smsc = smsc > field-timestamp = ts > field-destination = destination > field-source = source > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxcid > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13131 > global-sender = 7601234567 > sendsms-chars = "0123456789 +-" > access-log = "/var/log/kannel/kannel.access" > log-file = "/var/log/kannel/smsbox.log" > log-level = 1 > > group = smsc > smsc = smpp > smsc-id = huawei > host = 111.111.111.111 > port = 5019 > smsc-username = aldo2 > smsc-password = aldo2 > system-id = aldo2 > system-type = SMPP > #system-type = VMA > keepalive = 5 > my-number = "7601234567" > transceiver-mode = true > reconnect-delay = 10 > > group = smsc > smsc = smpp > smsc-id = primal > host = 222.222.222.222 > port = 6900 > smsc-username = aldo2 > smsc-password = aldo2 > system-id = aldo2 > system-type = SMPP > #system-type = VMA > keepalive = 5 > my-number = "9701234567" > transceiver-mode = true > reconnect-delay = 10 > > > And:.... > > /etc/smppbox.conf > ------------------ > group = core > admin-port = 13000 > admin-password = root > status-password = [protected] > admin-deny-ip = "" > admin-allow-ip = "*" > smsbox-port = 13009 > box-deny-ip = "" > box-allow-ip = "*" > dlr-storage = mysql > smsbox-max-pending = 100 > log-file = "/var/log/kannel/bearerbox.log" > log-level = 1 > > group = smppbox > smppbox-id = "SMPP Router" > smppbox-port = 9500 > bearerbox-host = localhost > bearerbox-port = 13009 > log-level = 0 > log-file = "/var/log/kannel/smppbox.log" > our-system-id = aldo2 > route-to-smsc = huawei > smpp-logins = "/etc/smppbox_clients" > > group = mysql-connection > id = mydlr > host = localhost > username = kannel > password = [protected] > database = kannel > max-connections = 1 > > group = dlr-db > id = mydlr > table = dlr > field-smsc = smsc > field-timestamp = ts > field-destination = destination > field-source = source > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxcid > > > And finally: > /etc/smppbox_clients > ----------------------- > aldo2 aldo2 SMPP > > > > Thanks, > > Aldo Zavala > >
