Re: HTTP SMSC Question On Current Version
[email protected] Wed, 5 Dec 2018 09:51:55 +0100
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_2A9C9AE2-4C7D-47A8-BEA1-E6805EE54D02 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Willi, there are plenty of examples how to do it, anyway here step by step = (assume the name should be my_new_http): 1. create new file in gw/smsc/http/my_new_http.c 2. add this file to gw/Makefile.am section bearerbox_SOURCES 3. add struct smsc_http_fn_callbacks smsc_http_my_new_http_callback to = your new file and implement callbacks That=E2=80=99s all. Kannel now load dynamically all http modules and take their name to load = struct smsc_http_fn_callbacks , you don=E2=80=99t need to change code in smsc_http.c anymore. Thanks, Alex > Am 05.12.2018 um 07:19 schrieb Willy Mularto <[email protected]>: >=20 > Hi, > I see there's huge differences on current smsc_http.c, previously we = just simply add custom http smsc in this file but now it's gone. Anybody = knows where to add custom http smsc? --Apple-Mail=_2A9C9AE2-4C7D-47A8-BEA1-E6805EE54D02 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi = Willi,<div class=3D""><br class=3D""></div><div class=3D"">there are = plenty of examples how to do it, anyway here step by step (assume the = name should be my_new_http):</div><div class=3D""><br = class=3D""></div><div class=3D"">1. create new file in = gw/smsc/http/my_new_http.c</div><div class=3D"">2. add this file to = gw/Makefile.am section <span style=3D"color: rgb(0, 0, 128); = font-family: Monaco; font-size: 11px;" = class=3D"">bearerbox_SOURCES</span><div>3. add <span = style=3D"font-family: Monaco; font-size: 11px; color: rgb(127, 0, 85);" = class=3D"">struct</span><span style=3D"font-family: Monaco; font-size: = 11px;" class=3D""> </span><span style=3D"font-family: Monaco; font-size: = 11px; color: rgb(0, 80, 50);" = class=3D"">smsc_http_fn_callbacks</span><span style=3D"font-family: = Monaco; font-size: 11px;" class=3D""> smsc_http_</span>my_new_http<span = style=3D"font-family: Monaco; font-size: 11px;" class=3D"">_callback to = your new file and implement</span></div><div><span style=3D"font-family: = Monaco; font-size: 11px;" class=3D""> = callbacks</span></div><div><br class=3D""></div><div>That=E2=80=99s = all.</div><div><br class=3D""></div><div>Kannel now load dynamically all = http modules and take their name to load <span style=3D"font-family: = Monaco; font-size: 11px; color: rgb(127, 0, 85);" = class=3D"">struct</span><span style=3D"font-family: Monaco; font-size: = 11px;" class=3D""> </span><span style=3D"font-family: Monaco; = font-size: 11px; color: rgb(0, 80, 50);" class=3D"">smsc_http_fn_callbacks= ,</span></div><div><font face=3D"Monaco" class=3D""><span = style=3D"font-size: 11px;" class=3D"">you don</span><span = style=3D"caret-color: rgb(0, 80, 50); font-size: 11px;" = class=3D"">=E2=80=99</span><span style=3D"font-size: 11px;" class=3D"">t = need to change code in smsc_http.c anymore.</span></font></div><div><br = class=3D""></div><div>Thanks,</div><div>Alex</div><div><br = class=3D""></div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D"">Am 05.12.2018 um 07:19 schrieb Willy Mularto = <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>>:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: = normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D"">Hi,<div= class=3D""><div dir=3D"ltr" class=3D"gmail_signature" = data-smartmail=3D"gmail_signature"><div class=3D"">I see there's huge = differences on current smsc_http.c, previously we just simply add custom = http smsc in this file but now it's gone. Anybody knows where to add = custom http smsc?</div></div></div></div><style = class=3D"">ul[class*=3D'mb-extra__public-links'], = ul[class*=3D'mb-note__public-links'], ul[class*=3D'mb-task__public-links']= { display: none !important; }</style></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_2A9C9AE2-4C7D-47A8-BEA1-E6805EE54D02--