Hi,
Don't know how to tell, but this is what I'm doing:
Mbuni's:
mmlib/mms_util.c
int parse_cgivars(List *request_headers, Octstr *request_body,
List **cgivars, List **cgivar_ctypes)
Copied and renamed to:
Kannel's:
gwlib/http.c
...
#include "gwlib/mime.h"
...
int parse_post_cgivars(List *request_headers, Octstr *request_body,
List **cgivars, List **cgivar_ctypes)
...
-------------------------------------------------------------------
Mbuni's:
mmlib/mms_util.h
int parse_cgivars(List *request_headers, Octstr *request_body,
List **cgivars, List **cgivar_ctypes);
Copied and renamed to:
Kannel's:
gwlib/http.h
int parse_post_cgivars(List *request_headers, Octstr *request_body,
List **cgivars, List **cgivar_ctypes);
-------------------------------------------------------------------
Check how parse_cgivars() used in Mbuni:
mmsbox/mmsbox.c
static void sendmms_func(void *unused)
{
...
}
Call parse_post_cgivars() in:
Kannel's:
gw/smsc/smsc_http.c
static void telco_receive_sms(SMSCConn *conn, HTTPClient *client,
List *headers, Octstr *body, List
*cgivars)
{
...
tmp = octstr_duplicate(body);
List *cgivar_ctypes = NULL;
int tparse = parse_post_cgivars(headers, tmp, &cgivars,
&cgivar_ctypes);
...
octstr_destroy(tmp);
}
Reviews and comments are welcome. Thank's to P.A. Bagyenda.
Willy
-----Original Message-----
From: P. A. Bagyenda <[EMAIL PROTECTED]>
To: Stipe Tolj <[EMAIL PROTECTED]>
Cc: Kannel Devel <[email protected]>
Subject: Re: Patch HTTP CGI POST
Date: Thu, 27 Nov 2008 20:47:59 +0300
Mailer: Apple Mail (2.929.2)
Will wrote:
----
Guys,
Using a built in function in Mbuni, is it OK if we rename it and treat
is as a patch for Kannel? I have tested it and work well. Hopefully P.A
Bagyenda permits this. TIA.
---
And I said that speaking for Mbuni folks, we have no objection to his
adapting the code as he suggests. Willy could you provide details as
to what you are doing?
On Nov 27, 2008, at 17:27, Stipe Tolj wrote:
> P. A. Bagyenda schrieb:
>> No objection :)
>> On Nov 27, 2008, at 14:08, sangprabv wrote:
>
> any details please?!... this is way to generic ;)
>
> Stipe
>
> --
> -------------------------------------------------------------------
> Kölner Landstrasse 419
> 40589 Düsseldorf, NRW, Germany
>
> tolj.org system architecture Kannel Software Foundation (KSF)
> http://www.tolj.org/ http://www.kannel.org/
>
> mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
> -------------------------------------------------------------------