Hi Alvaro,

Thanks for your feedback.

I also thought about that.
The problem is that it won't use the simple 'echo' of the PHP script. I will 
need instead to perform a totally separate push SMS.
I am still trying to avoid this solution, which also requires the max-messages 
to be set to 0 in the sms-service group.

Regards,

TSHIMANGA Minkoka
VAS Manager
Mobile: +243 814443113
Telephone: +243 815560341 ext. 0583
Fax: +243 813010373
Email: tshimanga.mink...@vodacom.cd



-----Original Message-----
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: Tuesday 18 January 2011 14:36
To: Tshimanga Minkoka
Cc: users@kannel.org
Subject: Re: How to force the reply of an sms-service to go through a specified 
smsc on some conditions

Kannel can not doit by itself.

You should have an app that, after validate the conditions you set for
the routing send the message back to kannel with the appropiate
routing infomation.

You just need to add &smsc=Your_smsc_id  where your_smsc_id id the ID
of the smsc where you need to send the MT to.

Regards

Alvaro



|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com



On Tue, Jan 18, 2011 at 4:04 AM, Tshimanga Minkoka
<tshimanga.mink...@vodacom.cd> wrote:
> Dear Kannel users,
>
> How can I force the reply of an sms-service to go through a specified smsc on 
> some conditions?
>
> Basically I have a configuration with:
> 1 bearerbox
> 2 smsc smpp connections to 2 different SMSCs
> 1 smsbox
> 1 sendsms-user
> 1 sms-service
>
> The sms-service group receives all the traffic reaching Kannel and process it 
> by calling a get_url that is handled by Apache and PHP.
> The PHP outputs an echo command with the text that is sent back to the 
> sending party (generally a mobile handset) as a response to the request the 
> sending party initiated (generally to the short number).
>
> What I want is to still have the single sms-service group processes all the 
> traffic, but to be able to somehow specify it to send back the PHP text 
> response to a specified smsc smpp. The conditions can be related to the short 
> number to which the initial SMS was sent to (or any other I can accommodate 
> to).
> From the user guide, it seems that as I use only 1 smsbox instance, I 
> shouldn't use any smsbox-route group. Or maybe it is exactly the part I am 
> missing and have misunderstood.
>
> Relevant part of my configuration are below here.
>
> --------
> # CORE
> group = core
> admin-port = 17000
> admin-password = foobar
> status-password = foobar
> admin-allow-ip = "127.0.0.1"
> log-file = "/path/to/kannel/files/bearerbox.log"
> log-level = 0
> smsbox-port = 17001
> box-allow-ip = "127.0.0.1"
> sms-resend-freq = 300
> sms-resend-retry = 15
>
>
> # SMSC SMPP
> group = smsc
> smsc = smpp
> smsc-id = smsc_a
> allowed-smsc-id = "smsc_a"
> preferred-smsc-id = "smsc_a"
> host = 192.168.1.101
> port = 6200
> receive-port = 6200
> smsc-username = "foobar"
> smsc-password = "foobar"
> system-type = "VMA"
> interface-version = "33"
> throughput = 15
> max-pending-submits = 10
> log-file = "/path/to/kannel/files/smsc_a.log"
> log-level = 0
>
>
> # SMSC SMPP
> group = smsc
> smsc = smpp
> smsc-id = smsc_b
> allowed-smsc-id = "smsc_b"
> preferred-smsc-id = "smsc_b"
> host = 191.168.1.102
> port = 6200
> receive-port = 6200
> smsc-username = "foobar"
> smsc-password = "foobar"
> system-type = "VMA"
> interface-version = "33"
> throughput = 15
> max-pending-submits = 10
> #wait_ack = 600
> log-file = "/path/to/kannel/files/smsc_b.log"
> log-level = 0
>
>
> # SMSBOX SETUP
> group = smsbox
> bearerbox-host = localhost
> #smsbox-id = sending_sms
> #bearerbox-port = smsbox-port found in core group
> sendsms-port = 17003
> mo-recode =1
> log-file = "/path/to/kannel/files/smsbox.log"
> log-level = 0
>
>
> # SEND-SMS USERS
> group = sendsms-user
> username = foobar
> password = foobar
> user-allow-ip = "127.0.0.1;191.168.1.*"
> concatenation = true
> max-messages = 16
>
> # SMS SERVICE
> # There should be default always
> # This is the ONLY existing ONE
> # It catches and processes ALL
> group = sms-service
> keyword = default
> concatenation = true
> max-messages = 16
> get-url = 
> "http://localhost/script_to_process_everything_received.php?from=%p&to=%P&body=%a&datetime=%t
>  &smsc=%i "
> # The additional routing conditions should be specified somehow here around
>
> --------
>
> TIA
>
> Regards,
>
> Tshimanga Minkoka
>
>
> TSHIMANGA Minkoka
>
>
>
>
>
>




Reply via email to