Hi At 01:34 PM 2/6/02 +0700, Dedy Sutanto wrote:
>I have patched the cvs version so it always send with TON=1 and NPI=1. (this >TON and NPI work with kannel 1.0.3) >But kannel-cvs still cannot submit_sm correctly. check with your SMPP provider what they want for the source addr TON and NPI. For MTN.. Destination must be in international format that is a TON of 1 and NPI of 1. But for sender they require UNKNOWN, i.e TON=0 and NPI=0. Also by setting the TON=1 you must supply an international number. That is with the country prefix. But the error you are getting is Invalid Source TON. This is correct as you are using a short number for your sender/ source_addr whihc is not in international format. >I think the problem because there is no terminating character (NULL) in >smpp_pdu. >I seen this NULL ("\0") in smpp_pdu for kannel 1.0.3, but no in cvs-version. This is a warning that is generated, because the submit_sm_resp had a error and so no msg_id was returned by the SMPP server. This is a NULLTERMINATED string. The fact that it is NULL, and the use of C macros to handle the message formats results in this warning. It is normal behaviour. If it works with 1.0.3 and not the current CVS, then please send us packet dumps of the SMPP submit_sm and submit_sm_resp from both versions. Nisan >Regard >-dedy- > >-----Original Message----- >From: Nisan Bloch [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 06, 2002 12:52 PM >To: Stipe Tolj >Cc: [EMAIL PROTECTED] >Subject: Re: How to construct Flash SMS > > >Hi > >At 09:50 AM 2/5/02 +0100, Stipe Tolj wrote: > >Andreas Fink wrote: > > > > > > Ok. well the question is why is it getting into trouble as TON=1 is > > > definitively a valid setting. TON=2 (national) could be replaced for > > > TON=0 (undefined). Maybe that fixes 99% of the cases. In my case > > > TON=0 is not accepted by the SMSC (which I consider a valid response). > >my two cents... yes, TON=1 is valid.. but some SMPP SMSCs are configured so >you can only use a specific TON. e.g. MTN insist on TON=1 (international) >for all destinations. > >I have patched Kannel, to allow us to override the the auto TON/NPI logic >Andres added. > >Nisan