Hi Samir,
I faced the similar problem while integrating with one of the operator's
SMSC. In that case, SMSC was sending messages with "ton =1" which means
international. Now, as per SMPP 3.4, international ton would require
destination address of at lest 7 digit. Since the destination address was a
shortcode and hence less than 7 digit, kannel was throwing this error
To resolve this issue, we had to change in kannel smpp file where we reduced
the minimum digit of destination number to 4
Go to /server-location of kannel/gateway1.4.1/gw/smsc
Edit file named smsc_smpp.c and change
if (octstr_len(addr) < 7) {
to
if (octstr_len(addr) < 4) {
And then recompile the kannel i.e install the kannel freshly.
Hope this will help
Regards
Ashwani Kumar
-----Original Message-----
From: Jean-Claude Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 13, 2007 9:32 PM
To: Samir Ghodasara; Kannel Users
Subject: Re: gateway-1.4.1 and Mallformed addr `****', expected at least
7digits.
Hi:
I guess your are received '+' or any character prefix.
You can solve this in your smsc group:
address-range = "^99011$"
source-addr-ton = 5
source-addr-npi = 0
source-addr-autodetect = true
dest-addr-ton = 4
dest-addr-npi = 0
bind-addr-ton = 0
bind-addr-npi = 0
msg-id-type = 0x01
Samir Ghodasara wrote:
> Hi,
>
> i am new user for Kannel and currently trying to configure kannel to
> receive the message for give short code.
>
> I configure kannel for two different SMSC for same short code.
> I am able to receive message from one SMSC,but while using other SMSC
> mobile i am getting
> "Mallformed addr `****', expected at least 7 digits." at Bear box.
>
> Conf which i am using..
>
> gateway-1.4.1
> source-addr-ton=1
> source-addr-npi=1
> dest-addr-ton=1
> dest-addr-npi=1
> transceiver-mode=true
>
> I am really confuse that it is working for one SMSC and not working
> for anhother SMSC.
>
> Waiting for your valuable response.
>
> Thanks & Regards,
> Samir.
>
--
Jean-Claude Adams
Encargado de Sistemas
PICO S.A.CI.
Tel. +595 21 665052
Cel. +595 981 833415
email: [EMAIL PROTECTED]