Re: Bug in smsbox - X-Kannel-Account header

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Paul Keogh wrote:
> 
> The handler for the X-Kannel-Account HTTP header in the sms box is missing.
> It is parsed from the HTTP response headers but is never supplied to
> the fill_message() function to build the Msg struct instance.
> 
> Here's my diff;
> 
> 741c741
> <              int rpi, Octstr *smsc)
> ---
> >              int rpi, Octstr *smsc, Octstr *account)
> 868a869,878
> >
> >     if (account) {
> >       if (urltrans_accept_x_kannel_headers(trans)) {
> >           msg->sms.account = account;
> >       } else {
> >           warning(0, "Tried to change account to '%s', denied.",
> >                   octstr_get_cstr (account));
> >               octstr_destroy (account);
> >       }
> >     }
> 1033c1043
> <            dlr_mask, pid, alt_dcs, rpi, smsc);
> ---
> >            dlr_mask, pid, alt_dcs, rpi, smsc, account);

thanks Paul for the patch.

Commited to cvs.

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.