Re: HTTP SMSC Question On Current Version
Willy Mularto <[email protected]> Wed, 5 Dec 2018 16:21:09 +0700
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <CAChGr4EAdvG+qGFc1kk-3jCshWk5Vc7KPV2DWxR5qjNuSVKt5w@mail.gmail.com> |
--000000000000ac9297057c42e7e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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? So Far Express VPN still the fastest https://www.expressrefer.com/refer-friend?referrer_id=3D15939000&utm_campai= gn=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3Dreferral_dashboard On Wed, Dec 5, 2018 at 3:52 PM <[email protected]> wrote: > 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]>: > > 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? > > > --000000000000ac9297057c42e7e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">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_h= ttp.c right?<div><br></div><div><br clear=3D"all"><div><div dir=3D"ltr" cla= ss=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">= So Far Express VPN still the fastest<div><a href=3D"https://www.expressrefe= r.com/refer-friend?referrer_id=3D15939000&utm_campaign=3Dreferrals&= utm_medium=3Dcopy_link&utm_source=3Dreferral_dashboard" target=3D"_blan= k">https://www.expressrefer.com/refer-friend?referrer_id=3D15939000&utm= _campaign=3Dreferrals&utm_medium=3Dcopy_link&utm_source=3Dreferral_= dashboard</a><br></div></div></div></div><br></div></div><br><div class=3D"= gmail_quote"><div dir=3D"ltr">On Wed, Dec 5, 2018 at 3:52 PM <<a href=3D= "mailto:[email protected]">[email protected]</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c= cc solid;padding-left:1ex"><div style=3D"word-wrap:break-word;line-break:af= ter-white-space">Hi Willi,<div><br></div><div>there are plenty of examples = how to do it, anyway here step by step (assume the name should be my_new_ht= tp):</div><div><br></div><div>1. create new file in gw/smsc/http/my_new_htt= p.c</div><div>2. add this file to gw/Makefile.am section=C2=A0<span style= =3D"color:rgb(0,0,128);font-family:Monaco;font-size:11px">bearerbox_SOURCES= </span><div>3. add=C2=A0<span style=3D"font-family:Monaco;font-size:11px;co= lor:rgb(127,0,85)">struct</span><span style=3D"font-family:Monaco;font-size= :11px"> </span><span style=3D"font-family:Monaco;font-size:11px;color:rgb(0= ,80,50)">smsc_http_fn_callbacks</span><span style=3D"font-family:Monaco;fon= t-size:11px"> smsc_http_</span>my_new_http<span style=3D"font-family:Monaco= ;font-size:11px">_callback to your new file and implement</span></div><div>= <span style=3D"font-family:Monaco;font-size:11px">=C2=A0 callbacks</span></= div><div><br></div><div>That=E2=80=99s all.</div><div><br></div><div>Kannel= now load dynamically all http modules and take their name to load=C2=A0<sp= an style=3D"font-family:Monaco;font-size:11px;color:rgb(127,0,85)">struct</= span><span style=3D"font-family:Monaco;font-size:11px">=C2=A0</span><span s= tyle=3D"font-family:Monaco;font-size:11px;color:rgb(0,80,50)">smsc_http_fn_= callbacks ,</span></div><div><font face=3D"Monaco"><span style=3D"font-size= :11px">you don</span><span style=3D"font-size:11px">=E2=80=99</span><span s= tyle=3D"font-size:11px">t need to change code in smsc_http.c anymore.</span= ></font></div><div><br></div><div>Thanks,</div><div>Alex</div><div><br></di= v><div><br><blockquote type=3D"cite"><div>Am 05.12.2018 um 07:19 schrieb Wi= lly Mularto <<a href=3D"mailto:[email protected]" target=3D"_blank">sa= [email protected]</a>>:</div><br class=3D"m_1611925939528176254Apple-int= erchange-newline"><div><div dir=3D"ltr" style=3D"font-family:Helvetica;font= -size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;le= tter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;wh= ite-space:normal;word-spacing:0px;text-decoration:none">Hi,<div><div dir=3D= "ltr" class=3D"m_1611925939528176254gmail_signature" data-smartmail=3D"gmai= l_signature"><div>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= 9;s gone. Anybody knows where to add custom http smsc?</div></div></div></d= iv></div></blockquote></div><br></div></div></blockquote></div> --000000000000ac9297057c42e7e2--