Thanks, as you wise guys have suggested it was a matter of declaring:
allowed-smsc-id = smsc_x

inside each smsc group with that very same id

Thank you all again!
Gerardo


Otandeka Simon Peter wrote:

Hello Gerardo,

Try out the following:-

Specify the preferred-smsc-id and denied-smsc-id in the group=smsc configuration

and also try to use forced-smsc parameter in the sendsms-user group.

It might not be complete solution but might help.

Keep me posted on the results.

Kind regards,
Peter

Rolandow wrote:
Hi Gerardo,

Have you tried adding "allowed-smsc-id = smsc_1" to your configuration file?

Kind regards,
Roland.

Gerardo Segura wrote:
Dear all,
I'm having some problems while trying to send a message explicitly specifying smsc, either via http request, like this one: http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=[removed]&to=[removed]&text=sisi&smsc=smsc_2&dlr-mask=28&account=user_1

or directly inserting in send_sms, with:
insert into send_sms(momt,sender,receiver,smsc_id,msgdata) values('MT','[removed]','[removed]','smsc_2','desde sqlbox')

I can not see why both attempts are been sent with another smsc (smsc_1). But if include smsc=smsc_1 the message is delivered with smsc_3 !! Well at list its enrouted to that smsc, there are couple issues with clickatell support: ain't no way to specify system_id (api_id) and I think no unicode is allowed, it would be nice to allow raw parameters to pass from cgi-bin/sendsms to custom http smsc to give flexibility for eventual api changes. But that is not the main subject of this call for help :)


here I reproduce the smsc definitions from my kannel.conf file (exact same order of apperance):
----------------------------------------------------
# GSM smsc setup (1)
group = smsc
smsc = at
smsc-id = smsc_1
modemtype = Motorola
device = /dev/ttyACM0
speed = 115200
keepalive = 7200
my-number = [removed]
sms-center = [removed]
sim-buffering = false

# GSM smsc setup (2)
group = smsc
smsc = at
smsc-id = smsc_2
modemtype = Nokia
device = /dev/ttyACM1
speed = 115200
keepalive = 7200
my-number = [removed]
sms-center = [removed]
sim-buffering = false

group = smsc
smsc = http
smsc-id = smsc_3
system-type = clickatell
send-url = http://api.clickatell.com/http
port = 13004
smsc-username = root
smsc-password = youwish
----------------------------------------------------


I hope anyone can spot my error or what I'm missing. I really need to be able to specify smsc.
best regards,
Gerardo












Reply via email to