Troy Kelly wrote:

>
> I just used CMG's test SMPP application to make sure that Vodafone's 
> (Australia) SMPP gateway was doing the right thing - and it is.  
> Please somebody help, I am not getting any content.  When I checked 
> with CMG's app the message_payload contains the message text.  But the 
> same message delivered to Kannel has no content.
>  
> Does anybody have any ideas?

I am just a poor Java coder, not a Kannel expert, so don't trust my 
comments too much. But, your data gave me some ideas.

>     2002-05-31 01:29:40 [8] DEBUG:   data: 47 45 54 20 2f 74 65 73  
>     GET /tes
>     2002-05-31 01:29:40 [8] DEBUG:   data: 74 2e 61 73 70 3f 6d 65  
>     t.asp?me
>     2002-05-31 01:29:40 [8] DEBUG:   data: 73 73 61 67 65 3d 20 48  
>     ssage= H
>
Ok, this shows that there is no payload when smsbox makes a request to 
your application. Correct.

>     get-url = "http://192.168.100.1/test.asp?message=%a";
>
This looks ok to me, too.

>     2002-05-31 11:29:40 Receive SMS [SMSC:vf] [SVC:] [ACT:]
>     [from:61405619420] [to:0416905800] [flags:0:1:0:0:0] [msg:0:] [udh:0:]
>
But this explains a lot: When bearerbox receives the data, there is no 
message. Format of msg field is [msg:<message_length>:<message>], so 
[msg:0:] means just that - no message.

>     Does anybody have any ideas?
>
Take a look at network traffic the Kannel and SMPP SMSC have between 
them, and compare it to SMPP spec and/or to the traffic received by your 
test SMPP client. It should reveal whether Vodafone's gateway is sending 
you data or not - and is it sending it in proper format and field.

This sounds like some version incompability problem. What version of 
SMPP does Vodafone use? The version supported by Kannel is SMPP 3.4, 
thought I have no idea of how downwards compatible SMPP is... And specs 
are never clear enough, it might as well be that Kannel and Vodafone 
interpret spec different way. Kannel SMPP driver is known to work and to 
my knowledge in use here and there, so it's most propably not badly broken.

If you don't know how to look at network traffic, there is at least two 
ways: There is a precompiler option at the beginning of the file 
gw/smsc_smpp.c that controls whether SMPP driver dumps all protocol 
packet to log or not. Change the #if 1 to #if 0 and recompule. Other way 
to is to just sniff the network traffic. I have used mainyl ngrep for 
this job. Just tell it to print out everything based on IP address of 
the SMPP SMSC.

So, no any quick and clean suggestions, sorry.

-- 
Jari Juslin, Development Team Leader, MatchEm Ltd


Reply via email to