terminated string longer than allowed

2002-07-30 Thread Wayne Smithers

This is the bearerbox log from a cvs version of Kannel ( March 2002 ).

It has been stable until now, the error 'PDU NUL terminated string longer
than allowed.' Is shown below.

Any ideas why this assertion was thrown ?


2002-07-27 11:12:09 [6] DEBUG:   priority_flag: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   schedule_delivery_time: ""
2002-07-27 11:12:09 [6] DEBUG:   validity_period: ""
2002-07-27 11:12:09 [6] DEBUG:   registered_delivery: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   replace_if_present_flag: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   data_coding: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   sm_default_msg_id: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   sm_length: 20 = 0x0014
2002-07-27 11:12:09 [6] DEBUG:   short_message:
2002-07-27 11:12:09 [6] DEBUG:Octet string at 0x8253f28:
2002-07-27 11:12:09 [6] DEBUG:  len:  20
2002-07-27 11:12:09 [6] DEBUG:  size: 21
2002-07-27 11:12:09 [6] DEBUG:  immutable: 0
2002-07-27 11:12:09 [6] DEBUG:  data: 47 4f 20 4d 41 54 45 20   GO MATE
2002-07-27 11:12:09 [6] DEBUG:  data: 55 20 43 41 4e 20 47 52   U CAN GR
2002-07-27 11:12:09 [6] DEBUG:  data: 4f 4f 56 45   OOVE
2002-07-27 11:12:09 [6] DEBUG:Octet string dump ends.
2002-07-27 11:12:09 [6] DEBUG: SMPP PDU dump ends.
2002-07-27 11:12:09 [6] DEBUG: SMPP: Sending PDU:
2002-07-27 11:12:09 [6] DEBUG: SMPP PDU 0x824dba8 dump:
2002-07-27 11:12:09 [6] DEBUG:   type_name: deliver_sm_resp
2002-07-27 11:12:09 [6] DEBUG:   command_id: 2147483653 = 0x8005
2002-07-27 11:12:09 [6] DEBUG:   command_status: 0 = 0x
2002-07-27 11:12:09 [6] DEBUG:   sequence_number: 6592 = 0x19c0
2002-07-27 11:12:09 [6] DEBUG:   message_id: NULL
2002-07-27 11:12:09 [6] DEBUG: SMPP PDU dump ends.
2002-07-27 11:12:09 [9] DEBUG: boxc_sender: sent message to <0.0.0.0>
2002-07-27 11:12:09 [8] DEBUG: boxc_receiver: got ack
2002-07-27 11:12:10 [6] DEBUG: SMPP: Got PDU:
2002-07-27 11:12:10 [6] DEBUG: SMPP PDU 0x8222d48 dump:
2002-07-27 11:12:10 [6] DEBUG:   type_name: deliver_sm
2002-07-27 11:12:10 [6] DEBUG:   command_id: 5 = 0x0005
2002-07-27 11:12:10 [6] DEBUG:   command_status: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   sequence_number: 6593 = 0x19c1
2002-07-27 11:12:10 [6] DEBUG:   service_type: ""
2002-07-27 11:12:10 [6] DEBUG:   source_addr_ton: 1 = 0x0001
2002-07-27 11:12:10 [6] DEBUG:   source_addr_npi: 1 = 0x0001
2002-07-27 11:12:10 [6] DEBUG:   source_addr: "614"
2002-07-27 11:12:10 [6] DEBUG:   dest_addr_ton: 1 = 0x0001
2002-07-27 11:12:10 [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2002-07-27 11:12:10 [6] DEBUG:   destination_addr: "614"
2002-07-27 11:12:10 [6] DEBUG:   esm_class: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   protocol_id: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   priority_flag: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   schedule_delivery_time: ""
2002-07-27 11:12:10 [6] DEBUG:   validity_period: ""
2002-07-27 11:12:10 [6] DEBUG:   registered_delivery: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   replace_if_present_flag: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   data_coding: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   sm_default_msg_id: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   sm_length: 10 = 0x000a
2002-07-27 11:12:10 [6] DEBUG:   short_message: "MATE NO 5."
2002-07-27 11:12:10 [6] DEBUG: SMPP PDU dump ends.
2002-07-27 11:12:10 [6] DEBUG: SMPP: Sending PDU:
2002-07-27 11:12:10 [6] DEBUG: SMPP PDU 0x82230d0 dump:
2002-07-27 11:12:10 [6] DEBUG:   type_name: deliver_sm_resp
2002-07-27 11:12:10 [6] DEBUG:   command_id: 2147483653 = 0x8005
2002-07-27 11:12:10 [6] DEBUG:   command_status: 0 = 0x
2002-07-27 11:12:10 [6] DEBUG:   sequence_number: 6593 = 0x19c1
2002-07-27 11:12:10 [6] DEBUG:   message_id: NULL
2002-07-27 11:12:10 [6] DEBUG: SMPP PDU dump ends.
2002-07-27 11:12:10 [9] DEBUG: boxc_sender: sent message to <0.0.0.0>
2002-07-27 11:12:10 [8] DEBUG: boxc_receiver: got ack
2002-07-27 11:12:11 [6] DEBUG: SMPP: Got PDU:
2002-07-27 11:12:11 [6] DEBUG: SMPP PDU 0x8222dc8 dump:
2002-07-27 11:12:11 [6] DEBUG:   type_name: deliver_sm
2002-07-27 11:12:11 [6] DEBUG:   command_id: 5 = 0x0005
2002-07-27 11:12:11 [6] DEBUG:   command_status: 0 = 0x
2002-07-27 11:12:11 [6] DEBUG:   sequence_number: 6594 = 0x19c2
2002-07-27 11:12:11 [6] DEBUG:   service_type: ""
2002-07-27 11:12:11 [6] DEBUG:   source_addr_ton: 1 = 0x0001
2002-07-27 11:12:11 [6] DEBUG:   source_addr_npi: 1 = 0x0001
2002-07-27 11:12:11 [6] DEBUG:   source_addr: "614"
2002-07-27 11:12:11 [6] DEBUG:   dest_addr_ton: 1 = 0x0001
2002-07-27 11:12:11 [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2002-07-27 11:12:11 [6] DEBUG:   destination_addr: "614"
2002-07-27 11:12:11 [6] DEBUG:   esm_class: 0 = 0x
2002-07-27 11:12:11 [6] DEBUG:   protocol_id: 0 = 0x
2002-07-27 11:12:11 [6] DEBUG:   priority_flag: 0 = 0x
2002-07-27 11:12:11 [6

Help: Edit problem

2002-07-30 Thread Guanghua Hou



Dear sir,
 
Why are mail sent by me unreadable?
My mail showed in develop-request is encoded in 
base64. it isn't be decoded, why?
 
Pls help me.
 
Guanghua Hou


got DLR but could not find message or was not interested in it

2002-07-30 Thread Wayne Smithers

We have a situation where someone using a CDMA handset ( which does not
support delivery receipt ) sends in an sms and it does not get to smsbox.

Bearer box outputs 'got DLR but could not find message or was not interested
in it' and that's as far as it gets.

Does anybody know what the code below is trying to do ?  And what would need
to occur to get in an error state ??

smsc_smpp.c

if (msgid != NULL) {
Octstr *tmp;
tmp = octstr_format("%ld",
strtol(octstr_get_cstr(msgid), NULL, 10));
dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id),
  octstr_get_cstr(tmp), /* smsc message
id */

octstr_get_cstr(pdu->u.deliver_sm.destination_addr), /* destination */
  dlrstat);
octstr_destroy(tmp);
}
if (dlrmsg != NULL) {
reply = octstr_duplicate(respstr);
/* having a / in the text breaks it so lets replace it
with a space */
len = octstr_len(reply);
for (idx = 0; idx < len; idx++)
if (octstr_get_char(reply, idx) == '/')
octstr_set_char(reply, idx, '.');
octstr_append_char(reply, '/');
octstr_insert(dlrmsg->sms.msgdata, reply, 0);
octstr_destroy(reply);
bb_smscconn_receive(smpp->conn, dlrmsg);
} else {
error(0,"SMPP[%s]: got DLR but could not find message or
was not interested in it",
  octstr_get_cstr(smpp->conn->id));
}


regards

Wayne Smithers
5th Finger
[EMAIL PROTECTED]
91 Reservoir St
Surry Hills 2010
Sydney, Australia
Ph:  +61-2-9280-0300
Mob: +61-409-603511
Fax: +612-9475-0367





Kannel WAP gateway and Linux Virtual Server (LVS)

2002-07-30 Thread Paul Keogh


Hi,

Has anyone tried to run the WAP g/way behind LVS ?

Thanx,

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
 




AW: Kannel WAP gateway and Linux Virtual Server (LVS)

2002-07-30 Thread Jörg Pommnitz

I think Stipe does this. At least his latest sig was:

-- Hope to see you at my presentations:

   "Virtual Server solution for Linux using FreeVSD" 
   at O'Reilly Open Source Convention 2002,
   Sheraton San Diego Hotel and Marina, San Diego, CA. USA
   July 22-26, 2002 

Regards
  Jörg

 > -Ursprüngliche Nachricht-
 > Von: Paul Keogh [mailto:[EMAIL PROTECTED]]
 > Gesendet am: Dienstag, 30. Juli 2002 10:23
 > An: Kannel Development List (E-mail)
 > Betreff: Kannel WAP gateway and Linux Virtual Server (LVS)
 > 
 > 
 > Hi,
 > 
 > Has anyone tried to run the WAP g/way behind LVS ?
 > 
 > Thanx,
 > 
 > 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
 >  
 > 




compiler warnings

2002-07-30 Thread Harrie Hazewinkel

HI,

I noticed that Stipe fixed compiler warnings after my patch.
So I thought using '--enable-warnings' to have '-Wall' as compile
option, but I would like to add additional warnings like
'-Wmissing-prototypes' and '-Wmissing-declarations'.

Or is the preference towards an extra '--enable-developer'
that includes these compile time options?? If I don't hear
compliants I add the to the '--enable-warnings'.



Harrie

Internet Management Consulting
mailto:[EMAIL PROTECTED]http ://www.mod-snmp.com/
---
Author of MOD-SNMP, enabling SNMP management to the Apache server.





Re: another emi2 bugfix

2002-07-30 Thread Harrie Hazewinkel



--On Monday, July 22, 2002 1:34 PM +0300 Kaido Karner <[EMAIL PROTECTED]> 
wrote:

> re
>
> emi2 smsc connections by mistake increase received messages counter twice.
>
> patch is together with the previous fix in smsc_emi2.c
>
>
> diff -u gateway-1.2.0/gw/smsc_emi2.c gateway-patched/gw/smsc_emi2.c
> --- gateway-1.2.0/gw/smsc_emi2.cFri Jun 28 14:09:54 2002
> +++ gateway-patched/gw/smsc_emi2.c  Mon Jul 22 13:29:15 2002
[snip]
> @@ -1606,8 +1605,6 @@
>  privdata->deny_ip = deny_ip;
>
>  if (privdata->rport > 0 && emi2_open_listening_socket(privdata) < 0)
> { -   gw_free(privdata);
> -   privdata = NULL;

I think I would prefer to have these combined into a single function.
gw_free now maps onto the gw_native_free or gw_check_free with macros.
We could make the macros as such that they pass the pointer to the
address space containing the pointer and make the pointer even NULL.


Then the define

#define gw_free(ptr) (gw_native_free(ptr))

 would be become

#define gw_free(ptr) (gw_native_free(&ptr))

and then

void gw_native_free(void *ptr);

 would be become

void gw_native_free(void **ptr);


What do others think?? I guess that in more places the pointer needs
to be 'NULL'-ed after the free.



Harrie

Internet Management Consulting
mailto: [EMAIL PROTECTED]   http://www.lisanza.net/

Author of MOD-SNMP, enabling SNMP management the Apache HTTP server 




RE: another emi2 bugfix

2002-07-30 Thread Kaido Karner

> I think I would prefer to have these combined into a single function.
> gw_free now maps onto the gw_native_free or gw_check_free with macros.
> We could make the macros as such that they pass the pointer to the
> address space containing the pointer and make the pointer even NULL.
> 
> What do others think?? I guess that in more places the pointer needs
> to be 'NULL'-ed after the free.

I'd say no - this would propagate bad programming practices.

k





RE: another emi2 bugfix

2002-07-30 Thread Harrie Hazewinkel



--On Tuesday, July 30, 2002 12:30 PM +0300 Kaido Karner <[EMAIL PROTECTED]> 
wrote:

>> I think I would prefer to have these combined into a single function.
>> gw_free now maps onto the gw_native_free or gw_check_free with macros.
>> We could make the macros as such that they pass the pointer to the
>> address space containing the pointer and make the pointer even NULL.
>>
>> What do others think?? I guess that in more places the pointer needs
>> to be 'NULL'-ed after the free.
>
> I'd say no - this would propagate bad programming practices.

As for bad practises, you can see it that way. I however would
say it maps onto another function which can do more the 'free'
alone. IMHO, that warrants the change. It also protects developers.


What do others think??

Harrie

Internet Management Consulting
mailto:[EMAIL PROTECTED]http ://www.mod-snmp.com/
---
Author of MOD-SNMP, enabling SNMP management to the Apache server.
 




RE: wapbox 1.2.0 crasch

2002-07-30 Thread Peter Löfman
Title: Message



More 
info:
Attached is a debug of what happens when using a Nokia 3510 to access 
mobile.club.nokia.com.
Request hangs, and whats even worse, wapbox refuses to accept any further 
requests!!
 
Can 
someone of the wapbox developers have a look at this, since I cannot myself 
figure out
what 
is going wrong?
 
/Peter 
Lofman
 
 

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On 
  Behalf Of Peter LöfmanSent: den 30 juli 2002 
  10:10To: [EMAIL PROTECTED]Subject: wapbox 1.2.0 
  crasch
  Hi,
   
  I am using Kannel 
  1.2.0 as wapgateway. I have a script which restarts wapbox every minute 
  if
  it has gone down 
  for some reason.
   
  Can anyone explain 
  what happened here?
  Why did the wapbox 
  crasch? :
   
  2002-07-30 
  08:54:48 [10] ERROR: connect failed2002-07-30 08:54:48 [10] ERROR: System 
  error 110: Connection timed out2002-07-30 08:54:48 [10] ERROR: error 
  connecting to server `mobile.club.nokia.com' at port `80'2002-07-30 
  08:54:48 [10] ERROR: Couldn't send request to 2002-07-30 
  08:54:48 [7] ERROR: WSP: http lookup failed, oops.2002-07-30 08:55:02 [0] 
  INFO: Added logfile `/usr/local/kannel/gw/wapbox.log' with level 
  `1'.2002-07-30 08:55:02 [0] INFO: Starting to log to file 
  /usr/local/kannel/gw/wapbox.log level 12002-07-30 08:55:02 [0] INFO: 
  2002-07-30 
  08:55:02 [0] INFO: Kannel wapbox version 1.2.0 starting up.2002-07-30 
  08:55:02 [0] INFO: Connected to bearerbox at localhost port 
  13002.
   
   
   
  Here is config 
  file:
   
  group = 
  coreadmin-port = 13000wapbox-port = 13002admin-password = 
  barlog-file = "kannel.log"log-level = 1box-deny-ip = 
  "*.*.*.*"box-allow-ip = "*.*.*.*"
   
  group = 
  wapboxbearerbox-host = localhostlog-file = 
  "/usr/local/kannel/gw/wapbox.log"log-level = 1syslog-level = 
  noneforce-sar = truesmart-errors = true
   
  BR Peter 
  Lofman


wapbox.log
Description: Binary data


Re: Kannel WAP gateway and Linux Virtual Server (LVS)

2002-07-30 Thread Stipe Tolj

> Has anyone tried to run the WAP g/way behind LVS ?

yes we did, at least we wanted to :))

Unfortunatly I can't give any possitive reply on this. But, LVS is not
switching on level 7, hence I think you will loose the WSP session
when the director routes a second request to another real server.
Isn't it?

I saw that level 7 switching is now been added in a very early draft
mode and it's our intention to switch our Solaris machine to an LVS
cluster as soon as we have figured out how to deal with Kannel and
LVS.

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 PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Re: AW: Kannel WAP gateway and Linux Virtual Server (LVS)

2002-07-30 Thread Stipe Tolj

Jörg Pommnitz wrote:
> 
> I think Stipe does this. At least his latest sig was:
> 
> -- Hope to see you at my presentations:
> 
>"Virtual Server solution for Linux using FreeVSD"
>at O'Reilly Open Source Convention 2002,
>Sheraton San Diego Hotel and Marina, San Diego, CA. USA
>July 22-26, 2002

yeah, we do this for "standard" services, like HTTP and SMTP. I also
did a rundementary Kannel setup on an LVS, but it's currently not
productive and I have to reactivate this again.

If someone is interested in assisting, we may setup an LVS cluster in
a DMZ zone and let some of you core Kannel developers play arround
with it?

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 PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




MMS

2002-07-30 Thread Rubén Mellado Muñoz

Kannel can support the download of smil files (MMS message)?

Tx in advance.


begin:vcard 
n:Mellado;Rubén
tel;fax:+34913374202
tel;work:+34913379986
x-mozilla-html:FALSE
org:Telefónica I+D
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Emilio Vargas,6=0D=0A;Madrid;;28043 ;España
fn:Rubén Mellado
end:vcard



ISDN USB Card connect to SMSC

2002-07-30 Thread Bjoern Buettner

Hi all

I want to configure Kannel to work with an ISDN USB Card to use the EMI
config for VodafoneD2.
My question is which is the correct device for the kannel config.
"device = /dev/capi20" or "device = /dev/ttyUSB0" or something like
that.

Has anybody any experience with this config or any tips ?

Thanx for your help.


kind regards

Bjoern Buettner
Mobile Enablement Solutions Nord
Vodafone Mobile Systems GmbH
Daniel-Goldbach-Str. 17-19 
D-40880 Ratingen
Tel.:+49-2102-97-2013
Fax: +49-2102-97-1310
mailto:  [EMAIL PROTECTED]
http://www.vodafone.com
http://www.vodafone-ms.de





Parameters (Escape Codes) for a chat room

2002-07-30 Thread Patrick Mignott

what parameters (escape code) can be used for a mutli-word parameter, while
only using a single escape code???

i am  developing a open source SMS chat room,
i have open question, i would like to use ONE  Parameters (Escape Codes) to
accept the chat room name and ONE to accept the CHAT content for example the
user would type the following " GENERAL hello all my name is Patrick"
the keyword would be "GENERAL" and the chat content would be "hello all my
name is Patrick"
i would expect the setup to look like this
get-url = "http://digipoint1-sms.net/sms/chat.asp?topic=%s&content=%s";

however  i get a "could not fetch content error " if the "content"  has more
than one WORD.

what parameters (escape code) can be used for a mutli-word expression, while
only using a single escape code?









Re: got DLR but could not find message or was not interested in it

2002-07-30 Thread Alan McNatty

Hi Wayne,

I had a similar problem (also CDMA). It stemmed from the SMSC replying
with a message id in decimal not in hex (deliver_sm_resp format) hence
dlr report couldn't be found. 

Check the patch below which I'm using (applied to cvs), it contains a
couple of other things that I needed to add/modify but the relevant bit
should be obvious ;-). I've yet to clean up for general use but would be
interested to know if this helps.
Cheers,
Alan

On Tue, 2002-07-30 at 19:36, Wayne Smithers wrote:
> We have a situation where someone using a CDMA handset ( which does not
> support delivery receipt ) sends in an sms and it does not get to smsbox.
> 
> Bearer box outputs 'got DLR but could not find message or was not interested
> in it' and that's as far as it gets.
> 
> Does anybody know what the code below is trying to do ?  And what would need
> to occur to get in an error state ??
> 
> smsc_smpp.c
> 
> if (msgid != NULL) {
> Octstr *tmp;
> tmp = octstr_format("%ld",
> strtol(octstr_get_cstr(msgid), NULL, 10));
> dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id),
>   octstr_get_cstr(tmp), /* smsc message
> id */
> 
> octstr_get_cstr(pdu->u.deliver_sm.destination_addr), /* destination */
>   dlrstat);
> octstr_destroy(tmp);
> }
> if (dlrmsg != NULL) {
> reply = octstr_duplicate(respstr);
> /* having a / in the text breaks it so lets replace it
> with a space */
> len = octstr_len(reply);
> for (idx = 0; idx < len; idx++)
> if (octstr_get_char(reply, idx) == '/')
> octstr_set_char(reply, idx, '.');
> octstr_append_char(reply, '/');
> octstr_insert(dlrmsg->sms.msgdata, reply, 0);
> octstr_destroy(reply);
> bb_smscconn_receive(smpp->conn, dlrmsg);
> } else {
> error(0,"SMPP[%s]: got DLR but could not find message or
> was not interested in it",
>   octstr_get_cstr(smpp->conn->id));
> }
> 
> 
> regards
> 
> Wayne Smithers
> 5th Finger
> [EMAIL PROTECTED]
> 91 Reservoir St
> Surry Hills 2010
> Sydney, Australia
> Ph:  +61-2-9280-0300
> Mob: +61-409-603511
> Fax: +612-9475-0367
> 
> 
-- 
Alan McNatty -- Catalyst IT Ltd -- http://www.catalyst.net.nz
  Level 2, 150-154 Willis St, PO Box 11-053, Wellington, NZ
Mob: +64 21-312136, DDI: +64 4 9167203, Office: +64 4 4992267

... error accessing whit
Segmentation fault (core dumped) 


Index: gw/smsc_smpp.c
===
RCS file: /home/cvs/gateway/gw/smsc_smpp.c,v
retrieving revision 1.76
diff -r1.76 smsc_smpp.c
22c22
<  
---
> 
54a55,56
> #define SMPP_SUBMIT_SM_RESP_FORMAT  16
> #define SMPP_DELIVER_SM_RESP_FORMAT 10
351d352
< 
354c355
< } else {
---
> 	} else {
600,601c601,614
< /* got a deliver ack? */ 
< if ((pdu->u.deliver_sm.esm_class == 0x02 || 
---
> 
> 	/* Based on SMPPv3.4 spec esm_class for deliver_sm is defined as ...
> 	 *
> 	 *   Message Type (bits (5-2)
> 	 *
> 	 *   xxxx (0x00) - Default Message Type
> 	 *   xx0001xx (0x01) - SM contains SMSC Delivery Receipt
> 	 *   xx0010xx (0x02) - SM contains SME Delivery Ack
> 	 *   xx0011xx (0x04) - reserverd
> 	 *
> 	 */
> 
> if ((pdu->u.deliver_sm.esm_class == 0x01 ||
>  pdu->u.deliver_sm.esm_class == 0x02 || 
644,645c657,667
< Octstr *tmp; 
< tmp = octstr_format("%ld", strtol(octstr_get_cstr(msgid), NULL, 10)); 
---
> Octstr *tmp_id, *tmp_addr; 
> tmp_id = octstr_format("%ld", strtol(octstr_get_cstr(msgid), NULL, 
> 	SMPP_DELIVER_SM_RESP_FORMAT)); 
> 
> 		/* XXX - check for broken SMSC that use source instead of destination */
> 
> if ( octstr_compare(pdu->u.deliver_sm.destination_addr, octstr_imm("")) != 0 )
> 		tmp_addr = octstr_duplicate(pdu->u.deliver_sm.destination_addr);
> 		else
> tmp_addr = octstr_duplicate(pdu->u.deliver_sm.source_addr);
> 		
647,648c669,670
<   octstr_get_cstr(tmp), /* smsc message id */ 
<   octstr_get_cstr(pdu->u.deliver_sm.destination_addr), /* destination */ 
---
>   octstr_get_cstr(tmp_id),   /* smsc message id  */ 
>   octstr_get_cstr(tmp_addr), /* destination addr */ 
650c672,674
< octstr_destroy(tmp); 
---
> 
> octstr_destroy(tmp_id); 
> octstr_destroy(tmp_addr); 
761a786
> 
763c788,790
< 

Re: compiler warnings

2002-07-30 Thread Bruno David Rodrigues

On Ter, 2002-07-30 at 10:07, Harrie Hazewinkel wrote:
> HI,
> 
> I noticed that Stipe fixed compiler warnings after my patch.
> So I thought using '--enable-warnings' to have '-Wall' as compile
> option, but I would like to add additional warnings like
> '-Wmissing-prototypes' and '-Wmissing-declarations'.

Yes, please, add every -W* required to full debug the compile process.
I've added --enable-warnings to be able to use the -Wall everytime I
make "make"







RE: Unicode from handset to kannel

2002-07-30 Thread Bruno David Rodrigues

On Ter, 2002-07-30 at 09:36, Wayne Smithers wrote:
> The coding received is Unicode using %c in the url
> 
> When an sms of 'abc' is received we get
> 
> With mo-recode = true - 406140624063
> 
> With mo-recode = false - @a@b@c
> 
> I think kannel should be able to decode this !

Nope, there should be some bug.
Which smsc are you using ? (Not EMI2 nor AT2 for sure).

Please reply to devel with the smsc module name you are using
so the "maintainer" of it could see why is it decoding from 
GSM alphabet to iso-8859-1 before my mo-recode (ucs2->iso8859-1)

What I think is that some code do %00 -> %40, a -> a and this
looks like the gsm->iso table, then the message gets into my
code and see ucs2 like %40%61 + %40%62, and this chars (probably
some hebrew chars) couldn't be converted to iso8859-1.

This is a bug!

> 
> Any ideas ?
> 
> 
> ps we are using 1.2.0
> 
> Wayne Smithers
> 5th Finger
> [EMAIL PROTECTED]
> 91 Reservoir St
> Surry Hills 2010
> Sydney, Australia
> Ph:  +61-2-9280-0300
> Mob: +61-409-603511
> Fax: +612-9475-0367
> 
> 






Re: MMS

2002-07-30 Thread Aarno Syvänen

Rubén Mellado Muñoz kirjoittaa tiistaina, 30. heinäkuuta 2002, kello 
15:53:Kannel can support the download of smil files (MMS message)?

It should. Kannel simply passes contents it does not translate unchanged.

Aarnoo





Testing MMS Push

2002-07-30 Thread shaan j
Hi all,
Can I use gateway-1.2.0 for testing MMS Push ? I have successfully tested WAP Push. So, do I need same set of documents, content & control, for MMS Push ? Or I need a Hex dump of it ? 
And how should I use test_ppg for this ? What if I directly send the hex dump using "/cgi-bin/sendsms" ?
Regards,
ShantanuDo You Yahoo!?
Yahoo! Health - Feel better, live better

How to increase max file size in Kannel WAP GW ?

2002-07-30 Thread Eko Yanuar



I need to know how to increase file size limitation in Kannel 
WAP GW. When I was download a GIF animation (20 Kbytes) with T68i, I got warning 
in Kannel Wapbox log that file size exceeds 5K .
 
I wonder how to increase this limitation and what about MMS 
message downloading ? Because one MMS message can have up to 60K in 
size.
 
Any answer may help. Thanks !
 
 


Eko Apriandi Yanuar
C/C++ Application Developer
Email : [EMAIL PROTECTED]
Phone : +62-21-5211500
PT INFRACELL NUSATAMA / 3WSI
World Trade Centre 12th Floor
Sudirman Street, Kav 29-31
Jakarta 12920 - Indonesia