RE: msg->sms.smsc_id versus cfg_get(grp, octstr_imm("smsc-id"))

Alex Judd <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Thanks very much to both of you

I'll try the denied/allowed route as I'd rather the message failed than 
went through the wrong SMS.

Alex

On Wed, 20 Mar 2002, Angel Fradejas wrote:

> 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
> >
> >
> >
> 

-- 
Alex Judd
http://www.skywire.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.