Thanks for the answers. However, I still experience weird behaviour. I
use bearerbox version `cvs-20040311', and tried both ways, with these
results:

1. "forced-smsc"

Added "forced-smsc = mw" to my sendsms-user group, and worked fine.
But, having a forced smsc would mean that all sms would be sent
through that smsc, IF coming from the same username/password defined
in the sendsms-user group. So, I thought to define a new sendsms-user
group, with a different username/password and forced-smsc. Something
like this:

group = sendsms-user
username = mw_un
password = mw_pw
forced-smsc = mw

group = sendsms-user
username = alac_un
password = alac_pw
forced-smsc = alac

This way, theoretically the "mw" smsc would be used if I call this
(partial) URL: cgi-bin/sendsms?username=mw_un&password=mw_pw

And the "alac" smsc would be used if I call this (partial) URL:
cgi-bin/sendsms?username=alac_un&password=alac_pw

Is that how I am supposed to differentiate the SMSCs by using
different URLs? I thought that would be logical, but using the above
conf, only the "alac" smsc is used, regardless what username/password
I specify in the URL :( Even if I use "forced-smsc = mw" in BOTH
sendsms-user groups, still "alac" is used. It seems when there are 2
sendsms-user groups defined, somehow Kannel gets confused with my
conf. Is there anything weird in my conf file ? (copy is at the end of
this message)



2. "smsc-id"

I also tried using smsc-id=mw in the URL, but on its own this is not
useful. According to the user guide:

"Note that if SMS Center connection has an assigned SMSC ID, it does
NOT automatically mean that messages with identical SMSC ID are routed
to it; instead configuration variables denied-smsc-id, allowed-smsc-id
and preferred-smsc-id is used for that."

So, I tried specifying these configuration variables, like this:

group = smsc
smsc-id = mw
allowed-sms-id = mw
...

group = smsc
smsc-id = alac
allowed-sms-id = alac
...

But, regardless of what I specify in the URL ("smsc-id=mw" or
"smsc-id=alac"), the Kannel status doesn't show which smsc connection
was used to send the sms (I get "rcvd 0, sent 0" for both smsc),
although in the console I can see that the sms was reported as 'sent'.

When I specify preferred-smsc-id instead of allowed-sms-id, Kannel
status reports that sms were sent, but only through the alac SMSC,
even if I specify "smsc-id=mw" in the URL.

What could be wrong, and how do you guys use denied-smsc-id,
allowed-smsc-id and preferred-smsc-id to achieve the desired effect?


Thanks for any hints!

Regards
Robert


> 2 ways 
> either configure forced-smsc in user group or pass smsc-id in http request

> <navjot/>

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>Behalf Of Robert
>>Sent: Friday, May 07, 2004 9:09 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to specify which SMSC to use through the HTTP interface
>>
>>
>>
>>Hello all,
>>
>>I am relatively new to Kannel, as I am just discovering its powerful
>>features, but got to the point where I can send SMS through *one*
>>SMSC. If I leave only one smsc group (either one), Kannel sends the
>>SMS, but if I leave both groups in the conf file, only "alac" is used
>>(I check in Kannel's status). I use such an URL to send SMS:
>>
>>http://xxx.xxx.xxx.xxx:13033/cgi-bin/sendsms?username=xxxxx&passwor
>>d=xxxxx&from=robert&to=xxxxx&text=test
>>
>>I've searched through the list, and tried to use some of the (partial)
>>solutions given there. I tried to specify in the URL "smsc=mw", and
>>"preferred-smsc-id=mw", or tweaking the conf file to specify
>>"send-url". I even got that far to come up with 2 different conf
>>files, and launch smsbox twice with these 2 conf files, specifying 2
>>different sendsms-port. But, either bearerbox/smsbox didn't start
>>properly, or I was back to my original problem :(
>>
>>Basically, I want 2 different URLs, to specify the SMSC which Kannel
>>should use in each case. It can be the port number, or a URL
>>parameter, but something to differentiate the SMSC.
>>
>>So, can you please point me in the right direction? I know this should
>>be something basic for Kannel, but I just can't make it work :(
>>
>>Thanks and regards
>>Robert
>>
>>P.S. my conf file is listed below:
>>
>>group = core
>>admin-port = 13011
>>smsbox-port = 13021
>>admin-password = xxxxx
>>status-password = xxxxx
>>admin-deny-ip = "*.*.*.*"
>>admin-allow-ip = xxxxx
>>log-file = "ok-log1.log"
>>log-level = 1
>>box-deny-ip = "*.*.*.*"
>>box-allow-ip = "127.0.0.1"
>>dlr-storage = mysql
>>store-file = "kannel.store"
>>
>># SMSC CONNECTIONS
>>
>>group = smsc
>>smsc = smpp
>>smsc-id = mw
>>host = xxxxx
>>port = 7901
>>receive-port = 7901
>>smsc-username = xxxxx
>>smsc-password = xxxxx
>>system-type = TCP
>>address-range = ""
>>my-number = 3445
>>interface-version = 34
>>source-addr-ton = 1
>>source-addr-npi = 1
>>
>>group = smsc
>>smsc = smpp
>>smsc-id = alac
>>host = xxxxx
>>port = 800
>>smsc-username = xxxxx
>>smsc-password = xxxxx
>>system-type = TCP
>>interface-version = 34
>>source-addr-ton = 1
>>source-addr-npi = 1
>>
>>group = mysql-connection
>>id = mydlr
>>host = localhost
>>mysql-username = xxxxx
>>mysql-password = xxxxx
>>database = smsdb
>>
>>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 = boxc
>>
>># SMSBOX SETUP
>>group = smsbox
>>bearerbox-host = localhost
>>sendsms-port = 13033
>>global-sender = 13033
>>sendsms-chars = "0123456789 +-"
>>log-file = "smsbox.log"
>>
>>
>># SEND-SMS USERS
>>group = sendsms-user
>>username = xxxxx
>>password = xxxxx
>>user-deny-ip = "*.*.*.*"
>>user-allow-ip = xxxxx
>>
>># 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"
>>
>>
>>
>>





Reply via email to