RE: Access MMSC from Internet

2002-03-07 Thread alindh


Nokia just released this: 
http://www.forum.nokia.com/smsforum/main/1,35452,1_2_7_4,00.html (requires 
registration). 
It's basically a Java API to access a Nokia MMSC, and an emulator.

- Anders

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of 
Jibin Xiang
Sent: 7. maaliskuuta 2002 3:53
To: [EMAIL PROTECTED]
Subject: Access MMSC from Internet



We use SMPP/UCP-EMI to access SMSC.  Do we have similar protocol for internet 
applications to access MMSC?

Thanks,
Jibin






RE: [PATCH] mysql host,user,password configurtion for DLR

2002-03-07 Thread Oded Arbel

Here's a patch to userguide.xml. hope this is good eough (I'm not very
bright at writing documentation :-).

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]

Nothing ever becomes real until it is experienced. 
-- John Keats 


> -Original Message-
> From: Bruno David Rodrigues [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 5:06 PM
> To: Oded Arbel
> Cc: Kannel-devel (E-mail)
> Subject: Re: [PATCH] mysql host,user,password configurtion for DLR
> 
> 
> I've added your patch (and added a mysql-dbname configuration too, 
> so you can have several kannel's running and define a different db for
> each one), but now I need information to put in userguide regarding
> mysql and dlr.
> 
> could you send me ? userguide.xml patch or text only...
> 
> group, config values, usage, etc
> 
> 
> - Original Message - 
> From: "Oded Arbel" <[EMAIL PROTECTED]>
> To: "Kannel-devel (E-mail)" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 1:52 PM
> Subject: [PATCH] mysql host,user,password configurtion for DLR
> 
> 
> Hi list.
> 
> A quick patch to add support for changing the mysql database hostname,
> username and password for use in DLR (with mysql). 
> Tested with defaults (hardcoded in the source) and settings in the
> config file both for local and remote servers.
> 
> As usuall, "Works for me(tm)" and YMMV.
> 
> Oded Arbel
> m-Wise Inc.
> [EMAIL PROTECTED]
> 
> --
> Finagle's Fourth Law:
> Once a job is fouled up, anything done to improve it 
> only makes
> it worse.
> 
> 
> 
> 
> 
> 



userguide.patch
Description: userguide.patch


Re: Access MMSC from Internet

2002-03-07 Thread Aarno Syvänen

And protocols are SMTP and IMAP (you can use POP, if you must).

aarno

[EMAIL PROTECTED] wrote:
> 
> Nokia just released this: 
>http://www.forum.nokia.com/smsforum/main/1,35452,1_2_7_4,00.html (requires 
>registration).
> It's basically a Java API to access a Nokia MMSC, and an emulator.
> 
> - Anders
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf 
>Of Jibin Xiang
> Sent: 7. maaliskuuta 2002 3:53
> To: [EMAIL PROTECTED]
> Subject: Access MMSC from Internet
> 
> We use SMPP/UCP-EMI to access SMSC.  Do we have similar protocol for internet 
>applications to access MMSC?
> 
> Thanks,
> Jibin




Re: [RFI] octstr_recode

2002-03-07 Thread Aarno Syvänen

Hi Bruno,

Bruno David Rodrigues wrote:
> 
> %c is the sms.coding variable, so if smsc_* code is using the dcs_to_fields,
> it must have the right value
> 
> (yes, coding=2 and charset=binary <- what should I use here ? )

And binary message would be forwarded to the sms-service as it is,
without any
modifications ?

Aarno




GSM Modem

2002-03-07 Thread Saurabh Bhardwaj

Hi

We are looking for a high-end GSM modem (not simple mobile
phone!!) which can talk to SUN Solaris m/c over serial port and
send/receive short messages in UK. The modem should have built in power
supply. 
We are keen on modem with reference history (used and working with no
hitches).

Any info/links will be highly appreciated.

Regards,

PS: I apologize if it was already discussed ( I am in crises !).





**Disclaimer
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.




AW: GSM Modem

2002-03-07 Thread Jörg Pommnitz

I think a mobile phone fits your requirements quite nicely
(except for the fact that it is a mobile phone). There are
billions of them in daily use and they come with a builtin 
battery that provides UPS for a day or so.
The chips and the software in mobile phones is in no way 
different from so called GSM modems. It's just a different
packaging.
A mobile phone might look a little bit unprofessional, but
you could wrap it in a more serious looking case.

Regards
  Jörg

 > -Ursprüngliche Nachricht-
 > Von: Saurabh Bhardwaj [mailto:[EMAIL PROTECTED]]
 > Gesendet am: Donnerstag, 7. März 2002 11:46
 > An: [EMAIL PROTECTED]
 > Cc: [EMAIL PROTECTED]
 > Betreff: GSM Modem
 > 
 > Hi
 > 
 > We are looking for a high-end GSM modem (not simple mobile
 > phone!!) which can talk to SUN Solaris m/c over 
 > serial port and
 > send/receive short messages in UK. The modem should have 
 > built in power
 > supply. 
 > We are keen on modem with reference history (used and working with no
 > hitches).
 > 
 > Any info/links will be highly appreciated.
 > 
 > Regards,
 > 
 > PS: I apologize if it was already discussed ( I am in crises 
 > !).
 > 
 > 
 > 
 > 




RE: GSM Modem

2002-03-07 Thread Oded Arbel


In my company we use Wavecom modems (specificly WM02B model), and its
working perfectly for our needs (very high loads for both sending and
receiving). it does not have a builtin power supply, but use an external
adapter, but in addition to the external power adapter it comes with a
connector and wires that allow you to connect the modem directly to any
12v DC power output, so you could have (for example) a single power
source with battery backup power your entire modem rack.

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]

For every credibility gap, there is a gullibility fill.
-- R. Clopton


> -Original Message-
> From: Saurabh Bhardwaj [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: GSM Modem
> 
> 
> Hi
> 
> We are looking for a high-end GSM modem (not simple mobile
> phone!!) which can talk to SUN Solaris m/c over 
> serial port and
> send/receive short messages in UK. The modem should have 
> built in power
> supply. 
> We are keen on modem with reference history (used and working with no
> hitches).
> 
> Any info/links will be highly appreciated.
> 
> Regards,
> 
> PS: I apologize if it was already discussed ( I am in crises 
> !).
> 
> 
> 
> 




smpp disconneted

2002-03-07 Thread Patrick Mignott



hi all has anyone  ever had a GOT enquire_link error from a smsc, 
via SMPP. i am getting the following error
***[1710] ERROR: SMPP: Unknown PDU type 0x0015, 
ignored.*i am getting disconected from my 
SMSC and i think it because of this error
this i a part of the error file/2002-03-05 11:42:23 [22] DEBUG: SMPP: 
Waiting for data2002-03-05 11:42:30 [20] DEBUG: SMPP: Got enquire_link 
PDU.**2002-03-05 11:42:30 [20] DEBUG: SMPP PDU 00F45640 dump:2002-03-05 
11:42:30 [20] DEBUG:   type_name: enquire_link2002-03-05 11:42:30 
[20] DEBUG:   command_id: 21 = 0x00152002-03-05 11:42:30 [20] 
DEBUG:   command_status: 0 = 0x2002-03-05 11:42:30 [20] 
DEBUG:   sequence_number: 3 = 0x00032002-03-05 11:42:30 [20] 
DEBUG: SMPP PDU dump ends.2002-03-05 11:42:30 [20] ERROR: SMPP: Unknown PDU 
type 0x0015, ignored.***2002-03-05 11:42:30 [20] DEBUG: SMPP: 
Waiting for data2002-03-05 11:42:33 [22] DEBUG: SMPP: Got enquire_link 
PDU.**2002-03-05 11:42:33 [22] DEBUG: SMPP PDU 00F45640 dump:2002-03-05 
11:42:33 [22] DEBUG:   type_name: enquire_link2002-03-05 11:42:33 
[22] DEBUG:   command_id: 21 = 0x00152002-03-05 11:42:33 [22] 
DEBUG:   command_status: 0 = 0x2002-03-05 11:42:33 [22] 
DEBUG:   sequence_number: 1 = 0x00012002-03-05 11:42:33 [22] 
DEBUG: SMPP PDU dump ends.2002-03-05 11:42:33 [22] ERROR: SMPP: Unknown PDU 
type 0x0015, ignored***
 
can anyone help.


Re: Wapbox problems with new Nokia phones

2002-03-07 Thread Pekka Ahmavuo

Here is everything from wapbox log related to a failed request. The phone was  
was Nokia 6310.

-pekka

2002-03-07 14:35:36 [0] DEBUG: Msg object at 0x8200630:
2002-03-07 14:35:36 [0] DEBUG:  type: wdp_datagram
2002-03-07 14:35:36 [0] DEBUG:  wdp_datagram.source_address:
2002-03-07 14:35:36 [0] DEBUG:  Octet string at 0x81e0558:
2002-03-07 14:35:36 [0] DEBUG:len:  12
2002-03-07 14:35:36 [0] DEBUG:size: 13
2002-03-07 14:35:36 [0] DEBUG:immutable: 0
2002-03-07 14:35:36 [0] DEBUG:data: 38 30 2e 39 35 2e 31 33   80.95.13
2002-03-07 14:35:36 [0] DEBUG:data: 30 2e 33 30   0.30
2002-03-07 14:35:36 [0] DEBUG:  Octet string dump ends.
2002-03-07 14:35:36 [0] DEBUG:  wdp_datagram.source_port: 61196
2002-03-07 14:35:36 [0] DEBUG:  wdp_datagram.destination_address:
2002-03-07 14:35:36 [0] DEBUG:  Octet string at 0x8200710:
2002-03-07 14:35:36 [0] DEBUG:len:  7
2002-03-07 14:35:36 [0] DEBUG:size: 8
2002-03-07 14:35:36 [0] DEBUG:immutable: 0
2002-03-07 14:35:36 [0] DEBUG:data: 30 2e 30 2e 30 2e 30  0.0.0.0
2002-03-07 14:35:36 [0] DEBUG:  Octet string dump ends.
2002-03-07 14:35:36 [0] DEBUG:  wdp_datagram.destination_port: 9201
2002-03-07 14:35:36 [0] DEBUG:  wdp_datagram.user_data:
2002-03-07 14:35:36 [0] DEBUG:  Octet string at 0x8200778:
2002-03-07 14:35:36 [0] DEBUG:len:  146
2002-03-07 14:35:36 [0] DEBUG:size: 147
2002-03-07 14:35:36 [0] DEBUG:immutable: 0
2002-03-07 14:35:36 [0] DEBUG:data: 00 71 0e 00 01 12 01 10   .q..
2002-03-07 14:35:36 [0] DEBUG:data: 0b 5e 03 80 95 70 03 81   .^...p..
2002-03-07 14:35:36 [0] DEBUG:data: 95 70 02 83 14 80 94 80   .p..
2002-03-07 14:35:36 [0] DEBUG:data: 95 80 a1 80 98 80 9d 80   
2002-03-07 14:35:36 [0] DEBUG:data: 83 80 87 80 86 80 61 70   ..ap
2002-03-07 14:35:36 [0] DEBUG:data: 70 6c 69 63 61 74 69 6f   plicatio
2002-03-07 14:35:36 [0] DEBUG:data: 6e 2f 78 2d 4e 6f 6b 69   n/x-Noki
2002-03-07 14:35:36 [0] DEBUG:data: 61 47 61 6d 65 44 61 74   aGameDat
2002-03-07 14:35:36 [0] DEBUG:data: 61 00 83 9f 81 84 81 02   a...
2002-03-07 14:35:36 [0] DEBUG:data: ea 51 81 04 02 03 e8 3d   .Q.=
2002-03-07 14:35:36 [0] DEBUG:data: a9 4e 6f 6b 69 61 36 33   .Nokia63
2002-03-07 14:35:36 [0] DEBUG:data: 31 30 2f 31 2e 30 20 28   10/1.0 (
2002-03-07 14:35:36 [0] DEBUG:data: 30 34 2e 31 30 29 00 58   04.10).X
2002-03-07 14:35:36 [0] DEBUG:data: 2d 57 41 50 2e 54 4f 44   -WAP.TOD
2002-03-07 14:35:36 [0] DEBUG:data: 00 01 00 1e 0e 00 02 12   
2002-03-07 14:35:36 [0] DEBUG:data: 40 18 68 74 74 70 3a 2f   @.http:/
2002-03-07 14:35:36 [0] DEBUG:data: 2f 77 61 70 2e 6d 74 61   /wap.mta
2002-03-07 14:35:36 [0] DEBUG:data: 6d 70 65 72 65 2e 63 6f   mpere.co
2002-03-07 14:35:36 [0] DEBUG:data: 6d 2f m/
2002-03-07 14:35:36 [0] DEBUG:  Octet string dump ends.
2002-03-07 14:35:36 [0] DEBUG: Msg object ends.
2002-03-07 14:35:36 [6] DEBUG: WTP: Created WTPRespMachine 0x81dfaa0 (0)
2002-03-07 14:35:36 [6] DEBUG: WTP: resp_machine 0, state LISTEN, event RcvInvo\
ke.
2002-03-07 14:35:36 [6] DEBUG: WTP 0: New state INVOKE_RESP_WAIT
2002-03-07 14:35:36 [1] DEBUG: WSP: Created WSPMachine 0x81df3a8
2002-03-07 14:35:36 [1] DEBUG: WSP: machine 0x81df3a8, state NULL_SESSION, even\
t TR-Invoke.ind
2002-03-07 14:35:36 [1] DEBUG: WSP: decoding headers:
2002-03-07 14:35:36 [1] DEBUG: Octet string at 0x81dfb28:
2002-03-07 14:35:36 [1] DEBUG:   len:  94
2002-03-07 14:35:36 [1] DEBUG:   size: 95
2002-03-07 14:35:36 [1] DEBUG:   immutable: 0
2002-03-07 14:35:36 [1] DEBUG:   data: 80 94 80 95 80 a1 80 98   
2002-03-07 14:35:36 [1] DEBUG:   data: 80 9d 80 83 80 87 80 86   
2002-03-07 14:35:36 [1] DEBUG:   data: 80 61 70 70 6c 69 63 61   .applica
2002-03-07 14:35:36 [1] DEBUG:   data: 74 69 6f 6e 2f 78 2d 4e   tion/x-N
2002-03-07 14:35:36 [1] DEBUG:   data: 6f 6b 69 61 47 61 6d 65   okiaGame
2002-03-07 14:35:36 [1] DEBUG:   data: 44 61 74 61 00 83 9f 81   Data
2002-03-07 14:35:36 [1] DEBUG:   data: 84 81 02 ea 51 81 04 02   Q...
2002-03-07 14:35:36 [1] DEBUG:   data: 03 e8 3d a9 4e 6f 6b 69   ..=.Noki
2002-03-07 14:35:36 [1] DEBUG:   data: 61 36 33 31 30 2f 31 2e   a6310/1.
2002-03-07 14:35:36 [1] DEBUG:   data: 30 20 28 30 34 2e 31 30   0 (04.10
2002-03-07 14:35:36 [1] DEBUG:   data: 29 00 58 2d 57 41 50 2e   ).X-WAP.
2002-03-07 14:35:36 [1] DEBUG:   data: 54 4f 44 00 01 00 TOD...
2002-03-07 14:35:36 [1] DEBUG: Octet string dump ends.
2002-03-07 14:35:36 [1] DEBUG: WSP: decoded headers:
2002-03-07 14:35:36 [1] DEBUG: Accept: application/vnd.wap.wmlc
2002-03-07 14:35:36 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
2002-03-07 14:35:36 [1] DEBUG: Accept: image/vnd.wap.wbmp
2002-03-07 14:35:36 [1] DEBUG: Accept: application/vnd.wap.wtls-ca-certificate
2002-03-07 14:35:36 [1] DEBUG: Accept: image/gif
2002-03-07 14:35:36 [1] DEBUG: Accept: text/plain
2002-03-07 14:35:36 [1] DEBUG: Accept: text/x-vCa

Bug in sms_split() ?

2002-03-07 Thread Paul Keogh


I've a problem when I send a 160 character message (7BIT coding)
to an M20 - the M20 fails with a CMS 304 because the charset_latin1_to_gsm()
function *increases* the size of the message to 163 characters due to
GSM code escaping.

I think sms_split() should figure this in for the SMS box. If you insert the
lines;

list = list_create();
+
+   if (octstr_len (temp->sms.msgdata) > max_part_len)
+   max_part_len = max_part_len - (sms_msgdata_len (temp) -
+   octstr_len (temp->sms.msgdata));
+
do {

you adjust max_part_len accordingly. This is quite coarse as ideally you'd
figure out which part-> contains characters to be expanded and only reduce
its
max_part_len rather than reduce all part->'s.

Comments ?

Paul Keogh
ANAM Wireless Internet Solutions
http://www.anam.com
+353 1 284 7555 (wired)   +353 86 234 6047 (wireless)
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland






RE: Bug in sms_split() ?

2002-03-07 Thread Oded Arbel

The behaviour you describe is a know bug and it was fixed recently (I
think two or three weeks ago). are you uptodate on the CVS ?

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]

[..]
A 16-head Cray C90 with some reasonable amount of disk costs $40M
For $40M, you could buy 4000 workstations and have enough left over to
buy a really cool switch with which to hook them together.

So what would you rather have pulling your wagon, 16 oxen or 4000
chickens
with a frictionless harness?
[..]
-- Larry MeadowsThe Portland Group


> -Original Message-
> From: Paul Keogh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 5:11 PM
> To: Kannel Development List (E-mail)
> Subject: Bug in sms_split() ?
> 
> 
> 
> I've a problem when I send a 160 character message (7BIT coding)
> to an M20 - the M20 fails with a CMS 304 because the 
> charset_latin1_to_gsm()
> function *increases* the size of the message to 163 characters due to
> GSM code escaping.
> 
> I think sms_split() should figure this in for the SMS box. If 
> you insert the
> lines;
> 
> list = list_create();
> +
> + if (octstr_len (temp->sms.msgdata) > max_part_len)
> + max_part_len = max_part_len - (sms_msgdata_len (temp) -
> + octstr_len (temp->sms.msgdata));
> +
> do {
> 
> you adjust max_part_len accordingly. This is quite coarse as 
> ideally you'd
> figure out which part-> contains characters to be expanded 
> and only reduce
> its
> max_part_len rather than reduce all part->'s.
> 
> Comments ?
> 
> Paul Keogh
> ANAM Wireless Internet Solutions
> http://www.anam.com
> +353 1 284 7555 (wired)   +353 86 234 6047 (wireless)
> Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
> 
> 
> 
> 




Re: GSM Modem

2002-03-07 Thread dirkx


The Siemens Cellular Engine's MC ## work fine - but really they are just
normal phones. Their serial port is a bit faster - it is a bit easier to
mount in a 1U rack box with all the extra bits - but you are limited by
the air speed anyway.

The only real reason to use those is that they are much easier to mount
securely - i.e. lock them down against vibrations, theft, have the case
opened by laymen with no issues, etc.

Dw.

On Thu, 7 Mar 2002, Saurabh Bhardwaj wrote:

> Hi
>
> We are looking for a high-end GSM modem (not simple mobile
> phone!!) which can talk to SUN Solaris m/c over serial port and
> send/receive short messages in UK. The modem should have built in power
> supply.
> We are keen on modem with reference history (used and working with no
> hitches).
>
> Any info/links will be highly appreciated.
>
> Regards,
>
> PS: I apologize if it was already discussed ( I am in crises !).
>
>
>
>






Re: Access MMSC from Internet

2002-03-07 Thread Jibin Xiang

It seems to me Nokia's MMSC uses HTTP instead of SMTP/IMAP/POP.
I also learned from Nokia's web site that there is no standard protocol
defined yet so far. 3gpp is working on it now.   A standart protocol will
come out around 1H/2002 (what's 1H? first half?).

Jibin

Aarno Syvänen wrote:

> And protocols are SMTP and IMAP (you can use POP, if you must).
>
> aarno
>
> [EMAIL PROTECTED] wrote:
> >
> > Nokia just released this: 
>http://www.forum.nokia.com/smsforum/main/1,35452,1_2_7_4,00.html (requires 
>registration).
> > It's basically a Java API to access a Nokia MMSC, and an emulator.
> >
> > - Anders
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf 
>Of Jibin Xiang
> > Sent: 7. maaliskuuta 2002 3:53
> > To: [EMAIL PROTECTED]
> > Subject: Access MMSC from Internet
> >
> > We use SMPP/UCP-EMI to access SMSC.  Do we have similar protocol for internet 
>applications to access MMSC?
> >
> > Thanks,
> > Jibin





which mobil phone for receiving SMS ?

2002-03-07 Thread Jens Kammann

Hi,

I have quite a trouble finding a phone which works with kannel for
receiving SMS. Sending SMS works fine, so I assume my kannel
configuration is ok.

I started with a Siemens S35: This phone is only routing incoming SMS to
the serial port if initialized as follows: at+csms=1;+cnmi=1,2,0,0,1
So I modified the init sequence in "smsc_at.c" and it works well for the
first incoming SMS. All subsequent SMSs are sent to the phone's SIM card.
I checked it with a terminal program, and to my surprise was "at+cnmi?"
reset back to "1,1,0,0,1". This would mean I have to send
at=cnmi=1,2,0,0,1 every time a SMS has arrived.
Other Siemens phones (C35, SL45i) behave the same way. Also, I had to
modify the init routine of smsc_at.c: The original codes sends "ATE0" to
the phone and returns with an error if it fails. It turned out that the
Siemens phones most of the time respond with "ERROR" to the first
command, so I added an "AT"-Command without checking the result. With
this modification, 'bearerbox' runs without communication errors.

Next, I tried a "Motorola Timeport 260": It does not allow
+cnmi=1,2,0,0,(0-1), and I couldn't find any combination of parameters
that would route incoming  SMS direct to kannel.

Same with a "Sony J5". The +cnmi-command is more tolerant (not
responding with ERROR), but chechking back with at+cnmi? always returns
"0,0,0,0,0", causing again all incoming SMS to be stored on the phone.

Last I tried a "Nokia Data card 2.0" which looks fine from the terminal
(at+cnmi=1,2,0,0,0 causes all incoming SMS to be displayed in the
terminal in PDU format). However, I was unable to get KANNEL run under
Win2000. It would open COM5, but causes a "PANIC" while sending the
AT+CPIN command.

So what devices are you using ?

regards,
Jens








Major bug ? (Was: Fw: Daily patch: gateway)

2002-03-07 Thread Bruno David Rodrigues


- Original Message -
From: "kannel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 6:30 AM
Subject: Daily patch: gateway


> +2002-03-07  Stipe Tolj  <[EMAIL PROTECTED]>
> +* gw/cfg.[ch]: implemented inclusion feature for configuration file
> +  processing. Now you may use 'include = "foobar.conf"' anywhere in
> +  the config file to include sub-configuration parts.
> +* doc/userguide/userguide.xml: added section which describes the new
> +  'include' configuration directive.
> +
(...)
>/*
> * this is a "normal" line, so process it accodingly
> */
>else  {
(...)
> +/*
> + * Remember where the group has been defined.
> + * This may be referenced in several other places,
> + * i.e. dump_group()
> + */
> +grp->configfile = octstr_duplicate(loc->filename);
> +grp->line = loc->line_no;
> +
> +cfg_set(grp, name, value);
> +octstr_destroy(name);
> +octstr_destroy(value);
> +}
> +}

This is totally wrong!

Have you checked your patch ? like killing smsbox and checking the zillion
warnings ?

Every line in kannel.conf would create a new octstr in that
octstr_duplicate!

I've checked the code and the functioning of this module is something like
this:

. kannel reads the file and search for empty lines (*1).
. It reads the  =  and add it to a hash table (grp)
. when it gets to another empty line, add that group to another hash table
(cfg) and create a
new group (grp).

Then later, it will check for a group =  for each grp in cfg.

The hash table function (dict_put) only accepts a key and a value, so you
can't put the line
number in it, therefor you can't inject the line number for every line read.

The best we can do is to define the filename and first line of the group.

I'm commiting a patch for this one.




(*1) empty lines, comments or alike






Re: [PATCH] mysql host,user,password configurtion for DLR

2002-03-07 Thread Bruno David Rodrigues

8P
this patch is the easy part.

What about the "question of life, the universe and everything" :
what and why a database to dlr ? where's needed, how does it work, 
mysql table formats, 
etc.

Everything!
There's nothing about mysql in documentation and sincerely, I don't yet
understand why we need mysql... ;)


- Original Message - 
From: "Oded Arbel" <[EMAIL PROTECTED]>
To: "Bruno David Rodrigues" <[EMAIL PROTECTED]>
Cc: "Kannel-devel (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 8:46 AM
Subject: RE: [PATCH] mysql host,user,password configurtion for DLR


Here's a patch to userguide.xml. hope this is good eough (I'm not very
bright at writing documentation :-).

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]

Nothing ever becomes real until it is experienced. 
-- John Keats 


> -Original Message-
> From: Bruno David Rodrigues [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 5:06 PM
> To: Oded Arbel
> Cc: Kannel-devel (E-mail)
> Subject: Re: [PATCH] mysql host,user,password configurtion for DLR
> 
> 
> I've added your patch (and added a mysql-dbname configuration too, 
> so you can have several kannel's running and define a different db for
> each one), but now I need information to put in userguide regarding
> mysql and dlr.
> 
> could you send me ? userguide.xml patch or text only...
> 
> group, config values, usage, etc
> 
> 
> - Original Message - 
> From: "Oded Arbel" <[EMAIL PROTECTED]>
> To: "Kannel-devel (E-mail)" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 1:52 PM
> Subject: [PATCH] mysql host,user,password configurtion for DLR
> 
> 
> Hi list.
> 
> A quick patch to add support for changing the mysql database hostname,
> username and password for use in DLR (with mysql). 
> Tested with defaults (hardcoded in the source) and settings in the
> config file both for local and remote servers.
> 
> As usuall, "Works for me(tm)" and YMMV.
> 
> Oded Arbel
> m-Wise Inc.
> [EMAIL PROTECTED]
> 
> --
> Finagle's Fourth Law:
> Once a job is fouled up, anything done to improve it 
> only makes
> it worse.
> 
> 
> 
> 
> 
> 






[BUG] Bearerbox don't detect smsbox's dead

2002-03-07 Thread Bruno David Rodrigues



Bearerbox don't detect when smsbox quits (with 
-TERM or -KILL or PANIC) and therefor
bearerbox thread count grows.
 

I had a bug in smsbox that makes it crash and 
restart, and after a while, 
I had 300 bearerbox threads. Then I've connected to 
the internet and fixed the bug
and restarted everything.
 
Any idea of how heartbeat works and why bearerbox's 
threads don't die ?
 
 


Re: [PATCH] mysql host,user,password configurtion for DLR

2002-03-07 Thread Andreas Fink

>8P
>this patch is the easy part.
>
>What about the "question of life, the universe and everything" :
>what and why a database to dlr ? where's needed, how does it work,
>mysql table formats,
>etc.
>
>Everything!
>There's nothing about mysql in documentation and sincerely, I don't yet
>understand why we need mysql... ;)

Send a million SMS with delivery reports and have it crash and you 
will see quite easily why we need mySQL. But of course kannel never 
crashes so your question is valid :-)
-- 

Andreas Fink
Fink-Consulting

--
Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland
E-Mail:  [EMAIL PROTECTED]  Homepage: http://www.finkconsulting.com
--
Something urgent? Try http://www.smsrelay.com/  Nickname afink




next patch

2002-03-07 Thread Bruno David Rodrigues



Tomorrow, I'm gonna commit the following, 
after triple-checking everything, write documentation
and changelog:
 
- mysql configuration -> odded patch and 
something more
- uniformization in at2 and emi2 logs: every 
debug/info/etc line says EMI2[%s]: or AT2[%s]: 
at2 remains with device name, emi2 uses the smsc-id 
or if undefined, our-host:our-port->host:port
(or shorter string combinations if our-host or 
our-port is undefined)
- emi2 our-host configuration
- emi2 alt-host or/and alt-port -> if host 
connection fails, kannel try to connect to alt-host:alt-port
(or combinations of host:alt-port or alt-host:port 
if one is undefined)
- %u with udh value in sendsms-service 

- fix to latest patch
- I've added a header "Server: kannel-VERSION" 
to http 
 
 
 


Re: [PATCH] mysql host,user,password configurtion for DLR

2002-03-07 Thread Bruno David Rodrigues


- Original Message -
From: "Andreas Fink" <[EMAIL PROTECTED]>
To: "Bruno David Rodrigues" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 12:57 AM
Subject: Re: [PATCH] mysql host,user,password configurtion for DLR


> >8P
> >this patch is the easy part.
> >
> >What about the "question of life, the universe and everything" :
> >what and why a database to dlr ? where's needed, how does it work,
> >mysql table formats,
> >etc.
> >
> >Everything!
> >There's nothing about mysql in documentation and sincerely, I don't yet
> >understand why we need mysql... ;)
>
> Send a million SMS with delivery reports and have it crash and you
> will see quite easily why we need mySQL. But of course kannel never
> crashes so your question is valid :-)

Kannel crashes if you set dlrmask and don't have a dlr-url neither in config
nor the GET :P

But that's probably one of my patches and I'll look at it.

So, you are saying that mysql is used instead of store.lock for dlr ?
That sounds good to me, but there's nothing in documentation


> --
>
> Andreas Fink
> Fink-Consulting
>
> --
> Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
> Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland
> E-Mail:  [EMAIL PROTECTED]  Homepage: http://www.finkconsulting.com
> --
> Something urgent? Try http://www.smsrelay.com/  Nickname afink
>





connection refused

2002-03-07 Thread lemms lemms

Hi,

Not sure what's wrong.
I couldn't start my SMSC after changing my version to the CVS.
I've started a bearer box and a wapbox and when I tried to start the smsbox 
it just come out with the following error message.
I did not had time to change any of the default settings yet, so its a clean 
CVS version.

I shut down the wapbox and then I can start up smsbox, but wapbox cannot 
start up after it. Seems like only 1 box per bearerbox. But that shouldn't 
be the case should it? Could someone point me in the right direction?

I'm using a laptop, cygwin. btw, how do I connect my nokia 8210 by infra to 
my laptop? Was using premicell on PC before.

Thanks for any help,

Louis Chua

2002-03-08 02:29:49 [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
2002-03-08 02:29:49 [0] INFO: Service global sender set as '13013'
2002-03-08 02:29:49 [0] INFO: Set up send sms service at port 13013
2002-03-08 02:29:50 [0] ERROR: connect failed
2002-03-08 02:29:50 [0] ERROR: System error 111: Connection refused
2002-03-08 02:29:50 [0] ERROR: error connecting to server `localhost' at 
port `13001'
2002-03-08 02:29:50 [0] PANIC: Couldn't connect to the bearerbox.



"I'm pretty sure that there is more to life than just been really, really 
good looking, and I plan on finding out what that is."

-Derek Zoolander


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





quick and simple question

2002-03-07 Thread Patrick Mignott



it guess this is a yes  or no question does 
kannel support SMSC-originated enquire_link ?


SMPP login on timer

2002-03-07 Thread Patrick Mignott



how can i adjust the SMPP login retry after 
disconnection, since kannel does not seem to support SMSC-originated 
enquire_link, i would like to put the login try to 10-15 seconds instead of 60 
seconds as a work around.


RE: Delivery Report crash Kannel

2002-03-07 Thread Dedy Sutanto

My 572 of smsc_smpp.c is dlr_add(octstr_get_cstr(smpp->conn->id).

The block of codes like this:

Octstr *tmp;

/* deliver gives mesg id in decimal, submit_sm in hex.. */
tmp =
octstr_format("%ld",strtol(octstr_get_cstr(pdu->u.submit_sm_resp.message_id)
,NULL,16));
/* SMSC ACK.. now we have the message id. */

if (msg->sms.dlr_mask &
(DLR_SMSC_SUCCESS|DLR_SUCCESS|DLR_FAIL|DLR_BUFFERED))
dlr_add(octstr_get_cstr(smpp->conn->id),
octstr_get_cstr(tmp),
octstr_get_cstr(msg->sms.receiver),
octstr_get_cstr(msg->sms.service),
octstr_get_cstr(msg->sms.dlr_url),
msg->sms.dlr_mask);


I use kannel CVS.

Regard
-dedy-

-Original Message-
From: Bruno David Rodrigues [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 10:43 PM
To: Kannel-devel (E-mail)
Subject: Re: Delivery Report crash Kannel


Line 572 (in my code) is an octstr_get_cstr(msg->sms.receiver).

It's very strange if there is no receiver at that time.

If there was some changes in the code,  it could be the
octstr_get_cstr(msg->sms.dlr_url).

Do he have a dlr-url defined in configuration ? could you please test adding
a
&dlr-url= in the get ?


- Original Message -
From: "Stipe Tolj" <[EMAIL PROTECTED]>
Cc: "Kannel Developers (E-mail)" <[EMAIL PROTECTED]>; "Andreas Fink"
<[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 12:27 PM
Subject: Re: Delivery Report crash Kannel


> Dedy Sutanto wrote:
> >
> > Dear all,
> >
> > I have problem with kannel CVS regarding SMPP.
> > Thsi problem occured when I activate dlrmask in http request
> >
http://localhost:/cgi-bin/sendsms?username=xxxr&password=xxx&to=62818155
112&mclass=1&text=hallo&dlrmask=1
> >
> > The message seem delivered. But after that kannel crashed with
> > error:
> > 2002-02-28 07:08:05 [5] PANIC: gwlib/octstr.c:2053:
> > seems_valid_real: Assertion `ostr != NULL' failed. (Called from
> > gw/smsc_smpp.c:572:handle_pdu.)
>
> Andreas, this seems to break something in the dlr_add() call. Any
> ideas from you why we are throwing assertion error here?
>
> 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
> ---
> wapme.net - wherever you are
>
>
>
>