RE: Delivery Report crash Kannel
Dedy Sutanto <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
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=<urlencoded 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:xxxx/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
>
>
>
>