Re: MO Routing on the fly

akamat sarat <[email protected]> Mon, 24 Apr 2023 12:31:25 +0300
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <CA+XCKAzuY3qzN=uioGSwQxQCz+-Sxhcf1WRDZoYG_7O4Xk96Rg@mail.gmail.com>
--00000000000047595505fa11ac49
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear All,

Thank you for your advice. I have tried all of your suggestions but
cant get it to work like you say it should.
Without an smsbox-route, when ever an MO comes in I still get the "WARNING:
smsbox_list empty"  warning.
Below my complete setup is below, what am I doing wrong?


group =3D core
admin-port =3D 13000
admin-password =3D ADMINPW
status-password =3D STATUSPW
smsbox-port =3D 13032
log-file =3D "/var/log/kannel/kannel.log"
log-level =3D 5
box-allow-ip =3D "*.*.*.*"
access-log =3D "/var/log/kannel/access.log"
store-type =3D spool
store-location =3D /var/spool/kannel/store
smsbox-max-pending =3D 100
dlr-storage =3D "internal"
sms-resend-freq =3D 1200
sms-resend-retry =3D 1

group =3D smsbox
bearerbox-host =3D localhost
bearerbox-port =3D 13032
sendsms-port =3D 13033
log-file =3D "/var/log/kannel/nosmscidsmsbox.log"
log-level =3D 3
reply-emptymessage =3D ""
http-request-retry =3D 2
http-queue-delay =3D 15
sms-length =3D 500
mo-recode=3Dyes
group =3D sms-service
keyword =3D default
catch-all=3Dtrue
omit-empty =3D true
assume-plain-text =3D yes
concatenation =3D true
max-messages =3D 0
get-url =3D "my_gt_uri"

group =3D smsc
smsc =3D smpp
smsc-admin-id =3D SMSC
smsc-id =3D SMSC
allowed-smsc-id =3D SMSC
preferred-smsc-id =3D SMSC
host =3D host
port =3D port
transceiver-mode =3D 1
smsc-username =3D USERNAME
smsc-password =3D PASSWORD
dest-addr-ton =3D 0
dest-addr-npi =3D 0
source-addr-ton =3D 0
source-addr-npi =3D 0
throughput =3D 30
enquire-link-interval =3D 30
log-file =3D /var/log/kannel/SMSC.log
log-level =3D 0
system-type =3D ""


On Mon, Apr 24, 2023 at 10:02=E2=80=AFAM rm mobbis.am <[email protected]> wrote:

> Hi Akamat. Sorry for late response.
>
>
>
> The point is that you organize routing outside kannel and inside your
> script or your MO sms handler web application side. This gives you
> possibility to implement sms-service with any difficulty.
>
>
>
> *Below are essential configs examples:*
>
>
>
> # ------ SMSBOX GROUP ------
>
> group =3D smsbox
>
> bearerbox-host =3D localhost
>
> bearerbox-port =3D 19005
>
> sendsms-port =3D 19555
>
> log-file =3D "/var/log/kanpsms/smsbox.log"
>
> log-level =3D 3
>
> access-log =3D "/var/log/kanpsms/smsbox-sms-access.log"
>
> sendsms-chars =3D "0123456789 +#._"
>
> reply-couldnotfetch =3D // If set, replaces the SMS message sent back to
> user when Kannel could not fetch content //
>
> reply-couldnotrepresent =3D // If set, replaces the SMS message sent back
> when Kannel could not represent the result as a SMS message//
>
> reply-requestfailed =3D // If set, replaces the SMS message sent back whe=
n
> Kannel could not contact http service.//
>
> reply-emptymessage =3D ""
>
> http-request-retry =3D 2
>
> http-queue-delay =3D 15
>
> sms-length =3D 500
>
> mo-recode=3Dyes
>
>
>
> # ------  SMS SERVICE ------
>
> group =3D sms-service
>
> keyword =3D default
>
> catch-all=3Dtrue
>
> omit-empty =3D true
>
> assume-plain-text =3D yes
>
> concatenation =3D true
>
> max-messages =3D 0
>
> get-url =3D //Link to your script//
>
>
>
> # ------ SENDSMS USER GROUPS ------
>
> group =3D sendsms-user
>
> username =3D SMSC1
>
> password =3D *****
>
> user-deny-ip =3D "*.*.*.*"
>
> user-allow-ip =3D "************=E2=80=9D
>
> concatenation =3D true
>
> max-messages =3D 4
>
> forced-smsc =3D SMSC-ID1
>
>
>
> group =3D sendsms-user
>
> username =3D SMSC2
>
> password =3D ******
>
> user-deny-ip =3D "*.*.*.*"
>
> user-allow-ip =3D "************=E2=80=9D
>
> concatenation =3D true
>
> max-messages =3D 4
>
> forced-smsc =3D SMSC-ID2
>
>
>
> group =3D sendsms-user
>
> username =3D SMSC3
>
> password =3D *******
>
> user-deny-ip =3D "*.*.*.*"
>
> user-allow-ip =3D  "************=E2=80=9D
>
> concatenation =3D true
>
> max-messages =3D 4
>
> forced-smsc =3D SMSC-ID3
>
>
>
>
>
> *Please note,  that there is no smsbox-route config in my setup.*
>
>
>
> *Explanation*
>
> When kannel receives MO message it forwards received message to your
> script.
>
> Message handling, processing, saving your message to related DB,
> generating answer and also submitting reply/answer message to related SMS=
C
> (using the *KANNEL=E2=80=99S *HTTP interface to send SMS messages) must b=
e
> implemented in your script or your MO sms handler web application side.
>
>
>
> *Best regards,*
>
> *Ruben Melikyan*
> ------------------------------
>
> *From:* akamat sarat <[email protected]>
> *Sent:* Thursday, April 20, 2023 11:53:17 AM
> *To:* rm mobbis.am <[email protected]>
> *Cc:* Tolga Ulas <[email protected]>; [email protected] <
> [email protected]>
> *Subject:* Re: MO Routing on the fly
>
>
>
> 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
>
>

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

<div dir=3D"ltr">Dear All,<br><br>Thank you for your advice. I have tried a=
ll of your suggestions but cant=C2=A0get it to work like you say it should.=
<br>Without=C2=A0an smsbox-route, when ever an MO comes in I still get the =
&quot;WARNING: smsbox_list empty&quot;=C2=A0 warning.<br>Below my complete =
setup is below, what am I=C2=A0doing wrong?<br><font color=3D"#000000"><br>=
<br></font><div style=3D"font-family:Consolas,&quot;Courier New&quot;,monos=
pace;font-size:14px;line-height:19px;white-space:pre"><div style=3D""><span=
 style=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">group =
=3D core</font></span></div><div style=3D""><span style=3D"background-color=
:rgb(243,243,243)"><font color=3D"#000000">admin-port =3D 13000</font></spa=
n></div><div style=3D""><span style=3D"background-color:rgb(243,243,243)"><=
font color=3D"#000000">admin-password =3D ADMINPW</font></span></div><div s=
tyle=3D""><span style=3D"background-color:rgb(243,243,243)"><font color=3D"=
#000000">status-password =3D STATUSPW</font></span></div><div style=3D""><d=
iv style=3D"line-height:19px"><div style=3D""><span style=3D"background-col=
or:rgb(243,243,243)"><font color=3D"#000000">smsbox-port =3D 13032</font></=
span></div><div style=3D""><div style=3D"line-height:19px"><div><span style=
=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">log-file =3D=
 &quot;/var/log/kannel/kannel.log&quot;</font></span></div><div><span style=
=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">log-level =
=3D 5</font></span></div></div><div style=3D"line-height:19px"><div><span s=
tyle=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">box-allo=
w-ip =3D &quot;*.*.*.*&quot;</font></span></div><div><span style=3D"backgro=
und-color:rgb(243,243,243)"><font color=3D"#000000">access-log =3D &quot;/v=
ar/log/kannel/access.log&quot;</font></span></div></div><div style=3D"line-=
height:19px"><div><span style=3D"background-color:rgb(243,243,243)"><font c=
olor=3D"#000000">store-type =3D spool</font></span></div><div><span style=
=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">store-locati=
on =3D /var/spool/kannel/store</font></span></div><div><span style=3D"backg=
round-color:rgb(243,243,243)"><font color=3D"#000000">smsbox-max-pending =
=3D 100</font></span></div></div><div style=3D"line-height:19px"><div style=
=3D""><span style=3D"background-color:rgb(243,243,243)"><font color=3D"#000=
000">dlr-storage =3D &quot;internal&quot;</font></span></div><div style=3D"=
"><span style=3D"background-color:rgb(243,243,243)"><font color=3D"#000000"=
>sms-resend-freq =3D 1200</font></span></div><div style=3D""><span style=3D=
"background-color:rgb(243,243,243)"><font color=3D"#000000">sms-resend-retr=
y =3D 1</font></span></div><div style=3D""><span style=3D"background-color:=
rgb(243,243,243)"><font color=3D"#000000"><br></font></span></div><div styl=
e=3D""><font color=3D"#000000">

</font><div style=3D"line-height:19px"><div style=3D""><span style=3D"backg=
round-color:rgb(255,255,255)"><font color=3D"#000000">group =3D smsbox</fon=
t></span></div><div style=3D""><span style=3D"background-color:rgb(255,255,=
255)"><font color=3D"#000000">bearerbox-host =3D localhost</font></span></d=
iv><div style=3D""><span style=3D"background-color:rgb(255,255,255)"><font =
color=3D"#000000">bearerbox-port =3D 13032</font></span></div><div style=3D=
""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000000=
">sendsms-port =3D 13033</font></span></div><div style=3D""><span style=3D"=
background-color:rgb(255,255,255)"><font color=3D"#000000">log-file =3D &qu=
ot;/var/log/kannel/nosmscidsmsbox.log&quot;</font></span></div><div style=
=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000=
000">log-level =3D 3
</font></span><div style=3D"line-height:19px"><div><span style=3D"backgroun=
d-color:rgb(255,255,255)"><font color=3D"#000000">reply-emptymessage =3D &q=
uot;&quot;</font></span></div><div><span style=3D"background-color:rgb(255,=
255,255)"><font color=3D"#000000">http-request-retry =3D 2</font></span></d=
iv><div><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#0=
00000">http-queue-delay =3D 15</font></span></div><div><span style=3D"backg=
round-color:rgb(255,255,255)"><font color=3D"#000000">sms-length =3D 500</f=
ont></span></div><div><span style=3D"background-color:rgb(255,255,255)"><fo=
nt color=3D"#000000">mo-recode=3Dyes</font></span></div></div><span style=
=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">


</font></span><div style=3D"line-height:19px"><div><span style=3D"backgroun=
d-color:rgb(255,255,255)"><font color=3D"#000000">group =3D sms-service</fo=
nt></span></div><div><span style=3D"background-color:rgb(255,255,255)"><fon=
t color=3D"#000000">keyword =3D default</font></span></div><div><span style=
=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">catch-all=3D=
true</font></span></div><div><span style=3D"background-color:rgb(255,255,25=
5)"><font color=3D"#000000">omit-empty =3D true</font></span></div><div><sp=
an style=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">assu=
me-plain-text =3D yes</font></span></div><div><span style=3D"background-col=
or:rgb(255,255,255)"><font color=3D"#000000">concatenation =3D true</font><=
/span></div><div><span style=3D"background-color:rgb(255,255,255)"><font co=
lor=3D"#000000">max-messages =3D 0</font></span></div><div><span style=3D"b=
ackground-color:rgb(255,255,255)"><font color=3D"#000000">get-url =3D &quot=
;my_gt_uri&quot;<br></font></span></div></div><span style=3D"background-col=
or:rgb(255,255,255)"><font color=3D"#000000">
</font></span><div style=3D"line-height:19px"><span style=3D"background-col=
or:rgb(255,255,255)"><font color=3D"#000000"><br></font></span><div style=
=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000=
000">group =3D smsc</font></span></div><div style=3D""><span style=3D"backg=
round-color:rgb(255,255,255)"><font color=3D"#000000">smsc =3D smpp</font><=
/span></div><div style=3D""><span style=3D"background-color:rgb(255,255,255=
)"><font color=3D"#000000">smsc-admin-id =3D SMSC</font></span></div><div s=
tyle=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"=
#000000">smsc-id =3D SMSC</font></span></div><div style=3D""><span style=3D=
"background-color:rgb(255,255,255)"><font color=3D"#000000">allowed-smsc-id=
 =3D SMSC</font></span></div><div style=3D""><span style=3D"background-colo=
r:rgb(255,255,255)"><font color=3D"#000000">preferred-smsc-id =3D SMSC</fon=
t></span></div><div style=3D""><span style=3D"background-color:rgb(255,255,=
255)"><font color=3D"#000000">host =3D host</font></span></div><div style=
=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000=
000">port =3D port</font></span></div><div style=3D""><span style=3D"backgr=
ound-color:rgb(255,255,255)"><font color=3D"#000000">transceiver-mode =3D 1=
</font></span></div><div style=3D""><span style=3D"background-color:rgb(255=
,255,255)"><font color=3D"#000000">smsc-username =3D USERNAME</font></span>=
</div><div style=3D""><span style=3D"background-color:rgb(255,255,255)"><fo=
nt color=3D"#000000">smsc-password =3D PASSWORD</font></span></div><div sty=
le=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#0=
00000">dest-addr-ton =3D 0</font></span></div><div style=3D""><span style=
=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">dest-addr-np=
i =3D 0</font></span></div><div style=3D""><span style=3D"background-color:=
rgb(255,255,255)"><font color=3D"#000000">source-addr-ton =3D 0</font></spa=
n></div><div style=3D""><span style=3D"background-color:rgb(255,255,255)"><=
font color=3D"#000000">source-addr-npi =3D 0</font></span></div><div style=
=3D""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000=
000">throughput =3D 30</font></span></div><div style=3D""><span style=3D"ba=
ckground-color:rgb(255,255,255)"><font color=3D"#000000">enquire-link-inter=
val =3D 30</font></span></div><div style=3D""><span style=3D"background-col=
or:rgb(255,255,255)"><font color=3D"#000000">log-file =3D /var/log/kannel/S=
MSC.log</font></span></div><div style=3D""><span style=3D"background-color:=
rgb(255,255,255)"><font color=3D"#000000">log-level =3D 0</font></span></di=
v><div style=3D""><span style=3D"background-color:rgb(255,255,255)"><font c=
olor=3D"#000000">system-type =3D &quot;&quot;</font></span></div></div><spa=
n style=3D"color:rgb(212,212,212);background-color:rgb(30,30,30)">




</span></div></div><font color=3D"#d4d4d4">

</font></div><div style=3D"color:rgb(212,212,212)"><span style=3D"backgroun=
d-color:rgb(243,243,243)"><br></span></div></div></div></div></div></div></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
 Mon, Apr 24, 2023 at 10:02=E2=80=AFAM rm <a href=3D"http://mobbis.am">mobb=
is.am</a> &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<b=
r></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 class=3D"msg=
-3270234423509886426">





<div lang=3D"EN-US" style=3D"overflow-wrap: break-word;">
<div class=3D"m_-3270234423509886426WordSection1">
<div>
<div>
<div>
<div>
<p class=3D"MsoNormal">Hi Akamat. Sorry for late response. <u></u><u></u></=
p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">The point is that you organize routing outside kanne=
l and inside your script or your MO sms handler web application side. This =
gives you possibility to implement sms-service with any difficulty.<u></u><=
u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><b><u></u>=C2=A0<u></u></b></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:14pt">Below are essentia=
l configs examples:<u></u><u></u></span></b></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"># ------ SMSBOX GROUP ------<u></u><u></u></p>
<p class=3D"MsoNormal">group =3D smsbox<u></u><u></u></p>
<p class=3D"MsoNormal">bearerbox-host =3D localhost<u></u><u></u></p>
<p class=3D"MsoNormal">bearerbox-port =3D 19005<u></u><u></u></p>
<p class=3D"MsoNormal">sendsms-port =3D 19555<u></u><u></u></p>
<p class=3D"MsoNormal">log-file =3D &quot;/var/log/kanpsms/smsbox.log&quot;=
<u></u><u></u></p>
<p class=3D"MsoNormal">log-level =3D 3<u></u><u></u></p>
<p class=3D"MsoNormal">access-log =3D &quot;/var/log/kanpsms/smsbox-sms-acc=
ess.log&quot;<u></u><u></u></p>
<p class=3D"MsoNormal">sendsms-chars =3D &quot;0123456789 +#._&quot;<u></u>=
<u></u></p>
<p class=3D"MsoNormal">reply-couldnotfetch =3D // If set, replaces the SMS =
message sent back to user when Kannel could not fetch content //<u></u><u><=
/u></p>
<p class=3D"MsoNormal">reply-couldnotrepresent =3D // If set, replaces the =
SMS message sent back when Kannel could not represent the result as a SMS m=
essage//<span style=3D"font-size:13.5pt;font-family:&quot;Times New Roman&q=
uot;,serif;color:black"><u></u><u></u></span></p>
<p class=3D"MsoNormal">reply-requestfailed =3D // If set, replaces the SMS =
message sent back when Kannel could not contact http service.//<u></u><u></=
u></p>
<p class=3D"MsoNormal">reply-emptymessage =3D &quot;&quot;<u></u><u></u></p=
>
<p class=3D"MsoNormal">http-request-retry =3D 2<u></u><u></u></p>
<p class=3D"MsoNormal">http-queue-delay =3D 15<u></u><u></u></p>
<p class=3D"MsoNormal">sms-length =3D 500<u></u><u></u></p>
<p class=3D"MsoNormal">mo-recode=3Dyes<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"># ------=C2=A0 SMS SERVICE ------<u></u><u></u></p>
<p class=3D"MsoNormal">group =3D sms-service<u></u><u></u></p>
<p class=3D"MsoNormal">keyword =3D default<u></u><u></u></p>
<p class=3D"MsoNormal">catch-all=3Dtrue<u></u><u></u></p>
<p class=3D"MsoNormal">omit-empty =3D true<u></u><u></u></p>
<p class=3D"MsoNormal">assume-plain-text =3D yes<u></u><u></u></p>
<p class=3D"MsoNormal">concatenation =3D true<u></u><u></u></p>
<p class=3D"MsoNormal">max-messages =3D 0<u></u><u></u></p>
<p class=3D"MsoNormal">get-url =3D //Link to your script//<u></u><u></u></p=
>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"># ------ SENDSMS USER GROUPS ------<u></u><u></u></p=
>
<p class=3D"MsoNormal">group =3D sendsms-user<u></u><u></u></p>
<p class=3D"MsoNormal">username =3D SMSC1<u></u><u></u></p>
<p class=3D"MsoNormal">password =3D *****<u></u><u></u></p>
<p class=3D"MsoNormal">user-deny-ip =3D &quot;*.*.*.*&quot;<u></u><u></u></=
p>
<p class=3D"MsoNormal">user-allow-ip =3D &quot;************=E2=80=9D<u></u>=
<u></u></p>
<p class=3D"MsoNormal">concatenation =3D true<u></u><u></u></p>
<p class=3D"MsoNormal">max-messages =3D 4<u></u><u></u></p>
<p class=3D"MsoNormal">forced-smsc =3D SMSC-ID1<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">group =3D sendsms-user<u></u><u></u></p>
<p class=3D"MsoNormal">username =3D SMSC2<u></u><u></u></p>
<p class=3D"MsoNormal">password =3D ******<u></u><u></u></p>
<p class=3D"MsoNormal">user-deny-ip =3D &quot;*.*.*.*&quot;<u></u><u></u></=
p>
<p class=3D"MsoNormal">user-allow-ip =3D &quot;************=E2=80=9D<u></u>=
<u></u></p>
<p class=3D"MsoNormal">concatenation =3D true<u></u><u></u></p>
<p class=3D"MsoNormal">max-messages =3D 4<u></u><u></u></p>
<p class=3D"MsoNormal">forced-smsc =3D SMSC-ID2<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">group =3D sendsms-user<u></u><u></u></p>
<p class=3D"MsoNormal">username =3D SMSC3<u></u><u></u></p>
<p class=3D"MsoNormal">password =3D *******<u></u><u></u></p>
<p class=3D"MsoNormal">user-deny-ip =3D &quot;*.*.*.*&quot;<u></u><u></u></=
p>
<p class=3D"MsoNormal">user-allow-ip =3D =C2=A0&quot;************=E2=80=9D<=
u></u><u></u></p>
<p class=3D"MsoNormal">concatenation =3D true<u></u><u></u></p>
<p class=3D"MsoNormal">max-messages =3D 4<u></u><u></u></p>
<p class=3D"MsoNormal">forced-smsc =3D SMSC-ID3<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:12pt">Please note, =C2=
=A0that there is no smsbox-route config in my setup.<u></u><u></u></span></=
b></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:14pt">Explanation<u></u>=
<u></u></span></b></p>
<p class=3D"MsoNormal">When kannel receives MO message it forwards received=
 message to your script.
<u></u><u></u></p>
<p class=3D"MsoNormal">Message handling, processing, saving your message to=
 related DB, generating answer and also submitting reply/answer message to =
related SMSC (using the
<b>KANNEL=E2=80=99S </b>HTTP interface to send SMS messages) must be implem=
ented in your script or your MO sms handler web application side. =C2=A0<u>=
</u><u></u></p>
</div>
</div>
</div>
<div id=3D"m_-3270234423509886426ms-outlook-mobile-signature">
<div>
<p class=3D"MsoNormal"><b><u></u>=C2=A0<u></u></b></p>
</div>
<div>
<div>
<p class=3D"MsoNormal"><b>Best regards,<u></u><u></u></b></p>
</div>
<div>
<p class=3D"MsoNormal"><b>Ruben Melikyan<u></u><u></u></b></p>
</div>
</div>
</div>
</div>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center">
<hr size=3D"2" width=3D"98%" align=3D"center">
</div>
<div id=3D"m_-3270234423509886426divRplyFwdMsg">
<p class=3D"MsoNormal"><b><span style=3D"color:black">From:</span></b><span=
 style=3D"color:black"> akamat sarat &lt;<a href=3D"mailto:akamat.sarat@gma=
il.com" target=3D"_blank">[email protected]</a>&gt;<br>
<b>Sent:</b> Thursday, April 20, 2023 11:53:17 AM<br>
<b>To:</b> rm <a href=3D"http://mobbis.am" target=3D"_blank">mobbis.am</a> =
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;<=
br>
<b>Cc:</b> Tolga Ulas &lt;<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>&gt;; <a href=3D"mailto:users@kann=
el.org" target=3D"_blank">[email protected]</a> &lt;<a href=3D"mailto:users@=
kannel.org" target=3D"_blank">[email protected]</a>&gt;<br>
<b>Subject:</b> Re: MO Routing on the fly</span> <u></u><u></u></p>
<div>
<p class=3D"MsoNormal">=C2=A0<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class=3D"MsoNormal">Do you mean something like the following?<br>
group =3D sms-service <u></u><u></u></p>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12pt">get-url =3D &quot;<a hr=
ef=3D"http://get-url.com" target=3D"_blank">http://get-url.com</a>&quot;<br=
>
catch-all =3D yes<br>
This kind of setup does not work without adding smsbox-route.=C2=A0 smsbox-=
route is either short code or smsc-id specific.<br>
If you mean something else, can you write an example please?<br>
<br>
Than k you<u></u><u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 9:32=E2=80=AFPM rm <a href=
=3D"http://mobbis.am" target=3D"_blank">
mobbis.am</a> &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">rm@mobb=
is.am</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<div>
<div>
<div>
<div>
<div>
<p class=3D"MsoNormal">Hi Akamat,<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Honestly, I suspect that I do not fully understand y=
our situation ( because if I usnderstand you in right way, it has very obvi=
ous solution).<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Thus if I understand your request correctly, you jus=
t need to:<u></u><u></u></p>
</div>
<div>
<ol start=3D"1" type=3D"1">
<li class=3D"MsoNormal">
configure sms-service<u></u><u></u></li><li class=3D"MsoNormal" style=3D"fo=
nt-size:inherit">
set your script on =C2=A0apache or iis<u></u><u></u></li><li class=3D"MsoNo=
rmal" style=3D"font-size:inherit">
use get-url or post-url and other sms-service related parameters according =
your needs<u></u><u></u></li></ol>
<div>
<p class=3D"MsoNormal">Thus you will have smsc independet script which will=
 handle all your MO requests especially if you set catch-all parameter to t=
rue.<u></u><u></u></p>
</div>
</div>
</div>
</div>
<div id=3D"m_-3270234423509886426x_m_-9200877708385635788ms-outlook-mobile-=
signature">
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<div>
<p class=3D"MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Ruben Melikyan<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center">
<hr size=3D"2" width=3D"98%" align=3D"center">
</div>
<div id=3D"m_-3270234423509886426x_m_-9200877708385635788divRplyFwdMsg">
<p class=3D"MsoNormal"><b><span style=3D"color:black">From:</span></b><span=
 style=3D"color:black"> users &lt;<a href=3D"mailto:[email protected]=
g" target=3D"_blank">[email protected]</a>&gt; on behalf of akamat s=
arat &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">akamat=
[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</span> <u></u><u></u></p>
<div>
<p class=3D"MsoNormal">=C2=A0<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class=3D"MsoNormal">Even though I could not figure it out, the smsc-id p=
arameter is not mandatory for the smsbox-route group.
<u></u><u></u></p>
<div>
<p class=3D"MsoNormal">Does this imply it can be SMSC independent if some o=
ther configuration is properly applied? possibly. I&#39;ve tested smsbox-ro=
ute group without specifying any smsc-ids and this did not work.<br>
But I&#39;m probably missing something.<u></u><u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 7:28=E2=80=AFPM akamat sarat=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sar=
[email protected]</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<p class=3D"MsoNormal">I figured out a way to set it up the way I need it t=
o 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.<u></u><u></u></p>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12pt">In my SMSc configuratio=
n I am using reroute-smsc-id to re-route all incoming 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>
<u></u><u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">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=
@tolgaulas.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<p class=3D"MsoNormal">Not sure on top of my head whether=C2=A0it can be sm=
sc independent, check with the documentation in the related section of thar=
t smsc-id part and smsbox-route functioning in general.=C2=A0<br clear=3D"a=
ll">
<u></u><u></u></p>
<div>
<div>
<div>
<p class=3D"MsoNormal">Tolga Ulas <u></u><u></u></p>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 5:51=E2=80=AFPM akamat sarat=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sar=
[email protected]</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<div>
<p class=3D"MsoNormal">Thank for coming back, you mean something like:<u></=
u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12pt">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.<u></u><u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">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=
@tolgaulas.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<div>
<p class=3D"MsoNormal">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<u></u>=
<u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<div>
<div>
<div>
<p class=3D"MsoNormal">Tolga Ulas <u></u><u></u></p>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 5:22=E2=80=AFPM akamat sarat=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sar=
[email protected]</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4=
.8pt;margin-right:0in">
<div>
<p class=3D"MsoNormal">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<u></u><u></u></p>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>

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

--00000000000047595505fa11ac49--