> >>if you need different npi/ton settings than kannel default set you can 
> >>use kannel.conf
> >>to set them:
> >>source-addr-ton = X
> >>dest-addr-ton   = X
> >>source-addr-npi = X
> >>dest-addr-npi   = X
> >
> >I know this. But the problem then is that I can't send messages
> >with alphanumeric source.
> >
> And when you have the same setting in the source file, then you can ? 

yes

> that makes no sense to me, as the configuration directives simply 
> override the defaults in the source file.

the source-addr-ton, source-addr-npi... config parameters are
ton, npi overrides. If you set them every message has those ton
and npi values. It doesn't override the defaults, it overrides
all ton and npi.

Check smsc_smpp.c, the logic is this:

    Check for manual override of source ton and npi values 
    ...  
    if not 
       setup default values  <-- this is where I made changes.
    ...
    check for alphanumeric
    ...


Maybe the logic should be chnged, so that the config parameters
are the defaults, instead. It's an easy fix.

Anyway, don't you think that the ton and npi values should've
been preserved for the reply message?



-- 
Damjan Georgievski

Reply via email to