Re: MO Routing on the fly
Sayed Hadi Rastgou Haghi <[email protected]> Mon, 24 Apr 2023 08:42:03 +0330
| Newsgroups | gmane.comp.mobile.kannel.user |
|---|---|
| Message-ID | <CADEkTo2J0u_MEEptAk3nXKs6Ttu+nxkdFpgPws3V=H-wfKd1Kw@mail.gmail.com> |
--000000000000a06c2205fa0e0f90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Akamat, From kannel user manual, *Smsbox routing inside bearerbox* The communication link between bearerbox and smsbox has been designed for the purpose of load-balancing via random assignment. Which means, bearerbox holds all smsc connections and passes inbound message to one of the connected smsboxes. So you have a determined route for outbound messages, but no determined route for inbound messages. Which basically, in my opinion, means that if you use one or more smsboxes without smsbox-id and with the same sms-service config, bearerbox should load-balance incoming traffic via those. (without any specific smsbox-route= ) On Thu, Apr 20, 2023 at 12:07=E2=80=AFPM akamat sarat <[email protected]= om> wrote: > 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 i= s >> 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 wit= h >> 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@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 >> rely on smsbox-routes >> and it is not possible to add smsbox-routes on the fly. >> >> Any help would be appreciated >> >> --=20 Sincerely, Sayed Hadi Rastgou Haghi --000000000000a06c2205fa0e0f90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Dear=C2=A0Akamat,<div><br></div><div>From kannel user manu= al,</div><div><br></div><div><b>Smsbox routing inside bearerbox</b><br>The = communication link between bearerbox and smsbox has been designed for the p= urpose of load-balancing via random assignment. Which means, bearerbox hold= s all smsc connections and passes inbound message to one of the connected s= msboxes. So you have a determined route for outbound messages, but no deter= mined route for inbound messages.<br></div><div><br></div><div>Which basica= lly, in my opinion, means that if you use one or more=C2=A0smsboxes without= =C2=A0<span style=3D"color:rgb(0,0,0);font-family:monospace;font-size:mediu= m;background-color:rgb(255,242,204)">smsbox-id</span>=C2=A0and with the sam= e=C2=A0<span style=3D"background-color:rgb(255,242,204)">sms-service</span>= =C2=A0config, bearerbox should load-balance incoming traffic via those. (<s= pan style=3D"background-color:rgb(255,229,153)">without any specific=C2=A0<= span style=3D"color:rgb(0,0,0)">smsbox-route</span></span>)</div><div><br><= /div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a= ttr">On Thu, Apr 20, 2023 at 12:07=E2=80=AFPM akamat sarat <<a href=3D"m= ailto:[email protected]">[email protected]</a>> wrote:<br></di= v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde= r-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Do you= mean something like the following?<br>group =3D sms-service<div>get-url = =3D "<a href=3D"http://get-url.com" target=3D"_blank">http://get-url.c= om</a>"<br>catch-all =3D yes<br>This kind of setup does not work witho= ut 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" tar= get=3D"_blank">mobbis.am</a> <<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a>> 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> <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_6345002017266730637m_-9200877708385635788ms-outlook-mobile-sig= nature"> <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_6345002017266730637m_-9200877708385635788divRplyFwdMsg" dir=3D= "ltr"><font face=3D"Calibri, sans-serif" style=3D"font-size:11pt" color=3D"= #000000"><b>From:</b> users <<a href=3D"mailto:[email protected]"= target=3D"_blank">[email protected]</a>> on behalf of akamat sar= at <<a href=3D"mailto:[email protected]" target=3D"_blank">akamat.s= [email protected]</a>><br> <b>Sent:</b> Wednesday, April 19, 2023 7:32:45 PM<br> <b>To:</b> Tolga Ulas <<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>><br> <b>Cc:</b> <a href=3D"mailto:[email protected]" target=3D"_blank">users@kann= el.org</a> <<a href=3D"mailto:[email protected]" target=3D"_blank">users@= kannel.org</a>><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've tested smsbox-route group without = specifying any smsc-ids and this did not work.<br> But I'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 <<= a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma= il.com</a>> 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 <<a = href=3D"mailto:[email protected]" target=3D"_blank">tolga.ulas@tolga= ulas.com</a>> 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 <<= a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma= il.com</a>> 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'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 <<a = href=3D"mailto:[email protected]" target=3D"_blank">tolga.ulas@tolga= ulas.com</a>> 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 <<= a href=3D"mailto:[email protected]" target=3D"_blank">akamat.sarat@gma= il.com</a>> 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> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr">Sincerely,<br><br>Sayed Hadi Rastgou Haghi<br></div></div> --000000000000a06c2205fa0e0f90--