Hi Ishtiaq, Thanks for the help, still a bit unclear on the mail you sent, sorry probably something simple I am missing.
On server A I have connection to multiple smsc's (Network Operators) and am able to send and receive sms fine. On Server B I have a GSM modem connected and can send and receive sms fine I want to be able to tell kannel that all sms sent from kannel on Server A is to be routed to server B and sent out via a modem on Server B. Sms received on Server B will be handled by Server B and the get URL will be configured there. Does you solution do this? -----Original Message----- From: Ishtiaq Ahmed [mailto:[email protected]] Sent: 01 July 2009 11:39 AM To: Bashir Jahed Cc: Donald Jackson; [email protected] Subject: Re: Kannel Relay Hi Bashir, I have the same kind of configurations installed at my Canadian and Pakistan NOC. We are forwarding messages from Pakistan NOC to Canadian NOC and then routed back. SERVER_A #(Lets say you have a SMPP Link like this) group = smsc smsc = smpp smsc-id = Telenor host = a.b.c.d port = 1112 alt-charset = ROMAN8 alt-addr-charset = GSM transceiver-mode = yes smsc-username = "smscuser" smsc-password = smscpassword system-type = "Telenor" allowed-smsc-id = Telenor throughput = 5 wait-ack = 600 (And sendsms user as) group = sendsms-user username="sendsmsuser" password="sendsmspassword" #max-messages = 0 concatenation = false (Now you need to forward the messages received at "Telenor" SMSC to SERVER_B, for this you have to configure smsc of http type at SERVER_B with same credentials as sendsms user, Take A Look at SERVER_B configuration, define sms-service to route the messages) group = sms-service keyword-regex = .* max-messages = 0 accepted-smsc=Telenor get-url = "http://SERVER_B:13124/sms?username=sendsmsuser&password=sendsmspassword &from=%p&to=%P&text=%a" #NOTE: 13124 is a port for http smsc at SERVER_B. SERVER_B (Define http smsc to receive messages from SERVER_A) group = smsc smsc = http smsc-id = Telenor system-type = kannel smsc-username = "sendsmsuser" smsc-password = "sendsmspassword" send-url = "http://SERVER_A:13131/cgi-bin/sendsms" connect-allow-ip = A.B.C.D port = 13124 allowed-smsc-id = Telenor #NOTE: 13131 is the sendsms port defined at SERVER_A ##############################################3 I hope this would be helpful to you.... Regards, Ishtiaq Ahmed Bashir Jahed wrote: > > Hi Guys, > > Any assistance would be appreciated please: > > I need to know what needs to be configured where. The documentation is > very limited and not very clear. As mentioned, I have 2 servers set up > as such: > > Server1 - Cape Town > > * Connected to local operators via smpp > > Server2 - Nigeria > > * Connected to GSM Modem > > I am able to send and receive on both servers locally. > > What I am attempting to achieve is to route all sms's destined for > Nigeria to be routed from server1 to server2 and sms delivered via gsm > modem in the country. > > Server1 Configuration: > > #SMS Africa Relay Test > > group = smsc > > smsc = http > > system-type = kannel > > smsc-id = Africa-Relay-Test > > smsc-username = africa > > smsc-password = africa > > allowed-prefix = "+23480;080" > > preferred-prefix = "+23480;080" > > port = 13015 > > send-url = "http://server2:13013/cgi-bin/sendsms" > > log-level = 3 > > log-file = "/usr/local/kannel/log/africa.log" > > Server2 Configuration > > #africa relay > > group = smsc > > smsc = http > > system-type = kannel > > smsc-id = relay-africa > > smsc-username = africa > > smsc-password = africa > > preferred-prefix = "273480;273480;003480;080" > > port = 13015 > > send-url = "http://localhost:13013/cgi-bin/sendsms" > > They both show online in the status page... however when sending via > the url on server1 sms never reached server2.... tey are both on a > local network at present with iptables turned off so no firewall > blocking anyting. > > Is my configuration correct? And what url do i call to send an sms to > Nigeria from server1? > > Thanks in advance, Bashir > > *From:* Donald Jackson [mailto:[email protected]] > *Sent:* 30 June 2009 03:14 PM > *To:* Bashir Jahed > *Cc:* [email protected] > *Subject:* Re: Kannel Relay > > Hi Bashir, > > You can use the allowed-prefix and denied-prefix configuration > parameters in your smsc groups to achieve this behaviour. > > IE: > > allowed-prefix=27;+27 > denied-prefix=44;+44 > > Thanks, > Donald > > 2009/6/30 Bashir Jahed <[email protected] > <mailto:[email protected]>> > > Hi Guys, > > I am new to kannel and am trying to set up the following. > > We have 2 Kannel servers, one in our Data Centre connecting to > multiple smsc's and another on our network that is using a gsm modem. > > They are both working independently and I am able to send and receive > on both Kannel boxes. > > I am trying to set up relaying so that when our kannel server > connected to the smsc's receives a request to send an sms to a > specific prefix it routes it to the second Kannel server with the GSM > modem and sends via that server, any help will be appreciated. > > Here is my kannel conf on the second server: > > group = core > > admin-port = 13000 > > admin-password = bar > > #status-password = foo > > #admin-deny-ip = "" > > #admin-allow-ip = "" > > log-file = "/var/log/kannel/kannel.log" > > log-level = 0 > > access-log = "/var/log/kannel/access.log" > > #http-proxy-host = "127.0.0.1" > > #http-proxy-port = 8080 > > #http-proxy-exceptions = "127.0.0.1" > > #http-proxy-username = "user" > > #http-proxy-password = "password" > > #ssl-certkey-file = "mycertandprivkeyfile.pem" > > # > > # Smsbox related > > # > > smsbox-port = 13001 > > #box-deny-ip = "*.*.*.*" > > #box-allow-ip = "127.0.0.1,10.0.0.3,10.0.0.4,10.0.0.5,10.0.0.6" > > #unified-prefix = "00358,0" > > #white-list = "http://127.0.0.1/white-list.txt" > > #black-list = "http://127.0.0.1/black-list.txt" > > store-type = spool > > store-location = "/var/spool/kannel" > > # > > #SMSC GSM > > group = smsc > > smsc = at > > modemtype = siemens_mc35i > > smsc-id=siemens > > device = /dev/ttyS0 > > # SEND-SMS USERS > > group = sendsms-user > > username = tester > > password = foobar > > #user-deny-ip = "" > > #user-allow-ip = "" > > # this sender is for Kannel relay testing (http_smsc) > > group = sendsms-user > > username = kannel > > password = rL4y > > user-deny-ip = "*.*.*.*" > > user-allow-ip = "172.24.20.69" > > #port = 13015 > > group = sendsms-user > > username = xxxx > > password = xxxx > > #user-deny-ip = "" > > #user-allow-ip = "" > > # there should be default always > > #group = sms-service > > #keyword = default > > #text = "No service specified" > > > > > -- > Donald Jackson > http://www.ddj.co.za/ > donaldjster(a)gmail.com <http://gmail.com> >
