Re: HTTP SMSC Question On Current Version
[email protected] Wed, 5 Dec 2018 11:51:22 +0100
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_CBEE390E-24F0-4E5A-84AC-E27D7900811C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Point #3 means add in the body custom_http.c right? yes. Thanks, Alex > Am 05.12.2018 um 10:21 schrieb Willy Mularto <[email protected]>: >=20 > Cool, will try that later. Previosly I always modify smsc_http.c to = call my custom http smsc. Point #3 means add in the body custom_http.c = right? >=20 >=20 > So Far Express VPN still the fastest > = https://www.expressrefer.com/refer-friend?referrer_id=3D15939000&utm_campa= ign=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3Dreferral_dashboard = <https://www.expressrefer.com/refer-friend?referrer_id=3D15939000&utm_camp= aign=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3Dreferral_dashboard> >=20 >=20 > On Wed, Dec 5, 2018 at 3:52 PM <[email protected] = <mailto:[email protected]>> wrote: > Hi Willi, >=20 > there are plenty of examples how to do it, anyway here step by step = (assume the name should be my_new_http): >=20 > 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 >=20 > That=E2=80=99s all. >=20 > 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. >=20 > Thanks, > Alex >=20 >=20 >> Am 05.12.2018 um 07:19 schrieb Willy Mularto <[email protected] = <mailto:[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? >=20 >=20 --Apple-Mail=_CBEE390E-24F0-4E5A-84AC-E27D7900811C 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""><blockquote type=3D"cite" class=3D""><div dir=3D"ltr" = class=3D""> Point #3 means add in the body custom_http.c = right?</div></blockquote><div class=3D""><br class=3D""></div>yes.<div = class=3D""><br class=3D""></div><div class=3D"">Thanks,</div><div = class=3D"">Alex<br class=3D""><div><br class=3D""><blockquote = type=3D"cite" class=3D""><div class=3D"">Am 05.12.2018 um 10:21 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"">Cool, = will try that later. Previosly I always modify smsc_http.c to call my = custom http smsc. Point #3 means add in the body custom_http.c = right?<div class=3D""><br class=3D""></div><div class=3D""><br = clear=3D"all" class=3D""><div class=3D""><div dir=3D"ltr" = class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div = dir=3D"ltr" class=3D"">So Far Express VPN still the fastest<div = class=3D""><a = href=3D"https://www.expressrefer.com/refer-friend?referrer_id=3D15939000&a= mp;utm_campaign=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3Dre= ferral_dashboard" target=3D"_blank" = class=3D"">https://www.expressrefer.com/refer-friend?referrer_id=3D1593900= 0&utm_campaign=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3D= referral_dashboard</a><br class=3D""></div></div></div></div><br = class=3D""></div></div><br 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""><div class=3D"gmail_quote" = 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;"><div dir=3D"ltr" = class=3D"">On Wed, Dec 5, 2018 at 3:52 PM <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>> = wrote:<br class=3D""></div><blockquote class=3D"gmail_quote" = style=3D"margin: 0px 0px 0px 0.8ex; border-left-width: 1px; = border-left-style: solid; border-left-color: rgb(204, 204, 204); = padding-left: 1ex;"><div style=3D"word-wrap: break-word; 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 class=3D"">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 = class=3D"Apple-converted-space"> </span></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""><span = class=3D"Apple-converted-space"> </span>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 class=3D""><span = style=3D"font-family: Monaco; font-size: 11px;" class=3D""> <span = class=3D"Apple-converted-space"> </span>callbacks</span></div><div = class=3D""><br class=3D""></div><div class=3D"">That=E2=80=99s = all.</div><div class=3D""><br class=3D""></div><div class=3D"">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 class=3D""><font = face=3D"Monaco" class=3D""><span style=3D"font-size: 11px;" class=3D"">you= don</span><span style=3D"font-size: 11px;" class=3D"">=E2=80=99</span><sp= an style=3D"font-size: 11px;" class=3D"">t need to change code in = smsc_http.c anymore.</span></font></div><div class=3D""><br = class=3D""></div><div class=3D"">Thanks,</div><div = class=3D"">Alex</div><div class=3D""><br class=3D""></div><div = class=3D""><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]" target=3D"_blank" = class=3D"">[email protected]</a>>:</div><br = class=3D"m_1611925939528176254Apple-interchange-newline"><div = class=3D""><div dir=3D"ltr" style=3D"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; = text-decoration: none;" class=3D"">Hi,<div class=3D""><div dir=3D"ltr" = class=3D"m_1611925939528176254gmail_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></div></blockquote></div><br = class=3D""></div></div></blockquote></div><br = class=3D"Apple-interchange-newline"><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=_CBEE390E-24F0-4E5A-84AC-E27D7900811C--