Re: smsc_at2.c PDU coding

2002-11-08 Thread Stipe Tolj
thanks Andreas! Is that GSM AT PDU decoder in the cvs?! :)) If not, it should :) Stipe [EMAIL PROTECTED] --- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [EMAIL

smsc_at2.c PDU coding

2002-11-07 Thread Stipe Tolj
-- -- 0015000B811037353312F6A803F4F21C? -- -- +CMGS: 84 -- -- OK Debug output of smsc_at2.c: AT2[m20]: -- AT+CMGS=17^M AT2[m20]: -- AT2[m20]: send command status: 1 AT2[m20]: -- 0011000C91947153332361A703F4F21C AT2[m20]: -- ^Z AT2[m20]: -- AT2[m20]: -- +CMGS: 89 AT2[m20]: -- OK can someone explain

Re: smsc_at2.c PDU coding

2002-11-07 Thread Andreas Fink
On Freitag, November 8, 2002, at 02:13 Uhr, Stipe Tolj wrote: From: Stipe Tolj [EMAIL PROTECTED]> Date: Fre Nov 8, 2002 2:13:12 Uhr Europe/Zurich To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]> Subject: smsc_at2.c PDU coding Hi list, I have some problems with an Siemens M20.

tv_sec on smsc_at2

2002-10-24 Thread Andrea Viscovich
In void at2_read_buffer tv.tv_sec = 0; tv.tv_usec = 1000; ret = select(privdata-fd + 1, read_fd, NULL, NULL, tv); If I disconnect modem from serial the above select does not return anything,at leastin the 2 hours I waited :-) So I'm wondering if anybody knows ifwe should changetv.tv_usec to

RE: tv_sec on smsc_at2

2002-10-24 Thread Oded Arbel
quot;-- Isaac Asimov -Original Message-From: Andrea Viscovich [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 24, 2002 3:21 PMTo: [EMAIL PROTECTED]Subject: tv_sec on smsc_at2 In void at2_read_buffer tv.tv_sec = 0; tv.tv_usec = 1000; ret = select(privdata-fd + 1, read_fd, NUL

[BUG] smsc_at2.c: sending a one character message via Siemens M20 fails

2002-05-15 Thread Stipe Tolj
Hi there, when you connect to a M20 via the AT2 driver and try to send a one character message the whole things fails like this: 2002-05-15 09:23:25 [19] DEBUG: boxc_receiver: sms received 2002-05-15 09:23:26 [6] DEBUG: AT2[m20]: international starting with + (+49snip) 2002-05-15 09:23:26 [6]

RE: [BUG] smsc_at2.c: sending a one character message via Siemens M20 fails

2002-05-15 Thread Oded Arbel
(972)-9-9581711 (ext: 116) ::.. 'First things first -- but not necessarily in that order' -- Dr Who -Original Message- From: Stipe Tolj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: [BUG] smsc_at2.c: sending a one character

Re: Snapshots aren't being built (Was: Re: smsc_at2.c at+cmms=2)

2002-04-19 Thread Bruno David Simões Rodrigues
On Fri, 2002-04-19 at 11:26, David Holland wrote: On Thu, Apr 18, 2002 at 04:21:08PM +0100, Bruno Rodrigues wrote: something must gone wrong... snapshot-timestamp says Apr 09, snapshot doesn't have my patch and I've commited it on Apr 10 OK. There was a missing /row in userguide.xml. I

Re: Snapshots aren't being built (Was: Re: smsc_at2.c at+cmms=2)

2002-04-19 Thread David Holland
On Fri, Apr 19, 2002 at 05:14:44PM +0100, Bruno David Simões Rodrigues wrote: Shouldn't the scripts detect the error and send us an email to devel-reports ? ;) Yes :-( Dave -- David Holland =*= Systems Manager =*= tel: +44 01223 478900 http://www.3glab.com/ =*= 3G Lab,

smsc_at2.c at+cmms=2

2002-04-18 Thread Andrea Viscovich
Inside the code there is a call to at+cmms=2 if(list_len(privdata-outgoing_queue) 1) at2_send_modem_command(privdata, AT+CMMS=2, 0, 0); On all wavecom this generates an error response. Looking to at manual (wavecom) there is no mention to this. Does anybody know anything about it? Andrea

RE: smsc_at2.c at+cmms=2

2002-04-18 Thread Oded Arbel
: Andrea Viscovich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: smsc_at2.c at+cmms=2 Inside the code there is a call to at+cmms=2 if(list_len(privdata-outgoing_queue) 1) at2_send_modem_command(privdata, AT+CMMS=2, 0, 0); On all wavecom

RE: smsc_at2.c at+cmms=2

2002-04-18 Thread Alex Judd
[mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: smsc_at2.c at+cmms=2 Inside the code there is a call to at+cmms=2 if(list_len(privdata-outgoing_queue) 1) at2_send_modem_command(privdata, AT+CMMS=2, 0, 0); On all wavecom

RE: smsc_at2.c at+cmms=2

2002-04-18 Thread Bruno David Simões Rodrigues
On Thu, 2002-04-18 at 12:57, Alex Judd wrote: +CMMS is More messages to send and is used by the Siemens, however not by most other devices. Uhm. I've set it disabled by default because altough it works with nokia 6210, it ain't working with Siemens M20...

Re: smsc_at2.c at+cmms=2

2002-04-18 Thread Andrea Viscovich
Thanks Alex and Oded. but latest CVS has a configuration for that (in modems.conf) that is disabled by default for most modem types I just dowloaded latest tar.gz (snapshot). There is exactly the same code: void at2_send_messages(PrivAT2data *privdata) { Msg *msg; do {

Snapshots aren't being built (Was: Re: smsc_at2.c at+cmms=2)

2002-04-18 Thread Bruno Rodrigues
- Original Message - From: Andrea Viscovich [EMAIL PROTECTED] To: Alex Judd [EMAIL PROTECTED]; Oded Arbel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 3:51 PM Subject: Re: smsc_at2.c at+cmms=2 Thanks Alex and Oded. but latest CVS has a configuration

Re: Snapshots aren't being built (Was: Re: smsc_at2.c at+cmms=2)

2002-04-18 Thread Andrea Viscovich
Subject: Snapshots aren't being built (Was: Re: smsc_at2.c at+cmms=2) Hi Bruno, can you tell me why this happens? Still I tought snapshot were built at 4.00 every morning. Is there any reason as someone stopeed it? Cheers Andrea

Rif: RE: speed (smsc_at2.c)

2002-03-27 Thread anviscov
I think that at2 should autodetect speed if it doesn't find any speed setting, in the smsc group or modems.conf, or if the smsc speed setting is set to 0 regardless of the modems.conf setting, or the modems.conf setting is set to 0 - isn't that the case now ? No. Now you must set speed=0 if

Re: speed (smsc_at2.c)

2002-03-27 Thread Stipe Tolj
Bruno David Rodrigues wrote: If we choose the modem, should kannel autodetect the speed or try to autodetect? Andrea wants to kannel always autodetect speed unless it's explicity set in smsc group I chosed to have a known working speed in modems.conf and use it, and only force

Re: Rif: RE: speed (smsc_at2.c)

2002-03-27 Thread Stipe Tolj
[EMAIL PROTECTED] wrote: I think that at2 should autodetect speed if it doesn't find any speed setting, in the smsc group or modems.conf, or if the smsc speed setting is set to 0 regardless of the modems.conf setting, or the modems.conf setting is set to 0 - isn't that the case now ?

Re: Rif: RE: speed (smsc_at2.c)

2002-03-27 Thread Bruno David Rodrigues
PROTECTED] To: [EMAIL PROTECTED] Cc: Oded Arbel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 10:18 AM Subject: Re: Rif: RE: speed (smsc_at2.c) [EMAIL PROTECTED] wrote: I think that at2 should autodetect speed if it doesn't find any speed setting, in the smsc group

Re: Rif: RE: speed (smsc_at2.c)

2002-03-27 Thread Andrea Viscovich
+1 for me :-) Andrea - Original Message - From: Bruno David Rodrigues [EMAIL PROTECTED] To: Stipe Tolj [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Oded Arbel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 4:20 PM Subject: Re: Rif: RE: speed (smsc_at2.c) But that's

speed (smsc_at2.c)

2002-03-26 Thread Andrea Viscovich
Well, I noticed an error is caused by the different speed. As noticed by someone else there should be some problems autodetecting speed. As Bruno said speed should be autodetected if not specified, by the way is not so now (but it was). I have 6 modem wavecom 5 modem has 9600, one has 19200.

Re: speed (smsc_at2.c)

2002-03-26 Thread Bruno David Rodrigues
. - Original Message - From: Andrea Viscovich To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 3:44 PM Subject: speed (smsc_at2.c) Well, I noticed an error is caused by the different speed. As noticed by someone else there should be some problems autodetecting

Re: speed (smsc_at2.c)

2002-03-26 Thread Andrea Viscovich
If you set the modemtype, kannel will use the group from modems.conf, and if speed is unset in it, kannel uses 9600. If you explicitly want kannel to autodetect, use speed = 0 in smsc group. I would have preferred to not set speed=0 to have it autodetect. Now that I know it, I'll do it. Actually

Re: speed (smsc_at2.c)

2002-03-26 Thread Bruno David Rodrigues
Just set the speed on the smscgroup you want - Original Message - From: Andrea Viscovich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 4:27 PM Subject: Re: speed (smsc_at2.c) If you set the modemtype, kannel will use the group from modems.conf, and if speed

RE: smsc_at2

2002-02-26 Thread Oded Arbel
Gates will just redefine Darkness(TM) as the new industry standard. -Original Message- From: Andrea Viscovich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 9:49 AM To: [EMAIL PROTECTED] Subject: smsc_at2 Today I sent to my wavecom gsm modem (at2 current cvs) a sms

Rif: RE: smsc_at2

2002-02-26 Thread anviscov
we should do two things - (a) teach kannel to look for +CMT: and not any +CMT and (b) apply the SIM buffering patch Why does it do so with alphanumeric sender ? I guess it's modem dependant and nothing Kannel can do about. Hi there, I totally agree with you, we have to change to +CMT:,

smsc_at2

2002-02-25 Thread Andrea Viscovich
Today I sent to my wavecom gsm modem (at2 current cvs) a sms with alphanumeric sender. Instead of the usual +CMT:, 25 (or whatever number) and the pdu, I got: +CMTI: SM,3 nothing else. Obviusly kannel said I got CMT but wait next line timed out. I think we should do something in at2 before new

Re: [PATCH] nailed another smsc_at2.c memory leak.

2002-02-21 Thread Stipe Tolj
patch applied, thanks! Stipe [EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [EMAIL PROTECTED] Internet: http://www.wapme-systems.de

[PATCH] nailed another smsc_at2.c memory leak.

2002-02-20 Thread Oded Arbel
Patch attached. pretty straight forward. hope I've seen the last of 'em :-) TIA Oded Arbel m-Wise Inc. [EMAIL PROTECTED] -- I learned that it is the weak who are cruel, and that gentleness is to be expected only from the strong. --Leo Rosten smsc_at2.patch smsc_at2.patch

Re: [PATCH] nailed another smsc_at2.c memory leak.

2002-02-20 Thread Stipe Tolj
Oded Arbel wrote: Patch attached. pretty straight forward. hope I've seen the last of 'em :-) any objections from your side Andreas? Stipe [EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf Tel:

Re: I minor error found in gw/smsc_at2.c

2002-02-19 Thread Andreas Fink
Nektarios K. Papadopoulos wrote: I am using smsc_at with a NOKIA Premicell. Thoughth to give a try on smsc_at2. What I was getting was something like: 2002-02-20 01:20:24 [6] DEBUG: AT2[/dev/ttyS1]: -- +CSMS: (0) 2002-02-20 01:20:24 [6] DEBUG: AT2[/dev/ttyS1]: -- OK 2002-02-20 01

Re: I minor error found in gw/smsc_at2.c

2002-02-19 Thread Andreas Fink
yes this is a bug. +CSMS(0) should return Phase 2+ is not supported. the nokia premicel is probably the only device left on this planet which doesnt support phase 2+. Hi Andreas. No. I'm plenty of devices who doesn't support it. Even a wavecom dual band and a 7110. Well my 7110 and my

Re: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-26 Thread Stipe Tolj
Lucio Ferrao wrote: When smsc_at2 sent a message in 7bit the length written in the PDU did not include the escape chars. I solved the problem calling the charset_latin1_to_gsm a little earlier. This lead to missing end chars when using escaped chars []... Lucio Ferrao

RE: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Oded Arbel
PROTECTED]] Sent: Wednesday, January 23, 2002 10:06 PM Cc: Devel@Kannel. 3glab. Org Subject: Re: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit) Lucio Ferrao wrote: When smsc_at2 sent a message in 7bit the length written in the PDU did not include the escape

RE: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Jörg Pommnitz
- From: Stipe Tolj Cc: Devel@Kannel. 3glab. Org Sent: 1/23/02 9:06 PM Subject: Re: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit) Lucio Ferrao wrote: When smsc_at2 sent a message in 7bit the length written in the PDU did not include the escape chars. I solved the problem calling

RE: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Andreas Fink
Hi List, I'm thinking about a general overhaul in this area. The interaction of * 7bit escape characters * UDH with multiple IEI's * message splitting and concatenation is a big mess right now (IMHO). I agree to some extent. Things are done in different places or even done twice. We have to

FW: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Oded Arbel
, 2002 1:56 PM To: Oded Arbel Subject: RE: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit) Looks sensible. Check your at2_wait_mdoem_command which you're calling with 4 parameters in the patch however I think adding your changes to cvs makes sense. Alex On Thu, 24 Jan 2002, Oded Arbel

Re: FW: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Alex Judd
The changes make sense to me including a minor fix for error handling and the major flow changes are well commented so if someone can test in a live environment I would vote for commiting. Alex On Thu, 24 Jan 2002, Oded Arbel wrote: Hi list. Since we're already discussing the at2 gsm7bit

Re: FW: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Stipe Tolj
Oded Arbel wrote: Hi list. Since we're already discussing the at2 gsm7bit escaping issue, I would like to resubmit my suggested fix for the problem (as apparently it did not arrive to the proper authorities the first time). my apologies if you are reading it for the second time. I would

Re: FW: [PATCH] smsc_at2.c not counting escape caracters (gsm7bit)

2002-01-24 Thread Stipe Tolj
Stipe Tolj wrote: Just applied the patch to a test environment and giving it a try for various smsc types. tested messages via EMI2, SMPP and AT2, all ok. +1 for commitment from my side. Can someone test against the issues the patch is fixing, I guess I only tried to send normal messages

RE: A question about PDU encoding in smsc_at2

2002-01-15 Thread Oded Arbel
septets or octets this message will contain after encoding (based on the message's coding). I then changed smsc_at2.c to use that function to intialize len in at2_pdu_encode() to the right value, no matter what encoding the msg will be delivered. then to the real problem at hand : to shared.c I

RE: A question about PDU encoding in smsc_at2

2002-01-14 Thread Oded Arbel
. -- Fishizm -Original Message- From: Andreas Fink [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 9:19 AM To: Oded Arbel Subject: RE: A question about PDU encoding in smsc_at2 oh - I get it : the UDH is already encoded correctly using the right DCS before the call

Re: A question about PDU encoding in smsc_at2

2002-01-14 Thread Alexei Pashkovsky
(for example - the square brackets which I like to use), the modem rejects the message with error 304 invalid PDU mode parameter. Well, this will probably hurt you, but I'm afraid square brackets are not part of GSM character set. At least I didn't see them there.

RE: A question about PDU encoding in smsc_at2

2002-01-14 Thread Oded Arbel
-Original Message- From: Alexei Pashkovsky [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 5:09 PM To: Oded Arbel Cc: Kannel-devel (E-mail) Subject: Re: A question about PDU encoding in smsc_at2 (for example - the square brackets which I like to use), the modem rejects

Re: A question about PDU encoding in smsc_at2

2002-01-14 Thread Dave White
Alexei Pashkovsky wrote: (for example - the square brackets which I like to use), the modem rejects the message with error 304 invalid PDU mode parameter. Well, this will probably hurt you, but I'm afraid square brackets are not part of GSM character set. At least I didn't see them there.

RE: A question about PDU encoding in smsc_at2

2002-01-14 Thread Oded Arbel
choose any direction. -Original Message- From: Dave White [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 5:26 PM To: Kannel-devel (E-mail) Subject: Re: A question about PDU encoding in smsc_at2 Alexei Pashkovsky wrote: (for example - the square brackets which I like to use

RE: A question about PDU encoding in smsc_at2

2002-01-14 Thread Andreas Fink
This is not exactly what I had in mind - (a) as this kind of string would get translated by kannel to '?' as ESC will be translated directly to '?'. (b) the GSM standards _currently_ do define the ESC sequences as valid. I'm not really worried about current standard support in phone (as newer

RE: A question about PDU encoding in smsc_at2

2002-01-13 Thread Oded Arbel
: A question about PDU encoding in smsc_at2 Hi list. I was wandering about this part from smsc_at2.c : snip if(octstr_len(msg-sms.udhdata)) { if (msg-sms.coding == DC_8BIT || msg-sms.coding == DC_UCS2) { len += octstr_len(msg-sms.udhdata); } else

smsc_at2 module doesnot detect failed writes to modem.

2002-01-08 Thread Oded Arbel
well it doesn't - I can prove it :-) at2_write_line_cstr always return 0 no matter what happens. what do you say about this patch ? Oded Arbel m-Wise ltd. smsc_at2.patch Description: smsc_at2.patch

Re: smsc_at2 module doesnot detect failed writes to modem.

2002-01-08 Thread Andreas Fink
well it doesn't - I can prove it :-) at2_write_line_cstr always return 0 no matter what happens. what do you say about this patch ? You're right by saying at2_write_line_cstr always returns 0. I consider that a cosmetic bug. However that has absolutely no influence as the return code is

RE: smsc_at2 module doesnot detect failed writes to modem.

2002-01-08 Thread Oded Arbel
the at2_wait_modem_command call which would have failed anyway. Oded Arbel m-Wise ltd. -Original Message- From: Andreas Fink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 6:43 PM To: Oded Arbel Cc: [EMAIL PROTECTED] Subject: Re: smsc_at2 module doesnot detect failed writes to modem. well

Re: question about smsc_AT2

2001-10-24 Thread Andreas Fink
Title: Re: question about smsc_AT2 hello, i ask you this question some days ago but i never got a clear answer here it is again, i would like to use smsc_at2 file but i amnot sure which file to update to tell kannel that i want to use at2 and not at could you please tell me which file