Re: SMS to email
Thanks for the reply. I'll carry on trying. You say you wouldn't do it like this - how would you do it? I'm open to any and all suggestions. Kenn - Original Message - From: Oded Arbel <[EMAIL PROTECTED]> To: Domino <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, June 03, 2002 7:50 AM Subject: RE: SMS to email The error you describe is related to the fake_smsc module, and it means that something went wrong with the message you submitted using fake_smsc, and not because of how you wrote the sms-service. I'd say that the exec line you posted looks ok - even if I wouldn't do it like this. -- Oded Arbel m-Wise Inc. [EMAIL PROTECTED] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. The biggest lies: 26. ..then take a left. You can't miss it. > -Original Message- > From: Domino [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 1:01 AM > To: [EMAIL PROTECTED] > Subject: SMS to email > > > I am trying to setup an SMS to email gateway on linux with > Kannel 1.1.6 > I have been trying an sms-service as > exec = "echo %r | mail -s \"sms message from %p\" %s" > the intension being the sender would specify the keyword > 'email' followed by > the email address then the body text. > > I've tried this using fakemsg but all I get in bearerbox is "WARNING: > smsc_fake: invalid message syntax from client, ignored". > > Does anyone know if I am looking in entirely the wrong > direction or what the > syntax should be? I suppose I could fire up a perl script to > do the mailing > but that seems a bit heavy-weight when the command line seems > so close. > > Kenn Martin > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.346 / Virus Database: 194 - Release Date: 11/04/02 > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
RE: SMS to email
I would call a PHP or PERL CGI to do that, or call exec a PERL script. I don't much like command line hacking in a configuration that need to be maintained. it's very nice for one-liners when you are in a hurry, but it's hell to maintain such stuff. when you need to write something to last - write it down, don't do cute hacks. -- Oded Arbel m-Wise Inc. [EMAIL PROTECTED] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. Mr. Miyagi: No such thing, bad student. Only bad teacher. -- from "Karate Kid" > -Original Message- > From: Domino [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 1:49 PM > To: [EMAIL PROTECTED] > Subject: Re: SMS to email > > > Thanks for the reply. I'll carry on trying. > > You say you wouldn't do it like this - how would you do it? > I'm open to any > and all suggestions. > > Kenn > > - Original Message - > From: Oded Arbel <[EMAIL PROTECTED]> > To: Domino <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, June 03, 2002 7:50 AM > Subject: RE: SMS to email > > > The error you describe is related to the fake_smsc module, > and it means that > something went wrong with the message you submitted using > fake_smsc, and not > because of how you wrote the sms-service. I'd say that the > exec line you > posted looks ok - even if I wouldn't do it like this. > > -- > Oded Arbel > m-Wise Inc. > [EMAIL PROTECTED] > (972)-67-340014 > (972)-9-9581711 (ext: 116) > > ::.. > The biggest lies: > 26. ..then take a left. You can't miss it. > > > > -Original Message- > > From: Domino [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 03, 2002 1:01 AM > > To: [EMAIL PROTECTED] > > Subject: SMS to email > > > > > > I am trying to setup an SMS to email gateway on linux with > > Kannel 1.1.6 > > I have been trying an sms-service as > > exec = "echo %r | mail -s \"sms message from %p\" %s" > > the intension being the sender would specify the keyword > > 'email' followed by > > the email address then the body text. > > > > I've tried this using fakemsg but all I get in bearerbox is > "WARNING: > > smsc_fake: invalid message syntax from client, ignored". > > > > Does anyone know if I am looking in entirely the wrong > > direction or what the > > syntax should be? I suppose I could fire up a perl script to > > do the mailing > > but that seems a bit heavy-weight when the command line seems > > so close. > > > > Kenn Martin > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.346 / Virus Database: 194 - Release Date: 11/04/02 > > > > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02 > > >
RE: MySQL logging
For now, I'm using fake_smsc; just in the testing phase before we purchase the actual hardware. ~Hani Mustafa Oded Arbel <[EMAIL PROTECTED]> wrote : > What SMSC module are you using ? > > -- > Oded Arbel > m-Wise Inc. > [EMAIL PROTECTED] > (972)-67-340014 > (972)-9-9581711 (ext: 116) > > ::.. > "According to a new survey, women say they feel more comfortable undressing in > front of men than they do undressing > in front of other women. They say that women are too judgmental, where, of > course, men are just grateful." > -- Robert De Niro > > > > -Original Message- > > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 03, 2002 2:09 AM > > To: Oded Arbel; [EMAIL PROTECTED] > > Subject: RE: MySQL logging > > > > > > Well, besides having mysql logging all queries made to it, I > > don't see any extra entries in the dlr table that I made. As > > a matter of fact, no entries at all. > > > > Thanks, > > ~Hani Mustafa > > > > Oded Arbel &lang=en">[EMAIL PROTECTED]> > wrote : > > > > > There are some minor memory leaks in the dlr module, and > > that is what you see in > > > the logs that you submitted. it will probably get fixed > > when it anoys one of the > > > developers enough to invest the time in, but is really a > > non-issue as these are > > > mainly static memory buffer that only get allocated once > > and only released at > > > the end. > > > > > > As for why you don't see quries being done on MySQL, I > > cannot tell you - I'm > > > using dlr-storage mysql for some time now with no > > complaints. the queries are > > > not logged in the normal logs, so you can't see them there. > > Im not sure where > > > you do want to see the queries, but if indeed you are > > looking in the right place > > > and still seeing no queries, then I'd hazard a guess that > > DLR processing is not > > > requested for the messages being sent. note that some (all > > ?) of the modules > > > only use DLR storage if the message has dlrmask set to > > something interesting. > > > also - some modules do not implement DLR support at all, > > for example - the GSM > > > modem modules (AT and AT2). > > > > > > -- > > > Oded Arbel > > > m-Wise Inc. > > > [EMAIL PROTECTED] > > > (972)-67-340014 > > > (972)-9-9581711 (ext: 116) > > > > > > ::.. > > > Politicians are like diapers. They both need changing > > regularly and for the same > > > reason. > > > > > > > > > > -Original Message- > > > > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > > > > Sent: Sunday, June 02, 2002 4:27 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: MySQL logging > > > > > > > > > > > > Hello everyone. > > > > > > > > I'm having problems using dlr-storage as mysql, although > > I note the > > > > bearerbox connecting to the sql server, no queries/inserts > > > > are done, and > > > > it quits normally when bearerbox ends. here is a sample > > of the error: > > > > > > > > 2002-05-30 17:23:57 [0] ERROR: MYSQL: > > > > 2002-05-30 17:23:57 [0] DEBUG: Immutable octet strings: 121. > > > > 2002-05-30 17:23:57 [0] DEBUG: Current allocations: 18 areas, > > > > 198 bytes > > > > 2002-05-30 17:23:57 [0] DEBUG: Highest number of allocations: > > > > 1065 areas > > > > > > > > 2002-05-30 17:23:57 [0] DEBUG: Highest memory usage: 44709 bytes > > > > 2002-05-30 17:23:57 [0] DEBUG: Area 0x8222910, size 4, max_size 4 > > > > 2002-05-30 17:23:57 [0] DEBUG: Allocated by > > > > octstr_create_from_data_real > > > > at gwlib/octstr.c:193 > > > > 2002-05-30 17:23:57 [0] DEBUG: Contents of area (first 16 bytes): > > > > 2002-05-30 17:23:57 [0] DEBUG: 75 72 6c 00 > > > > 2002-05-30 17:23:57 [0] DEBUG: Area 0x82227a8, size 16, > > max_size 16 > > > > 2002-05-30 17:23:57 [0] DEBUG: Allocated by > > > > octstr_create_from_data_real > > > > at gwlib/octstr.c:185 > > > > 2002-05-30 17:23:57 [0] DEBUG: Claimed by dlr_init_mysql at > > > > gw/dlr.c:89 > > > > > > > > whats wrong? is this a known issue? or am I don't anything wrong? > > > > I'm using gateway-1.1.6... > > > > > > > > Mysql logs... > > > > > > > > 020530 17:22:10 13 Connect kannel@localhost on kannel > > > > 020530 17:23:58 13 Quit > > > > > > > > > > > > Thanks, > > > > ~Hani Mustafa > > > > > > > > > > > > > > > > > > > > > > > > > >
RE: MySQL logging
fake_smsc doesnot support DLR processing. to simulate SMSC access I suggest that you use one of the freely available SMPP simulators, or a GSM modem. fake_smsc it a botch job and I don't recomend using it for anything except maybe load testing. -- Oded Arbel m-Wise Inc. [EMAIL PROTECTED] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. I didn't have time to write a short letter, so I wrote a long one instead. > -Original Message- > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 7:54 PM > To: Oded Arbel; [EMAIL PROTECTED] > Subject: RE: MySQL logging > > > For now, I'm using fake_smsc; just in the testing phase > before we purchase the actual hardware. > > ~Hani Mustafa > Oded Arbel <[EMAIL PROTECTED]> wrote : > > > What SMSC module are you using ? > > > > -- > > Oded Arbel > > m-Wise Inc. > > [EMAIL PROTECTED] > > (972)-67-340014 > > (972)-9-9581711 (ext: 116) > > > > ::.. > > "According to a new survey, women say they feel more > comfortable undressing in > > front of men than they do undressing > > in front of other women. They say that women are too > judgmental, where, of > > course, men are just grateful." > > -- Robert De Niro > > > > > > > -Original Message- > > > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, June 03, 2002 2:09 AM > > > To: Oded Arbel; [EMAIL PROTECTED] > > > Subject: RE: MySQL logging > > > > > > > > > Well, besides having mysql logging all queries made to it, I > > > don't see any extra entries in the dlr table that I made. As > > > a matter of fact, no entries at all. > > > > > > Thanks, > > > ~Hani Mustafa > > > > > > Oded Arbel &lang=en">[EMAIL PROTECTED]> > > wrote : > > > > > > > There are some minor memory leaks in the dlr module, and > > > that is what you see in > > > > the logs that you submitted. it will probably get fixed > > > when it anoys one of the > > > > developers enough to invest the time in, but is really a > > > non-issue as these are > > > > mainly static memory buffer that only get allocated once > > > and only released at > > > > the end. > > > > > > > > As for why you don't see quries being done on MySQL, I > > > cannot tell you - I'm > > > > using dlr-storage mysql for some time now with no > > > complaints. the queries are > > > > not logged in the normal logs, so you can't see them there. > > > Im not sure where > > > > you do want to see the queries, but if indeed you are > > > looking in the right place > > > > and still seeing no queries, then I'd hazard a guess that > > > DLR processing is not > > > > requested for the messages being sent. note that some (all > > > ?) of the modules > > > > only use DLR storage if the message has dlrmask set to > > > something interesting. > > > > also - some modules do not implement DLR support at all, > > > for example - the GSM > > > > modem modules (AT and AT2). > > > > > > > > -- > > > > Oded Arbel > > > > m-Wise Inc. > > > > [EMAIL PROTECTED] > > > > (972)-67-340014 > > > > (972)-9-9581711 (ext: 116) > > > > > > > > ::.. > > > > Politicians are like diapers. They both need changing > > > regularly and for the same > > > > reason. > > > > > > > > > > > > > -Original Message- > > > > > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > > > > > Sent: Sunday, June 02, 2002 4:27 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: MySQL logging > > > > > > > > > > > > > > > Hello everyone. > > > > > > > > > > I'm having problems using dlr-storage as mysql, although > > > I note the > > > > > bearerbox connecting to the sql server, no queries/inserts > > > > > are done, and > > > > > it quits normally when bearerbox ends. here is a sample > > > of the error: > > > > > > > > > > 2002-05-30 17:23:57 [0] ERROR: MYSQL: > > > > > 2002-05-30 17:23:57 [0] DEBUG: Immutable octet strings: 121. > > > > > 2002-05-30 17:23:57 [0] DEBUG: Current allocations: 18 areas, > > > > > 198 bytes > > > > > 2002-05-30 17:23:57 [0] DEBUG: Highest number of allocations: > > > > > 1065 areas > > > > > > > > > > 2002-05-30 17:23:57 [0] DEBUG: Highest memory usage: > 44709 bytes > > > > > 2002-05-30 17:23:57 [0] DEBUG: Area 0x8222910, size > 4, max_size 4 > > > > > 2002-05-30 17:23:57 [0] DEBUG: Allocated by > > > > > octstr_create_from_data_real > > > > > at gwlib/octstr.c:193 > > > > > 2002-05-30 17:23:57 [0] DEBUG: Contents of area > (first 16 bytes): > > > > > 2002-05-30 17:23:57 [0] DEBUG: 75 72 6c 00 > > > > > 2002-05-30 17:23:57 [0] DEBUG: Area 0x82227a8, size 16, > > > max_size 16 > > > > > 2002-05-30 17:23:57 [0] DEBUG: Allocated by > > > > > octstr_create_from_data_real > > > > > at gwlib/octstr.c:185 > > > > > 2002-05-30 17:23:57 [0] DEBUG: Claimed by dlr_init_mysql at > > > > > gw/dlr.c:89 > > > > > > > > > > whats wrong? is this a known issue? or am I don't > anything wrong? > > > > > I'm using gateway-1.1.6... > > > > > > > > > > Mysql logs... > > > > > > > > > > 020530 17:22:10 13 Con
MORE UPDATE: No message text in get-url or post-url - Help!
Hi Again, 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? Regards, Troy Kelly WebCentral Pty Ltd +61-7-3249-2500 1800-800-099 -Original Message-From: Troy Kelly Sent: Friday, May 31, 2002 11:33 AMTo: '[EMAIL PROTECTED]'Subject: UPDATE: No message text in get-url or post-url - Help!Sensitivity: Confidential Hi Again, I have done a packet sniff and the gateway is delivering the message text to Kannel. Details below from smsbearer 2002-05-31 01:29:40 [8] DEBUG: data: 47 45 54 20 2f 74 65 73 GET /tes2002-05-31 01:29:40 [8] DEBUG: data: 74 2e 61 73 70 3f 6d 65 t.asp?me2002-05-31 01:29:40 [8] DEBUG: data: 73 73 61 67 65 3d 20 48 ssage= H2002-05-31 01:29:40 [8] DEBUG: data: 54 54 50 2f 31 2e 31 0d TTP/1.1.2002-05-31 01:29:40 [8] DEBUG: data: 0a 48 6f 73 74 3a 20 31 .Host: 12002-05-31 01:29:40 [8] DEBUG: data: 39 32 2e 31 36 38 2e 31 92.168.12002-05-31 01:29:40 [8] DEBUG: data: 30 30 2e 31 0d 0a 55 73 00.1..Us2002-05-31 01:29:40 [8] DEBUG: data: 65 72 2d 41 67 65 6e 74 er-Agent2002-05-31 01:29:40 [8] DEBUG: data: 3a 20 4b 61 6e 6e 65 6c : Kannel2002-05-31 01:29:40 [8] DEBUG: data: 20 63 76 73 2d 0d 0a 58 cvs-..X2002-05-31 01:29:40 [8] DEBUG: data: 2d 4b 61 6e 6e 65 6c 2d -Kannel-2002-05-31 01:29:40 [8] DEBUG: data: 46 72 6f 6d 3a 20 36 31 From: 612002-05-31 01:29:40 [8] DEBUG: data: 34 30 35 36 31 39 34 32 405619422002-05-31 01:29:40 [8] DEBUG: data: 30 0d 0a 0d 0a 0 Config group = sms-servicekeyword = defaultget-url = "http://192.168.100.1/test.asp?message=%a"catch-all = truesend-sender = truestrip-keyword = falseaccept-x-kannel-headers = trueconcatenation = trueomit-empty = true Access Log 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:] Does anybody have any ideas? Regards, Troy Kelly WebCentral Pty Ltd +61-7-3249-2500 1800-800-099 -Original Message-From: Troy Kelly Sent: Thursday, May 30, 2002 3:19 PMTo: '[EMAIL PROTECTED]'Subject: No message text in get-url or post-urlSensitivity: Confidential Hi, I have tried both the 1.1.6 and the CVS release - and there is no message text in the message submitted/posted to the url. The service details are below. I have tried both get-url and post-url Post-url has a content length of 0 when it gets the incoming message. group = sms-servicekeyword = defaultget-url = "http://192.168.100.1/test.asp?%a&%r"catch-all = truesend-sender = truestrip-keyword = falseaccept-x-kannel-headers = trueconcatenation = trueomit-empty = true I am not sure what is going on - I am connecting to an SMPP gateway (Vodafone Australia) and they assure me the text is coming though. Regards, Troy Kelly WebCentral Pty Ltd +61-7-3249-2500 1800-800-099
Re: MORE UPDATE: No message text in get-url or post-url - Help!
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::], 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
RE: MORE UPDATE: No message text in get-url or post-url - Help!
Hi, I turned on the dump and there is no message body in the PDU. 2002-06-04 05:48:26 [6] DEBUG: SMPP[test-vf1]: Got PDU: 2002-06-04 05:48:26 [6] DEBUG: SMPP PDU 0x100d6228 dump: 2002-06-04 05:48:26 [6] DEBUG: type_name: deliver_sm 2002-06-04 05:48:26 [6] DEBUG: command_id: 5 = 0x0005 2002-06-04 05:48:26 [6] DEBUG: command_status: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sequence_number: 2 = 0x0002 2002-06-04 05:48:26 [6] DEBUG: service_type: "LDT2" 2002-06-04 05:48:26 [6] DEBUG: source_addr_ton: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: source_addr_npi: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: source_addr: "61405619420" 2002-06-04 05:48:26 [6] DEBUG: dest_addr_ton: 2 = 0x0002 2002-06-04 05:48:26 [6] DEBUG: dest_addr_npi: 3 = 0x0003 2002-06-04 05:48:26 [6] DEBUG: destination_addr: "0416905866" 2002-06-04 05:48:26 [6] DEBUG: esm_class: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: protocol_id: 201 = 0x00c9 2002-06-04 05:48:26 [6] DEBUG: priority_flag: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: schedule_delivery_time: "" 2002-06-04 05:48:26 [6] DEBUG: validity_period: "" 2002-06-04 05:48:26 [6] DEBUG: registered_delivery: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: replace_if_present_flag: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: data_coding: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sm_default_msg_id: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sm_length: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: short_message: "" 2002-06-04 05:48:26 [6] DEBUG: SMPP PDU dump ends. I am by no measure 'C' language ready - but, can somebody point me to where this is received and built when a deliver_sm message is received by Kannel - and perhaps I can work from there. Regards, Troy Kelly WebCentral Pty Ltd +61-7-3249-2500 1800-800-099 -Original Message- From: Jari Juslin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:02 AM To: 'Kannel - Users' Subject: Re: MORE UPDATE: No message text in get-url or post-url - Help! 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::], 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
Ericsson T28 and incoming SMS
I've got the following configuration: [SNIP] group = smsc smsc = at2 modemtype = ericsson device = /dev/ttyS0 speed = 9600 group = modems id = ericsson name = ericsson init-string = "AT+CNMI=3,3,2" enable-hwhs = "" no-pin = true group = sms-service keyword = default catch-all = true url = "http://someurl"; [SNIP] On an incoming messages it says the following in the bearerbox-log: 2002-06-04 04:06:22 [5] DEBUG: AT2[/dev/ttyS0]: <-- +CMTI: "ME",8 Can anyone tell me, why Kannel doesn't fetch the message from the phone ?? It is ignoring the message totally. -- Regards, Martin List-Petersen
ANOTHER UPDATE: No message text in get-url or post-url - Help!
Hi all, Well - I think I have found my problem - Vodafone Australia only deliver the message text in the optional 'message_payload' field. The sm_length is set to zero (0) and the short_message string is zero length. Does anybody know anyway to make kannel use the message_payload field instead of the short_message field? ...and as an aside - I really can't recommend vodafone AU as an SMSC if you are looking for one in Australia. Troy -Original Message- From: Troy Kelly Sent: Tuesday, June 04, 2002 3:51 PM To: 'Kannel - Users' Subject: RE: MORE UPDATE: No message text in get-url or post-url - Help! Hi, I turned on the dump and there is no message body in the PDU. 2002-06-04 05:48:26 [6] DEBUG: SMPP[test-vf1]: Got PDU: 2002-06-04 05:48:26 [6] DEBUG: SMPP PDU 0x100d6228 dump: 2002-06-04 05:48:26 [6] DEBUG: type_name: deliver_sm 2002-06-04 05:48:26 [6] DEBUG: command_id: 5 = 0x0005 2002-06-04 05:48:26 [6] DEBUG: command_status: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sequence_number: 2 = 0x0002 2002-06-04 05:48:26 [6] DEBUG: service_type: "LDT2" 2002-06-04 05:48:26 [6] DEBUG: source_addr_ton: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: source_addr_npi: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: source_addr: "61405619420" 2002-06-04 05:48:26 [6] DEBUG: dest_addr_ton: 2 = 0x0002 2002-06-04 05:48:26 [6] DEBUG: dest_addr_npi: 3 = 0x0003 2002-06-04 05:48:26 [6] DEBUG: destination_addr: "0416905866" 2002-06-04 05:48:26 [6] DEBUG: esm_class: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: protocol_id: 201 = 0x00c9 2002-06-04 05:48:26 [6] DEBUG: priority_flag: 1 = 0x0001 2002-06-04 05:48:26 [6] DEBUG: schedule_delivery_time: "" 2002-06-04 05:48:26 [6] DEBUG: validity_period: "" 2002-06-04 05:48:26 [6] DEBUG: registered_delivery: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: replace_if_present_flag: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: data_coding: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sm_default_msg_id: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: sm_length: 0 = 0x 2002-06-04 05:48:26 [6] DEBUG: short_message: "" 2002-06-04 05:48:26 [6] DEBUG: SMPP PDU dump ends. I am by no measure 'C' language ready - but, can somebody point me to where this is received and built when a deliver_sm message is received by Kannel - and perhaps I can work from there. Regards, Troy Kelly WebCentral Pty Ltd +61-7-3249-2500 1800-800-099 -Original Message- From: Jari Juslin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:02 AM To: 'Kannel - Users' Subject: Re: MORE UPDATE: No message text in get-url or post-url - Help! 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::], 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