Having a preferred-smsc would do what you want in most cases (unless the
specified smsc is not online, in that case, kannel would route it to another
smsc in absence of allowed-smc/denied-smsc.

group = smsc
smsc-id = testsmsc1
preferred-smsc-id = testsmsc1

Hope it helps.

Angel Fradejas.

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En
nombre de Bruno David Rodrigues
Enviado el: mi�rcoles 20 de marzo de 2002 17:25
Para: Alex Judd; [EMAIL PROTECTED]
Asunto: Re: msg->sms.smsc_id versus cfg_get(grp, octstr_imm("smsc-id"))


it's not easy to do that in the current code.

You'll have to have a preferred-smsc in your smsc group
or even an allowed-smsc/denied-smsc

what I'm thinking to do is to have a default prefered smsc, like
if the message has a msg.smscid=A, it should preferelly go through A

----- Original Message -----
From: "Alex Judd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 4:17 PM
Subject: msg->sms.smsc_id versus cfg_get(grp, octstr_imm("smsc-id"))


> I think I'm trying to convince Kannel to do something that it doesn't want
> to do and appreciate some input from the list.
>
> Objective: Receive /cgi-bin/sendsms message and send through specific SMS
>
> What happens is that when I specify the smsc= parameter to try and force
> the message to go through that SMSC it is tagging the message as coming
> from that SMSC, rather than sending it through the SMSC I specify
>
> The SMSC it sends through seems to be random depending on which thread it
> wakes up and that SMSC has it's ID specified in the configuration file.
>
> Therefore what I'd like to do is when we go to wakeup or create the SMSC
> needed, to create it according to the msg->sms.smsc == cfg_get(grp,
> octstr_imm("smsc-id")) rather than being random
>
> Does this sound correct and where in the process does Kannel decide which
> smsc to connect to?
>
> Thanks in advance
>
> Alex
>
>  --
> Alex Judd
> http://www.skywire.co.uk
>
>
>


Reply via email to