Re: [RFC] autodetect smpp source_addr_ton should not remove + (plus)

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi,

yep, this should be configurable ... I have patch for this , will send it to 
ML today or tmrw...

On Tuesday 25 March 2003 17:11, Benjamin Lee wrote:
> At least in the cases I have tested, if you remove the plus '+' from the
> front of an originator number / source address, the originator mobile
> number turns up on the end user's mobile without a '+' (makes sense) and
> the user cannot reply to it correctly -- Nokia 6110, 7110.
>
> The cases that don't work for us are *local* numbers that we prefix to +61
> (Australia). Our SMSC doesn't permit NATIONAL number submission in TON.
>
> I haven't tried an overseas originator mobile number.
>
> (Strangely, the SMSC's special TPOA assigned to us does work without the +
> prefix.)
>
> Comments?
>
>
>
> Index: smsc_smpp.c
> ===================================================================
> RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
> retrieving revision 1.31
> diff -u -b -r1.31 smsc_smpp.c
> --- smsc_smpp.c 19 Mar 2003 17:43:11 -0000      1.31
> +++ smsc_smpp.c 25 Mar 2003 16:00:23 -0000
> @@ -366,6 +366,8 @@
>                  pdu->u.submit_sm.source_addr_npi = GSM_ADDR_NPI_UNKNOWN;  
>  /* short code */ } else {
>                 /* numeric sender address with + in front -> international
> (remove the +) */ +
> +                /* should this be configurable? */
>                 octstr_delete(pdu->u.submit_sm.source_addr, 0, 1);
>                 pdu->u.submit_sm.source_addr_ton =
> GSM_ADDR_TON_INTERNATIONAL; }

-- 
Best Regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________

Centrium GmbH
Ehrenstrasse 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [email protected]
web: http://www.centrium.de
msn: [email protected]
smime.p7s (application/pkcs7-signature, 2.5 KB) - not displayed
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.