Re: MO Routing on the fly

akamat sarat <[email protected]> Thu, 20 Apr 2023 10:53:17 +0300
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <CA+XCKAxgfeKPFfA6WBLMpnnMDL7ih4kqmXOm+GTCDs6gTD_GZA@mail.gmail.com>
--0000000000000d2ef805f9bfd658
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Do you mean something like the following?
group =3D sms-service
get-url =3D "http://get-url.com"
catch-all =3D yes
This kind of setup does not work without adding smsbox-route.  smsbox-route
is either short code or smsc-id specific.
If you mean something else, can you write an example please?

Than k you


On Wed, Apr 19, 2023 at 9:32=E2=80=AFPM rm mobbis.am <[email protected]> wrote:

> Hi Akamat,
>
> Honestly, I suspect that I do not fully understand your situation (
> because if I usnderstand you in right way, it has very obvious solution).
> Thus if I understand your request correctly, you just need to:
>
>    1. configure sms-service
>    2. set your script on  apache or iis
>    3. use get-url or post-url and other sms-service related parameters
>    according your needs
>
> Thus you will have smsc independet script which will handle all your MO
> requests especially if you set catch-all parameter to true.
>
> Best regards,
> Ruben Melikyan
> ------------------------------
> *From:* users <[email protected]> on behalf of akamat sarat <
> [email protected]>
> *Sent:* Wednesday, April 19, 2023 7:32:45 PM
> *To:* Tolga Ulas <[email protected]>
> *Cc:* [email protected] <[email protected]>
> *Subject:* Re: MO Routing on the fly
>
> Even though I could not figure it out, the smsc-id parameter is not
> mandatory for the smsbox-route group.
> Does this imply it can be SMSC independent if some other configuration is
> properly applied? possibly. I've tested smsbox-route group without
> specifying any smsc-ids and this did not work.
> But I'm probably missing something.
>
> On Wed, Apr 19, 2023 at 7:28=E2=80=AFPM akamat sarat <akamat.sarat@gmail.=
com>
> wrote:
>
> I figured out a way to set it up the way I need it to work.
> So like I said, I wanted to route all MOs originating from all SMSCs to a
> single script to handle all of them.
> In my SMSc configuration I am using reroute-smsc-id to re-route all
> incoming MOs to a single HTTP SMSc that will invoke my script.
> The thing that kept me back is the preferred-smsc-id setting, because if
> it is used in conjunction with reroute-smsc-id then reroute-smsc-id is
> completely ignored without any mention of it in kannel logs.
>
>
>
> On Wed, Apr 19, 2023 at 7:12=E2=80=AFPM Tolga Ulas <tolga.ulas@tolgaulas.=
com>
> wrote:
>
> Not sure on top of my head whether it can be smsc independent, check with
> the documentation in the related section of thart smsc-id part and
> smsbox-route functioning in general.
> Tolga Ulas
>
>
>
> On Wed, Apr 19, 2023 at 5:51=E2=80=AFPM akamat sarat <akamat.sarat@gmail.=
com>
> wrote:
>
> Thank for coming back, you mean something like:
>
> group=3Dsmsbox-route
> smsbox-id=3Dmysmsbox
> smsc-id=3DSMSC1; SMSC2; SMSC3...
>
> If so, this means that every time a new SMSC is added, I will need to add
> it to the smsc-id's list in the above configuration.
> After that I will need to restart kannel which I do not want to do.
> If thats not what you mean can you write an example?
>
> Thank you.
>
>
> On Wed, Apr 19, 2023 at 5:39=E2=80=AFPM Tolga Ulas <tolga.ulas@tolgaulas.=
com>
> wrote:
>
> Put a single route to a single smsbox which has a single service and
> define all your smscs in the route as origin.
>
> Tolga Ulas
>
>
> On Wed, Apr 19, 2023 at 5:22=E2=80=AFPM akamat sarat <akamat.sarat@gmail.=
com>
> wrote:
>
> To all kannelers,
>
> I am trying to find a way to configure kannel so that all incoming
> messages (MOs) from all SMSCs to go to the same script.
> The problem is that i could not find a working solution that does not rel=
y
> on smsbox-routes
> and it is not possible to add smsbox-routes   on the fly.
>
> Any help would be appreciated
>
>

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

<div dir=3D"ltr">Do you mean something like the following?<br>group =3D sms=
-service<div>get-url =3D &quot;<a href=3D"http://get-url.com">http://get-ur=
l.com</a>&quot;<br>catch-all =3D yes<br>This kind of setup does not work wi=
thout adding smsbox-route.=C2=A0

smsbox-route is either short code or smsc-id specific.<br>If you mean somet=
hing else, can you write an example please?<br><br>Than k you<br><br></div>=
</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Wed, Apr 19, 2023 at 9:32=E2=80=AFPM rm <a href=3D"http://mobbis.am">mob=
bis.am</a> &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir=3D"ltr">
<div></div>
<div>
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">Hi Akamat,</div>
<div dir=3D"ltr"><br>
</div>
<div dir=3D"ltr">Honestly, I suspect that I do not fully understand your si=
tuation ( because if I usnderstand you in right way, it has very obvious so=
lution).</div>
<div dir=3D"ltr">Thus if I understand your request correctly, you just need=
 to:</div>
<div dir=3D"ltr">
<ol>
<li><span>configure sms-service</span></li><li style=3D"font-size:inherit">=
<span style=3D"font-size:inherit">set your script on =C2=A0apache or iis</s=
pan></li><li style=3D"font-size:inherit"><span style=3D"font-size:inherit">=
use get-url or post-url and other sms-service related parameters according =
your needs</span></li></ol>
<div dir=3D"ltr">Thus you will have smsc independet script which will handl=
e all your MO requests especially if you set catch-all parameter to true.</=
div>
</div>
</div>
</div>
<div id=3D"m_-9200877708385635788ms-outlook-mobile-signature">
<div><br>
</div>
<div dir=3D"ltr">
<div dir=3D"ltr">Best regards,</div>
<div dir=3D"ltr">Ruben Melikyan</div>
</div>
</div>
</div>
</div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"m_-9200877708385635788divRplyFwdMsg" dir=3D"ltr"><font face=3D"C=
alibri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b>=
 users &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">us=
[email protected]</a>&gt; on behalf of akamat sarat &lt;<a href=3D"mai=
lto:[email protected]" target=3D"_blank">[email protected]</a>&gt=
;<br>
<b>Sent:</b> Wednesday, April 19, 2023 7:32:45 PM<br>
<b>To:</b> Tolga Ulas &lt;<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>&gt;<br>
<b>Cc:</b> <a href=3D"mailto:[email protected]" target=3D"_blank">users@kann=
el.org</a> &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">users@=
kannel.org</a>&gt;<br>
<b>Subject:</b> Re: MO Routing on the fly</font>
<div>=C2=A0</div>
</div>
<div>
<div dir=3D"ltr">Even though I could not figure it out, the smsc-id paramet=
er is not mandatory for the smsbox-route group.
<div>Does this imply it can be SMSC independent if some other configuration=
 is properly applied? possibly. I&#39;ve tested smsbox-route group without =
specifying any smsc-ids and this did not work.<br>
But I&#39;m probably missing something.</div>
</div>
<br>
<div>
<div dir=3D"ltr">On Wed, Apr 19, 2023 at 7:28=E2=80=AFPM akamat sarat &lt;<=
a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma=
il.com</a>&gt; wrote:<br>
</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
<div dir=3D"ltr">I figured out a way to set it up the way I need it to work=
.<br>
So like I said, I wanted to route all MOs originating from all SMSCs to a s=
ingle script to=C2=A0handle all of them.<br>
<div>In my SMSc configuration I am using reroute-smsc-id to re-route all in=
coming MOs to a=C2=A0single HTTP SMSc that will invoke my script.<br>
The thing that kept me back is the preferred-smsc-id setting, because if it=
 is used in conjunction=C2=A0with reroute-smsc-id then reroute-smsc-id is c=
ompletely ignored without any mention of it in kannel logs.<br>
<br>
<br>
</div>
</div>
<br>
<div>
<div dir=3D"ltr">On Wed, Apr 19, 2023 at 7:12=E2=80=AFPM Tolga Ulas &lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">tolga.ulas@tolga=
ulas.com</a>&gt; wrote:<br>
</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
<div dir=3D"ltr">Not sure on top of my head whether=C2=A0it can be smsc ind=
ependent, check with the documentation in the related section of thart smsc=
-id part and smsbox-route functioning in general.=C2=A0<br clear=3D"all">
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">Tolga Ulas
<div><br>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
<div>
<div dir=3D"ltr">On Wed, Apr 19, 2023 at 5:51=E2=80=AFPM akamat sarat &lt;<=
a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma=
il.com</a>&gt; wrote:<br>
</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
<div dir=3D"ltr">
<div>Thank for coming back, you mean something like:</div>
<div><br>
</div>
<div>group=3Dsmsbox-route<br>
smsbox-id=3Dmysmsbox<br>
smsc-id=3DSMSC1; SMSC2; SMSC3...<br>
<br>
If so, this means that every time a new SMSC is added, I will need to add i=
t to the smsc-id&#39;s list in the above configuration.<br>
After that I will need to restart kannel which I do not want to do.<br>
If thats=C2=A0not what you mean can you write an example?<br>
<br>
Thank you.<br>
<br>
</div>
</div>
<br>
<div>
<div dir=3D"ltr">On Wed, Apr 19, 2023 at 5:39=E2=80=AFPM Tolga Ulas &lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">tolga.ulas@tolga=
ulas.com</a>&gt; wrote:<br>
</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
<div dir=3D"ltr">
<div>Put a single route to a single smsbox which has a single service and d=
efine all your smscs in the route as origin.=C2=A0</div>
<div><br>
</div>
<div>
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">Tolga Ulas
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div>
<div dir=3D"ltr">On Wed, Apr 19, 2023 at 5:22=E2=80=AFPM akamat sarat &lt;<=
a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma=
il.com</a>&gt; wrote:<br>
</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">
<div dir=3D"ltr">To all kannelers,<br>
<br>
I am trying to find a way to configure kannel so that all incoming messages=
 (MOs) from all SMSCs to go to the same script.<br>
The problem is that i could not find a working solution that does not rely =
on smsbox-routes<br>
and it is not possible to add=C2=A0smsbox-routes=C2=A0=C2=A0=C2=A0on the fl=
y.<br>
<br>
Any help would be appreciated=C2=A0</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>

</blockquote></div>

--0000000000000d2ef805f9bfd658--