Re: HTTP REST API SMSC

Jorge Guntanis <[email protected]> Thu, 20 Mar 2025 15:22:40 -0300
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <CANH+NC5q+ONnnFQVaQyUQ8NgVQu46rEPXfcBPnXJ3J3Abbrpqg@mail.gmail.com>
--000000000000cd9ff70630ca3984
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

You would do something like this, it would not be a json payload but a GET
request with the parameters URL encoded.

group =3D smsc
smsc =3D http
smsc-id =3D custom-http
system-type =3D custom
allowed-smsc-id =3D custom-http
send-url =3D "
https://your-webservice.com/send-sms?username=3Duser&password=3Dpass&to=3D%=
p&text=3D%b
"
max-sms-octets =3D 140
dlr-url =3D "https://your-webservice.com/delivery-reports?id=3D%k&status=3D=
%d"
dlr-mask =3D 31

See:
https://www.kannel.org/download/1.4.5/userguide-1.4.5/userguide.html#AEN272=
8

Best,
Jorge



On Thu, Mar 20, 2025 at 12:56=E2=80=AFPM Richard Carpenter <
[email protected]> wrote:

> Hi, we=E2=80=99ve been using Kannel for many years connecting to a SMPP b=
ased
> SMSC, but this service is now being shut down by our provider and we have
> been instructed to migrate to the JSON REST API.  Ive seen kannel support=
s
> a =E2=80=98special=E2=80=99 smsc type of HTTP.  Does this smsc type suppo=
rt sending the
> message as a JSON payload using http basic auth, and if so could you poin=
t
> me to some documentation to get it set up.
>
>
>
> Many Thanks
> Global is the trading name for Global Media & Entertainment Limited and
> associated companies. You can contact us at 30 Leicester Square, London,
> WC2H 7LA, Tel: 020 7766 6000, Email: [email protected] or, for further
> information about our companies and brands, please go to www.global.com.
> This email is confidential. If it has been sent to you in error, please
> notify the sender and delete the email and any attachments; please do not
> copy, disclose or use in any way this email or its contents.
>

--000000000000cd9ff70630ca3984
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>You would do something like this, it would not be a j=
son payload but a GET request with the parameters URL encoded.</div><div><b=
r></div><div>group =3D smsc<br>smsc =3D http<br>smsc-id =3D custom-http<br>=
system-type =3D custom<br>allowed-smsc-id =3D custom-http<br>send-url =3D &=
quot;<a href=3D"https://your-webservice.com/send-sms?username=3Duser&amp;pa=
ssword=3Dpass&amp;to=3D%p&amp;text=3D%b">https://your-webservice.com/send-s=
ms?username=3Duser&amp;password=3Dpass&amp;to=3D%p&amp;text=3D%b</a>&quot;<=
br>max-sms-octets =3D 140<br>dlr-url =3D &quot;<a href=3D"https://your-webs=
ervice.com/delivery-reports?id=3D%k&amp;status=3D%d">https://your-webservic=
e.com/delivery-reports?id=3D%k&amp;status=3D%d</a>&quot;<br>dlr-mask =3D 31=
</div><div><br></div><div>See:=C2=A0<a href=3D"https://www.kannel.org/downl=
oad/1.4.5/userguide-1.4.5/userguide.html#AEN2728">https://www.kannel.org/do=
wnload/1.4.5/userguide-1.4.5/userguide.html#AEN2728</a></div><div><br></div=
><div>Best,</div><div>Jorge</div><div><div dir=3D"ltr" class=3D"gmail_signa=
ture" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><table cellpaddin=
g=3D"0" cellspacing=3D"0" style=3D"vertical-align:-webkit-baseline-middle;f=
ont-size:medium;font-family:Arial"><tbody><tr><td><table cellpadding=3D"0" =
cellspacing=3D"0" style=3D"vertical-align:-webkit-baseline-middle;font-fami=
ly:Arial"><tbody></tbody></table></td></tr><tr><td><br></td></tr></tbody></=
table></div></div></div><br></div><br><div class=3D"gmail_quote gmail_quote=
_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Mar 20, 2025 at 1=
2:56=E2=80=AFPM Richard Carpenter &lt;<a href=3D"mailto:Richard.Carpenter@g=
lobal.com">[email protected]</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div class=3D"msg7087867600889957046=
">





<div lang=3D"EN-GB" style=3D"overflow-wrap: break-word;">
<div class=3D"m_7087867600889957046WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hi, we=E2=80=99ve been using Ka=
nnel for many years connecting to a SMPP based SMSC, but this service is no=
w being shut down by our provider and we have been instructed to migrate to=
 the JSON REST API.=C2=A0 Ive seen kannel supports
 a =E2=80=98special=E2=80=99 smsc type of HTTP.=C2=A0 Does this smsc type s=
upport sending the message as a JSON payload using http basic auth, and if =
so could you point me to some documentation to get it set up.<u></u><u></u>=
</span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Many Thanks<u></u><u></u></span=
></p>
</div>
Global is the trading name for Global Media &amp; Entertainment Limited and=
 associated companies. You can contact us at 30 Leicester Square, London, W=
C2H 7LA, Tel: 020 7766 6000, Email: <a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a> or, for further information about our com=
panies and brands,
 please go to <a href=3D"http://www.global.com" target=3D"_blank">www.globa=
l.com</a>. This email is confidential. If it has been sent to you in error,=
 please notify the sender and delete the email and any attachments; please =
do not copy, disclose or use in any way this email or its contents.
</div>

</div></blockquote></div>

--000000000000cd9ff70630ca3984--