Re: MO Routing on the fly
Kyriacos/Netsmart <[email protected]> Mon, 24 Apr 2023 12:50:19 +0300
| Newsgroups | gmane.comp.mobile.kannel.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------10ZLZoV33KYAvuOUOZyJONVq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, I think you are missing the smsbox-route route. group = smsbox-route smsbox-id = mySMSBox smsc-id = smpp [list any other SMSC connections here] On 24/04/2023 12:31 pm, akamat sarat wrote: > 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 = core > admin-port = 13000 > admin-password = ADMINPW > status-password = STATUSPW > smsbox-port = 13032 > log-file = "/var/log/kannel/kannel.log" > log-level = 5 > box-allow-ip = "*.*.*.*" > access-log = "/var/log/kannel/access.log" > store-type = spool > store-location = /var/spool/kannel/store > smsbox-max-pending = 100 > dlr-storage = "internal" > sms-resend-freq = 1200 > sms-resend-retry = 1 > group = smsbox > bearerbox-host = localhost > bearerbox-port = 13032 > sendsms-port = 13033 > log-file = "/var/log/kannel/nosmscidsmsbox.log" > log-level = 3 > reply-emptymessage = "" > http-request-retry = 2 > http-queue-delay = 15 > sms-length = 500 > mo-recode=yes > group = sms-service > keyword = default > catch-all=true > omit-empty = true > assume-plain-text = yes > concatenation = true > max-messages = 0 > get-url = "my_gt_uri" > group = smsc > smsc = smpp > smsc-admin-id = SMSC > smsc-id = SMSC > allowed-smsc-id = SMSC > preferred-smsc-id = SMSC > host = host > port = port > transceiver-mode = 1 > smsc-username = USERNAME > smsc-password = PASSWORD > dest-addr-ton = 0 > dest-addr-npi = 0 > source-addr-ton = 0 > source-addr-npi = 0 > throughput = 30 > enquire-link-interval = 30 > log-file = /var/log/kannel/SMSC.log > log-level = 0 > system-type = "" > > On Mon, Apr 24, 2023 at 10:02 AM rm mobbis.am <http://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 = smsbox > > bearerbox-host = localhost > > bearerbox-port = 19005 > > sendsms-port = 19555 > > log-file = "/var/log/kanpsms/smsbox.log" > > log-level = 3 > > access-log = "/var/log/kanpsms/smsbox-sms-access.log" > > sendsms-chars = "0123456789 +#._" > > reply-couldnotfetch = // If set, replaces the SMS message sent > back to user when Kannel could not fetch content // > > reply-couldnotrepresent = // If set, replaces the SMS message sent > back when Kannel could not represent the result as a SMS message// > > reply-requestfailed = // If set, replaces the SMS message sent > back when Kannel could not contact http service.// > > reply-emptymessage = "" > > http-request-retry = 2 > > http-queue-delay = 15 > > sms-length = 500 > > mo-recode=yes > > # ------ SMS SERVICE ------ > > group = sms-service > > keyword = default > > catch-all=true > > omit-empty = true > > assume-plain-text = yes > > concatenation = true > > max-messages = 0 > > get-url = //Link to your script// > > # ------ SENDSMS USER GROUPS ------ > > group = sendsms-user > > username = SMSC1 > > password = ***** > > user-deny-ip = "*.*.*.*" > > user-allow-ip = "************” > > concatenation = true > > max-messages = 4 > > forced-smsc = SMSC-ID1 > > group = sendsms-user > > username = SMSC2 > > password = ****** > > user-deny-ip = "*.*.*.*" > > user-allow-ip = "************” > > concatenation = true > > max-messages = 4 > > forced-smsc = SMSC-ID2 > > group = sendsms-user > > username = SMSC3 > > password = ******* > > user-deny-ip = "*.*.*.*" > > user-allow-ip = "************” > > concatenation = true > > max-messages = 4 > > forced-smsc = 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 SMSC (using the *KANNEL’S *HTTP interface to send SMS > messages) must be 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 <http://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 = sms-service > > get-url = "http://get-url.com" > catch-all = 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 PM rm mobbis.am <http://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 PM akamat sarat > <[email protected]> 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 PM Tolga Ulas > <[email protected]> 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 PM akamat sarat > <[email protected]> wrote: > > Thank for coming back, you mean something like: > > group=smsbox-route > smsbox-id=mysmsbox > smsc-id=SMSC1; 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 PM Tolga Ulas > <[email protected]> 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 PM akamat sarat > <[email protected]> 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 > -- Kyriacos Sakkas Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email:[email protected] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender [email protected] ** --------------10ZLZoV33KYAvuOUOZyJONVq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF= -8"> </head> <body> Hi,<br> <br> I think you are missing the smsbox-route route.<br> <br> group =3D smsbox-route<br> smsbox-id =3D mySMSBox<br> smsc-id =3D <span style=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">smpp [list any other SMSC connections here]</fo= nt></span><br> <br> <br> <div class=3D"moz-cite-prefix">On 24/04/2023 12:31 pm, akamat sarat wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:[email protected]= ail.com"> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DU= TF-8"> <div dir=3D"ltr">Dear All,<br> <br> Thank you for your advice. I have tried all 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 ge= t the "WARNING: smsbox_list empty"=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,"Courier New",monosp= ace;font-size:14px;line-height:19px;white-space:pre"><div style=3D""><spa= n style=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">gro= up =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</fon= t></span></div><div style=3D""><span style=3D"background-color:rgb(243,24= 3,243)"><font color=3D"#000000">admin-password =3D ADMINPW</font></span><= /div><div style=3D""><span style=3D"background-color:rgb(243,243,243)"><f= ont color=3D"#000000">status-password =3D STATUSPW</font></span></div><di= v style=3D""><div style=3D"line-height:19px"><div style=3D""><span style=3D= "background-color: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"#0= 00000">log-file =3D "/var/log/kannel/kannel.log"</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 style=3D"background-color:rgb(243,243,243)"><font color=3D"#0= 00000">box-allow-ip =3D "*.*.*.*"</font></span></div><div><span style=3D"= background-color:rgb(243,243,243)"><font color=3D"#000000">access-log =3D= "/var/log/kannel/access.log"</font></span></div></div><div style=3D"line= -height:19px"><div><span style=3D"background-color:rgb(243,243,243)"><fon= t color=3D"#000000">store-type =3D spool</font></span></div><div><span st= yle=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">store-l= ocation =3D /var/spool/kannel/store</font></span></div><div><span style=3D= "background-color:rgb(243,243,243)"><font color=3D"#000000">smsbox-max-pe= nding =3D 100</font></span></div></div><div style=3D"line-height:19px"><d= iv style=3D""><span style=3D"background-color:rgb(243,243,243)"><font col= or=3D"#000000">dlr-storage =3D "internal"</font></span></div><div style=3D= ""><span style=3D"background-color:rgb(243,243,243)"><font color=3D"#0000= 00">sms-resend-freq =3D 1200</font></span></div><div style=3D""><span sty= le=3D"background-color:rgb(243,243,243)"><font color=3D"#000000">sms-rese= nd-retry =3D 1</font></span></div><div style=3D""><span style=3D"backgrou= nd-color:rgb(243,243,243)"><font color=3D"#000000"> </font></span></div><div style=3D""><font color=3D"#000000"> </font><div style=3D"line-height:19px"><div style=3D""><span style=3D"bac= kground-color:rgb(255,255,255)"><font color=3D"#000000">group =3D smsbox<= /font></span></div><div style=3D""><span style=3D"background-color:rgb(25= 5,255,255)"><font color=3D"#000000">bearerbox-host =3D localhost</font></= span></div><div style=3D""><span style=3D"background-color:rgb(255,255,25= 5)"><font color=3D"#000000">bearerbox-port =3D 13032</font></span></div><= div style=3D""><span style=3D"background-color:rgb(255,255,255)"><font co= lor=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 "/var/log/kannel/nosmscidsmsbox.log"</font></span></div><d= iv style=3D""><span style=3D"background-color:rgb(255,255,255)"><font col= or=3D"#000000">log-level =3D 3 </font></span><div style=3D"line-height:19px"><div><span style=3D"backgro= und-color:rgb(255,255,255)"><font color=3D"#000000">reply-emptymessage =3D= ""</font></span></div><div><span style=3D"background-color:rgb(255,255,2= 55)"><font color=3D"#000000">http-request-retry =3D 2</font></span></div>= <div><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#00= 0000">http-queue-delay =3D 15</font></span></div><div><span style=3D"back= ground-color:rgb(255,255,255)"><font color=3D"#000000">sms-length =3D 500= </font></span></div><div><span style=3D"background-color:rgb(255,255,255)= "><font 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"backgro= und-color:rgb(255,255,255)"><font color=3D"#000000">group =3D sms-service= </font></span></div><div><span style=3D"background-color:rgb(255,255,255)= "><font color=3D"#000000">keyword =3D default</font></span></div><div><sp= an style=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">ca= tch-all=3Dtrue</font></span></div><div><span style=3D"background-color:rg= b(255,255,255)"><font color=3D"#000000">omit-empty =3D true</font></span>= </div><div><span style=3D"background-color:rgb(255,255,255)"><font color=3D= "#000000">assume-plain-text =3D yes</font></span></div><div><span style=3D= "background-color: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 color=3D"#000000">max-messages =3D 0</font></span></div>= <div><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#00= 0000">get-url =3D "my_gt_uri" </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"><span style=3D"background-c= olor:rgb(255,255,255)"><font color=3D"#000000"> </font></span><div style=3D""><span style=3D"background-color:rgb(255,255= ,255)"><font color=3D"#000000">group =3D smsc</font></span></div><div sty= le=3D""><span style=3D"background-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 style=3D""><span style=3D"background-col= or:rgb(255,255,255)"><font color=3D"#000000">smsc-id =3D SMSC</font></spa= n></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-color:rgb(255,255,255)"><font color= =3D"#000000">preferred-smsc-id =3D SMSC</font></span></div><div style=3D"= "><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#00000= 0">host =3D host</font></span></div><div style=3D""><span style=3D"backgr= ound-color:rgb(255,255,255)"><font color=3D"#000000">port =3D port</font>= </span></div><div style=3D""><span style=3D"background-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 co= lor=3D"#000000">smsc-username =3D USERNAME</font></span></div><div style=3D= ""><span style=3D"background-color:rgb(255,255,255)"><font color=3D"#0000= 00">smsc-password =3D PASSWORD</font></span></div><div style=3D""><span s= tyle=3D"background-color:rgb(255,255,255)"><font color=3D"#000000">dest-a= ddr-ton =3D 0</font></span></div><div style=3D""><span style=3D"backgroun= d-color:rgb(255,255,255)"><font color=3D"#000000">dest-addr-npi =3D 0</fo= nt></span></div><div style=3D""><span style=3D"background-color:rgb(255,2= 55,255)"><font color=3D"#000000">source-addr-ton =3D 0</font></span></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"#00000= 0">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-int= erval =3D 30</font></span></div><div style=3D""><span style=3D"background= -color:rgb(255,255,255)"><font color=3D"#000000">log-file =3D /var/log/ka= nnel/SMSC.log</font></span></div><div style=3D""><span style=3D"backgroun= d-color:rgb(255,255,255)"><font color=3D"#000000">log-level =3D 0</font><= /span></div><div style=3D""><span style=3D"background-color:rgb(255,255,2= 55)"><font color=3D"#000000">system-type =3D ""</font></span></div></div>= <span 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"backgro= und-color:rgb(243,243,243)"> </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" moz-do-not-sen= d=3D"true">mobbis.am</a> <<a href=3D"mailto:[email protected]" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">[email protected]</a>> 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 style=3D"overflow-wrap: break-word;" lang=3D"EN-US"> <div class=3D"m_-3270234423509886426WordSection1"> <div> <div> <div> <div> <p class=3D"MsoNormal">Hi Akamat. Sorry for late response. </p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal">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.</= p> </div> <div> <p class=3D"MsoNormal"><b>=C2=A0</b></p> <p class=3D"MsoNormal"><b><span style=3D"font-size:14pt">Below are essentia= l configs examples:</span></b></p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal"># ------ SMSBOX GROUP ------</p> <p class=3D"MsoNormal">group =3D smsbox</p> <p class=3D"MsoNormal">bearerbox-host =3D localho= st</p> <p class=3D"MsoNormal">bearerbox-port =3D 19005</= p> <p class=3D"MsoNormal">sendsms-port =3D 19555</p>= <p class=3D"MsoNormal">log-file =3D "/var/log/kanpsms/smsbox.log"</p> <p class=3D"MsoNormal">log-level =3D 3</p> <p class=3D"MsoNormal">access-log =3D "/var/log/kanpsms/smsbox-sms-access.log"</p> <p class=3D"MsoNormal">sendsms-chars =3D "0123456= 789 +#._"</p> <p class=3D"MsoNormal">reply-couldnotfetch =3D //= If set, replaces the SMS message sent back to user when Kannel could not fetch content //</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 message//<span style=3D"font-size:13.5pt;font-family:"T= imes New Roman",serif;color:black"></span></p= > <p class=3D"MsoNormal">reply-requestfailed =3D //= If set, replaces the SMS message sent back when Kannel could not contact http service.//</p> <p class=3D"MsoNormal">reply-emptymessage =3D ""<= /p> <p class=3D"MsoNormal">http-request-retry =3D 2</= p> <p class=3D"MsoNormal">http-queue-delay =3D 15</p= > <p class=3D"MsoNormal">sms-length =3D 500</p> <p class=3D"MsoNormal">mo-recode=3Dyes</p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal"># ------=C2=A0 SMS SERVICE= ------</p> <p class=3D"MsoNormal">group =3D sms-service</p> <p class=3D"MsoNormal">keyword =3D default</p> <p class=3D"MsoNormal">catch-all=3Dtrue</p> <p class=3D"MsoNormal">omit-empty =3D true</p> <p class=3D"MsoNormal">assume-plain-text =3D yes<= /p> <p class=3D"MsoNormal">concatenation =3D true</p>= <p class=3D"MsoNormal">max-messages =3D 0</p> <p class=3D"MsoNormal">get-url =3D //Link to your= script//</p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal"># ------ SENDSMS USER GROUPS ------</p> <p class=3D"MsoNormal">group =3D sendsms-user</p>= <p class=3D"MsoNormal">username =3D SMSC1</p> <p class=3D"MsoNormal">password =3D *****</p> <p class=3D"MsoNormal">user-deny-ip =3D "*.*.*.*"= </p> <p class=3D"MsoNormal">user-allow-ip =3D "************=E2=80=9D</p> <p class=3D"MsoNormal">concatenation =3D true</p>= <p class=3D"MsoNormal">max-messages =3D 4</p> <p class=3D"MsoNormal">forced-smsc =3D SMSC-ID1</= p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal">group =3D sendsms-user</p>= <p class=3D"MsoNormal">username =3D SMSC2</p> <p class=3D"MsoNormal">password =3D ******</p> <p class=3D"MsoNormal">user-deny-ip =3D "*.*.*.*"= </p> <p class=3D"MsoNormal">user-allow-ip =3D "************=E2=80=9D</p> <p class=3D"MsoNormal">concatenation =3D true</p>= <p class=3D"MsoNormal">max-messages =3D 4</p> <p class=3D"MsoNormal">forced-smsc =3D SMSC-ID2</= p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal">group =3D sendsms-user</p>= <p class=3D"MsoNormal">username =3D SMSC3</p> <p class=3D"MsoNormal">password =3D *******</p> <p class=3D"MsoNormal">user-deny-ip =3D "*.*.*.*"= </p> <p class=3D"MsoNormal">user-allow-ip =3D =C2=A0"************=E2=80=9D</p> <p class=3D"MsoNormal">concatenation =3D true</p>= <p class=3D"MsoNormal">max-messages =3D 4</p> <p class=3D"MsoNormal">forced-smsc =3D SMSC-ID3</= p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal"><b><span style=3D"font-size:12pt">Please note, =C2=A0= that there is no smsbox-route config in my setup.</span></b></p> <p class=3D"MsoNormal">=C2=A0</p> <p class=3D"MsoNormal"><b><span style=3D"font-size:14pt">Explanation</span>= </b></p> <p class=3D"MsoNormal">When kannel receives MO message it forwards received message to your script. </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 implemented in your script or your MO sms handler web application side. =C2= =A0</p> </div> </div> </div> <div id=3D"m_-3270234423509886426ms-outlook-mobile-signatu= re"> <div> <p class=3D"MsoNormal"><b>=C2=A0</b></p> </div> <div> <div> <p class=3D"MsoNormal"><b>Best regards,</b></p> </div> <div> <p class=3D"MsoNormal"><b>Ruben Melikyan</b></p> </div> </div> </div> </div> <div class=3D"MsoNormal" style=3D"text-align:center" align=3D"center"> <hr width=3D"98%" size=3D"2" align=3D"center"> </div> <div id=3D"m_-3270234423509886426divRplyFwdMsg"> <p class=3D"MsoNormal"><b><span style=3D"color:black">F= rom:</span></b><span style=3D"color:black"> akamat sarat <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">akamat.sarat@gmai= l.com</a>><br> <b>Sent:</b> Thursday, April 20, 2023 11:53:17 AM<b= r> <b>To:</b> rm <a href=3D"http://mobbis.am" target=3D"_blank" moz-do-not-send=3D"true">mobbis= =2Eam</a> <<a href=3D"mailto:[email protected]" target=3D"_blan= k" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">[email protected]</a>&= gt;<br> <b>Cc:</b> Tolga Ulas <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">tolga.ulas@tolgau= las.com</a>>; <a href=3D"mailto:[email protected]" target=3D"_blan= k" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">[email protected]<= /a> <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">[email protected]<= /a>><br> <b>Subject:</b> Re: MO Routing on the fly</span> </= p> <div> <p class=3D"MsoNormal">=C2=A0</p> </div> </div> <div> <div> <p class=3D"MsoNormal">Do you mean something like the= following?<br> group =3D sms-service </p> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12pt"= >get-url =3D "<a href=3D"http://get-url.com" target=3D"_bl= ank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">http://get-url.= com</a>"<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</p> </div> </div> <p class=3D"MsoNormal">=C2=A0</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" moz-do-not-send=3D"true"> mobbis.am</a> <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">[email protected]</a= >> wrote:</p> </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-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,</p> </div> <div> <p class=3D"MsoNormal">=C2=A0</p> </div> <div> <p class=3D"MsoNormal">Honestly, I suspect that I do not fully understand your situation ( because if I usnderstand you in right way, it has very obvious solution).</p> </div> <div> <p class=3D"MsoNormal">Thus if I understand your request correctly, you just need to:</p> </div> <div> <ol type=3D"1" start=3D"1"> <li class=3D"MsoNormal"> configure sms-service</li> <li class=3D"MsoNormal" style=3D"font-size:inherit"> set your script on =C2=A0apache or = iis</li> <li class=3D"MsoNormal" style=3D"font-size:inherit"> use get-url or post-url and other sms-service related parameters according your needs</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 true.</p> </div> </div> </div> </div> <div id=3D"m_-3270234423509886426x_m_-9200877708385635788ms-outlook-mobile-sig= nature"> <div> <p class=3D"MsoNormal">=C2=A0</p> </div> <div> <div> <p class=3D"MsoNormal">Best regards,</p= > </div> <div> <p class=3D"MsoNormal">Ruben Melikyan</= p> </div> </div> </div> </div> </div> <div class=3D"MsoNormal" style=3D"text-align:cent= er" align=3D"center"> <hr width=3D"98%" size=3D"2" align=3D"center"> </div> <div id=3D"m_-3270234423509886426x_m_-92008777083856= 35788divRplyFwdMsg"> <p class=3D"MsoNormal"><b><span style=3D"color:black">From:</span></b><sp= an style=3D"color:black"> users <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">users-bou= [email protected]</a>> on behalf of akamat sarat <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">akamat.sa= [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]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">tolga.ula= [email protected]</a>><br> <b>Cc:</b> <a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">users@kan= nel.org</a> <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">users@kan= nel.org</a>><br> <b>Subject:</b> Re: MO Routing on the fly</= span> </p> <div> <p class=3D"MsoNormal">=C2=A0</p> </div> </div> <div> <div> <p class=3D"MsoNormal">Even though I could no= t figure it out, the smsc-id parameter is not mandatory for the smsbox-route group. </p> <div> <p class=3D"MsoNormal">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.</p> </div> </div> <p class=3D"MsoNormal">=C2=A0</p> <div> <div> <p class=3D"MsoNormal">On Wed, Apr 19, 2023= at 7:28=E2=80=AFPM akamat sarat <<a href=3D"mailto:[email protected]" target=3D"_blank" moz-do-not-send=3D"tr= ue" class=3D"moz-txt-link-freetext">akamat.= [email protected]</a>> wrote:</p> </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-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 wa= y 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 single script to=C2=A0handle all of the= m.</p> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12pt">In my SMSc configuration I am using reroute-smsc-id to re-route all incoming MOs to a=C2=A0single HTTP SM= Sc 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=A0wit= h reroute-smsc-id then reroute-smsc-id is completely ignored without any mention of it in kannel logs.<br> <br> </p> </div> </div> <p class=3D"MsoNormal">=C2=A0</p> <div> <div> <p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 7:12=E2=80=AFPM Tolga Ulas &l= t;<a href=3D"mailto:tolga.ulas@tolgaulas= =2Ecom" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">tol= [email protected]</a>> wrote:</p> </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-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 to= p of my head whether=C2=A0it can be s= msc 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"> </p> <div> <div> <div> <p class=3D"MsoNormal">Tolga Ulas </p> <div> <p class=3D"MsoNormal">=C2=A0= </p> </div> </div> </div> </div> <p class=3D"MsoNormal">=C2=A0</p> </div> <p class=3D"MsoNormal">=C2=A0</p> <div> <div> <p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 5:51=E2=80=AFPM akama= t sarat <<a href=3D"mailto:akamat.sarat@gma= il.com" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext"= >[email protected]</a>> wrote:</p> </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-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 fo= r coming back, you mean something like:</p> </div> <div> <p class=3D"MsoNormal">=C2=A0</= 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 it 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 me= an can you write an example?<br>= <br> Thank you.</p> </div> </div> <p class=3D"MsoNormal">=C2=A0</p> <div> <div> <p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 5:39=E2=80=AF= PM Tolga Ulas <<a href=3D"mailto:tolga.ulas@t= olgaulas.com" target=3D"_blank" moz-do-not-send=3D"true" class=3D"moz-txt-link-freet= ext">[email protected]</a>> wrote:</p> </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-left= :1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-ri= ght:0in"> <div> <div> <p class=3D"MsoNormal">Put = a single route to a single smsbox which has a single service and define all your smscs in the route as origin.=C2=A0= </p> </div> <div> <p class=3D"MsoNormal">=C2=A0= </p> </div> <div> <div> <div> <div> <p class=3D"MsoNormal= ">Tolga Ulas </p> <div> <p class=3D"MsoNorma= l">=C2=A0</p> </div> </div> </div> </div> </div> </div> <p class=3D"MsoNormal">=C2=A0</= p> <div> <div> <p class=3D"MsoNormal">On Wed, Apr 19, 2023 at 5:22=E2=80=AFPM akamat sa= rat <<a href=3D"mailto:akamat.s= [email protected]" target=3D"_blank" moz-do-not-send=3D"true= " class=3D"moz-txt-link-freetext">[email protected]</a>> wrote:</p>= </div> <blockquote style=3D"border-top:none;border-right:none;border-bottom:none;border-left= :1pt solid rgb(204,204,204);padding:0i= n 0in 0in 6pt;margin-left:4.8pt;margi= n-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 fly.<br> <br> Any help would be appreciated=C2=A0</p> </div> </blockquote> </div> </blockquote> </div> </blockquote> </div> </blockquote> </div> </blockquote> </div> </div> </div> </blockquote> </div> </div> </div> </div> </div> </blockquote> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Kyriacos Sakkas Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:kyriacos@nets= mart.com.cy">[email protected]</a> <a class=3D"moz-txt-link-freetext" href=3D"http://www.netsmart.com.cy">ht= tp://www.netsmart.com.cy</a> Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:= [email protected]">[email protected]</a> **</pre> </body> </html> --------------10ZLZoV33KYAvuOUOZyJONVq--