Re: MO Routing on the fly

akamat sarat <[email protected]> Wed, 19 Apr 2023 19:28:58 +0300
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <CA+XCKAyYQDKRO4ktMy1AyUC2Pmf8yisFXs=CYHfH5+kv-_aV-w@mail.gmail.com>
--0000000000006d668d05f9b2ec31
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 <[email protected]=
m> 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 ad=
d
>> 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@gmai=
l.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
>>>> rely on smsbox-routes
>>>> and it is not possible to add smsbox-routes   on the fly.
>>>>
>>>> Any help would be appreciated
>>>>
>>>

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

<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 t=
o a single script to=C2=A0handle all of them.<br><div>In my SMSc configurat=
ion I am using reroute-smsc-id to re-route all incoming MOs to a=C2=A0singl=
e HTTP SMSc that will invoke my script.<br>The thing that kept me back is t=
he preferred-smsc-id setting, because if it is used in conjunction=C2=A0wit=
h reroute-smsc-id then reroute-smsc-id is completely ignored without any me=
ntion of it in kannel logs.<br><br><br></div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 19, 2023 at 7:12=
=E2=80=AFPM Tolga Ulas &lt;<a href=3D"mailto:[email protected]">tolg=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" 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 independent, 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 class=3D"gmail_quote"><div d=
ir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 19, 2023 at 5:51=E2=80=AFPM aka=
mat sarat &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">a=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);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 wi=
ll need to add it 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 t=
hats=C2=A0not what you mean can you write an example?<br><br>Thank you.<br>=
<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm=
ail_attr">On Wed, Apr 19, 2023 at 5:39=E2=80=AFPM Tolga Ulas &lt;<a href=3D=
"mailto:[email protected]" target=3D"_blank">[email protected]=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" 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 si=
ngle service and define 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><b=
r></div></div></div></div></div></div><br><div class=3D"gmail_quote"><div d=
ir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 19, 2023 at 5:22=E2=80=AFPM aka=
mat sarat &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">a=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);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 po=
ssible to add=C2=A0smsbox-routes=C2=A0=C2=A0=C2=A0on the fly.<br><br>Any he=
lp would be appreciated=C2=A0</div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--0000000000006d668d05f9b2ec31--