You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Ed Cable <ed...@mifos.org> on 2018/07/12 16:47:41 UTC

Re: SMS Bridge Configuration on Fineract 1.1

Sampath/Santosh,

Could you please try to help Mangal and also while we're at it, improve the
documentation for configuring of the SMS bridge. He along with a couple
others, Antony and Karthik, are attempting to use and inquiring about it.

Ed

On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hello,
>
> Need help to understand the SMS Bridge configuration and working on
> Fineract 1.1.
>
> *Issue:*
> Unable to POST message on Message-gateway endpoint.
> *Error:*
>
>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>> supported
>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>> retrofit.RetrofitError: 405 Method Not Allowed
>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>> at
>> org.apache.fineract.infrastructure.hooks.processor.TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>> at
>> org.apache.fineract.infrastructure.hooks.processor.TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>> at
>> org.apache.fineract.infrastructure.hooks.listener.FineractHookListener.onApplicationEvent(FineractHookListener.java:75)
>> at
>> org.apache.fineract.infrastructure.hooks.listener.FineractHookListener.onApplicationEvent(FineractHookListener.java:36)
>> at
>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:93)
>> at java.lang.Thread.run(Thread.java:748)
>
>
> *Steps*:
> 1. We have configured the message-gateway and running on Tomcat;
> 2. Our instance is running on https configured with Tomcat;
> 3. We have also checked communication with the endpoint;
> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an error
> placed above.
> 5. Also please clarify that while configuring External SMS Service, is it
> mandatory to define a port (9191 as shown in the documents). Tomcat is
> running with HTTPS on a pre-defined port.
>
> Request to respond.
>
> Thank you,
> Mangal
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>


-- 
*Ed Cable*
President/CEO, Mifos Initiative
edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649

*Collectively Creating a World of 3 Billion Maries | *http://mifos.org
<http://facebook.com/mifos>  <http://www.twitter.com/mifos>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Antony Omeri <an...@gmail.com>.
Thank you ED,

I was able to follow fineract and sms gateway source and implemented my new
gateway (vaspro) successfully.

On Thu, Jul 12, 2018 at 7:48 PM Ed Cable <ed...@mifos.org> wrote:

> Sampath/Santosh,
>
> Could you please try to help Mangal and also while we're at it, improve
> the documentation for configuring of the SMS bridge. He along with a couple
> others, Antony and Karthik, are attempting to use and inquiring about it.
>
> Ed
>
> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hello,
>>
>> Need help to understand the SMS Bridge configuration and working on
>> Fineract 1.1.
>>
>> *Issue:*
>> Unable to POST message on Message-gateway endpoint.
>> *Error:*
>>
>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>> supported
>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>> retrofit.RetrofitError: 405 Method Not Allowed
>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>> at
>>> org.apache.fineract.infrastructure.hooks.processor.TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>>> at
>>> org.apache.fineract.infrastructure.hooks.processor.TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>>> at
>>> org.apache.fineract.infrastructure.hooks.listener.FineractHookListener.onApplicationEvent(FineractHookListener.java:75)
>>> at
>>> org.apache.fineract.infrastructure.hooks.listener.FineractHookListener.onApplicationEvent(FineractHookListener.java:36)
>>> at
>>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>> at java.lang.Thread.run(Thread.java:748)
>>
>>
>> *Steps*:
>> 1. We have configured the message-gateway and running on Tomcat;
>> 2. Our instance is running on https configured with Tomcat;
>> 3. We have also checked communication with the endpoint;
>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>> error placed above.
>> 5. Also please clarify that while configuring External SMS Service, is it
>> mandatory to define a port (9191 as shown in the documents). Tomcat is
>> running with HTTPS on a pre-defined port.
>>
>> Request to respond.
>>
>> Thank you,
>> Mangal
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
> --
> *Ed Cable*
> President/CEO, Mifos Initiative
> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>
> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

Thank you so much. It will be very helpful.



On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio SMS
> Gateway Trial Account.*
>
> Best,
>
> Mangal
>
> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal
>>
>> Please find the attached file to understand how sms campaign works. You
>> can download front end for sql , ie.. heidisql from here:
>>
>> https://www.heidisql.com/download.php
>>
>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> I have sent contact request to you. Please accept.
>>> My Skype id: mangal@bodhiproject.org
>>>
>>> ---
>>> Mangal
>>>
>>>
>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> I am online on Skype. Please send me contact request to skype id
>>>> santoshmath99
>>>>
>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>> docbrij@bodhiproject.org> wrote:
>>>>
>>>>> Thanks! Santosh, Mangal,
>>>>>
>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>
>>>>> Best,
>>>>>
>>>>> Brijesh
>>>>>
>>>>>
>>>>> ---------
>>>>> Brijesh Kumar, *Ph.D.*
>>>>> *Founder & CEO*
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>> Skype: docbrij
>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>>> hangout for this mail id.
>>>>>>
>>>>>> Thanks
>>>>>> Santosh
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Hi Santosh,
>>>>>>>
>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>
>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>
>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>> events.
>>>>>>>
>>>>>>> SMS Bridge webhook template details are:
>>>>>>>
>>>>>>> Hook Name: Twilio SMS
>>>>>>> Status: true
>>>>>>> Activation Date: [2018,7,12]
>>>>>>> Updated On: [2018,7,12]
>>>>>>> *Events:*
>>>>>>> REPAYMENT - LOAN
>>>>>>> CREATE - CLIENT
>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>> SMS Provider: Twilio
>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>
>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Mangal
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>
>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Thank you ED.
>>>>>>>>>
>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>
>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>> about it.
>>>>>>>>>>
>>>>>>>>>> Ed
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> Need help to understand the SMS Bridge configuration and working
>>>>>>>>>>> on Fineract 1.1.
>>>>>>>>>>>
>>>>>>>>>>> *Issue:*
>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>> *Error:*
>>>>>>>>>>>
>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>> supported
>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>>>>> ava:382)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240
>>>>>>>>>>>> )
>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>> Source)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *Steps*:
>>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>
>>>>>>>>>>> Request to respond.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>> Mangal
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>> Tech Lead
>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Ed Cable*
>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>
>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>


-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Fwd: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Solomon,

As discussed in chatting, this mail thread may help you.

---------- Forwarded message ----------
From: Nazeer Hussain Shaik <na...@gmail.com>
Date: Wed, Jul 18, 2018 at 10:44 AM
Subject: Re: SMS Bridge Configuration on Fineract 1.1
To: mangal@bodhiproject.org
Cc: user@fineract.apache.org, dev@fineract.apache.org, Brijesh Kumar <
docbrij@bodhiproject.org>, pranav@bodhiproject.org, Ed Cable <
edcable@mifos.org>


Twilio and Infobip are already integrated. I believe you are talking about
setting up the environment.
We integrated these two, because they have more coverage than restricting
to a specific country.
If you find any provider with lesser charges, feel free to integrate them
with message-gateway. If you need any help let us know.

Regards,
Nazeer

On Tue, Jul 17, 2018 at 8:38 PM Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hello Nazeer, Santosh,
>
> I am now integrating Infobip. With the success of Twilio integration and
> since Infobip is already incorporated as a provider, I feel this will be
> now very easy for us to do.
>
> However, you are aware that Twilio's pricing is very expensive for India
> ($0.01/SMS) whereas we are seeking to manage the price levels per SMS
basis
> at around $0.0022 (INR 0.15 per transactional SMS) for any MFI in India.
>
> It is imperative therefore to provide local solutions (local providers).
> Request to share if you have attempted one for India.
>
> With regards,
> Mangal
>
>
>
> On Tue, Jul 17, 2018 at 2:06 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> No, I tried only with twilio. We are looking some indian sms gateway
>> integration with Message gateway. If you have any solution, please share.
>>
>> With regards,
>>
>> On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> HI Mangal,
>>>
>>> Did you try with Infobip as well, another sms  service provider? It's
>>> pretty much similar like Twilio, I think.
>>>
>>> https://github.com/openMF/message-gateway
>>>
>>>
>>> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thanks Nazeer,
>>>>
>>>> I will try to implement bulksmsgateway with Message Gateway. If you
>>>> have step-wise notes regarding the implementation of new SMS provider,
it
>>>> will help us.
>>>>
>>>> With Regards,
>>>>
>>>> Mangal
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>>>> reports API.
>>>>>
>>>>> https://login.bulksmsgateway.in/delivery-reports-api.php?
username={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>
>>>>>> Please have a look at current Twilio implementation
>>>>>> https://github.com/openMF/message-gateway/tree/master/
src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
>>>>>> and SMSProviderFactory.
>>>>>> It is easy to implement. Your implementation should extend
>>>>>> SMSProvider. If it is still not clear, then let me know I will set
>>>>>> up a skype call (Mostly after 9PM IST).
>>>>>>
>>>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>>>> support delivery feedback. Please validate your requirements and
their
>>>>>> support before starting the implementation.
>>>>>>
>>>>>> Regards,
>>>>>> Nazeer
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <mangal@bodhiproject.org
>
>>>>>> wrote:
>>>>>>
>>>>>>> Thanks Nazeer and Santosh.
>>>>>>>
>>>>>>> I am able to configure the SMS campaign and able to receive the SMS
>>>>>>> on my phone.
>>>>>>>
>>>>>>> Now, the next step to add the support of other third party SMS
>>>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>>>> please explain? How to add the support of other third party SMS
provider
>>>>>>> with the Message Gateway?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mangal
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>>>
>>>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>>>> the SMS. The system on which message gateway is running, should
have a
>>>>>>>> public IP. If it is private IP.
>>>>>>>> Callback registration is required to get the status of SMS sent
>>>>>>>> from message gateway. If you don't want tracking, then disable this
>>>>>>>> registration by commenting code.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nazeer
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>>>> address or
>>>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>>>> http://localhost:9191 is
>>>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>>>> messsage.
>>>>>>>>> Could you try with system having domain or IP address?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> > Hi Santosh,
>>>>>>>>> >
>>>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>>>> provider
>>>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>>>> on sending
>>>>>>>>> > SMS.
>>>>>>>>> >
>>>>>>>>> > *Errors*
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>>>> reason The
>>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>>> not a valid
>>>>>>>>> >> URL.
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > *Steps:*
>>>>>>>>> >
>>>>>>>>> > *1. Setup Message Gateway*
>>>>>>>>> >
>>>>>>>>> >    - Create a database messagegateway.
>>>>>>>>> >       - Clone the Message gateway code locally
>>>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>>>> >       - $ cd message-gateway
>>>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>>>> command:
>>>>>>>>> >       - $ cd build/libs
>>>>>>>>> >       - java -jar message-gateway.jar
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>>>> MessageGateway in
>>>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > *2. Create Tenant app key*
>>>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>>>> > {
>>>>>>>>> > "tenantId" : "default",
>>>>>>>>> > "description" : "Some Description"
>>>>>>>>> > }
>>>>>>>>> >
>>>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>>>
>>>>>>>>> > POST http://local:9191/smsbridges
>>>>>>>>> > {
>>>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>>>> > "providerName": "Twilio Provider",
>>>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>>>> > "providerKey":"Twilio",
>>>>>>>>> > "countryCode":"+91",
>>>>>>>>> > "bridgeConfigurations": [
>>>>>>>>> > {
>>>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>>>> > },
>>>>>>>>> > {
>>>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>>>> > }
>>>>>>>>> > ]
>>>>>>>>> > }
>>>>>>>>> >
>>>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>>>> account using
>>>>>>>>> > Twilio Provider.
>>>>>>>>> >
>>>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>>>> >
>>>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>>>> console:
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>>>> reason The
>>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>>> not a valid
>>>>>>>>> >> URL.
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > Request to respond.
>>>>>>>>> >
>>>>>>>>> > Thank you,
>>>>>>>>> > Mangal
>>>>>>>>> >
>>>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> > wrote:
>>>>>>>>> >
>>>>>>>>> >> Hi Santosh,
>>>>>>>>> >>
>>>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>>>> >>
>>>>>>>>> >>    1. Setup Message Gateway
>>>>>>>>> >>       - Create a database messagegateway.
>>>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>>>> >>       - $ cd message-gateway
>>>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>>>> command:
>>>>>>>>> >>       - $ cd build/libs
>>>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>>>> >>       -
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> >> wrote:
>>>>>>>>> >>
>>>>>>>>> >>> Hi Santosh,
>>>>>>>>> >>>
>>>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>>>> *Twilio
>>>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>>>
>>>>>>>>> >>>
>>>>>>>>> >>> Best,
>>>>>>>>> >>>
>>>>>>>>> >>> Mangal
>>>>>>>>> >>>
>>>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>
>>>>>>>>> >>>> Hi Mangal
>>>>>>>>> >>>>
>>>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>>>> works. You
>>>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>>>> >>>>
>>>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>>>> >>>>
>>>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> >>>> wrote:
>>>>>>>>> >>>>
>>>>>>>>> >>>>> Hi Santosh,
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> ---
>>>>>>>>> >>>>> Mangal
>>>>>>>>> >>>>>
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>
>>>>>>>>> >>>>>> I am online on Skype. Please send me contact request to
>>>>>>>>> skype id
>>>>>>>>> >>>>>> santoshmath99
>>>>>>>>> >>>>>>
>>>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>
>>>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Best,
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Brijesh
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> ---------
>>>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>>>> https://glimmer.finance
>>>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>>>
>>>>>>>>> >>>>>>> Skype: docbrij
>>>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be
>>>>>>>>> online in
>>>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> Thanks
>>>>>>>>> >>>>>>>> Santosh
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>>>> successfully as
>>>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> >>>>>>>>>
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>>>> gateway is
>>>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but
>>>>>>>>> when we register it
>>>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending
>>>>>>>>> SMS on specified
>>>>>>>>> >>>>>>>>> events.
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> >>>>>>>>> Status: true
>>>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> >>>>>>>>> *Events:*
>>>>>>>>>
>>>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>>>> >>>>>>>>> Payload URL:
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>> Mangal
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> Thanks
>>>>>>>>> >>>>>>>>>> Santosh
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding
>>>>>>>>> sms gateway
>>>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>>>> edcable@mifos.org>
>>>>>>>>> >>>>>>>>>>> wrote:
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>>>> we're at it,
>>>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>>>> bridge. He along with
>>>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting
>>>>>>>>> to use and inquiring
>>>>>>>>> >>>>>>>>>>>> about it.
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Ed
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>>>> and
>>>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>>>> [bio-443-exec-81]
>>>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>>>> method 'POST' not
>>>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>> >>>>>>>>>>>>>> at
>>>>>>>>> retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>> >>>>>>>>>>>>>> at
>>>>>>>>> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and
>>>>>>>>> running on
>>>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>>>> Tomcat;
>>>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>>>> endpoint;
>>>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>>>> Webhook, it
>>>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring
>>>>>>>>> External SMS
>>>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>>>> shown in the documents).
>>>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> --
>>>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> --
>>>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>>>> +1.484.477.8649
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries |
*
>>>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Nazeer Hussain Shaik <na...@gmail.com>.
Twilio and Infobip are already integrated. I believe you are talking about
setting up the environment.
We integrated these two, because they have more coverage than restricting
to a specific country.
If you find any provider with lesser charges, feel free to integrate them
with message-gateway. If you need any help let us know.

Regards,
Nazeer

On Tue, Jul 17, 2018 at 8:38 PM Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hello Nazeer, Santosh,
>
> I am now integrating Infobip. With the success of Twilio integration and
> since Infobip is already incorporated as a provider, I feel this will be
> now very easy for us to do.
>
> However, you are aware that Twilio's pricing is very expensive for India
> ($0.01/SMS) whereas we are seeking to manage the price levels per SMS basis
> at around $0.0022 (INR 0.15 per transactional SMS) for any MFI in India.
>
> It is imperative therefore to provide local solutions (local providers).
> Request to share if you have attempted one for India.
>
> With regards,
> Mangal
>
>
>
> On Tue, Jul 17, 2018 at 2:06 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> No, I tried only with twilio. We are looking some indian sms gateway
>> integration with Message gateway. If you have any solution, please share.
>>
>> With regards,
>>
>> On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> HI Mangal,
>>>
>>> Did you try with Infobip as well, another sms  service provider? It's
>>> pretty much similar like Twilio, I think.
>>>
>>> https://github.com/openMF/message-gateway
>>>
>>>
>>> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thanks Nazeer,
>>>>
>>>> I will try to implement bulksmsgateway with Message Gateway. If you
>>>> have step-wise notes regarding the implementation of new SMS provider, it
>>>> will help us.
>>>>
>>>> With Regards,
>>>>
>>>> Mangal
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>>>> reports API.
>>>>>
>>>>> https://login.bulksmsgateway.in/delivery-reports-api.php?username={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>
>>>>>> Please have a look at current Twilio implementation
>>>>>> https://github.com/openMF/message-gateway/tree/master/src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
>>>>>> and SMSProviderFactory.
>>>>>> It is easy to implement. Your implementation should extend
>>>>>> SMSProvider. If it is still not clear, then let me know I will set
>>>>>> up a skype call (Mostly after 9PM IST).
>>>>>>
>>>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>>>> support delivery feedback. Please validate your requirements and their
>>>>>> support before starting the implementation.
>>>>>>
>>>>>> Regards,
>>>>>> Nazeer
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Thanks Nazeer and Santosh.
>>>>>>>
>>>>>>> I am able to configure the SMS campaign and able to receive the SMS
>>>>>>> on my phone.
>>>>>>>
>>>>>>> Now, the next step to add the support of other third party SMS
>>>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>>>> please explain? How to add the support of other third party SMS provider
>>>>>>> with the Message Gateway?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mangal
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>>>
>>>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>>>> the SMS. The system on which message gateway is running, should have a
>>>>>>>> public IP. If it is private IP.
>>>>>>>> Callback registration is required to get the status of SMS sent
>>>>>>>> from message gateway. If you don't want tracking, then disable this
>>>>>>>> registration by commenting code.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nazeer
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>>>> address or
>>>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>>>> http://localhost:9191 is
>>>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>>>> messsage.
>>>>>>>>> Could you try with system having domain or IP address?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> > Hi Santosh,
>>>>>>>>> >
>>>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>>>> provider
>>>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>>>> on sending
>>>>>>>>> > SMS.
>>>>>>>>> >
>>>>>>>>> > *Errors*
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>>>> reason The
>>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>>> not a valid
>>>>>>>>> >> URL.
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > *Steps:*
>>>>>>>>> >
>>>>>>>>> > *1. Setup Message Gateway*
>>>>>>>>> >
>>>>>>>>> >    - Create a database messagegateway.
>>>>>>>>> >       - Clone the Message gateway code locally
>>>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>>>> >       - $ cd message-gateway
>>>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>>>> command:
>>>>>>>>> >       - $ cd build/libs
>>>>>>>>> >       - java -jar message-gateway.jar
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>>>> MessageGateway in
>>>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > *2. Create Tenant app key*
>>>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>>>> > {
>>>>>>>>> > "tenantId" : "default",
>>>>>>>>> > "description" : "Some Description"
>>>>>>>>> > }
>>>>>>>>> >
>>>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>>>
>>>>>>>>> > POST http://local:9191/smsbridges
>>>>>>>>> > {
>>>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>>>> > "providerName": "Twilio Provider",
>>>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>>>> > "providerKey":"Twilio",
>>>>>>>>> > "countryCode":"+91",
>>>>>>>>> > "bridgeConfigurations": [
>>>>>>>>> > {
>>>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>>>> > },
>>>>>>>>> > {
>>>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>>>> > }
>>>>>>>>> > ]
>>>>>>>>> > }
>>>>>>>>> >
>>>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>>>> account using
>>>>>>>>> > Twilio Provider.
>>>>>>>>> >
>>>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>>>> >
>>>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>>>> console:
>>>>>>>>> >
>>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>>>> reason The
>>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>>> not a valid
>>>>>>>>> >> URL.
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > Request to respond.
>>>>>>>>> >
>>>>>>>>> > Thank you,
>>>>>>>>> > Mangal
>>>>>>>>> >
>>>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> > wrote:
>>>>>>>>> >
>>>>>>>>> >> Hi Santosh,
>>>>>>>>> >>
>>>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>>>> >>
>>>>>>>>> >>    1. Setup Message Gateway
>>>>>>>>> >>       - Create a database messagegateway.
>>>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>>>> >>       - $ cd message-gateway
>>>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>>>> command:
>>>>>>>>> >>       - $ cd build/libs
>>>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>>>> >>       -
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> >> wrote:
>>>>>>>>> >>
>>>>>>>>> >>> Hi Santosh,
>>>>>>>>> >>>
>>>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>>>> *Twilio
>>>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>>>
>>>>>>>>> >>>
>>>>>>>>> >>> Best,
>>>>>>>>> >>>
>>>>>>>>> >>> Mangal
>>>>>>>>> >>>
>>>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>
>>>>>>>>> >>>> Hi Mangal
>>>>>>>>> >>>>
>>>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>>>> works. You
>>>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>>>> >>>>
>>>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>>>> >>>>
>>>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org>
>>>>>>>>> >>>> wrote:
>>>>>>>>> >>>>
>>>>>>>>> >>>>> Hi Santosh,
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> ---
>>>>>>>>> >>>>> Mangal
>>>>>>>>> >>>>>
>>>>>>>>> >>>>>
>>>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>
>>>>>>>>> >>>>>> I am online on Skype. Please send me contact request to
>>>>>>>>> skype id
>>>>>>>>> >>>>>> santoshmath99
>>>>>>>>> >>>>>>
>>>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>
>>>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Best,
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> Brijesh
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> ---------
>>>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>>>> https://glimmer.finance
>>>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>>>
>>>>>>>>> >>>>>>> Skype: docbrij
>>>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>>>
>>>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be
>>>>>>>>> online in
>>>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> Thanks
>>>>>>>>> >>>>>>>> Santosh
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>
>>>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>>>> successfully as
>>>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> >>>>>>>>>
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>>>> gateway is
>>>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but
>>>>>>>>> when we register it
>>>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending
>>>>>>>>> SMS on specified
>>>>>>>>> >>>>>>>>> events.
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> >>>>>>>>> Status: true
>>>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> >>>>>>>>> *Events:*
>>>>>>>>>
>>>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>>>> >>>>>>>>> Payload URL:
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>> Mangal
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>> >>>>>>>>>
>>>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> Thanks
>>>>>>>>> >>>>>>>>>> Santosh
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding
>>>>>>>>> sms gateway
>>>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>>>> edcable@mifos.org>
>>>>>>>>> >>>>>>>>>>> wrote:
>>>>>>>>> >>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>>>> we're at it,
>>>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>>>> bridge. He along with
>>>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting
>>>>>>>>> to use and inquiring
>>>>>>>>> >>>>>>>>>>>> about it.
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> Ed
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>>>> and
>>>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>>>> [bio-443-exec-81]
>>>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>>>> method 'POST' not
>>>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>> >>>>>>>>>>>>>> at
>>>>>>>>> retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>> >>>>>>>>>>>>>> at
>>>>>>>>> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>> >>>>>>>>>>>>>>
>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and
>>>>>>>>> running on
>>>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>>>> Tomcat;
>>>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>>>> endpoint;
>>>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>>>> Webhook, it
>>>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring
>>>>>>>>> External SMS
>>>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>>>> shown in the documents).
>>>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>> --
>>>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>> >>>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> --
>>>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>>>> +1.484.477.8649
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>> >>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hello Nazeer, Santosh,

I am now integrating Infobip. With the success of Twilio integration and
since Infobip is already incorporated as a provider, I feel this will be
now very easy for us to do.

However, you are aware that Twilio's pricing is very expensive for India
($0.01/SMS) whereas we are seeking to manage the price levels per SMS basis
at around $0.0022 (INR 0.15 per transactional SMS) for any MFI in India.

It is imperative therefore to provide local solutions (local providers).
Request to share if you have attempted one for India.

With regards,
Mangal



On Tue, Jul 17, 2018 at 2:06 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> No, I tried only with twilio. We are looking some indian sms gateway
> integration with Message gateway. If you have any solution, please share.
>
> With regards,
>
> On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> HI Mangal,
>>
>> Did you try with Infobip as well, another sms  service provider? It's
>> pretty much similar like Twilio, I think.
>>
>> https://github.com/openMF/message-gateway
>>
>>
>> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thanks Nazeer,
>>>
>>> I will try to implement bulksmsgateway with Message Gateway. If you
>>> have step-wise notes regarding the implementation of new SMS provider, it
>>> will help us.
>>>
>>> With Regards,
>>>
>>> Mangal
>>>
>>>
>>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>>> reports API.
>>>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>>>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Please have a look at current Twilio implementation https://github.
>>>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>>>> eract/messagegateway/sms/providers/impl/twilio
>>>>> and SMSProviderFactory.
>>>>> It is easy to implement. Your implementation should extend SMSProvider.
>>>>> If it is still not clear, then let me know I will set up a skype call
>>>>> (Mostly after 9PM IST).
>>>>>
>>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>>> support delivery feedback. Please validate your requirements and their
>>>>> support before starting the implementation.
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>>>> wrote:
>>>>>
>>>>>> Thanks Nazeer and Santosh.
>>>>>>
>>>>>> I am able to configure the SMS campaign and able to receive the SMS
>>>>>> on my phone.
>>>>>>
>>>>>> Now, the next step to add the support of other third party SMS
>>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>>> please explain? How to add the support of other third party SMS provider
>>>>>> with the Message Gateway?
>>>>>>
>>>>>> Regards,
>>>>>> Mangal
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>>
>>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>>> the SMS. The system on which message gateway is running, should have a
>>>>>>> public IP. If it is private IP.
>>>>>>> Callback registration is required to get the status of SMS sent from
>>>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>>>> by commenting code.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Nazeer
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>>> address or
>>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>>> http://localhost:9191 is
>>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>>> messsage.
>>>>>>>> Could you try with system having domain or IP address?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> > Hi Santosh,
>>>>>>>> >
>>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>>> provider
>>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>>> on sending
>>>>>>>> > SMS.
>>>>>>>> >
>>>>>>>> > *Errors*
>>>>>>>> >
>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>>> reason The
>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>> not a valid
>>>>>>>> >> URL.
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > *Steps:*
>>>>>>>> >
>>>>>>>> > *1. Setup Message Gateway*
>>>>>>>> >
>>>>>>>> >    - Create a database messagegateway.
>>>>>>>> >       - Clone the Message gateway code locally
>>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>>> >       - $ cd message-gateway
>>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>>> command:
>>>>>>>> >       - $ cd build/libs
>>>>>>>> >       - java -jar message-gateway.jar
>>>>>>>> >
>>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>>> MessageGateway in
>>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>>> >
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > *2. Create Tenant app key*
>>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>>> > {
>>>>>>>> > "tenantId" : "default",
>>>>>>>> > "description" : "Some Description"
>>>>>>>> > }
>>>>>>>> >
>>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>>
>>>>>>>> > POST http://local:9191/smsbridges
>>>>>>>> > {
>>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>>> > "providerName": "Twilio Provider",
>>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>>> > "providerKey":"Twilio",
>>>>>>>> > "countryCode":"+91",
>>>>>>>> > "bridgeConfigurations": [
>>>>>>>> > {
>>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>>> > },
>>>>>>>> > {
>>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>>> > }
>>>>>>>> > ]
>>>>>>>> > }
>>>>>>>> >
>>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>>> account using
>>>>>>>> > Twilio Provider.
>>>>>>>> >
>>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>>> >
>>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>>> console:
>>>>>>>> >
>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>>> reason The
>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>> not a valid
>>>>>>>> >> URL.
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > Request to respond.
>>>>>>>> >
>>>>>>>> > Thank you,
>>>>>>>> > Mangal
>>>>>>>> >
>>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> > wrote:
>>>>>>>> >
>>>>>>>> >> Hi Santosh,
>>>>>>>> >>
>>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>>> >>
>>>>>>>> >>    1. Setup Message Gateway
>>>>>>>> >>       - Create a database messagegateway.
>>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>>> >>       - $ cd message-gateway
>>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>>> command:
>>>>>>>> >>       - $ cd build/libs
>>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>>> >>       -
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> >> wrote:
>>>>>>>> >>
>>>>>>>> >>> Hi Santosh,
>>>>>>>> >>>
>>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>>> *Twilio
>>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>>
>>>>>>>> >>>
>>>>>>>> >>> Best,
>>>>>>>> >>>
>>>>>>>> >>> Mangal
>>>>>>>> >>>
>>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>
>>>>>>>> >>>> Hi Mangal
>>>>>>>> >>>>
>>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>>> works. You
>>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>>> >>>>
>>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>>> >>>>
>>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> >>>> wrote:
>>>>>>>> >>>>
>>>>>>>> >>>>> Hi Santosh,
>>>>>>>> >>>>>
>>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>>> >>>>>
>>>>>>>> >>>>> ---
>>>>>>>> >>>>> Mangal
>>>>>>>> >>>>>
>>>>>>>> >>>>>
>>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>
>>>>>>>> >>>>>> I am online on Skype. Please send me contact request to
>>>>>>>> skype id
>>>>>>>> >>>>>> santoshmath99
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>> >>>>>>
>>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Best,
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Brijesh
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> ---------
>>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>>> https://glimmer.finance
>>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>>
>>>>>>>> >>>>>>> Skype: docbrij
>>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online
>>>>>>>> in
>>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> Thanks
>>>>>>>> >>>>>>>> Santosh
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>>> successfully as
>>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>>>> 9/Message+Gateway+Configuration).
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>>> gateway is
>>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but
>>>>>>>> when we register it
>>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending
>>>>>>>> SMS on specified
>>>>>>>> >>>>>>>>> events.
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>>> >>>>>>>>> Status: true
>>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>>> >>>>>>>>> *Events:*
>>>>>>>>
>>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>> Mangal
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>>>> ki/spaces/docs/pages/166658049
>>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> Thanks
>>>>>>>> >>>>>>>>>> Santosh
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>>>> gateway
>>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>>> edcable@mifos.org>
>>>>>>>> >>>>>>>>>>> wrote:
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>>> we're at it,
>>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>>> bridge. He along with
>>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>>>> use and inquiring
>>>>>>>> >>>>>>>>>>>> about it.
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Ed
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>>> and
>>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>>> [bio-443-exec-81]
>>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>>> method 'POST' not
>>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>>>> or(RetrofitError.java:39)
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>>>> sBridgeConfigRequest(Unknown
>>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.sendRequest(TwilioH
>>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.process(TwilioHookP
>>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(
>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(
>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>>>> icaster$1.run(SimpleApplicatio
>>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running
>>>>>>>> on
>>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>>> Tomcat;
>>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>>> endpoint;
>>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>>> Webhook, it
>>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring
>>>>>>>> External SMS
>>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>>> shown in the documents).
>>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> --
>>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> --
>>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>>> +1.484.477.8649
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>>
>>>>>>>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hello Nazeer, Santosh,

I am now integrating Infobip. With the success of Twilio integration and
since Infobip is already incorporated as a provider, I feel this will be
now very easy for us to do.

However, you are aware that Twilio's pricing is very expensive for India
($0.01/SMS) whereas we are seeking to manage the price levels per SMS basis
at around $0.0022 (INR 0.15 per transactional SMS) for any MFI in India.

It is imperative therefore to provide local solutions (local providers).
Request to share if you have attempted one for India.

With regards,
Mangal



On Tue, Jul 17, 2018 at 2:06 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> No, I tried only with twilio. We are looking some indian sms gateway
> integration with Message gateway. If you have any solution, please share.
>
> With regards,
>
> On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> HI Mangal,
>>
>> Did you try with Infobip as well, another sms  service provider? It's
>> pretty much similar like Twilio, I think.
>>
>> https://github.com/openMF/message-gateway
>>
>>
>> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thanks Nazeer,
>>>
>>> I will try to implement bulksmsgateway with Message Gateway. If you
>>> have step-wise notes regarding the implementation of new SMS provider, it
>>> will help us.
>>>
>>> With Regards,
>>>
>>> Mangal
>>>
>>>
>>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>>> reports API.
>>>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>>>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Please have a look at current Twilio implementation https://github.
>>>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>>>> eract/messagegateway/sms/providers/impl/twilio
>>>>> and SMSProviderFactory.
>>>>> It is easy to implement. Your implementation should extend SMSProvider.
>>>>> If it is still not clear, then let me know I will set up a skype call
>>>>> (Mostly after 9PM IST).
>>>>>
>>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>>> support delivery feedback. Please validate your requirements and their
>>>>> support before starting the implementation.
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>>>> wrote:
>>>>>
>>>>>> Thanks Nazeer and Santosh.
>>>>>>
>>>>>> I am able to configure the SMS campaign and able to receive the SMS
>>>>>> on my phone.
>>>>>>
>>>>>> Now, the next step to add the support of other third party SMS
>>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>>> please explain? How to add the support of other third party SMS provider
>>>>>> with the Message Gateway?
>>>>>>
>>>>>> Regards,
>>>>>> Mangal
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>>
>>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>>> the SMS. The system on which message gateway is running, should have a
>>>>>>> public IP. If it is private IP.
>>>>>>> Callback registration is required to get the status of SMS sent from
>>>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>>>> by commenting code.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Nazeer
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>>> address or
>>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>>> http://localhost:9191 is
>>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>>> messsage.
>>>>>>>> Could you try with system having domain or IP address?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> > Hi Santosh,
>>>>>>>> >
>>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>>> provider
>>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>>> on sending
>>>>>>>> > SMS.
>>>>>>>> >
>>>>>>>> > *Errors*
>>>>>>>> >
>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>>> reason The
>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>> not a valid
>>>>>>>> >> URL.
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > *Steps:*
>>>>>>>> >
>>>>>>>> > *1. Setup Message Gateway*
>>>>>>>> >
>>>>>>>> >    - Create a database messagegateway.
>>>>>>>> >       - Clone the Message gateway code locally
>>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>>> >       - $ cd message-gateway
>>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>>> command:
>>>>>>>> >       - $ cd build/libs
>>>>>>>> >       - java -jar message-gateway.jar
>>>>>>>> >
>>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>>> MessageGateway in
>>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>>> >
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > *2. Create Tenant app key*
>>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>>> > {
>>>>>>>> > "tenantId" : "default",
>>>>>>>> > "description" : "Some Description"
>>>>>>>> > }
>>>>>>>> >
>>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>>
>>>>>>>> > POST http://local:9191/smsbridges
>>>>>>>> > {
>>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>>> > "providerName": "Twilio Provider",
>>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>>> > "providerKey":"Twilio",
>>>>>>>> > "countryCode":"+91",
>>>>>>>> > "bridgeConfigurations": [
>>>>>>>> > {
>>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>>> > },
>>>>>>>> > {
>>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>>> > }
>>>>>>>> > ]
>>>>>>>> > }
>>>>>>>> >
>>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>>> account using
>>>>>>>> > Twilio Provider.
>>>>>>>> >
>>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>>> >
>>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>>> console:
>>>>>>>> >
>>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>>> reason The
>>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is
>>>>>>>> not a valid
>>>>>>>> >> URL.
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > Request to respond.
>>>>>>>> >
>>>>>>>> > Thank you,
>>>>>>>> > Mangal
>>>>>>>> >
>>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> > wrote:
>>>>>>>> >
>>>>>>>> >> Hi Santosh,
>>>>>>>> >>
>>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>>> >>
>>>>>>>> >>    1. Setup Message Gateway
>>>>>>>> >>       - Create a database messagegateway.
>>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>>> >>       - $ cd message-gateway
>>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>>> command:
>>>>>>>> >>       - $ cd build/libs
>>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>>> >>       -
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> >> wrote:
>>>>>>>> >>
>>>>>>>> >>> Hi Santosh,
>>>>>>>> >>>
>>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>>> *Twilio
>>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>>
>>>>>>>> >>>
>>>>>>>> >>> Best,
>>>>>>>> >>>
>>>>>>>> >>> Mangal
>>>>>>>> >>>
>>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>
>>>>>>>> >>>> Hi Mangal
>>>>>>>> >>>>
>>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>>> works. You
>>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>>> >>>>
>>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>>> >>>>
>>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org>
>>>>>>>> >>>> wrote:
>>>>>>>> >>>>
>>>>>>>> >>>>> Hi Santosh,
>>>>>>>> >>>>>
>>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>>> >>>>>
>>>>>>>> >>>>> ---
>>>>>>>> >>>>> Mangal
>>>>>>>> >>>>>
>>>>>>>> >>>>>
>>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>
>>>>>>>> >>>>>> I am online on Skype. Please send me contact request to
>>>>>>>> skype id
>>>>>>>> >>>>>> santoshmath99
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>> >>>>>>
>>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Best,
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> Brijesh
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> ---------
>>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>>> https://glimmer.finance
>>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>>
>>>>>>>> >>>>>>> Skype: docbrij
>>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>>>
>>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online
>>>>>>>> in
>>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> Thanks
>>>>>>>> >>>>>>>> Santosh
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>
>>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>>> successfully as
>>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>>>> 9/Message+Gateway+Configuration).
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>>> gateway is
>>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but
>>>>>>>> when we register it
>>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending
>>>>>>>> SMS on specified
>>>>>>>> >>>>>>>>> events.
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>>> >>>>>>>>> Status: true
>>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>>> >>>>>>>>> *Events:*
>>>>>>>>
>>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>> Mangal
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>> >>>>>>>>>
>>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>>>> ki/spaces/docs/pages/166658049
>>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> Thanks
>>>>>>>> >>>>>>>>>> Santosh
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>>>> gateway
>>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>>> edcable@mifos.org>
>>>>>>>> >>>>>>>>>>> wrote:
>>>>>>>> >>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>>> we're at it,
>>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>>> bridge. He along with
>>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>>>> use and inquiring
>>>>>>>> >>>>>>>>>>>> about it.
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> Ed
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>>> and
>>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>>> [bio-443-exec-81]
>>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>>> method 'POST' not
>>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>>>> or(RetrofitError.java:39)
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>>>> sBridgeConfigRequest(Unknown
>>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.sendRequest(TwilioH
>>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.process(TwilioHookP
>>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(
>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(
>>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>>>> icaster$1.run(SimpleApplicatio
>>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running
>>>>>>>> on
>>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>>> Tomcat;
>>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>>> endpoint;
>>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>>> Webhook, it
>>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring
>>>>>>>> External SMS
>>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>>> shown in the documents).
>>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>> --
>>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>> >>>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> --
>>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>>> +1.484.477.8649
>>>>>>>> >>>>>>>>>>>>
>>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>> >>>>>>>>>>>>
>>>>>>>>
>>>>>>>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

No, I tried only with twilio. We are looking some indian sms gateway
integration with Message gateway. If you have any solution, please share.

With regards,

On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> HI Mangal,
>
> Did you try with Infobip as well, another sms  service provider? It's
> pretty much similar like Twilio, I think.
>
> https://github.com/openMF/message-gateway
>
>
> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Thanks Nazeer,
>>
>> I will try to implement bulksmsgateway with Message Gateway. If you have
>> step-wise notes regarding the implementation of new SMS provider, it will
>> help us.
>>
>> With Regards,
>>
>> Mangal
>>
>>
>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>> reports API.
>>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>
>>> Regards,
>>> Nazeer
>>>
>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Please have a look at current Twilio implementation https://github.
>>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>>> eract/messagegateway/sms/providers/impl/twilio and SMSProviderFactory.
>>>> It is easy to implement. Your implementation should extend SMSProvider.
>>>> If it is still not clear, then let me know I will set up a skype call
>>>> (Mostly after 9PM IST).
>>>>
>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>> support delivery feedback. Please validate your requirements and their
>>>> support before starting the implementation.
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Thanks Nazeer and Santosh.
>>>>>
>>>>> I am able to configure the SMS campaign and able to receive the SMS on
>>>>> my phone.
>>>>>
>>>>> Now, the next step to add the support of other third party SMS
>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>> please explain? How to add the support of other third party SMS provider
>>>>> with the Message Gateway?
>>>>>
>>>>> Regards,
>>>>> Mangal
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>
>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>> the SMS. The system on which message gateway is running, should have a
>>>>>> public IP. If it is private IP.
>>>>>> Callback registration is required to get the status of SMS sent from
>>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>>> by commenting code.
>>>>>>
>>>>>> Regards,
>>>>>> Nazeer
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> Hi Mangal,
>>>>>>>
>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>> address or
>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>> http://localhost:9191 is
>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>> messsage.
>>>>>>> Could you try with system having domain or IP address?
>>>>>>>
>>>>>>> Regards
>>>>>>> Santosh
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>> > Hi Santosh,
>>>>>>> >
>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>> provider
>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>> on sending
>>>>>>> > SMS.
>>>>>>> >
>>>>>>> > *Errors*
>>>>>>> >
>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>> reason The
>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>>> a valid
>>>>>>> >> URL.
>>>>>>> >
>>>>>>> >
>>>>>>> > *Steps:*
>>>>>>> >
>>>>>>> > *1. Setup Message Gateway*
>>>>>>> >
>>>>>>> >    - Create a database messagegateway.
>>>>>>> >       - Clone the Message gateway code locally
>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>> >       - $ cd message-gateway
>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>> command:
>>>>>>> >       - $ cd build/libs
>>>>>>> >       - java -jar message-gateway.jar
>>>>>>> >
>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>> MessageGateway in
>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > *2. Create Tenant app key*
>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>> > {
>>>>>>> > "tenantId" : "default",
>>>>>>> > "description" : "Some Description"
>>>>>>> > }
>>>>>>> >
>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>
>>>>>>> > POST http://local:9191/smsbridges
>>>>>>> > {
>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>> > "providerName": "Twilio Provider",
>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>> > "providerKey":"Twilio",
>>>>>>> > "countryCode":"+91",
>>>>>>> > "bridgeConfigurations": [
>>>>>>> > {
>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>> > },
>>>>>>> > {
>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>> > }
>>>>>>> > ]
>>>>>>> > }
>>>>>>> >
>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>> account using
>>>>>>> > Twilio Provider.
>>>>>>> >
>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>> >
>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>> console:
>>>>>>> >
>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>> reason The
>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>>> a valid
>>>>>>> >> URL.
>>>>>>> >
>>>>>>> >
>>>>>>> > Request to respond.
>>>>>>> >
>>>>>>> > Thank you,
>>>>>>> > Mangal
>>>>>>> >
>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> > wrote:
>>>>>>> >
>>>>>>> >> Hi Santosh,
>>>>>>> >>
>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>> >>
>>>>>>> >>    1. Setup Message Gateway
>>>>>>> >>       - Create a database messagegateway.
>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>> >>       - $ cd message-gateway
>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>> command:
>>>>>>> >>       - $ cd build/libs
>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>> >>       -
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> >> wrote:
>>>>>>> >>
>>>>>>> >>> Hi Santosh,
>>>>>>> >>>
>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>> *Twilio
>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>
>>>>>>> >>>
>>>>>>> >>> Best,
>>>>>>> >>>
>>>>>>> >>> Mangal
>>>>>>> >>>
>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>
>>>>>>> >>>> Hi Mangal
>>>>>>> >>>>
>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>> works. You
>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>> >>>>
>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>> >>>>
>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> >>>> wrote:
>>>>>>> >>>>
>>>>>>> >>>>> Hi Santosh,
>>>>>>> >>>>>
>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>> >>>>>
>>>>>>> >>>>> ---
>>>>>>> >>>>> Mangal
>>>>>>> >>>>>
>>>>>>> >>>>>
>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>
>>>>>>> >>>>>> I am online on Skype. Please send me contact request to skype
>>>>>>> id
>>>>>>> >>>>>> santoshmath99
>>>>>>> >>>>>>
>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>> >>>>>>
>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> Best,
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> Brijesh
>>>>>>> >>>>>>>
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> ---------
>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>> https://glimmer.finance
>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>
>>>>>>> >>>>>>> Skype: docbrij
>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>>>
>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online
>>>>>>> in
>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> Thanks
>>>>>>> >>>>>>>> Santosh
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>> successfully as
>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>>> 9/Message+Gateway+Configuration).
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>> gateway is
>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>>>> we register it
>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>>>> on specified
>>>>>>> >>>>>>>>> events.
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>> >>>>>>>>> Status: true
>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>> >>>>>>>>> *Events:*
>>>>>>>
>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Thank you,
>>>>>>> >>>>>>>>> Mangal
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>>> ki/spaces/docs/pages/166658049
>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> Thanks
>>>>>>> >>>>>>>>>> Santosh
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>>> gateway
>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>> edcable@mifos.org>
>>>>>>> >>>>>>>>>>> wrote:
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>> we're at it,
>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>> bridge. He along with
>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>>> use and inquiring
>>>>>>> >>>>>>>>>>>> about it.
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Ed
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>> and
>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>> [bio-443-exec-81]
>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>> method 'POST' not
>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>>> or(RetrofitError.java:39)
>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>>> sBridgeConfigRequest(Unknown
>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>> kProcessor.sendRequest(TwilioH
>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>> kProcessor.process(TwilioHookP
>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(
>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(
>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>>> icaster$1.run(SimpleApplicatio
>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running
>>>>>>> on
>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>> Tomcat;
>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>> endpoint;
>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>> Webhook, it
>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>>>> SMS
>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>> shown in the documents).
>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> --
>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> --
>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>> +1.484.477.8649
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> --
>>>>>>> >> Mangal Kumar
>>>>>>> >> Tech Lead
>>>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>>>> >> <https://glimmer.finance>
>>>>>>> >> Skype: mangal@bodhiproject.org
>>>>>>> >> *Leveraging technology for social challenges...*
>>>>>>> >>
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > --
>>>>>>> > Mangal Kumar
>>>>>>> > Tech Lead
>>>>>>> > Digital Media Initiatives | Bodhi Project
>>>>>>> > <https://glimmer.finance>
>>>>>>> > Skype: mangal@bodhiproject.org
>>>>>>> > *Leveraging technology for social challenges...*
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks & Regards
>>>>>>>
>>>>>>> Santosh Math
>>>>>>>
>>>>>>> *QA Engineer*
>>>>>>>
>>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>>> | *Office*: +91-080-41208662 |
>>>>>>>
>>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

No, I tried only with twilio. We are looking some indian sms gateway
integration with Message gateway. If you have any solution, please share.

With regards,

On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> HI Mangal,
>
> Did you try with Infobip as well, another sms  service provider? It's
> pretty much similar like Twilio, I think.
>
> https://github.com/openMF/message-gateway
>
>
> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Thanks Nazeer,
>>
>> I will try to implement bulksmsgateway with Message Gateway. If you have
>> step-wise notes regarding the implementation of new SMS provider, it will
>> help us.
>>
>> With Regards,
>>
>> Mangal
>>
>>
>> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Correction, I spoke to bulksmsgateway, they do have deliver status
>>> reports API.
>>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>>
>>> Regards,
>>> Nazeer
>>>
>>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Please have a look at current Twilio implementation https://github.
>>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>>> eract/messagegateway/sms/providers/impl/twilio and SMSProviderFactory.
>>>> It is easy to implement. Your implementation should extend SMSProvider.
>>>> If it is still not clear, then let me know I will set up a skype call
>>>> (Mostly after 9PM IST).
>>>>
>>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>>>> support delivery feedback. Please validate your requirements and their
>>>> support before starting the implementation.
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Thanks Nazeer and Santosh.
>>>>>
>>>>> I am able to configure the SMS campaign and able to receive the SMS on
>>>>> my phone.
>>>>>
>>>>> Now, the next step to add the support of other third party SMS
>>>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>>>> please explain? How to add the support of other third party SMS provider
>>>>> with the Message Gateway?
>>>>>
>>>>> Regards,
>>>>> Mangal
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>>
>>>>>> Message gateway registers a call back API with Twilio while sending
>>>>>> the SMS. The system on which message gateway is running, should have a
>>>>>> public IP. If it is private IP.
>>>>>> Callback registration is required to get the status of SMS sent from
>>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>>> by commenting code.
>>>>>>
>>>>>> Regards,
>>>>>> Nazeer
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> Hi Mangal,
>>>>>>>
>>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>>> address or
>>>>>>> valid domain name mapped to the IP address. Since,
>>>>>>> http://localhost:9191 is
>>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>>> messsage.
>>>>>>> Could you try with system having domain or IP address?
>>>>>>>
>>>>>>> Regards
>>>>>>> Santosh
>>>>>>>
>>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>> > Hi Santosh,
>>>>>>> >
>>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>>> provider
>>>>>>> > name is displaying in campaign page drop-down but getting errors
>>>>>>> on sending
>>>>>>> > SMS.
>>>>>>> >
>>>>>>> > *Errors*
>>>>>>> >
>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>>> reason The
>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>>> a valid
>>>>>>> >> URL.
>>>>>>> >
>>>>>>> >
>>>>>>> > *Steps:*
>>>>>>> >
>>>>>>> > *1. Setup Message Gateway*
>>>>>>> >
>>>>>>> >    - Create a database messagegateway.
>>>>>>> >       - Clone the Message gateway code locally
>>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>>> >       - $ cd message-gateway
>>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>>> >       - Run the message gateway application standalone, run the
>>>>>>> command:
>>>>>>> >       - $ cd build/libs
>>>>>>> >       - java -jar message-gateway.jar
>>>>>>> >
>>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>>> >> o.f.messagegateway.MessageGateway        : Started
>>>>>>> MessageGateway in
>>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > *2. Create Tenant app key*
>>>>>>> > POST http://localhost:9191/tenants/
>>>>>>> > {
>>>>>>> > "tenantId" : "default",
>>>>>>> > "description" : "Some Description"
>>>>>>> > }
>>>>>>> >
>>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>>
>>>>>>> > POST http://local:9191/smsbridges
>>>>>>> > {
>>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>>> > "providerName": "Twilio Provider",
>>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>>> > "providerKey":"Twilio",
>>>>>>> > "countryCode":"+91",
>>>>>>> > "bridgeConfigurations": [
>>>>>>> > {
>>>>>>> > "configName":"Provider_Account_Id",
>>>>>>> > "configValue":"xxxxxxxxx"
>>>>>>> > },
>>>>>>> > {
>>>>>>> > "configName":"Provider_Auth_Token",
>>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>>> > }
>>>>>>> > ]
>>>>>>> > }
>>>>>>> >
>>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings
>>>>>>> account using
>>>>>>> > Twilio Provider.
>>>>>>> >
>>>>>>> > 5. Try to deposit in client savings account.
>>>>>>> >
>>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>>> console:
>>>>>>> >
>>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>>> reason The
>>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>>> a valid
>>>>>>> >> URL.
>>>>>>> >
>>>>>>> >
>>>>>>> > Request to respond.
>>>>>>> >
>>>>>>> > Thank you,
>>>>>>> > Mangal
>>>>>>> >
>>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> > wrote:
>>>>>>> >
>>>>>>> >> Hi Santosh,
>>>>>>> >>
>>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>>> >>
>>>>>>> >>    1. Setup Message Gateway
>>>>>>> >>       - Create a database messagegateway.
>>>>>>> >>       - Clone the Message gateway code locally
>>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>>> >>       - $ cd message-gateway
>>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>>> command:
>>>>>>> >>       - $ cd build/libs
>>>>>>> >>       - java -jar message-gateway.jar
>>>>>>> >>       -
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> >> wrote:
>>>>>>> >>
>>>>>>> >>> Hi Santosh,
>>>>>>> >>>
>>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>>> *Twilio
>>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>>
>>>>>>> >>>
>>>>>>> >>> Best,
>>>>>>> >>>
>>>>>>> >>> Mangal
>>>>>>> >>>
>>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>
>>>>>>> >>>> Hi Mangal
>>>>>>> >>>>
>>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>>> works. You
>>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>>> >>>>
>>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>>> >>>>
>>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org>
>>>>>>> >>>> wrote:
>>>>>>> >>>>
>>>>>>> >>>>> Hi Santosh,
>>>>>>> >>>>>
>>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>>> >>>>>
>>>>>>> >>>>> ---
>>>>>>> >>>>> Mangal
>>>>>>> >>>>>
>>>>>>> >>>>>
>>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>
>>>>>>> >>>>>> I am online on Skype. Please send me contact request to skype
>>>>>>> id
>>>>>>> >>>>>> santoshmath99
>>>>>>> >>>>>>
>>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>> >>>>>>
>>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> Best,
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> Brijesh
>>>>>>> >>>>>>>
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> ---------
>>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> >>>>>>> *Founder & CEO*
>>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>>> https://glimmer.finance
>>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>
>>>>>>> >>>>>>> Skype: docbrij
>>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>> >>>>>>>
>>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>>>
>>>>>>> >>>>>>>> Hi Mangal,
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online
>>>>>>> in
>>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> Thanks
>>>>>>> >>>>>>>> Santosh
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>
>>>>>>> >>>>>>>>> Hi Santosh,
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>>> successfully as
>>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>>> 9/Message+Gateway+Configuration).
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>>> gateway is
>>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>>>> we register it
>>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>>>> on specified
>>>>>>> >>>>>>>>> events.
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>>> >>>>>>>>> Status: true
>>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>>> >>>>>>>>> *Events:*
>>>>>>>
>>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> Thank you,
>>>>>>> >>>>>>>>> Mangal
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>> >>>>>>>>>
>>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>>> ki/spaces/docs/pages/166658049
>>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> Thanks
>>>>>>> >>>>>>>>>> Santosh
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>>> gateway
>>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> Thank you,
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>>> edcable@mifos.org>
>>>>>>> >>>>>>>>>>> wrote:
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while
>>>>>>> we're at it,
>>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>>> bridge. He along with
>>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>>> use and inquiring
>>>>>>> >>>>>>>>>>>> about it.
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> Ed
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Hello,
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration
>>>>>>> and
>>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>>
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>>> [bio-443-exec-81]
>>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>>> method 'POST' not
>>>>>>> >>>>>>>>>>>>>> supported
>>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>>> or(RetrofitError.java:39)
>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>>> sBridgeConfigRequest(Unknown
>>>>>>> >>>>>>>>>>>>>> Source)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>> kProcessor.sendRequest(TwilioH
>>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>>> kProcessor.process(TwilioHookP
>>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(
>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(
>>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>>> icaster$1.run(SimpleApplicatio
>>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running
>>>>>>> on
>>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>>> Tomcat;
>>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the
>>>>>>> endpoint;
>>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge
>>>>>>> Webhook, it
>>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>>>> SMS
>>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>>> shown in the documents).
>>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>>> >>>>>>>>>>>>> Mangal
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>> --
>>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>> >>>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> --
>>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>>> +1.484.477.8649
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>>>>>>>>>>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> --
>>>>>>> >> Mangal Kumar
>>>>>>> >> Tech Lead
>>>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>>>> >> <https://glimmer.finance>
>>>>>>> >> Skype: mangal@bodhiproject.org
>>>>>>> >> *Leveraging technology for social challenges...*
>>>>>>> >>
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > --
>>>>>>> > Mangal Kumar
>>>>>>> > Tech Lead
>>>>>>> > Digital Media Initiatives | Bodhi Project
>>>>>>> > <https://glimmer.finance>
>>>>>>> > Skype: mangal@bodhiproject.org
>>>>>>> > *Leveraging technology for social challenges...*
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks & Regards
>>>>>>>
>>>>>>> Santosh Math
>>>>>>>
>>>>>>> *QA Engineer*
>>>>>>>
>>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>>> | *Office*: +91-080-41208662 |
>>>>>>>
>>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
HI Mangal,

Did you try with Infobip as well, another sms  service provider? It's
pretty much similar like Twilio, I think.

https://github.com/openMF/message-gateway


On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thanks Nazeer,
>
> I will try to implement bulksmsgateway with Message Gateway. If you have
> step-wise notes regarding the implementation of new SMS provider, it will
> help us.
>
> With Regards,
>
> Mangal
>
>
> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Correction, I spoke to bulksmsgateway, they do have deliver status
>> reports API.
>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Please have a look at current Twilio implementation https://github.
>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>> eract/messagegateway/sms/providers/impl/twilio and SMSProviderFactory.
>>> It is easy to implement. Your implementation should extend SMSProvider.
>>> If it is still not clear, then let me know I will set up a skype call
>>> (Mostly after 9PM IST).
>>>
>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
>>> delivery feedback. Please validate your requirements and their support
>>> before starting the implementation.
>>>
>>> Regards,
>>> Nazeer
>>>
>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thanks Nazeer and Santosh.
>>>>
>>>> I am able to configure the SMS campaign and able to receive the SMS on
>>>> my phone.
>>>>
>>>> Now, the next step to add the support of other third party SMS Provider
>>>> (https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>>>> How to add the support of other third party SMS provider with the Message
>>>> Gateway?
>>>>
>>>> Regards,
>>>> Mangal
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Message gateway registers a call back API with Twilio while sending
>>>>> the SMS. The system on which message gateway is running, should have a
>>>>> public IP. If it is private IP.
>>>>> Callback registration is required to get the status of SMS sent from
>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>> by commenting code.
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>>
>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>> address or
>>>>>> valid domain name mapped to the IP address. Since,
>>>>>> http://localhost:9191 is
>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>> messsage.
>>>>>> Could you try with system having domain or IP address?
>>>>>>
>>>>>> Regards
>>>>>> Santosh
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>> > Hi Santosh,
>>>>>> >
>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>> provider
>>>>>> > name is displaying in campaign page drop-down but getting errors on
>>>>>> sending
>>>>>> > SMS.
>>>>>> >
>>>>>> > *Errors*
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > *Steps:*
>>>>>> >
>>>>>> > *1. Setup Message Gateway*
>>>>>> >
>>>>>> >    - Create a database messagegateway.
>>>>>> >       - Clone the Message gateway code locally
>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>> >       - $ cd message-gateway
>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >       - $ cd build/libs
>>>>>> >       - java -jar message-gateway.jar
>>>>>> >
>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway
>>>>>> in
>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > *2. Create Tenant app key*
>>>>>> > POST http://localhost:9191/tenants/
>>>>>> > {
>>>>>> > "tenantId" : "default",
>>>>>> > "description" : "Some Description"
>>>>>> > }
>>>>>> >
>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>
>>>>>> > POST http://local:9191/smsbridges
>>>>>> > {
>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>> > "providerName": "Twilio Provider",
>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>> > "providerKey":"Twilio",
>>>>>> > "countryCode":"+91",
>>>>>> > "bridgeConfigurations": [
>>>>>> > {
>>>>>> > "configName":"Provider_Account_Id",
>>>>>> > "configValue":"xxxxxxxxx"
>>>>>> > },
>>>>>> > {
>>>>>> > "configName":"Provider_Auth_Token",
>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>> > }
>>>>>> > ]
>>>>>> > }
>>>>>> >
>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>>>> using
>>>>>> > Twilio Provider.
>>>>>> >
>>>>>> > 5. Try to deposit in client savings account.
>>>>>> >
>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>> console:
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > Request to respond.
>>>>>> >
>>>>>> > Thank you,
>>>>>> > Mangal
>>>>>> >
>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> > wrote:
>>>>>> >
>>>>>> >> Hi Santosh,
>>>>>> >>
>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>> >>
>>>>>> >>    1. Setup Message Gateway
>>>>>> >>       - Create a database messagegateway.
>>>>>> >>       - Clone the Message gateway code locally
>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>> >>       - $ cd message-gateway
>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >>       - $ cd build/libs
>>>>>> >>       - java -jar message-gateway.jar
>>>>>> >>       -
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >> wrote:
>>>>>> >>
>>>>>> >>> Hi Santosh,
>>>>>> >>>
>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>> *Twilio
>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>
>>>>>> >>>
>>>>>> >>> Best,
>>>>>> >>>
>>>>>> >>> Mangal
>>>>>> >>>
>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>
>>>>>> >>>> Hi Mangal
>>>>>> >>>>
>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>> works. You
>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>> >>>>
>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>> >>>>
>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >>>> wrote:
>>>>>> >>>>
>>>>>> >>>>> Hi Santosh,
>>>>>> >>>>>
>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>> >>>>>
>>>>>> >>>>> ---
>>>>>> >>>>> Mangal
>>>>>> >>>>>
>>>>>> >>>>>
>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>
>>>>>> >>>>>> I am online on Skype. Please send me contact request to skype
>>>>>> id
>>>>>> >>>>>> santoshmath99
>>>>>> >>>>>>
>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>> >>>>>>
>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>> >>>>>>>
>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>> >>>>>>>
>>>>>> >>>>>>> Best,
>>>>>> >>>>>>>
>>>>>> >>>>>>> Brijesh
>>>>>> >>>>>>>
>>>>>> >>>>>>>
>>>>>> >>>>>>> ---------
>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>> >>>>>>> *Founder & CEO*
>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>> https://glimmer.finance
>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>
>>>>>> >>>>>>> Skype: docbrij
>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>> >>>>>>>
>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>
>>>>>> >>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Thanks
>>>>>> >>>>>>>> Santosh
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>
>>>>>> >>>>>>>>> Hi Santosh,
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>> successfully as
>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>> 9/Message+Gateway+Configuration).
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>> gateway is
>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>>> we register it
>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>>> on specified
>>>>>> >>>>>>>>> events.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>> >>>>>>>>> Status: true
>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>> >>>>>>>>> *Events:*
>>>>>>
>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>> ssage-gateway-0.0.1/sms
>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Thank you,
>>>>>> >>>>>>>>> Mangal
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>> ki/spaces/docs/pages/166658049
>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> Thanks
>>>>>> >>>>>>>>>> Santosh
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>> gateway
>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>> edcable@mifos.org>
>>>>>> >>>>>>>>>>> wrote:
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>>>> at it,
>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>> bridge. He along with
>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>> use and inquiring
>>>>>> >>>>>>>>>>>> about it.
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Ed
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Hello,
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>> [bio-443-exec-81]
>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>> method 'POST' not
>>>>>> >>>>>>>>>>>>>> supported
>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>> or(RetrofitError.java:39)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>> sBridgeConfigRequest(Unknown
>>>>>> >>>>>>>>>>>>>> Source)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>> kProcessor.sendRequest(TwilioH
>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>> kProcessor.process(TwilioHookP
>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>> icaster$1.run(SimpleApplicatio
>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook,
>>>>>> it
>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>>> SMS
>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>> shown in the documents).
>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>>> Mangal
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>> +1.484.477.8649
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Mangal Kumar
>>>>>> >> Tech Lead
>>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>>> >> <https://glimmer.finance>
>>>>>> >> Skype: mangal@bodhiproject.org
>>>>>> >> *Leveraging technology for social challenges...*
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > Mangal Kumar
>>>>>> > Tech Lead
>>>>>> > Digital Media Initiatives | Bodhi Project
>>>>>> > <https://glimmer.finance>
>>>>>> > Skype: mangal@bodhiproject.org
>>>>>> > *Leveraging technology for social challenges...*
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>>
>>>>>> Santosh Math
>>>>>>
>>>>>> *QA Engineer*
>>>>>>
>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>> | *Office*: +91-080-41208662 |
>>>>>>
>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
HI Mangal,

Did you try with Infobip as well, another sms  service provider? It's
pretty much similar like Twilio, I think.

https://github.com/openMF/message-gateway


On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thanks Nazeer,
>
> I will try to implement bulksmsgateway with Message Gateway. If you have
> step-wise notes regarding the implementation of new SMS provider, it will
> help us.
>
> With Regards,
>
> Mangal
>
>
> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Correction, I spoke to bulksmsgateway, they do have deliver status
>> reports API.
>> https://login.bulksmsgateway.in/delivery-reports-api.php?use
>> rname={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Please have a look at current Twilio implementation https://github.
>>> com/openMF/message-gateway/tree/master/src/main/java/org/fin
>>> eract/messagegateway/sms/providers/impl/twilio and SMSProviderFactory.
>>> It is easy to implement. Your implementation should extend SMSProvider.
>>> If it is still not clear, then let me know I will set up a skype call
>>> (Mostly after 9PM IST).
>>>
>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
>>> delivery feedback. Please validate your requirements and their support
>>> before starting the implementation.
>>>
>>> Regards,
>>> Nazeer
>>>
>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thanks Nazeer and Santosh.
>>>>
>>>> I am able to configure the SMS campaign and able to receive the SMS on
>>>> my phone.
>>>>
>>>> Now, the next step to add the support of other third party SMS Provider
>>>> (https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>>>> How to add the support of other third party SMS provider with the Message
>>>> Gateway?
>>>>
>>>> Regards,
>>>> Mangal
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Message gateway registers a call back API with Twilio while sending
>>>>> the SMS. The system on which message gateway is running, should have a
>>>>> public IP. If it is private IP.
>>>>> Callback registration is required to get the status of SMS sent from
>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>> by commenting code.
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>>
>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>> address or
>>>>>> valid domain name mapped to the IP address. Since,
>>>>>> http://localhost:9191 is
>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>> messsage.
>>>>>> Could you try with system having domain or IP address?
>>>>>>
>>>>>> Regards
>>>>>> Santosh
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>> > Hi Santosh,
>>>>>> >
>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>> provider
>>>>>> > name is displaying in campaign page drop-down but getting errors on
>>>>>> sending
>>>>>> > SMS.
>>>>>> >
>>>>>> > *Errors*
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > *Steps:*
>>>>>> >
>>>>>> > *1. Setup Message Gateway*
>>>>>> >
>>>>>> >    - Create a database messagegateway.
>>>>>> >       - Clone the Message gateway code locally
>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>> >       - $ cd message-gateway
>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >       - $ cd build/libs
>>>>>> >       - java -jar message-gateway.jar
>>>>>> >
>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway
>>>>>> in
>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > *2. Create Tenant app key*
>>>>>> > POST http://localhost:9191/tenants/
>>>>>> > {
>>>>>> > "tenantId" : "default",
>>>>>> > "description" : "Some Description"
>>>>>> > }
>>>>>> >
>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>
>>>>>> > POST http://local:9191/smsbridges
>>>>>> > {
>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>> > "providerName": "Twilio Provider",
>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>> > "providerKey":"Twilio",
>>>>>> > "countryCode":"+91",
>>>>>> > "bridgeConfigurations": [
>>>>>> > {
>>>>>> > "configName":"Provider_Account_Id",
>>>>>> > "configValue":"xxxxxxxxx"
>>>>>> > },
>>>>>> > {
>>>>>> > "configName":"Provider_Auth_Token",
>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>> > }
>>>>>> > ]
>>>>>> > }
>>>>>> >
>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>>>> using
>>>>>> > Twilio Provider.
>>>>>> >
>>>>>> > 5. Try to deposit in client savings account.
>>>>>> >
>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>> console:
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > Request to respond.
>>>>>> >
>>>>>> > Thank you,
>>>>>> > Mangal
>>>>>> >
>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> > wrote:
>>>>>> >
>>>>>> >> Hi Santosh,
>>>>>> >>
>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>> >>
>>>>>> >>    1. Setup Message Gateway
>>>>>> >>       - Create a database messagegateway.
>>>>>> >>       - Clone the Message gateway code locally
>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>> >>       - $ cd message-gateway
>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >>       - $ cd build/libs
>>>>>> >>       - java -jar message-gateway.jar
>>>>>> >>       -
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >> wrote:
>>>>>> >>
>>>>>> >>> Hi Santosh,
>>>>>> >>>
>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>> *Twilio
>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>
>>>>>> >>>
>>>>>> >>> Best,
>>>>>> >>>
>>>>>> >>> Mangal
>>>>>> >>>
>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>
>>>>>> >>>> Hi Mangal
>>>>>> >>>>
>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>> works. You
>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>> >>>>
>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>> >>>>
>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >>>> wrote:
>>>>>> >>>>
>>>>>> >>>>> Hi Santosh,
>>>>>> >>>>>
>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>> >>>>>
>>>>>> >>>>> ---
>>>>>> >>>>> Mangal
>>>>>> >>>>>
>>>>>> >>>>>
>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>
>>>>>> >>>>>> I am online on Skype. Please send me contact request to skype
>>>>>> id
>>>>>> >>>>>> santoshmath99
>>>>>> >>>>>>
>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>> >>>>>>
>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>> >>>>>>>
>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>> >>>>>>>
>>>>>> >>>>>>> Best,
>>>>>> >>>>>>>
>>>>>> >>>>>>> Brijesh
>>>>>> >>>>>>>
>>>>>> >>>>>>>
>>>>>> >>>>>>> ---------
>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>> >>>>>>> *Founder & CEO*
>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>> https://glimmer.finance
>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>
>>>>>> >>>>>>> Skype: docbrij
>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>> >>>>>>>
>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>
>>>>>> >>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Thanks
>>>>>> >>>>>>>> Santosh
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>
>>>>>> >>>>>>>>> Hi Santosh,
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>> successfully as
>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>> >>>>>>>>> iki/spaces/docs/pages/16665804
>>>>>> 9/Message+Gateway+Configuration).
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>> gateway is
>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>>> we register it
>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>>> on specified
>>>>>> >>>>>>>>> events.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>> >>>>>>>>> Status: true
>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>> >>>>>>>>> *Events:*
>>>>>>
>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>> ssage-gateway-0.0.1/sms
>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Thank you,
>>>>>> >>>>>>>>> Mangal
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> https://mifosforge.jira.com/wi
>>>>>> ki/spaces/docs/pages/166658049
>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> Thanks
>>>>>> >>>>>>>>>> Santosh
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>> gateway
>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>> edcable@mifos.org>
>>>>>> >>>>>>>>>>> wrote:
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>>>> at it,
>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>> bridge. He along with
>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>> use and inquiring
>>>>>> >>>>>>>>>>>> about it.
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Ed
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Hello,
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>> [bio-443-exec-81]
>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>> method 'POST' not
>>>>>> >>>>>>>>>>>>>> supported
>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpErr
>>>>>> or(RetrofitError.java:39)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSm
>>>>>> sBridgeConfigRequest(Unknown
>>>>>> >>>>>>>>>>>>>> Source)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>> kProcessor.sendRequest(TwilioH
>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHoo
>>>>>> kProcessor.process(TwilioHookP
>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMult
>>>>>> icaster$1.run(SimpleApplicatio
>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook,
>>>>>> it
>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>>> SMS
>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>> shown in the documents).
>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>>> Mangal
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>> +1.484.477.8649
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Mangal Kumar
>>>>>> >> Tech Lead
>>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>>> >> <https://glimmer.finance>
>>>>>> >> Skype: mangal@bodhiproject.org
>>>>>> >> *Leveraging technology for social challenges...*
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > Mangal Kumar
>>>>>> > Tech Lead
>>>>>> > Digital Media Initiatives | Bodhi Project
>>>>>> > <https://glimmer.finance>
>>>>>> > Skype: mangal@bodhiproject.org
>>>>>> > *Leveraging technology for social challenges...*
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>>
>>>>>> Santosh Math
>>>>>>
>>>>>> *QA Engineer*
>>>>>>
>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>> | *Office*: +91-080-41208662 |
>>>>>>
>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Nazeer Hussain Shaik <na...@gmail.com>.
Sorry, I don't have any step wise notes.

On Mon, Jul 16, 2018 at 6:54 PM Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thanks Nazeer,
>
> I will try to implement bulksmsgateway with Message Gateway. If you have
> step-wise notes regarding the implementation of new SMS provider, it will
> help us.
>
> With Regards,
>
> Mangal
>
>
> On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Correction, I spoke to bulksmsgateway, they do have deliver status
>> reports API.
>>
>> https://login.bulksmsgateway.in/delivery-reports-api.php?username={userName}&password={password}&from=2018-05-29&to=2018-05-30
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Please have a look at current Twilio implementation
>>> https://github.com/openMF/message-gateway/tree/master/src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
>>> and SMSProviderFactory.
>>> It is easy to implement. Your implementation should extend SMSProvider.
>>> If it is still not clear, then let me know I will set up a skype call
>>> (Mostly after 9PM IST).
>>>
>>> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
>>> delivery feedback. Please validate your requirements and their support
>>> before starting the implementation.
>>>
>>> Regards,
>>> Nazeer
>>>
>>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thanks Nazeer and Santosh.
>>>>
>>>> I am able to configure the SMS campaign and able to receive the SMS on
>>>> my phone.
>>>>
>>>> Now, the next step to add the support of other third party SMS Provider
>>>> (https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>>>> How to add the support of other third party SMS provider with the Message
>>>> Gateway?
>>>>
>>>> Regards,
>>>> Mangal
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>>> nazeerhussain.shaik@gmail.com> wrote:
>>>>
>>>>> Message gateway registers a call back API with Twilio while sending
>>>>> the SMS. The system on which message gateway is running, should have a
>>>>> public IP. If it is private IP.
>>>>> Callback registration is required to get the status of SMS sent from
>>>>> message gateway. If you don't want tracking, then disable this registration
>>>>> by commenting code.
>>>>>
>>>>> Regards,
>>>>> Nazeer
>>>>>
>>>>>
>>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Twilio is trying to call(I mean while send sms)  only valid IP
>>>>>> address or
>>>>>> valid domain name mapped to the IP address. Since,
>>>>>> http://localhost:9191 is
>>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>>> messsage.
>>>>>> Could you try with system having domain or IP address?
>>>>>>
>>>>>> Regards
>>>>>> Santosh
>>>>>>
>>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>> > Hi Santosh,
>>>>>> >
>>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>>> provider
>>>>>> > name is displaying in campaign page drop-down but getting errors on
>>>>>> sending
>>>>>> > SMS.
>>>>>> >
>>>>>> > *Errors*
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :93xxxxxx77 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > *Steps:*
>>>>>> >
>>>>>> > *1. Setup Message Gateway*
>>>>>> >
>>>>>> >    - Create a database messagegateway.
>>>>>> >       - Clone the Message gateway code locally
>>>>>> >       - Build the Message Gateway code by runnign command:
>>>>>> >       - $ cd message-gateway
>>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >       - $ cd build/libs
>>>>>> >       - java -jar message-gateway.jar
>>>>>> >
>>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>>>> >> : Tomcat started on port(s): 9191/http
>>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway
>>>>>> in
>>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > *2. Create Tenant app key*
>>>>>> > POST http://localhost:9191/tenants/
>>>>>> > {
>>>>>> > "tenantId" : "default",
>>>>>> > "description" : "Some Description"
>>>>>> > }
>>>>>> >
>>>>>> > *3. Create Twilio SMS Bridge *
>>>>>>
>>>>>> > POST http://local:9191/smsbridges
>>>>>> > {
>>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>>> > "providerName": "Twilio Provider",
>>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>>> > "providerKey":"Twilio",
>>>>>> > "countryCode":"+91",
>>>>>> > "bridgeConfigurations": [
>>>>>> > {
>>>>>> > "configName":"Provider_Account_Id",
>>>>>> > "configValue":"xxxxxxxxx"
>>>>>> > },
>>>>>> > {
>>>>>> > "configName":"Provider_Auth_Token",
>>>>>> > "configValue":"xxxxxxxxxx"
>>>>>> > }
>>>>>> > ]
>>>>>> > }
>>>>>> >
>>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>>>> using
>>>>>> > Twilio Provider.
>>>>>> >
>>>>>> > 5. Try to deposit in client savings account.
>>>>>> >
>>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>>> console:
>>>>>> >
>>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : Sending SMS to +919358209777 ...
>>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>>> >>     : ApiException while sending message to :9358209777 with
>>>>>> reason The
>>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not
>>>>>> a valid
>>>>>> >> URL.
>>>>>> >
>>>>>> >
>>>>>> > Request to respond.
>>>>>> >
>>>>>> > Thank you,
>>>>>> > Mangal
>>>>>> >
>>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> > wrote:
>>>>>> >
>>>>>> >> Hi Santosh,
>>>>>> >>
>>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>>> >>
>>>>>> >>    1. Setup Message Gateway
>>>>>> >>       - Create a database messagegateway.
>>>>>> >>       - Clone the Message gateway code locally
>>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>>> >>       - $ cd message-gateway
>>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>>> >>       - Run the message gateway application standalone, run the
>>>>>> command:
>>>>>> >>       - $ cd build/libs
>>>>>> >>       - java -jar message-gateway.jar
>>>>>> >>       -
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >> wrote:
>>>>>> >>
>>>>>> >>> Hi Santosh,
>>>>>> >>>
>>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>>> *Twilio
>>>>>> >>> SMS Gateway Trial Account.*
>>>>>>
>>>>>> >>>
>>>>>> >>> Best,
>>>>>> >>>
>>>>>> >>> Mangal
>>>>>> >>>
>>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>
>>>>>> >>>> Hi Mangal
>>>>>> >>>>
>>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>>> works. You
>>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>>> >>>>
>>>>>> >>>> https://www.heidisql.com/download.php
>>>>>> >>>>
>>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org>
>>>>>> >>>> wrote:
>>>>>> >>>>
>>>>>> >>>>> Hi Santosh,
>>>>>> >>>>>
>>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>>> >>>>>
>>>>>> >>>>> ---
>>>>>> >>>>> Mangal
>>>>>> >>>>>
>>>>>> >>>>>
>>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>
>>>>>> >>>>>> I am online on Skype. Please send me contact request to skype
>>>>>> id
>>>>>> >>>>>> santoshmath99
>>>>>> >>>>>>
>>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>>> >>>>>>
>>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>>> >>>>>>>
>>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>> >>>>>>>
>>>>>> >>>>>>> Best,
>>>>>> >>>>>>>
>>>>>> >>>>>>> Brijesh
>>>>>> >>>>>>>
>>>>>> >>>>>>>
>>>>>> >>>>>>> ---------
>>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>> >>>>>>> *Founder & CEO*
>>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>>> https://glimmer.finance
>>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>
>>>>>> >>>>>>> Skype: docbrij
>>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>> >>>>>>>
>>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>
>>>>>> >>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>> >>>>>>>> google hangout for this mail id.
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> Thanks
>>>>>> >>>>>>>> Santosh
>>>>>> >>>>>>>>
>>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>
>>>>>> >>>>>>>>> Hi Santosh,
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>>> successfully as
>>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>> >>>>>>>>>
>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message
>>>>>> gateway is
>>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>>> we register it
>>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>>> on specified
>>>>>> >>>>>>>>> events.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>>> >>>>>>>>> Status: true
>>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>>> >>>>>>>>> *Events:*
>>>>>>
>>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>>> >>>>>>>>> CREATE - CLIENT
>>>>>> >>>>>>>>> Payload URL:
>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> Thank you,
>>>>>> >>>>>>>>> Mangal
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>> >>>>>>>>>
>>>>>> >>>>>>>>>> Hi Mangal,
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>>
>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> Thanks
>>>>>> >>>>>>>>>> Santosh
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you ED.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>>> gateway
>>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>>> edcable@mifos.org>
>>>>>> >>>>>>>>>>> wrote:
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>>>> at it,
>>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>>> bridge. He along with
>>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>>> use and inquiring
>>>>>> >>>>>>>>>>>> about it.
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> Ed
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Hello,
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Issue:*
>>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>> >>>>>>>>>>>>> *Error:*
>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 ---
>>>>>> [bio-443-exec-81]
>>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>>> method 'POST' not
>>>>>> >>>>>>>>>>>>>> supported
>>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>> >>>>>>>>>>>>>> at
>>>>>> retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>> >>>>>>>>>>>>>> at
>>>>>> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>> >>>>>>>>>>>>>> Source)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>>
>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>>
>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>>
>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>> >>>>>>>>>>>>>>
>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>> >>>>>>>>>>>>>>
>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> *Steps*:
>>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>> >>>>>>>>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>>> Tomcat;
>>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook,
>>>>>> it
>>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>>> SMS
>>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as
>>>>>> shown in the documents).
>>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Request to respond.
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> Thank you,
>>>>>> >>>>>>>>>>>>> Mangal
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>>> >>>>>>>>>>>>> Tech Lead
>>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>> >>>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> --
>>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>>> +1.484.477.8649
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>>>>>>>>>>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Mangal Kumar
>>>>>> >> Tech Lead
>>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>>> >> <https://glimmer.finance>
>>>>>> >> Skype: mangal@bodhiproject.org
>>>>>> >> *Leveraging technology for social challenges...*
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > Mangal Kumar
>>>>>> > Tech Lead
>>>>>> > Digital Media Initiatives | Bodhi Project
>>>>>> > <https://glimmer.finance>
>>>>>> > Skype: mangal@bodhiproject.org
>>>>>> > *Leveraging technology for social challenges...*
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>>
>>>>>> Santosh Math
>>>>>>
>>>>>> *QA Engineer*
>>>>>>
>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>> | *Office*: +91-080-41208662 |
>>>>>>
>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thanks Nazeer,

I will try to implement bulksmsgateway with Message Gateway. If you have
step-wise notes regarding the implementation of new SMS provider, it will
help us.

With Regards,

Mangal


On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
nazeerhussain.shaik@gmail.com> wrote:

> Correction, I spoke to bulksmsgateway, they do have deliver status reports
> API.
> https://login.bulksmsgateway.in/delivery-reports-api.php?
> username={userName}&password={password}&from=2018-05-29&to=2018-05-30
>
> Regards,
> Nazeer
>
> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Please have a look at current Twilio implementation https://github.
>> com/openMF/message-gateway/tree/master/src/main/java/org/
>> fineract/messagegateway/sms/providers/impl/twilio
>> and SMSProviderFactory.
>> It is easy to implement. Your implementation should extend SMSProvider.
>> If it is still not clear, then let me know I will set up a skype call
>> (Mostly after 9PM IST).
>>
>> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
>> delivery feedback. Please validate your requirements and their support
>> before starting the implementation.
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thanks Nazeer and Santosh.
>>>
>>> I am able to configure the SMS campaign and able to receive the SMS on
>>> my phone.
>>>
>>> Now, the next step to add the support of other third party SMS Provider (
>>> https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>>> How to add the support of other third party SMS provider with the Message
>>> Gateway?
>>>
>>> Regards,
>>> Mangal
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Message gateway registers a call back API with Twilio while sending the
>>>> SMS. The system on which message gateway is running, should have a public
>>>> IP. If it is private IP.
>>>> Callback registration is required to get the status of SMS sent from
>>>> message gateway. If you don't want tracking, then disable this registration
>>>> by commenting code.
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal,
>>>>>
>>>>> Twilio is trying to call(I mean while send sms)  only valid IP address
>>>>> or
>>>>> valid domain name mapped to the IP address. Since,
>>>>> http://localhost:9191 is
>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>> messsage.
>>>>> Could you try with system having domain or IP address?
>>>>>
>>>>> Regards
>>>>> Santosh
>>>>>
>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <mangal@bodhiproject.org
>>>>> >
>>>>> wrote:
>>>>>
>>>>> > Hi Santosh,
>>>>> >
>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>> provider
>>>>> > name is displaying in campaign page drop-down but getting errors on
>>>>> sending
>>>>> > SMS.
>>>>> >
>>>>> > *Errors*
>>>>> >
>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : ApiException while sending message to :93xxxxxx77 with reason
>>>>> The
>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>>> valid
>>>>> >> URL.
>>>>> >
>>>>> >
>>>>> > *Steps:*
>>>>> >
>>>>> > *1. Setup Message Gateway*
>>>>> >
>>>>> >    - Create a database messagegateway.
>>>>> >       - Clone the Message gateway code locally
>>>>> >       - Build the Message Gateway code by runnign command:
>>>>> >       - $ cd message-gateway
>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>> >       - Run the message gateway application standalone, run the
>>>>> command:
>>>>> >       - $ cd build/libs
>>>>> >       - java -jar message-gateway.jar
>>>>> >
>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.
>>>>> TomcatEmbeddedServletContainer
>>>>> >> : Tomcat started on port(s): 9191/http
>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway
>>>>> in
>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>> >
>>>>> >
>>>>> >
>>>>> > *2. Create Tenant app key*
>>>>> > POST http://localhost:9191/tenants/
>>>>> > {
>>>>> > "tenantId" : "default",
>>>>> > "description" : "Some Description"
>>>>> > }
>>>>> >
>>>>> > *3. Create Twilio SMS Bridge *
>>>>>
>>>>> > POST http://local:9191/smsbridges
>>>>> > {
>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>> > "providerName": "Twilio Provider",
>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>> > "providerKey":"Twilio",
>>>>> > "countryCode":"+91",
>>>>> > "bridgeConfigurations": [
>>>>> > {
>>>>> > "configName":"Provider_Account_Id",
>>>>> > "configValue":"xxxxxxxxx"
>>>>> > },
>>>>> > {
>>>>> > "configName":"Provider_Auth_Token",
>>>>> > "configValue":"xxxxxxxxxx"
>>>>> > }
>>>>> > ]
>>>>> > }
>>>>> >
>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>>> using
>>>>> > Twilio Provider.
>>>>> >
>>>>> > 5. Try to deposit in client savings account.
>>>>> >
>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>> console:
>>>>> >
>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : Sending SMS to +919358209777 ...
>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : ApiException while sending message to :9358209777 with reason
>>>>> The
>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>>> valid
>>>>> >> URL.
>>>>> >
>>>>> >
>>>>> > Request to respond.
>>>>> >
>>>>> > Thank you,
>>>>> > Mangal
>>>>> >
>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> > wrote:
>>>>> >
>>>>> >> Hi Santosh,
>>>>> >>
>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>> >>
>>>>> >>    1. Setup Message Gateway
>>>>> >>       - Create a database messagegateway.
>>>>> >>       - Clone the Message gateway code locally
>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>> >>       - $ cd message-gateway
>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>> >>       - Run the message gateway application standalone, run the
>>>>> command:
>>>>> >>       - $ cd build/libs
>>>>> >>       - java -jar message-gateway.jar
>>>>> >>       -
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> >> wrote:
>>>>> >>
>>>>> >>> Hi Santosh,
>>>>> >>>
>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>> *Twilio
>>>>> >>> SMS Gateway Trial Account.*
>>>>>
>>>>> >>>
>>>>> >>> Best,
>>>>> >>>
>>>>> >>> Mangal
>>>>> >>>
>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>
>>>>> >>>> Hi Mangal
>>>>> >>>>
>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>> works. You
>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>> >>>>
>>>>> >>>> https://www.heidisql.com/download.php
>>>>> >>>>
>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> >>>> wrote:
>>>>> >>>>
>>>>> >>>>> Hi Santosh,
>>>>> >>>>>
>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>> >>>>>
>>>>> >>>>> ---
>>>>> >>>>> Mangal
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>
>>>>> >>>>>> I am online on Skype. Please send me contact request to skype id
>>>>> >>>>>> santoshmath99
>>>>> >>>>>>
>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>> >>>>>>
>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>> >>>>>>>
>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>> >>>>>>>
>>>>> >>>>>>> Best,
>>>>> >>>>>>>
>>>>> >>>>>>> Brijesh
>>>>> >>>>>>>
>>>>> >>>>>>>
>>>>> >>>>>>> ---------
>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>> >>>>>>> *Founder & CEO*
>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>> https://glimmer.finance
>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>
>>>>> >>>>>>> Skype: docbrij
>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>> >>>>>>>
>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>>>
>>>>> >>>>>>>> Hi Mangal,
>>>>> >>>>>>>>
>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>> >>>>>>>> google hangout for this mail id.
>>>>> >>>>>>>>
>>>>> >>>>>>>> Thanks
>>>>> >>>>>>>> Santosh
>>>>> >>>>>>>>
>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>
>>>>> >>>>>>>>> Hi Santosh,
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>> successfully as
>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+
>>>>> Configuration).
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway
>>>>> is
>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>> we register it
>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>> on specified
>>>>> >>>>>>>>> events.
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>> >>>>>>>>> Status: true
>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>> >>>>>>>>> *Events:*
>>>>>
>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>> >>>>>>>>> CREATE - CLIENT
>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/
>>>>> message-gateway-0.0.1/sms
>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Thank you,
>>>>> >>>>>>>>> Mangal
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>>>>>
>>>>> >>>>>>>>>> Hi Mangal,
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/
>>>>> 166658049
>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> Thanks
>>>>> >>>>>>>>>> Santosh
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>>> Thank you ED.
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>> gateway
>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> Thank you,
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>> edcable@mifos.org>
>>>>> >>>>>>>>>>> wrote:
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>>> at it,
>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>> bridge. He along with
>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>> use and inquiring
>>>>> >>>>>>>>>>>> about it.
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> Ed
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Hello,
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> *Issue:*
>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>> >>>>>>>>>>>>> *Error:*
>>>>>
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>> method 'POST' not
>>>>> >>>>>>>>>>>>>> supported
>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:
>>>>> 39)
>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(
>>>>> Unknown
>>>>> >>>>>>>>>>>>>> Source)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.
>>>>> sendRequest(TwilioH
>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(
>>>>> TwilioHookP
>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>>>>> onApplicationEvent(
>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>>>>> onApplicationEvent(
>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMulticas
>>>>> ter$1.run(SimpleApplicatio
>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> *Steps*:
>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>> >>>>>>>>>>>>> Tomcat;
>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>> Tomcat;
>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook,
>>>>> it
>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>> SMS
>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown
>>>>> in the documents).
>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Request to respond.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Thank you,
>>>>> >>>>>>>>>>>>> Mangal
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> --
>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>> >>>>>>>>>>>>> Tech Lead
>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> --
>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>> +1.484.477.8649
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Mangal Kumar
>>>>> >> Tech Lead
>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>> >> <https://glimmer.finance>
>>>>> >> Skype: mangal@bodhiproject.org
>>>>> >> *Leveraging technology for social challenges...*
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Mangal Kumar
>>>>> > Tech Lead
>>>>> > Digital Media Initiatives | Bodhi Project
>>>>> > <https://glimmer.finance>
>>>>> > Skype: mangal@bodhiproject.org
>>>>> > *Leveraging technology for social challenges...*
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>>
>>>>> Santosh Math
>>>>>
>>>>> *QA Engineer*
>>>>>
>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>> | *Office*: +91-080-41208662 |
>>>>>
>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>
>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thanks Nazeer,

I will try to implement bulksmsgateway with Message Gateway. If you have
step-wise notes regarding the implementation of new SMS provider, it will
help us.

With Regards,

Mangal


On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
nazeerhussain.shaik@gmail.com> wrote:

> Correction, I spoke to bulksmsgateway, they do have deliver status reports
> API.
> https://login.bulksmsgateway.in/delivery-reports-api.php?
> username={userName}&password={password}&from=2018-05-29&to=2018-05-30
>
> Regards,
> Nazeer
>
> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Please have a look at current Twilio implementation https://github.
>> com/openMF/message-gateway/tree/master/src/main/java/org/
>> fineract/messagegateway/sms/providers/impl/twilio
>> and SMSProviderFactory.
>> It is easy to implement. Your implementation should extend SMSProvider.
>> If it is still not clear, then let me know I will set up a skype call
>> (Mostly after 9PM IST).
>>
>> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
>> delivery feedback. Please validate your requirements and their support
>> before starting the implementation.
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thanks Nazeer and Santosh.
>>>
>>> I am able to configure the SMS campaign and able to receive the SMS on
>>> my phone.
>>>
>>> Now, the next step to add the support of other third party SMS Provider (
>>> https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>>> How to add the support of other third party SMS provider with the Message
>>> Gateway?
>>>
>>> Regards,
>>> Mangal
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>> nazeerhussain.shaik@gmail.com> wrote:
>>>
>>>> Message gateway registers a call back API with Twilio while sending the
>>>> SMS. The system on which message gateway is running, should have a public
>>>> IP. If it is private IP.
>>>> Callback registration is required to get the status of SMS sent from
>>>> message gateway. If you don't want tracking, then disable this registration
>>>> by commenting code.
>>>>
>>>> Regards,
>>>> Nazeer
>>>>
>>>>
>>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal,
>>>>>
>>>>> Twilio is trying to call(I mean while send sms)  only valid IP address
>>>>> or
>>>>> valid domain name mapped to the IP address. Since,
>>>>> http://localhost:9191 is
>>>>> neither IP address ,nor domain name, it's throwing above error
>>>>> messsage.
>>>>> Could you try with system having domain or IP address?
>>>>>
>>>>> Regards
>>>>> Santosh
>>>>>
>>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <mangal@bodhiproject.org
>>>>> >
>>>>> wrote:
>>>>>
>>>>> > Hi Santosh,
>>>>> >
>>>>> > We have taken the following steps to enable SMS Campaign. SMS
>>>>> provider
>>>>> > name is displaying in campaign page drop-down but getting errors on
>>>>> sending
>>>>> > SMS.
>>>>> >
>>>>> > *Errors*
>>>>> >
>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : ApiException while sending message to :93xxxxxx77 with reason
>>>>> The
>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>>> valid
>>>>> >> URL.
>>>>> >
>>>>> >
>>>>> > *Steps:*
>>>>> >
>>>>> > *1. Setup Message Gateway*
>>>>> >
>>>>> >    - Create a database messagegateway.
>>>>> >       - Clone the Message gateway code locally
>>>>> >       - Build the Message Gateway code by runnign command:
>>>>> >       - $ cd message-gateway
>>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>>> >       - Run the message gateway application standalone, run the
>>>>> command:
>>>>> >       - $ cd build/libs
>>>>> >       - java -jar message-gateway.jar
>>>>> >
>>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.
>>>>> TomcatEmbeddedServletContainer
>>>>> >> : Tomcat started on port(s): 9191/http
>>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway
>>>>> in
>>>>> >> 5.992 seconds (JVM running for 6.438)
>>>>> >
>>>>> >
>>>>> >
>>>>> > *2. Create Tenant app key*
>>>>> > POST http://localhost:9191/tenants/
>>>>> > {
>>>>> > "tenantId" : "default",
>>>>> > "description" : "Some Description"
>>>>> > }
>>>>> >
>>>>> > *3. Create Twilio SMS Bridge *
>>>>>
>>>>> > POST http://local:9191/smsbridges
>>>>> > {
>>>>> > "phoneNo": "+15xxxxxxx46",
>>>>> > "providerName": "Twilio Provider",
>>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>>> > "providerKey":"Twilio",
>>>>> > "countryCode":"+91",
>>>>> > "bridgeConfigurations": [
>>>>> > {
>>>>> > "configName":"Provider_Account_Id",
>>>>> > "configValue":"xxxxxxxxx"
>>>>> > },
>>>>> > {
>>>>> > "configName":"Provider_Auth_Token",
>>>>> > "configValue":"xxxxxxxxxx"
>>>>> > }
>>>>> > ]
>>>>> > }
>>>>> >
>>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>>> using
>>>>> > Twilio Provider.
>>>>> >
>>>>> > 5. Try to deposit in client savings account.
>>>>> >
>>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>>> console:
>>>>> >
>>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : Sending SMS to +919358209777 ...
>>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>>> >>     : ApiException while sending message to :9358209777 with reason
>>>>> The
>>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>>> valid
>>>>> >> URL.
>>>>> >
>>>>> >
>>>>> > Request to respond.
>>>>> >
>>>>> > Thank you,
>>>>> > Mangal
>>>>> >
>>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> > wrote:
>>>>> >
>>>>> >> Hi Santosh,
>>>>> >>
>>>>> >> We have taken the following steps to enable SMS Campaign.
>>>>> >>
>>>>> >>    1. Setup Message Gateway
>>>>> >>       - Create a database messagegateway.
>>>>> >>       - Clone the Message gateway code locally
>>>>> >>       - Build the Message Gateway code by runnign command:
>>>>> >>       - $ cd message-gateway
>>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>>> >>       - Run the message gateway application standalone, run the
>>>>> command:
>>>>> >>       - $ cd build/libs
>>>>> >>       - java -jar message-gateway.jar
>>>>> >>       -
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> >> wrote:
>>>>> >>
>>>>> >>> Hi Santosh,
>>>>> >>>
>>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>>> *Twilio
>>>>> >>> SMS Gateway Trial Account.*
>>>>>
>>>>> >>>
>>>>> >>> Best,
>>>>> >>>
>>>>> >>> Mangal
>>>>> >>>
>>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>
>>>>> >>>> Hi Mangal
>>>>> >>>>
>>>>> >>>> Please find the attached file to understand how sms campaign
>>>>> works. You
>>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>>> >>>>
>>>>> >>>> https://www.heidisql.com/download.php
>>>>> >>>>
>>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>>> mangal@bodhiproject.org>
>>>>> >>>> wrote:
>>>>> >>>>
>>>>> >>>>> Hi Santosh,
>>>>> >>>>>
>>>>> >>>>> I have sent contact request to you. Please accept.
>>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>>> >>>>>
>>>>> >>>>> ---
>>>>> >>>>> Mangal
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>
>>>>> >>>>>> I am online on Skype. Please send me contact request to skype id
>>>>> >>>>>> santoshmath99
>>>>> >>>>>>
>>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>>> >>>>>>
>>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>>> >>>>>>>
>>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>> >>>>>>>
>>>>> >>>>>>> Best,
>>>>> >>>>>>>
>>>>> >>>>>>> Brijesh
>>>>> >>>>>>>
>>>>> >>>>>>>
>>>>> >>>>>>> ---------
>>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>>> >>>>>>> *Founder & CEO*
>>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>>> https://glimmer.finance
>>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>
>>>>> >>>>>>> Skype: docbrij
>>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>> >>>>>>>
>>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>>>
>>>>> >>>>>>>> Hi Mangal,
>>>>> >>>>>>>>
>>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>> >>>>>>>> google hangout for this mail id.
>>>>> >>>>>>>>
>>>>> >>>>>>>> Thanks
>>>>> >>>>>>>> Santosh
>>>>> >>>>>>>>
>>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>
>>>>> >>>>>>>>> Hi Santosh,
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>>> successfully as
>>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+
>>>>> Configuration).
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway
>>>>> is
>>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when
>>>>> we register it
>>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS
>>>>> on specified
>>>>> >>>>>>>>> events.
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>>> >>>>>>>>> Status: true
>>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>>> >>>>>>>>> *Events:*
>>>>>
>>>>> >>>>>>>>> REPAYMENT - LOAN
>>>>> >>>>>>>>> CREATE - CLIENT
>>>>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/
>>>>> message-gateway-0.0.1/sms
>>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>>> >>>>>>>>> SMS Provider: Twilio
>>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> Thank you,
>>>>> >>>>>>>>> Mangal
>>>>> >>>>>>>>>
>>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>> >>>>>>>>>
>>>>> >>>>>>>>>> Hi Mangal,
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/
>>>>> 166658049
>>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> Thanks
>>>>> >>>>>>>>>> Santosh
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>>>
>>>>> >>>>>>>>>>> Thank you ED.
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>>> gateway
>>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> Thank you,
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>>> edcable@mifos.org>
>>>>> >>>>>>>>>>> wrote:
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>>> at it,
>>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>>> bridge. He along with
>>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to
>>>>> use and inquiring
>>>>> >>>>>>>>>>>> about it.
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> Ed
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Hello,
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> *Issue:*
>>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>> >>>>>>>>>>>>> *Error:*
>>>>>
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>>> method 'POST' not
>>>>> >>>>>>>>>>>>>> supported
>>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:
>>>>> 39)
>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(
>>>>> Unknown
>>>>> >>>>>>>>>>>>>> Source)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.
>>>>> sendRequest(TwilioH
>>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(
>>>>> TwilioHookP
>>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>>>>> onApplicationEvent(
>>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>>>>> onApplicationEvent(
>>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMulticas
>>>>> ter$1.run(SimpleApplicatio
>>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> *Steps*:
>>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>> >>>>>>>>>>>>> Tomcat;
>>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>>> Tomcat;
>>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook,
>>>>> it
>>>>> >>>>>>>>>>>>> throws an error placed above.
>>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External
>>>>> SMS
>>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown
>>>>> in the documents).
>>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Request to respond.
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> Thank you,
>>>>> >>>>>>>>>>>>> Mangal
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>> --
>>>>> >>>>>>>>>>>>> Mangal Kumar
>>>>> >>>>>>>>>>>>> Tech Lead
>>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>> >>>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> --
>>>>> >>>>>>>>>>>> *Ed Cable*
>>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>>> +1.484.477.8649
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>>>>>>>>>>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Mangal Kumar
>>>>> >> Tech Lead
>>>>> >> Digital Media Initiatives | Bodhi Project
>>>>> >> <https://glimmer.finance>
>>>>> >> Skype: mangal@bodhiproject.org
>>>>> >> *Leveraging technology for social challenges...*
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Mangal Kumar
>>>>> > Tech Lead
>>>>> > Digital Media Initiatives | Bodhi Project
>>>>> > <https://glimmer.finance>
>>>>> > Skype: mangal@bodhiproject.org
>>>>> > *Leveraging technology for social challenges...*
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>>
>>>>> Santosh Math
>>>>>
>>>>> *QA Engineer*
>>>>>
>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>> | *Office*: +91-080-41208662 |
>>>>>
>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>
>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Nazeer Hussain Shaik <na...@gmail.com>.
Correction, I spoke to bulksmsgateway, they do have deliver status reports
API.
https://login.bulksmsgateway.in/delivery-reports-api.php?username={userName}&password={password}&from=2018-05-29&to=2018-05-30

Regards,
Nazeer

On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
nazeerhussain.shaik@gmail.com> wrote:

> Please have a look at current Twilio implementation
> https://github.com/openMF/message-gateway/tree/master/src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
> and SMSProviderFactory.
> It is easy to implement. Your implementation should extend SMSProvider.
> If it is still not clear, then let me know I will set up a skype call
> (Mostly after 9PM IST).
>
> Note: I believe bulksmsgateway supports sending SMS. But doesn't support
> delivery feedback. Please validate your requirements and their support
> before starting the implementation.
>
> Regards,
> Nazeer
>
> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Thanks Nazeer and Santosh.
>>
>> I am able to configure the SMS campaign and able to receive the SMS on my
>> phone.
>>
>> Now, the next step to add the support of other third party SMS Provider (
>> https://www.bulksmsgateway.in) like Twilio. Could you please explain?
>> How to add the support of other third party SMS provider with the Message
>> Gateway?
>>
>> Regards,
>> Mangal
>>
>>
>>
>>
>>
>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>> nazeerhussain.shaik@gmail.com> wrote:
>>
>>> Message gateway registers a call back API with Twilio while sending the
>>> SMS. The system on which message gateway is running, should have a public
>>> IP. If it is private IP.
>>> Callback registration is required to get the status of SMS sent from
>>> message gateway. If you don't want tracking, then disable this registration
>>> by commenting code.
>>>
>>> Regards,
>>> Nazeer
>>>
>>>
>>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal,
>>>>
>>>> Twilio is trying to call(I mean while send sms)  only valid IP address
>>>> or
>>>> valid domain name mapped to the IP address. Since,
>>>> http://localhost:9191 is
>>>> neither IP address ,nor domain name, it's throwing above error messsage.
>>>> Could you try with system having domain or IP address?
>>>>
>>>> Regards
>>>> Santosh
>>>>
>>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>> > Hi Santosh,
>>>> >
>>>> > We have taken the following steps to enable SMS Campaign. SMS provider
>>>> > name is displaying in campaign page drop-down but getting errors on
>>>> sending
>>>> > SMS.
>>>> >
>>>> > *Errors*
>>>> >
>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>> >>     : ApiException while sending message to :93xxxxxx77 with reason
>>>> The
>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>> valid
>>>> >> URL.
>>>> >
>>>> >
>>>> > *Steps:*
>>>> >
>>>> > *1. Setup Message Gateway*
>>>> >
>>>> >    - Create a database messagegateway.
>>>> >       - Clone the Message gateway code locally
>>>> >       - Build the Message Gateway code by runnign command:
>>>> >       - $ cd message-gateway
>>>> >       - $ gradlew clean  build -Pprofile=deployable
>>>> >       - Run the message gateway application standalone, run the
>>>> command:
>>>> >       - $ cd build/libs
>>>> >       - java -jar message-gateway.jar
>>>> >
>>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>>> >> : Tomcat started on port(s): 9191/http
>>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>>>> >> 5.992 seconds (JVM running for 6.438)
>>>> >
>>>> >
>>>> >
>>>> > *2. Create Tenant app key*
>>>> > POST http://localhost:9191/tenants/
>>>> > {
>>>> > "tenantId" : "default",
>>>> > "description" : "Some Description"
>>>> > }
>>>> >
>>>> > *3. Create Twilio SMS Bridge *
>>>>
>>>> > POST http://local:9191/smsbridges
>>>> > {
>>>> > "phoneNo": "+15xxxxxxx46",
>>>> > "providerName": "Twilio Provider",
>>>> > "providerDescription": "SMS Provider for promotional messages",
>>>> > "providerKey":"Twilio",
>>>> > "countryCode":"+91",
>>>> > "bridgeConfigurations": [
>>>> > {
>>>> > "configName":"Provider_Account_Id",
>>>> > "configValue":"xxxxxxxxx"
>>>> > },
>>>> > {
>>>> > "configName":"Provider_Auth_Token",
>>>> > "configValue":"xxxxxxxxxx"
>>>> > }
>>>> > ]
>>>> > }
>>>> >
>>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>>> using
>>>> > Twilio Provider.
>>>> >
>>>> > 5. Try to deposit in client savings account.
>>>> >
>>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>>> console:
>>>> >
>>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>> >>     : Sending SMS to +919358209777 ...
>>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>>> >>     : ApiException while sending message to :9358209777 with reason
>>>> The
>>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>>> valid
>>>> >> URL.
>>>> >
>>>> >
>>>> > Request to respond.
>>>> >
>>>> > Thank you,
>>>> > Mangal
>>>> >
>>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <
>>>> mangal@bodhiproject.org>
>>>> > wrote:
>>>> >
>>>> >> Hi Santosh,
>>>> >>
>>>> >> We have taken the following steps to enable SMS Campaign.
>>>> >>
>>>> >>    1. Setup Message Gateway
>>>> >>       - Create a database messagegateway.
>>>> >>       - Clone the Message gateway code locally
>>>> >>       - Build the Message Gateway code by runnign command:
>>>> >>       - $ cd message-gateway
>>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>>> >>       - Run the message gateway application standalone, run the
>>>> command:
>>>> >>       - $ cd build/libs
>>>> >>       - java -jar message-gateway.jar
>>>> >>       -
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>>> mangal@bodhiproject.org>
>>>> >> wrote:
>>>> >>
>>>> >>> Hi Santosh,
>>>> >>>
>>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup
>>>> *Twilio
>>>> >>> SMS Gateway Trial Account.*
>>>>
>>>> >>>
>>>> >>> Best,
>>>> >>>
>>>> >>> Mangal
>>>> >>>
>>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>> >>> santosh@confluxtechnologies.com> wrote:
>>>> >>>
>>>> >>>> Hi Mangal
>>>> >>>>
>>>> >>>> Please find the attached file to understand how sms campaign
>>>> works. You
>>>> >>>> can download front end for sql , ie.. heidisql from here:
>>>> >>>>
>>>> >>>> https://www.heidisql.com/download.php
>>>> >>>>
>>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>>> mangal@bodhiproject.org>
>>>> >>>> wrote:
>>>> >>>>
>>>> >>>>> Hi Santosh,
>>>> >>>>>
>>>> >>>>> I have sent contact request to you. Please accept.
>>>> >>>>> My Skype id: mangal@bodhiproject.org
>>>> >>>>>
>>>> >>>>> ---
>>>> >>>>> Mangal
>>>> >>>>>
>>>> >>>>>
>>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>>> >>>>>
>>>> >>>>>> I am online on Skype. Please send me contact request to skype id
>>>> >>>>>> santoshmath99
>>>> >>>>>>
>>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>>> >>>>>>
>>>> >>>>>>> Thanks! Santosh, Mangal,
>>>> >>>>>>>
>>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>> >>>>>>>
>>>> >>>>>>> Best,
>>>> >>>>>>>
>>>> >>>>>>> Brijesh
>>>> >>>>>>>
>>>> >>>>>>>
>>>> >>>>>>> ---------
>>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>>> >>>>>>> *Founder & CEO*
>>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>>> https://glimmer.finance
>>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>
>>>> >>>>>>> Skype: docbrij
>>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>> >>>>>>>
>>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>>> >>>>>>>
>>>> >>>>>>>> Hi Mangal,
>>>> >>>>>>>>
>>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>> >>>>>>>> google hangout for this mail id.
>>>> >>>>>>>>
>>>> >>>>>>>> Thanks
>>>> >>>>>>>> Santosh
>>>> >>>>>>>>
>>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>>> >>>>>>>>
>>>> >>>>>>>>> Hi Santosh,
>>>> >>>>>>>>>
>>>> >>>>>>>>> We have implemented and configured Message Gateway
>>>> successfully as
>>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>> >>>>>>>>>
>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>> >>>>>>>>>
>>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>> >>>>>>>>>
>>>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway
>>>> is
>>>> >>>>>>>>> sending SMS on my mobile number using REST client but when we
>>>> register it
>>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on
>>>> specified
>>>> >>>>>>>>> events.
>>>> >>>>>>>>>
>>>> >>>>>>>>> SMS Bridge webhook template details are:
>>>> >>>>>>>>>
>>>> >>>>>>>>> Hook Name: Twilio SMS
>>>> >>>>>>>>> Status: true
>>>> >>>>>>>>> Activation Date: [2018,7,12]
>>>> >>>>>>>>> Updated On: [2018,7,12]
>>>> >>>>>>>>> *Events:*
>>>>
>>>> >>>>>>>>> REPAYMENT - LOAN
>>>> >>>>>>>>> CREATE - CLIENT
>>>> >>>>>>>>> Payload URL:
>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>>> >>>>>>>>> SMS Provider: Twilio
>>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>>> >>>>>>>>>
>>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>> >>>>>>>>>
>>>> >>>>>>>>> Thank you,
>>>> >>>>>>>>> Mangal
>>>> >>>>>>>>>
>>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>> >>>>>>>>>
>>>> >>>>>>>>>> Hi Mangal,
>>>> >>>>>>>>>>
>>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>>> >>>>>>>>>>
>>>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>> >>>>>>>>>> /Message+Gateway+Configuration
>>>> >>>>>>>>>>
>>>> >>>>>>>>>> Thanks
>>>> >>>>>>>>>> Santosh
>>>> >>>>>>>>>>
>>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>> >>>>>>>>>>
>>>> >>>>>>>>>>> Thank you ED.
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>>> gateway
>>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>> Thank you,
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>>> edcable@mifos.org>
>>>> >>>>>>>>>>> wrote:
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>>> Sampath/Santosh,
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're
>>>> at it,
>>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>>> bridge. He along with
>>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use
>>>> and inquiring
>>>> >>>>>>>>>>>> about it.
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>> Ed
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>>> Hello,
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> *Issue:*
>>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>> >>>>>>>>>>>>> *Error:*
>>>>
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request
>>>> method 'POST' not
>>>> >>>>>>>>>>>>>> supported
>>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>> >>>>>>>>>>>>>> at
>>>> retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>> >>>>>>>>>>>>>> at
>>>> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>> >>>>>>>>>>>>>> Source)
>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>> >>>>>>>>>>>>>>
>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>> >>>>>>>>>>>>>>
>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>> >>>>>>>>>>>>>> rocessor.java:72)
>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>> >>>>>>>>>>>>>>
>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>> >>>>>>>>>>>>>>
>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>>> >>>>>>>>>>>>>>
>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> *Steps*:
>>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>> >>>>>>>>>>>>> Tomcat;
>>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with
>>>> Tomcat;
>>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>> >>>>>>>>>>>>> throws an error placed above.
>>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown
>>>> in the documents).
>>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> Request to respond.
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> Thank you,
>>>> >>>>>>>>>>>>> Mangal
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>> --
>>>> >>>>>>>>>>>>> Mangal Kumar
>>>> >>>>>>>>>>>>> Tech Lead
>>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>> >>>>>>>>>>>>>
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>> --
>>>> >>>>>>>>>>>> *Ed Cable*
>>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>>> +1.484.477.8649
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>>
>>>> >>>>>>>>>>>
>>>> >>>>>>>>>>>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Mangal Kumar
>>>> >> Tech Lead
>>>> >> Digital Media Initiatives | Bodhi Project
>>>> >> <https://glimmer.finance>
>>>> >> Skype: mangal@bodhiproject.org
>>>> >> *Leveraging technology for social challenges...*
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Mangal Kumar
>>>> > Tech Lead
>>>> > Digital Media Initiatives | Bodhi Project
>>>> > <https://glimmer.finance>
>>>> > Skype: mangal@bodhiproject.org
>>>> > *Leveraging technology for social challenges...*
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>>
>>>> Santosh Math
>>>>
>>>> *QA Engineer*
>>>>
>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>> | *Office*: +91-080-41208662 |
>>>>
>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>
>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Nazeer Hussain Shaik <na...@gmail.com>.
Please have a look at current Twilio implementation
https://github.com/openMF/message-gateway/tree/master/src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
and SMSProviderFactory.
It is easy to implement. Your implementation should extend SMSProvider. If
it is still not clear, then let me know I will set up a skype call (Mostly
after 9PM IST).

Note: I believe bulksmsgateway supports sending SMS. But doesn't support
delivery feedback. Please validate your requirements and their support
before starting the implementation.

Regards,
Nazeer

On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thanks Nazeer and Santosh.
>
> I am able to configure the SMS campaign and able to receive the SMS on my
> phone.
>
> Now, the next step to add the support of other third party SMS Provider (
> https://www.bulksmsgateway.in) like Twilio. Could you please explain? How
> to add the support of other third party SMS provider with the Message
> Gateway?
>
> Regards,
> Mangal
>
>
>
>
>
> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
> nazeerhussain.shaik@gmail.com> wrote:
>
>> Message gateway registers a call back API with Twilio while sending the
>> SMS. The system on which message gateway is running, should have a public
>> IP. If it is private IP.
>> Callback registration is required to get the status of SMS sent from
>> message gateway. If you don't want tracking, then disable this registration
>> by commenting code.
>>
>> Regards,
>> Nazeer
>>
>>
>> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal,
>>>
>>> Twilio is trying to call(I mean while send sms)  only valid IP address or
>>> valid domain name mapped to the IP address. Since, http://localhost:9191
>>> is
>>> neither IP address ,nor domain name, it's throwing above error messsage.
>>> Could you try with system having domain or IP address?
>>>
>>> Regards
>>> Santosh
>>>
>>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>> > Hi Santosh,
>>> >
>>> > We have taken the following steps to enable SMS Campaign. SMS provider
>>> > name is displaying in campaign page drop-down but getting errors on
>>> sending
>>> > SMS.
>>> >
>>> > *Errors*
>>> >
>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>> >>     : Sending SMS to +9193xxxxxx77 ...
>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>> >>     : ApiException while sending message to :93xxxxxx77 with reason
>>> The
>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>> valid
>>> >> URL.
>>> >
>>> >
>>> > *Steps:*
>>> >
>>> > *1. Setup Message Gateway*
>>> >
>>> >    - Create a database messagegateway.
>>> >       - Clone the Message gateway code locally
>>> >       - Build the Message Gateway code by runnign command:
>>> >       - $ cd message-gateway
>>> >       - $ gradlew clean  build -Pprofile=deployable
>>> >       - Run the message gateway application standalone, run the
>>> command:
>>> >       - $ cd build/libs
>>> >       - java -jar message-gateway.jar
>>> >
>>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>> s.b.c.e.t.TomcatEmbeddedServletContainer
>>> >> : Tomcat started on port(s): 9191/http
>>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>>> >> 5.992 seconds (JVM running for 6.438)
>>> >
>>> >
>>> >
>>> > *2. Create Tenant app key*
>>> > POST http://localhost:9191/tenants/
>>> > {
>>> > "tenantId" : "default",
>>> > "description" : "Some Description"
>>> > }
>>> >
>>> > *3. Create Twilio SMS Bridge *
>>>
>>> > POST http://local:9191/smsbridges
>>> > {
>>> > "phoneNo": "+15xxxxxxx46",
>>> > "providerName": "Twilio Provider",
>>> > "providerDescription": "SMS Provider for promotional messages",
>>> > "providerKey":"Twilio",
>>> > "countryCode":"+91",
>>> > "bridgeConfigurations": [
>>> > {
>>> > "configName":"Provider_Account_Id",
>>> > "configValue":"xxxxxxxxx"
>>> > },
>>> > {
>>> > "configName":"Provider_Auth_Token",
>>> > "configValue":"xxxxxxxxxx"
>>> > }
>>> > ]
>>> > }
>>> >
>>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>>> using
>>> > Twilio Provider.
>>> >
>>> > 5. Try to deposit in client savings account.
>>> >
>>> > 6. No SMS on client phone but getting errors on Message Gateway
>>> console:
>>> >
>>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>> >>     : Sending SMS to +919358209777 ...
>>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider
>>> >>     : ApiException while sending message to :9358209777 with reason
>>> The
>>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>>> valid
>>> >> URL.
>>> >
>>> >
>>> > Request to respond.
>>> >
>>> > Thank you,
>>> > Mangal
>>> >
>>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <mangal@bodhiproject.org
>>> >
>>> > wrote:
>>> >
>>> >> Hi Santosh,
>>> >>
>>> >> We have taken the following steps to enable SMS Campaign.
>>> >>
>>> >>    1. Setup Message Gateway
>>> >>       - Create a database messagegateway.
>>> >>       - Clone the Message gateway code locally
>>> >>       - Build the Message Gateway code by runnign command:
>>> >>       - $ cd message-gateway
>>> >>       - $ gradlew clean  build -Pprofile=deployable
>>> >>       - Run the message gateway application standalone, run the
>>> command:
>>> >>       - $ cd build/libs
>>> >>       - java -jar message-gateway.jar
>>> >>       -
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <
>>> mangal@bodhiproject.org>
>>> >> wrote:
>>> >>
>>> >>> Hi Santosh,
>>> >>>
>>> >>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>> >>> SMS Gateway Trial Account.*
>>>
>>> >>>
>>> >>> Best,
>>> >>>
>>> >>> Mangal
>>> >>>
>>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>> >>> santosh@confluxtechnologies.com> wrote:
>>> >>>
>>> >>>> Hi Mangal
>>> >>>>
>>> >>>> Please find the attached file to understand how sms campaign works.
>>> You
>>> >>>> can download front end for sql , ie.. heidisql from here:
>>> >>>>
>>> >>>> https://www.heidisql.com/download.php
>>> >>>>
>>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>>> mangal@bodhiproject.org>
>>> >>>> wrote:
>>> >>>>
>>> >>>>> Hi Santosh,
>>> >>>>>
>>> >>>>> I have sent contact request to you. Please accept.
>>> >>>>> My Skype id: mangal@bodhiproject.org
>>> >>>>>
>>> >>>>> ---
>>> >>>>> Mangal
>>> >>>>>
>>> >>>>>
>>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>> >>>>> santosh@confluxtechnologies.com> wrote:
>>> >>>>>
>>> >>>>>> I am online on Skype. Please send me contact request to skype id
>>> >>>>>> santoshmath99
>>> >>>>>>
>>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>> >>>>>> docbrij@bodhiproject.org> wrote:
>>> >>>>>>
>>> >>>>>>> Thanks! Santosh, Mangal,
>>> >>>>>>>
>>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>> >>>>>>>
>>> >>>>>>> Best,
>>> >>>>>>>
>>> >>>>>>> Brijesh
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>> ---------
>>> >>>>>>> Brijesh Kumar, *Ph.D.*
>>> >>>>>>> *Founder & CEO*
>>> >>>>>>> Digital Media Initiatives | Bodhi Project
>>> >>>>>>> http://dmi.systems  <http://dmi.systems>|
>>> https://glimmer.finance
>>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>
>>> >>>>>>> Skype: docbrij
>>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>> >>>>>>>
>>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>>> >>>>>>>
>>> >>>>>>>> Hi Mangal,
>>> >>>>>>>>
>>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>> >>>>>>>> google hangout for this mail id.
>>> >>>>>>>>
>>> >>>>>>>> Thanks
>>> >>>>>>>> Santosh
>>> >>>>>>>>
>>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>> >>>>>>>> mangal@bodhiproject.org> wrote:
>>> >>>>>>>>
>>> >>>>>>>>> Hi Santosh,
>>> >>>>>>>>>
>>> >>>>>>>>> We have implemented and configured Message Gateway
>>> successfully as
>>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>> >>>>>>>>>
>>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>> >>>>>>>>>
>>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>> >>>>>>>>> sending SMS on my mobile number using REST client but when we
>>> register it
>>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on
>>> specified
>>> >>>>>>>>> events.
>>> >>>>>>>>>
>>> >>>>>>>>> SMS Bridge webhook template details are:
>>> >>>>>>>>>
>>> >>>>>>>>> Hook Name: Twilio SMS
>>> >>>>>>>>> Status: true
>>> >>>>>>>>> Activation Date: [2018,7,12]
>>> >>>>>>>>> Updated On: [2018,7,12]
>>> >>>>>>>>> *Events:*
>>>
>>> >>>>>>>>> REPAYMENT - LOAN
>>> >>>>>>>>> CREATE - CLIENT
>>> >>>>>>>>> Payload URL:
>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>> >>>>>>>>> Phone Number: <Twilio Phone number>
>>> >>>>>>>>> SMS Provider: Twilio
>>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>>> >>>>>>>>>
>>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>>> >>>>>>>>>
>>> >>>>>>>>> Thank you,
>>> >>>>>>>>> Mangal
>>> >>>>>>>>>
>>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>> >>>>>>>>>
>>> >>>>>>>>>> Hi Mangal,
>>> >>>>>>>>>>
>>> >>>>>>>>>> I think Antony is referrring to this documentation:
>>> >>>>>>>>>>
>>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>> >>>>>>>>>> /Message+Gateway+Configuration
>>> >>>>>>>>>>
>>> >>>>>>>>>> Thanks
>>> >>>>>>>>>> Santosh
>>> >>>>>>>>>>
>>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>>> >>>>>>>>>>
>>> >>>>>>>>>>> Thank you ED.
>>> >>>>>>>>>>>
>>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>>> gateway
>>> >>>>>>>>>>> implementation? It will help us to implement it.
>>> >>>>>>>>>>>
>>> >>>>>>>>>>> Thank you,
>>> >>>>>>>>>>>
>>> >>>>>>>>>>>
>>> >>>>>>>>>>>
>>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <
>>> edcable@mifos.org>
>>> >>>>>>>>>>> wrote:
>>> >>>>>>>>>>>
>>> >>>>>>>>>>>> Sampath/Santosh,
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're at
>>> it,
>>> >>>>>>>>>>>> improve the documentation for configuring of the SMS
>>> bridge. He along with
>>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use
>>> and inquiring
>>> >>>>>>>>>>>> about it.
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>> Ed
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>>> Hello,
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>> >>>>>>>>>>>>> working on Fineract 1.1.
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> *Issue:*
>>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>> >>>>>>>>>>>>> *Error:*
>>>
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method
>>> 'POST' not
>>> >>>>>>>>>>>>>> supported
>>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>> >>>>>>>>>>>>>> at
>>> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>> >>>>>>>>>>>>>> Source)
>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>> >>>>>>>>>>>>>>
>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>> >>>>>>>>>>>>>> ookProcessor.java:96)
>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>> >>>>>>>>>>>>>>
>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>> >>>>>>>>>>>>>> rocessor.java:72)
>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>> >>>>>>>>>>>>>>
>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>> >>>>>>>>>>>>>>
>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>>> >>>>>>>>>>>>>> at org.springframework.context.ev
>>> >>>>>>>>>>>>>>
>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> *Steps*:
>>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>> >>>>>>>>>>>>> Tomcat;
>>> >>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>> >>>>>>>>>>>>> throws an error placed above.
>>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown
>>> in the documents).
>>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> Request to respond.
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> Thank you,
>>> >>>>>>>>>>>>> Mangal
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>> --
>>> >>>>>>>>>>>>> Mangal Kumar
>>> >>>>>>>>>>>>> Tech Lead
>>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>> >>>>>>>>>>>>> <https://glimmer.finance>
>>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>> >>>>>>>>>>>>>
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>> --
>>> >>>>>>>>>>>> *Ed Cable*
>>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile:
>>> +1.484.477.8649
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>>
>>> >>>>>>>>>>>
>>> >>>>>>>>>>>
>>> >>
>>> >>
>>> >> --
>>> >> Mangal Kumar
>>> >> Tech Lead
>>> >> Digital Media Initiatives | Bodhi Project
>>> >> <https://glimmer.finance>
>>> >> Skype: mangal@bodhiproject.org
>>> >> *Leveraging technology for social challenges...*
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Mangal Kumar
>>> > Tech Lead
>>> > Digital Media Initiatives | Bodhi Project
>>> > <https://glimmer.finance>
>>> > Skype: mangal@bodhiproject.org
>>> > *Leveraging technology for social challenges...*
>>> >
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Santosh Math
>>>
>>> *QA Engineer*
>>>
>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>> | *Office*: +91-080-41208662 |
>>>
>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>> Bengaluru, Karnataka, 560043 INDIA
>>>
>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thanks Nazeer and Santosh.

I am able to configure the SMS campaign and able to receive the SMS on my
phone.

Now, the next step to add the support of other third party SMS Provider (
https://www.bulksmsgateway.in) like Twilio. Could you please explain? How
to add the support of other third party SMS provider with the Message
Gateway?

Regards,
Mangal





On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
nazeerhussain.shaik@gmail.com> wrote:

> Message gateway registers a call back API with Twilio while sending the
> SMS. The system on which message gateway is running, should have a public
> IP. If it is private IP.
> Callback registration is required to get the status of SMS sent from
> message gateway. If you don't want tracking, then disable this registration
> by commenting code.
>
> Regards,
> Nazeer
>
>
> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <santosh@confluxtechnologies.
> com> wrote:
>
>> Hi Mangal,
>>
>> Twilio is trying to call(I mean while send sms)  only valid IP address or
>> valid domain name mapped to the IP address. Since, http://localhost:9191
>> is
>> neither IP address ,nor domain name, it's throwing above error messsage.
>> Could you try with system having domain or IP address?
>>
>> Regards
>> Santosh
>>
>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>> > Hi Santosh,
>> >
>> > We have taken the following steps to enable SMS Campaign. SMS provider
>> > name is displaying in campaign page drop-down but getting errors on
>> sending
>> > SMS.
>> >
>> > *Errors*
>> >
>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : Sending SMS to +9193xxxxxx77 ...
>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : ApiException while sending message to :93xxxxxx77 with reason The
>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>> valid
>> >> URL.
>> >
>> >
>> > *Steps:*
>> >
>> > *1. Setup Message Gateway*
>> >
>> >    - Create a database messagegateway.
>> >       - Clone the Message gateway code locally
>> >       - Build the Message Gateway code by runnign command:
>> >       - $ cd message-gateway
>> >       - $ gradlew clean  build -Pprofile=deployable
>> >       - Run the message gateway application standalone, run the command:
>> >       - $ cd build/libs
>> >       - java -jar message-gateway.jar
>> >
>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.
>> TomcatEmbeddedServletContainer
>> >> : Tomcat started on port(s): 9191/http
>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> >> 5.992 seconds (JVM running for 6.438)
>> >
>> >
>> >
>> > *2. Create Tenant app key*
>> > POST http://localhost:9191/tenants/
>> > {
>> > "tenantId" : "default",
>> > "description" : "Some Description"
>> > }
>> >
>> > *3. Create Twilio SMS Bridge *
>>
>> > POST http://local:9191/smsbridges
>> > {
>> > "phoneNo": "+15xxxxxxx46",
>> > "providerName": "Twilio Provider",
>> > "providerDescription": "SMS Provider for promotional messages",
>> > "providerKey":"Twilio",
>> > "countryCode":"+91",
>> > "bridgeConfigurations": [
>> > {
>> > "configName":"Provider_Account_Id",
>> > "configValue":"xxxxxxxxx"
>> > },
>> > {
>> > "configName":"Provider_Auth_Token",
>> > "configValue":"xxxxxxxxxx"
>> > }
>> > ]
>> > }
>> >
>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>> using
>> > Twilio Provider.
>> >
>> > 5. Try to deposit in client savings account.
>> >
>> > 6. No SMS on client phone but getting errors on Message Gateway console:
>> >
>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : Sending SMS to +919358209777 ...
>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : ApiException while sending message to :9358209777 with reason The
>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>> valid
>> >> URL.
>> >
>> >
>> > Request to respond.
>> >
>> > Thank you,
>> > Mangal
>> >
>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
>> > wrote:
>> >
>> >> Hi Santosh,
>> >>
>> >> We have taken the following steps to enable SMS Campaign.
>> >>
>> >>    1. Setup Message Gateway
>> >>       - Create a database messagegateway.
>> >>       - Clone the Message gateway code locally
>> >>       - Build the Message Gateway code by runnign command:
>> >>       - $ cd message-gateway
>> >>       - $ gradlew clean  build -Pprofile=deployable
>> >>       - Run the message gateway application standalone, run the
>> command:
>> >>       - $ cd build/libs
>> >>       - java -jar message-gateway.jar
>> >>       -
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <mangal@bodhiproject.org
>> >
>> >> wrote:
>> >>
>> >>> Hi Santosh,
>> >>>
>> >>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>> >>> SMS Gateway Trial Account.*
>>
>> >>>
>> >>> Best,
>> >>>
>> >>> Mangal
>> >>>
>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>> >>> santosh@confluxtechnologies.com> wrote:
>> >>>
>> >>>> Hi Mangal
>> >>>>
>> >>>> Please find the attached file to understand how sms campaign works.
>> You
>> >>>> can download front end for sql , ie.. heidisql from here:
>> >>>>
>> >>>> https://www.heidisql.com/download.php
>> >>>>
>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>> mangal@bodhiproject.org>
>> >>>> wrote:
>> >>>>
>> >>>>> Hi Santosh,
>> >>>>>
>> >>>>> I have sent contact request to you. Please accept.
>> >>>>> My Skype id: mangal@bodhiproject.org
>> >>>>>
>> >>>>> ---
>> >>>>> Mangal
>> >>>>>
>> >>>>>
>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>> >>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>
>> >>>>>> I am online on Skype. Please send me contact request to skype id
>> >>>>>> santoshmath99
>> >>>>>>
>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>> >>>>>> docbrij@bodhiproject.org> wrote:
>> >>>>>>
>> >>>>>>> Thanks! Santosh, Mangal,
>> >>>>>>>
>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>> >>>>>>>
>> >>>>>>> Best,
>> >>>>>>>
>> >>>>>>> Brijesh
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> ---------
>> >>>>>>> Brijesh Kumar, *Ph.D.*
>> >>>>>>> *Founder & CEO*
>> >>>>>>> Digital Media Initiatives | Bodhi Project
>> >>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>
>> >>>>>>> Skype: docbrij
>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>> >>>>>>>
>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>>>
>> >>>>>>>> Hi Mangal,
>> >>>>>>>>
>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>> >>>>>>>> google hangout for this mail id.
>> >>>>>>>>
>> >>>>>>>> Thanks
>> >>>>>>>> Santosh
>> >>>>>>>>
>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>> >>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>
>> >>>>>>>>> Hi Santosh,
>> >>>>>>>>>
>> >>>>>>>>> We have implemented and configured Message Gateway successfully
>> as
>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>> >>>>>>>>>
>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>> >>>>>>>>>
>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>> >>>>>>>>> sending SMS on my mobile number using REST client but when we
>> register it
>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on
>> specified
>> >>>>>>>>> events.
>> >>>>>>>>>
>> >>>>>>>>> SMS Bridge webhook template details are:
>> >>>>>>>>>
>> >>>>>>>>> Hook Name: Twilio SMS
>> >>>>>>>>> Status: true
>> >>>>>>>>> Activation Date: [2018,7,12]
>> >>>>>>>>> Updated On: [2018,7,12]
>> >>>>>>>>> *Events:*
>>
>> >>>>>>>>> REPAYMENT - LOAN
>> >>>>>>>>> CREATE - CLIENT
>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/
>> message-gateway-0.0.1/sms
>> >>>>>>>>> Phone Number: <Twilio Phone number>
>> >>>>>>>>> SMS Provider: Twilio
>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>> >>>>>>>>>
>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>> >>>>>>>>>
>> >>>>>>>>> Thank you,
>> >>>>>>>>> Mangal
>> >>>>>>>>>
>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>>>>>
>> >>>>>>>>>> Hi Mangal,
>> >>>>>>>>>>
>> >>>>>>>>>> I think Antony is referrring to this documentation:
>> >>>>>>>>>>
>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>> >>>>>>>>>> /Message+Gateway+Configuration
>> >>>>>>>>>>
>> >>>>>>>>>> Thanks
>> >>>>>>>>>> Santosh
>> >>>>>>>>>>
>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>>>
>> >>>>>>>>>>> Thank you ED.
>> >>>>>>>>>>>
>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>> gateway
>> >>>>>>>>>>> implementation? It will help us to implement it.
>> >>>>>>>>>>>
>> >>>>>>>>>>> Thank you,
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <edcable@mifos.org
>> >
>> >>>>>>>>>>> wrote:
>> >>>>>>>>>>>
>> >>>>>>>>>>>> Sampath/Santosh,
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're at
>> it,
>> >>>>>>>>>>>> improve the documentation for configuring of the SMS bridge.
>> He along with
>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use
>> and inquiring
>> >>>>>>>>>>>> about it.
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> Ed
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>> Hello,
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>> >>>>>>>>>>>>> working on Fineract 1.1.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> *Issue:*
>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>> >>>>>>>>>>>>> *Error:*
>>
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method
>> 'POST' not
>> >>>>>>>>>>>>>> supported
>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(
>> Unknown
>> >>>>>>>>>>>>>> Source)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.
>> sendRequest(TwilioH
>> >>>>>>>>>>>>>> ookProcessor.java:96)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(
>> TwilioHookP
>> >>>>>>>>>>>>>> rocessor.java:72)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>> onApplicationEvent(
>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>> onApplicationEvent(
>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>> >>>>>>>>>>>>>> at org.springframework.context.ev
>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMulticas
>> ter$1.run(SimpleApplicatio
>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> *Steps*:
>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>> >>>>>>>>>>>>> Tomcat;
>> >>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>> >>>>>>>>>>>>> throws an error placed above.
>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in
>> the documents).
>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Request to respond.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Thank you,
>> >>>>>>>>>>>>> Mangal
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> --
>> >>>>>>>>>>>>> Mangal Kumar
>> >>>>>>>>>>>>> Tech Lead
>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>> >>>>>>>>>>>>> <https://glimmer.finance>
>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> --
>> >>>>>>>>>>>> *Ed Cable*
>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>
>> >>
>> >> --
>> >> Mangal Kumar
>> >> Tech Lead
>> >> Digital Media Initiatives | Bodhi Project
>> >> <https://glimmer.finance>
>> >> Skype: mangal@bodhiproject.org
>> >> *Leveraging technology for social challenges...*
>> >>
>> >
>> >
>> >
>> > --
>> > Mangal Kumar
>> > Tech Lead
>> > Digital Media Initiatives | Bodhi Project
>> > <https://glimmer.finance>
>> > Skype: mangal@bodhiproject.org
>> > *Leveraging technology for social challenges...*
>> >
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thanks Nazeer and Santosh.

I am able to configure the SMS campaign and able to receive the SMS on my
phone.

Now, the next step to add the support of other third party SMS Provider (
https://www.bulksmsgateway.in) like Twilio. Could you please explain? How
to add the support of other third party SMS provider with the Message
Gateway?

Regards,
Mangal





On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
nazeerhussain.shaik@gmail.com> wrote:

> Message gateway registers a call back API with Twilio while sending the
> SMS. The system on which message gateway is running, should have a public
> IP. If it is private IP.
> Callback registration is required to get the status of SMS sent from
> message gateway. If you don't want tracking, then disable this registration
> by commenting code.
>
> Regards,
> Nazeer
>
>
> On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <santosh@confluxtechnologies.
> com> wrote:
>
>> Hi Mangal,
>>
>> Twilio is trying to call(I mean while send sms)  only valid IP address or
>> valid domain name mapped to the IP address. Since, http://localhost:9191
>> is
>> neither IP address ,nor domain name, it's throwing above error messsage.
>> Could you try with system having domain or IP address?
>>
>> Regards
>> Santosh
>>
>> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>> > Hi Santosh,
>> >
>> > We have taken the following steps to enable SMS Campaign. SMS provider
>> > name is displaying in campaign page drop-down but getting errors on
>> sending
>> > SMS.
>> >
>> > *Errors*
>> >
>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : Sending SMS to +9193xxxxxx77 ...
>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : ApiException while sending message to :93xxxxxx77 with reason The
>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>> valid
>> >> URL.
>> >
>> >
>> > *Steps:*
>> >
>> > *1. Setup Message Gateway*
>> >
>> >    - Create a database messagegateway.
>> >       - Clone the Message gateway code locally
>> >       - Build the Message Gateway code by runnign command:
>> >       - $ cd message-gateway
>> >       - $ gradlew clean  build -Pprofile=deployable
>> >       - Run the message gateway application standalone, run the command:
>> >       - $ cd build/libs
>> >       - java -jar message-gateway.jar
>> >
>> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.
>> TomcatEmbeddedServletContainer
>> >> : Tomcat started on port(s): 9191/http
>> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> >> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> >> 5.992 seconds (JVM running for 6.438)
>> >
>> >
>> >
>> > *2. Create Tenant app key*
>> > POST http://localhost:9191/tenants/
>> > {
>> > "tenantId" : "default",
>> > "description" : "Some Description"
>> > }
>> >
>> > *3. Create Twilio SMS Bridge *
>>
>> > POST http://local:9191/smsbridges
>> > {
>> > "phoneNo": "+15xxxxxxx46",
>> > "providerName": "Twilio Provider",
>> > "providerDescription": "SMS Provider for promotional messages",
>> > "providerKey":"Twilio",
>> > "countryCode":"+91",
>> > "bridgeConfigurations": [
>> > {
>> > "configName":"Provider_Account_Id",
>> > "configValue":"xxxxxxxxx"
>> > },
>> > {
>> > "configName":"Provider_Auth_Token",
>> > "configValue":"xxxxxxxxxx"
>> > }
>> > ]
>> > }
>> >
>> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account
>> using
>> > Twilio Provider.
>> >
>> > 5. Try to deposit in client savings account.
>> >
>> > 6. No SMS on client phone but getting errors on Message Gateway console:
>> >
>> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : Sending SMS to +919358209777 ...
>> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.
>> TwilioMessageProvider
>> >>     : ApiException while sending message to :9358209777 with reason The
>> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
>> valid
>> >> URL.
>> >
>> >
>> > Request to respond.
>> >
>> > Thank you,
>> > Mangal
>> >
>> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
>> > wrote:
>> >
>> >> Hi Santosh,
>> >>
>> >> We have taken the following steps to enable SMS Campaign.
>> >>
>> >>    1. Setup Message Gateway
>> >>       - Create a database messagegateway.
>> >>       - Clone the Message gateway code locally
>> >>       - Build the Message Gateway code by runnign command:
>> >>       - $ cd message-gateway
>> >>       - $ gradlew clean  build -Pprofile=deployable
>> >>       - Run the message gateway application standalone, run the
>> command:
>> >>       - $ cd build/libs
>> >>       - java -jar message-gateway.jar
>> >>       -
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <mangal@bodhiproject.org
>> >
>> >> wrote:
>> >>
>> >>> Hi Santosh,
>> >>>
>> >>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>> >>> SMS Gateway Trial Account.*
>>
>> >>>
>> >>> Best,
>> >>>
>> >>> Mangal
>> >>>
>> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>> >>> santosh@confluxtechnologies.com> wrote:
>> >>>
>> >>>> Hi Mangal
>> >>>>
>> >>>> Please find the attached file to understand how sms campaign works.
>> You
>> >>>> can download front end for sql , ie.. heidisql from here:
>> >>>>
>> >>>> https://www.heidisql.com/download.php
>> >>>>
>> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
>> mangal@bodhiproject.org>
>> >>>> wrote:
>> >>>>
>> >>>>> Hi Santosh,
>> >>>>>
>> >>>>> I have sent contact request to you. Please accept.
>> >>>>> My Skype id: mangal@bodhiproject.org
>> >>>>>
>> >>>>> ---
>> >>>>> Mangal
>> >>>>>
>> >>>>>
>> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>> >>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>
>> >>>>>> I am online on Skype. Please send me contact request to skype id
>> >>>>>> santoshmath99
>> >>>>>>
>> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>> >>>>>> docbrij@bodhiproject.org> wrote:
>> >>>>>>
>> >>>>>>> Thanks! Santosh, Mangal,
>> >>>>>>>
>> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>> >>>>>>>
>> >>>>>>> Best,
>> >>>>>>>
>> >>>>>>> Brijesh
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> ---------
>> >>>>>>> Brijesh Kumar, *Ph.D.*
>> >>>>>>> *Founder & CEO*
>> >>>>>>> Digital Media Initiatives | Bodhi Project
>> >>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>
>> >>>>>>> Skype: docbrij
>> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>> >>>>>>>
>> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>> >>>>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>>>
>> >>>>>>>> Hi Mangal,
>> >>>>>>>>
>> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>> >>>>>>>> google hangout for this mail id.
>> >>>>>>>>
>> >>>>>>>> Thanks
>> >>>>>>>> Santosh
>> >>>>>>>>
>> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>> >>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>
>> >>>>>>>>> Hi Santosh,
>> >>>>>>>>>
>> >>>>>>>>> We have implemented and configured Message Gateway successfully
>> as
>> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
>> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>> >>>>>>>>>
>> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>> >>>>>>>>>
>> >>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>> >>>>>>>>> sending SMS on my mobile number using REST client but when we
>> register it
>> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on
>> specified
>> >>>>>>>>> events.
>> >>>>>>>>>
>> >>>>>>>>> SMS Bridge webhook template details are:
>> >>>>>>>>>
>> >>>>>>>>> Hook Name: Twilio SMS
>> >>>>>>>>> Status: true
>> >>>>>>>>> Activation Date: [2018,7,12]
>> >>>>>>>>> Updated On: [2018,7,12]
>> >>>>>>>>> *Events:*
>>
>> >>>>>>>>> REPAYMENT - LOAN
>> >>>>>>>>> CREATE - CLIENT
>> >>>>>>>>> Payload URL: https://mfi.glimmer.finance/
>> message-gateway-0.0.1/sms
>> >>>>>>>>> Phone Number: <Twilio Phone number>
>> >>>>>>>>> SMS Provider: Twilio
>> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>> >>>>>>>>> SMS Provider Token: <Twilio Token>
>> >>>>>>>>>
>> >>>>>>>>> Please suggest why MifosX is not sending SMS.
>> >>>>>>>>>
>> >>>>>>>>> Thank you,
>> >>>>>>>>> Mangal
>> >>>>>>>>>
>> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
>> >>>>>>>>>
>> >>>>>>>>>> Hi Mangal,
>> >>>>>>>>>>
>> >>>>>>>>>> I think Antony is referrring to this documentation:
>> >>>>>>>>>>
>> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>> >>>>>>>>>> /Message+Gateway+Configuration
>> >>>>>>>>>>
>> >>>>>>>>>> Thanks
>> >>>>>>>>>> Santosh
>> >>>>>>>>>>
>> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>> >>>>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>>>
>> >>>>>>>>>>> Thank you ED.
>> >>>>>>>>>>>
>> >>>>>>>>>>> Anthony could you please share your notes regarding sms
>> gateway
>> >>>>>>>>>>> implementation? It will help us to implement it.
>> >>>>>>>>>>>
>> >>>>>>>>>>> Thank you,
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <edcable@mifos.org
>> >
>> >>>>>>>>>>> wrote:
>> >>>>>>>>>>>
>> >>>>>>>>>>>> Sampath/Santosh,
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> Could you please try to help Mangal and also while we're at
>> it,
>> >>>>>>>>>>>> improve the documentation for configuring of the SMS bridge.
>> He along with
>> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use
>> and inquiring
>> >>>>>>>>>>>> about it.
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> Ed
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>> Hello,
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>> >>>>>>>>>>>>> working on Fineract 1.1.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> *Issue:*
>> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>> >>>>>>>>>>>>> *Error:*
>>
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method
>> 'POST' not
>> >>>>>>>>>>>>>> supported
>> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>> >>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(
>> Unknown
>> >>>>>>>>>>>>>> Source)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.
>> sendRequest(TwilioH
>> >>>>>>>>>>>>>> ookProcessor.java:96)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(
>> TwilioHookP
>> >>>>>>>>>>>>>> rocessor.java:72)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>> onApplicationEvent(
>> >>>>>>>>>>>>>> FineractHookListener.java:75)
>> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.
>> onApplicationEvent(
>> >>>>>>>>>>>>>> FineractHookListener.java:36)
>> >>>>>>>>>>>>>> at org.springframework.context.ev
>> >>>>>>>>>>>>>> ent.SimpleApplicationEventMulticas
>> ter$1.run(SimpleApplicatio
>> >>>>>>>>>>>>>> nEventMulticaster.java:93)
>> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> *Steps*:
>> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>> >>>>>>>>>>>>> Tomcat;
>> >>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>> >>>>>>>>>>>>> throws an error placed above.
>> >>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in
>> the documents).
>> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Request to respond.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Thank you,
>> >>>>>>>>>>>>> Mangal
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> --
>> >>>>>>>>>>>>> Mangal Kumar
>> >>>>>>>>>>>>> Tech Lead
>> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>> >>>>>>>>>>>>> <https://glimmer.finance>
>> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> --
>> >>>>>>>>>>>> *Ed Cable*
>> >>>>>>>>>>>> President/CEO, Mifos Initiative
>> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>> >>>>>>>>>>>> <http://www.twitter.com/mifos>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>
>> >>
>> >> --
>> >> Mangal Kumar
>> >> Tech Lead
>> >> Digital Media Initiatives | Bodhi Project
>> >> <https://glimmer.finance>
>> >> Skype: mangal@bodhiproject.org
>> >> *Leveraging technology for social challenges...*
>> >>
>> >
>> >
>> >
>> > --
>> > Mangal Kumar
>> > Tech Lead
>> > Digital Media Initiatives | Bodhi Project
>> > <https://glimmer.finance>
>> > Skype: mangal@bodhiproject.org
>> > *Leveraging technology for social challenges...*
>> >
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Nazeer Hussain Shaik <na...@gmail.com>.
Message gateway registers a call back API with Twilio while sending the
SMS. The system on which message gateway is running, should have a public
IP. If it is private IP.
Callback registration is required to get the status of SMS sent from
message gateway. If you don't want tracking, then disable this registration
by commenting code.

Regards,
Nazeer


On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> Twilio is trying to call(I mean while send sms)  only valid IP address or
> valid domain name mapped to the IP address. Since, http://localhost:9191
> is
> neither IP address ,nor domain name, it's throwing above error messsage.
> Could you try with system having domain or IP address?
>
> Regards
> Santosh
>
> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
> > Hi Santosh,
> >
> > We have taken the following steps to enable SMS Campaign. SMS provider
> > name is displaying in campaign page drop-down but getting errors on
> sending
> > SMS.
> >
> > *Errors*
> >
> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider
> >>     : Sending SMS to +9193xxxxxx77 ...
> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider
> >>     : ApiException while sending message to :93xxxxxx77 with reason The
> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
> valid
> >> URL.
> >
> >
> > *Steps:*
> >
> > *1. Setup Message Gateway*
> >
> >    - Create a database messagegateway.
> >       - Clone the Message gateway code locally
> >       - Build the Message Gateway code by runnign command:
> >       - $ cd message-gateway
> >       - $ gradlew clean  build -Pprofile=deployable
> >       - Run the message gateway application standalone, run the command:
> >       - $ cd build/libs
> >       - java -jar message-gateway.jar
> >
> > 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
> s.b.c.e.t.TomcatEmbeddedServletContainer
> >> : Tomcat started on port(s): 9191/http
> >> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
> >> o.f.messagegateway.MessageGateway        : Started MessageGateway in
> >> 5.992 seconds (JVM running for 6.438)
> >
> >
> >
> > *2. Create Tenant app key*
> > POST http://localhost:9191/tenants/
> > {
> > "tenantId" : "default",
> > "description" : "Some Description"
> > }
> >
> > *3. Create Twilio SMS Bridge *
> > POST http://local:9191/smsbridges
> > {
> > "phoneNo": "+15xxxxxxx46",
> > "providerName": "Twilio Provider",
> > "providerDescription": "SMS Provider for promotional messages",
> > "providerKey":"Twilio",
> > "countryCode":"+91",
> > "bridgeConfigurations": [
> > {
> > "configName":"Provider_Account_Id",
> > "configValue":"xxxxxxxxx"
> > },
> > {
> > "configName":"Provider_Auth_Token",
> > "configValue":"xxxxxxxxxx"
> > }
> > ]
> > }
> >
> > 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
> > Twilio Provider.
> >
> > 5. Try to deposit in client savings account.
> >
> > 6. No SMS on client phone but getting errors on Message Gateway console:
> >
> > 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider
> >>     : Sending SMS to +919358209777 ...
> >> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider
> >>     : ApiException while sending message to :9358209777 with reason The
> >> StatusCallback URL http://localhost:9191/twilio/report/11 is not a
> valid
> >> URL.
> >
> >
> > Request to respond.
> >
> > Thank you,
> > Mangal
> >
> > On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
> > wrote:
> >
> >> Hi Santosh,
> >>
> >> We have taken the following steps to enable SMS Campaign.
> >>
> >>    1. Setup Message Gateway
> >>       - Create a database messagegateway.
> >>       - Clone the Message gateway code locally
> >>       - Build the Message Gateway code by runnign command:
> >>       - $ cd message-gateway
> >>       - $ gradlew clean  build -Pprofile=deployable
> >>       - Run the message gateway application standalone, run the command:
> >>       - $ cd build/libs
> >>       - java -jar message-gateway.jar
> >>       -
> >>
> >>
> >>
> >>
> >> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
> >> wrote:
> >>
> >>> Hi Santosh,
> >>>
> >>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
> >>> SMS Gateway Trial Account.*
> >>>
> >>> Best,
> >>>
> >>> Mangal
> >>>
> >>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
> >>> santosh@confluxtechnologies.com> wrote:
> >>>
> >>>> Hi Mangal
> >>>>
> >>>> Please find the attached file to understand how sms campaign works.
> You
> >>>> can download front end for sql , ie.. heidisql from here:
> >>>>
> >>>> https://www.heidisql.com/download.php
> >>>>
> >>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <
> mangal@bodhiproject.org>
> >>>> wrote:
> >>>>
> >>>>> Hi Santosh,
> >>>>>
> >>>>> I have sent contact request to you. Please accept.
> >>>>> My Skype id: mangal@bodhiproject.org
> >>>>>
> >>>>> ---
> >>>>> Mangal
> >>>>>
> >>>>>
> >>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
> >>>>> santosh@confluxtechnologies.com> wrote:
> >>>>>
> >>>>>> I am online on Skype. Please send me contact request to skype id
> >>>>>> santoshmath99
> >>>>>>
> >>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
> >>>>>> docbrij@bodhiproject.org> wrote:
> >>>>>>
> >>>>>>> Thanks! Santosh, Mangal,
> >>>>>>>
> >>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
> >>>>>>>
> >>>>>>> Best,
> >>>>>>>
> >>>>>>> Brijesh
> >>>>>>>
> >>>>>>>
> >>>>>>> ---------
> >>>>>>> Brijesh Kumar, *Ph.D.*
> >>>>>>> *Founder & CEO*
> >>>>>>> Digital Media Initiatives | Bodhi Project
> >>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
> >>>>>>> +91 955 724 8880 <+91%2095572%2048880>
> >>>>>>> Skype: docbrij
> >>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
> >>>>>>>
> >>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
> >>>>>>> santosh@confluxtechnologies.com> wrote:
> >>>>>>>
> >>>>>>>> Hi Mangal,
> >>>>>>>>
> >>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
> >>>>>>>> google hangout for this mail id.
> >>>>>>>>
> >>>>>>>> Thanks
> >>>>>>>> Santosh
> >>>>>>>>
> >>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
> >>>>>>>> mangal@bodhiproject.org> wrote:
> >>>>>>>>
> >>>>>>>>> Hi Santosh,
> >>>>>>>>>
> >>>>>>>>> We have implemented and configured Message Gateway successfully
> as
> >>>>>>>>> per documentation (https://mifosforge.jira.com/w
> >>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
> >>>>>>>>>
> >>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> >>>>>>>>>
> >>>>>>>>> Currently, we are using Twilio test account. Message gateway is
> >>>>>>>>> sending SMS on my mobile number using REST client but when we
> register it
> >>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on
> specified
> >>>>>>>>> events.
> >>>>>>>>>
> >>>>>>>>> SMS Bridge webhook template details are:
> >>>>>>>>>
> >>>>>>>>> Hook Name: Twilio SMS
> >>>>>>>>> Status: true
> >>>>>>>>> Activation Date: [2018,7,12]
> >>>>>>>>> Updated On: [2018,7,12]
> >>>>>>>>> *Events:*
> >>>>>>>>> REPAYMENT - LOAN
> >>>>>>>>> CREATE - CLIENT
> >>>>>>>>> Payload URL:
> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> >>>>>>>>> Phone Number: <Twilio Phone number>
> >>>>>>>>> SMS Provider: Twilio
> >>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
> >>>>>>>>> SMS Provider Token: <Twilio Token>
> >>>>>>>>>
> >>>>>>>>> Please suggest why MifosX is not sending SMS.
> >>>>>>>>>
> >>>>>>>>> Thank you,
> >>>>>>>>> Mangal
> >>>>>>>>>
> >>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
> >>>>>>>>> santosh@confluxtechnologies.com> wrote:
> >>>>>>>>>
> >>>>>>>>>> Hi Mangal,
> >>>>>>>>>>
> >>>>>>>>>> I think Antony is referrring to this documentation:
> >>>>>>>>>>
> >>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
> >>>>>>>>>> /Message+Gateway+Configuration
> >>>>>>>>>>
> >>>>>>>>>> Thanks
> >>>>>>>>>> Santosh
> >>>>>>>>>>
> >>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
> >>>>>>>>>> mangal@bodhiproject.org> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Thank you ED.
> >>>>>>>>>>>
> >>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
> >>>>>>>>>>> implementation? It will help us to implement it.
> >>>>>>>>>>>
> >>>>>>>>>>> Thank you,
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
> >>>>>>>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> Sampath/Santosh,
> >>>>>>>>>>>>
> >>>>>>>>>>>> Could you please try to help Mangal and also while we're at
> it,
> >>>>>>>>>>>> improve the documentation for configuring of the SMS bridge.
> He along with
> >>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use
> and inquiring
> >>>>>>>>>>>> about it.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Ed
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
> >>>>>>>>>>>> mangal@bodhiproject.org> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>> Hello,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
> >>>>>>>>>>>>> working on Fineract 1.1.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> *Issue:*
> >>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
> >>>>>>>>>>>>> *Error:*
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
> >>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method
> 'POST' not
> >>>>>>>>>>>>>> supported
> >>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
> >>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
> >>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
> >>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
> >>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
> >>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
> >>>>>>>>>>>>>> at
> com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
> >>>>>>>>>>>>>> Source)
> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
> >>>>>>>>>>>>>> ookProcessor.java:96)
> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
> >>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
> >>>>>>>>>>>>>> rocessor.java:72)
> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
> >>>>>>>>>>>>>> FineractHookListener.java:75)
> >>>>>>>>>>>>>> at org.apache.fineract.infrastruc
> >>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
> >>>>>>>>>>>>>> FineractHookListener.java:36)
> >>>>>>>>>>>>>> at org.springframework.context.ev
> >>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
> >>>>>>>>>>>>>> nEventMulticaster.java:93)
> >>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> *Steps*:
> >>>>>>>>>>>>> 1. We have configured the message-gateway and running on
> >>>>>>>>>>>>> Tomcat;
> >>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
> >>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
> >>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
> >>>>>>>>>>>>> throws an error placed above.
> >>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
> >>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in
> the documents).
> >>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Request to respond.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Thank you,
> >>>>>>>>>>>>> Mangal
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> --
> >>>>>>>>>>>>> Mangal Kumar
> >>>>>>>>>>>>> Tech Lead
> >>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
> >>>>>>>>>>>>> <https://glimmer.finance>
> >>>>>>>>>>>>> Skype: mangal@bodhiproject.org
> >>>>>>>>>>>>> *Leveraging technology for social challenges...*
> >>>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> *Ed Cable*
> >>>>>>>>>>>> President/CEO, Mifos Initiative
> >>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
> >>>>>>>>>>>>
> >>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
> >>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
> >>>>>>>>>>>> <http://www.twitter.com/mifos>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>
> >>
> >> --
> >> Mangal Kumar
> >> Tech Lead
> >> Digital Media Initiatives | Bodhi Project
> >> <https://glimmer.finance>
> >> Skype: mangal@bodhiproject.org
> >> *Leveraging technology for social challenges...*
> >>
> >
> >
> >
> > --
> > Mangal Kumar
> > Tech Lead
> > Digital Media Initiatives | Bodhi Project
> > <https://glimmer.finance>
> > Skype: mangal@bodhiproject.org
> > *Leveraging technology for social challenges...*
> >
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

Twilio is trying to call(I mean while send sms)  only valid IP address or
valid domain name mapped to the IP address. Since, http://localhost:9191 is
neither IP address ,nor domain name, it's throwing above error messsage.
Could you try with system having domain or IP address?

Regards
Santosh

On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign. SMS provider
> name is displaying in campaign page drop-down but getting errors on sending
> SMS.
>
> *Errors*
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +9193xxxxxx77 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :93xxxxxx77 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> *Steps:*
>
> *1. Setup Message Gateway*
>
>    - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>
> 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer
>> : Tomcat started on port(s): 9191/http
>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> 5.992 seconds (JVM running for 6.438)
>
>
>
> *2. Create Tenant app key*
> POST http://localhost:9191/tenants/
> {
> "tenantId" : "default",
> "description" : "Some Description"
> }
>
> *3. Create Twilio SMS Bridge *
> POST http://local:9191/smsbridges
> {
> "phoneNo": "+15xxxxxxx46",
> "providerName": "Twilio Provider",
> "providerDescription": "SMS Provider for promotional messages",
> "providerKey":"Twilio",
> "countryCode":"+91",
> "bridgeConfigurations": [
> {
> "configName":"Provider_Account_Id",
> "configValue":"xxxxxxxxx"
> },
> {
> "configName":"Provider_Auth_Token",
> "configValue":"xxxxxxxxxx"
> }
> ]
> }
>
> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
> Twilio Provider.
>
> 5. Try to deposit in client savings account.
>
> 6. No SMS on client phone but getting errors on Message Gateway console:
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +919358209777 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :9358209777 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> Request to respond.
>
> Thank you,
> Mangal
>
> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign.
>>
>>    1. Setup Message Gateway
>>       - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>       -
>>
>>
>>
>>
>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>> SMS Gateway Trial Account.*
>>>
>>> Best,
>>>
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal
>>>>
>>>> Please find the attached file to understand how sms campaign works. You
>>>> can download front end for sql , ie.. heidisql from here:
>>>>
>>>> https://www.heidisql.com/download.php
>>>>
>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hi Santosh,
>>>>>
>>>>> I have sent contact request to you. Please accept.
>>>>> My Skype id: mangal@bodhiproject.org
>>>>>
>>>>> ---
>>>>> Mangal
>>>>>
>>>>>
>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>> santoshmath99
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>
>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Brijesh
>>>>>>>
>>>>>>>
>>>>>>> ---------
>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> *Founder & CEO*
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>> Skype: docbrij
>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>> google hangout for this mail id.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Hi Santosh,
>>>>>>>>>
>>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>
>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>> events.
>>>>>>>>>
>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>
>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> Status: true
>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> *Events:*
>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> CREATE - CLIENT
>>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> SMS Provider: Twilio
>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>
>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Mangal
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Mangal,
>>>>>>>>>>
>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>
>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Santosh
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>
>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>
>>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>>> about it.
>>>>>>>>>>>>
>>>>>>>>>>>> Ed
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>
>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

Yes, I am able to select sms provider name from drop-down.

I have created an SMS campaign using the Twilio Provider. Now I am getting
below erros on Message Gateway Console:

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77
> ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :93xxxxxx77 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


---
Mangal


On Mon, Jul 16, 2018 at 2:15 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> In the 4th step, Are you able to select sms provider name from drop-down?
> It was not happening in the last demo, right?
>
> Regards
> Santosh
>
> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign. SMS provider
>> name is displaying in campaign page drop-down but getting errors on sending
>> SMS.
>>
>> *Errors*
>>
>> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77
>>> ...
>>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
>>> message to :93xxxxxx77 with reason The StatusCallback URL
>>> http://localhost:9191/twilio/report/11 is not a valid URL.
>>
>>
>> *Steps:*
>>
>> *1. Setup Message Gateway*
>>
>>    - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>
>> 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>> s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s):
>>> 9191/http
>>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>>> 5.992 seconds (JVM running for 6.438)
>>
>>
>>
>> *2. Create Tenant app key*
>> POST http://localhost:9191/tenants/
>> {
>> "tenantId" : "default",
>> "description" : "Some Description"
>> }
>>
>> *3. Create Twilio SMS Bridge *
>> POST http://local:9191/smsbridges
>> {
>> "phoneNo": "+15xxxxxxx46",
>> "providerName": "Twilio Provider",
>> "providerDescription": "SMS Provider for promotional messages",
>> "providerKey":"Twilio",
>> "countryCode":"+91",
>> "bridgeConfigurations": [
>> {
>> "configName":"Provider_Account_Id",
>> "configValue":"xxxxxxxxx"
>> },
>> {
>> "configName":"Provider_Auth_Token",
>> "configValue":"xxxxxxxxxx"
>> }
>> ]
>> }
>>
>> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
>> Twilio Provider.
>>
>> 5. Try to deposit in client savings account.
>>
>> 6. No SMS on client phone but getting errors on Message Gateway console:
>>
>> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +919358209777
>>> ...
>>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
>>> message to :9358209777 with reason The StatusCallback URL
>>> http://localhost:9191/twilio/report/11 is not a valid URL.
>>
>>
>> Request to respond.
>>
>> Thank you,
>> Mangal
>>
>> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> We have taken the following steps to enable SMS Campaign.
>>>
>>>    1. Setup Message Gateway
>>>       - Create a database messagegateway.
>>>       - Clone the Message gateway code locally
>>>       - Build the Message Gateway code by runnign command:
>>>       - $ cd message-gateway
>>>       - $ gradlew clean  build -Pprofile=deployable
>>>       - Run the message gateway application standalone, run the command:
>>>       - $ cd build/libs
>>>       - java -jar message-gateway.jar
>>>       -
>>>
>>>
>>>
>>>
>>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>>> SMS Gateway Trial Account.*
>>>>
>>>> Best,
>>>>
>>>> Mangal
>>>>
>>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal
>>>>>
>>>>> Please find the attached file to understand how sms campaign works.
>>>>> You can download front end for sql , ie.. heidisql from here:
>>>>>
>>>>> https://www.heidisql.com/download.php
>>>>>
>>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <mangal@bodhiproject.org
>>>>> > wrote:
>>>>>
>>>>>> Hi Santosh,
>>>>>>
>>>>>> I have sent contact request to you. Please accept.
>>>>>> My Skype id: mangal@bodhiproject.org
>>>>>>
>>>>>> ---
>>>>>> Mangal
>>>>>>
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>>> santoshmath99
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>>
>>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Brijesh
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------
>>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>> *Founder & CEO*
>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>> Skype: docbrij
>>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>>> google hangout for this mail id.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Santosh,
>>>>>>>>>>
>>>>>>>>>> We have implemented and configured Message Gateway successfully
>>>>>>>>>> as per documentation (https://mifosforge.jira.com/w
>>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>>
>>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>>
>>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>>> events.
>>>>>>>>>>
>>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>>
>>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>>> Status: true
>>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>>> *Events:*
>>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>>> CREATE - CLIENT
>>>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>>> SMS Provider: Twilio
>>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>>
>>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>> Mangal
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Mangal,
>>>>>>>>>>>
>>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>>
>>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Santosh
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>>
>>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Could you please try to help Mangal and also while we're at
>>>>>>>>>>>>> it, improve the documentation for configuring of the SMS bridge. He along
>>>>>>>>>>>>> with a couple others, Antony and Karthik, are attempting to use and
>>>>>>>>>>>>> inquiring about it.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

Yes, I am able to select sms provider name from drop-down.

I have created an SMS campaign using the Twilio Provider. Now I am getting
below erros on Message Gateway Console:

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77
> ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :93xxxxxx77 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


---
Mangal


On Mon, Jul 16, 2018 at 2:15 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> In the 4th step, Are you able to select sms provider name from drop-down?
> It was not happening in the last demo, right?
>
> Regards
> Santosh
>
> On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign. SMS provider
>> name is displaying in campaign page drop-down but getting errors on sending
>> SMS.
>>
>> *Errors*
>>
>> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77
>>> ...
>>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
>>> message to :93xxxxxx77 with reason The StatusCallback URL
>>> http://localhost:9191/twilio/report/11 is not a valid URL.
>>
>>
>> *Steps:*
>>
>> *1. Setup Message Gateway*
>>
>>    - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>
>> 2018-07-16 12:38:17.440  INFO 1172 --- [           main]
>>> s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s):
>>> 9191/http
>>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>>> 5.992 seconds (JVM running for 6.438)
>>
>>
>>
>> *2. Create Tenant app key*
>> POST http://localhost:9191/tenants/
>> {
>> "tenantId" : "default",
>> "description" : "Some Description"
>> }
>>
>> *3. Create Twilio SMS Bridge *
>> POST http://local:9191/smsbridges
>> {
>> "phoneNo": "+15xxxxxxx46",
>> "providerName": "Twilio Provider",
>> "providerDescription": "SMS Provider for promotional messages",
>> "providerKey":"Twilio",
>> "countryCode":"+91",
>> "bridgeConfigurations": [
>> {
>> "configName":"Provider_Account_Id",
>> "configValue":"xxxxxxxxx"
>> },
>> {
>> "configName":"Provider_Auth_Token",
>> "configValue":"xxxxxxxxxx"
>> }
>> ]
>> }
>>
>> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
>> Twilio Provider.
>>
>> 5. Try to deposit in client savings account.
>>
>> 6. No SMS on client phone but getting errors on Message Gateway console:
>>
>> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +919358209777
>>> ...
>>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
>>> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
>>> message to :9358209777 with reason The StatusCallback URL
>>> http://localhost:9191/twilio/report/11 is not a valid URL.
>>
>>
>> Request to respond.
>>
>> Thank you,
>> Mangal
>>
>> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> We have taken the following steps to enable SMS Campaign.
>>>
>>>    1. Setup Message Gateway
>>>       - Create a database messagegateway.
>>>       - Clone the Message gateway code locally
>>>       - Build the Message Gateway code by runnign command:
>>>       - $ cd message-gateway
>>>       - $ gradlew clean  build -Pprofile=deployable
>>>       - Run the message gateway application standalone, run the command:
>>>       - $ cd build/libs
>>>       - java -jar message-gateway.jar
>>>       -
>>>
>>>
>>>
>>>
>>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>>> SMS Gateway Trial Account.*
>>>>
>>>> Best,
>>>>
>>>> Mangal
>>>>
>>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal
>>>>>
>>>>> Please find the attached file to understand how sms campaign works.
>>>>> You can download front end for sql , ie.. heidisql from here:
>>>>>
>>>>> https://www.heidisql.com/download.php
>>>>>
>>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <mangal@bodhiproject.org
>>>>> > wrote:
>>>>>
>>>>>> Hi Santosh,
>>>>>>
>>>>>> I have sent contact request to you. Please accept.
>>>>>> My Skype id: mangal@bodhiproject.org
>>>>>>
>>>>>> ---
>>>>>> Mangal
>>>>>>
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>>> santoshmath99
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>>
>>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Brijesh
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------
>>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>>> *Founder & CEO*
>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>>> Skype: docbrij
>>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>>> google hangout for this mail id.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Santosh,
>>>>>>>>>>
>>>>>>>>>> We have implemented and configured Message Gateway successfully
>>>>>>>>>> as per documentation (https://mifosforge.jira.com/w
>>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>>
>>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>>
>>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>>> events.
>>>>>>>>>>
>>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>>
>>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>>> Status: true
>>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>>> *Events:*
>>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>>> CREATE - CLIENT
>>>>>>>>>> Payload URL: https://mfi.glimmer.finance/me
>>>>>>>>>> ssage-gateway-0.0.1/sms
>>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>>> SMS Provider: Twilio
>>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>>
>>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>> Mangal
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Mangal,
>>>>>>>>>>>
>>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>>
>>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> Santosh
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>>
>>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Could you please try to help Mangal and also while we're at
>>>>>>>>>>>>> it, improve the documentation for configuring of the SMS bridge. He along
>>>>>>>>>>>>> with a couple others, Antony and Karthik, are attempting to use and
>>>>>>>>>>>>> inquiring about it.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

In the 4th step, Are you able to select sms provider name from drop-down?
It was not happening in the last demo, right?

Regards
Santosh

On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign. SMS provider
> name is displaying in campaign page drop-down but getting errors on sending
> SMS.
>
> *Errors*
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +9193xxxxxx77 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :93xxxxxx77 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> *Steps:*
>
> *1. Setup Message Gateway*
>
>    - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>
> 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer
>> : Tomcat started on port(s): 9191/http
>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> 5.992 seconds (JVM running for 6.438)
>
>
>
> *2. Create Tenant app key*
> POST http://localhost:9191/tenants/
> {
> "tenantId" : "default",
> "description" : "Some Description"
> }
>
> *3. Create Twilio SMS Bridge *
> POST http://local:9191/smsbridges
> {
> "phoneNo": "+15xxxxxxx46",
> "providerName": "Twilio Provider",
> "providerDescription": "SMS Provider for promotional messages",
> "providerKey":"Twilio",
> "countryCode":"+91",
> "bridgeConfigurations": [
> {
> "configName":"Provider_Account_Id",
> "configValue":"xxxxxxxxx"
> },
> {
> "configName":"Provider_Auth_Token",
> "configValue":"xxxxxxxxxx"
> }
> ]
> }
>
> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
> Twilio Provider.
>
> 5. Try to deposit in client savings account.
>
> 6. No SMS on client phone but getting errors on Message Gateway console:
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +919358209777 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :9358209777 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> Request to respond.
>
> Thank you,
> Mangal
>
> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign.
>>
>>    1. Setup Message Gateway
>>       - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>       -
>>
>>
>>
>>
>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>> SMS Gateway Trial Account.*
>>>
>>> Best,
>>>
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal
>>>>
>>>> Please find the attached file to understand how sms campaign works. You
>>>> can download front end for sql , ie.. heidisql from here:
>>>>
>>>> https://www.heidisql.com/download.php
>>>>
>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hi Santosh,
>>>>>
>>>>> I have sent contact request to you. Please accept.
>>>>> My Skype id: mangal@bodhiproject.org
>>>>>
>>>>> ---
>>>>> Mangal
>>>>>
>>>>>
>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>> santoshmath99
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>
>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Brijesh
>>>>>>>
>>>>>>>
>>>>>>> ---------
>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> *Founder & CEO*
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>> Skype: docbrij
>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>> google hangout for this mail id.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Hi Santosh,
>>>>>>>>>
>>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>
>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>> events.
>>>>>>>>>
>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>
>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> Status: true
>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> *Events:*
>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> CREATE - CLIENT
>>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> SMS Provider: Twilio
>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>
>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Mangal
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Mangal,
>>>>>>>>>>
>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>
>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Santosh
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>
>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>
>>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>>> about it.
>>>>>>>>>>>>
>>>>>>>>>>>> Ed
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>
>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

In the 4th step, Are you able to select sms provider name from drop-down?
It was not happening in the last demo, right?

Regards
Santosh

On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign. SMS provider
> name is displaying in campaign page drop-down but getting errors on sending
> SMS.
>
> *Errors*
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +9193xxxxxx77 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :93xxxxxx77 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> *Steps:*
>
> *1. Setup Message Gateway*
>
>    - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>
> 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer
>> : Tomcat started on port(s): 9191/http
>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> 5.992 seconds (JVM running for 6.438)
>
>
>
> *2. Create Tenant app key*
> POST http://localhost:9191/tenants/
> {
> "tenantId" : "default",
> "description" : "Some Description"
> }
>
> *3. Create Twilio SMS Bridge *
> POST http://local:9191/smsbridges
> {
> "phoneNo": "+15xxxxxxx46",
> "providerName": "Twilio Provider",
> "providerDescription": "SMS Provider for promotional messages",
> "providerKey":"Twilio",
> "countryCode":"+91",
> "bridgeConfigurations": [
> {
> "configName":"Provider_Account_Id",
> "configValue":"xxxxxxxxx"
> },
> {
> "configName":"Provider_Auth_Token",
> "configValue":"xxxxxxxxxx"
> }
> ]
> }
>
> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
> Twilio Provider.
>
> 5. Try to deposit in client savings account.
>
> 6. No SMS on client phone but getting errors on Message Gateway console:
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +919358209777 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :9358209777 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> Request to respond.
>
> Thank you,
> Mangal
>
> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign.
>>
>>    1. Setup Message Gateway
>>       - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>       -
>>
>>
>>
>>
>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>> SMS Gateway Trial Account.*
>>>
>>> Best,
>>>
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal
>>>>
>>>> Please find the attached file to understand how sms campaign works. You
>>>> can download front end for sql , ie.. heidisql from here:
>>>>
>>>> https://www.heidisql.com/download.php
>>>>
>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hi Santosh,
>>>>>
>>>>> I have sent contact request to you. Please accept.
>>>>> My Skype id: mangal@bodhiproject.org
>>>>>
>>>>> ---
>>>>> Mangal
>>>>>
>>>>>
>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>> santoshmath99
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>
>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Brijesh
>>>>>>>
>>>>>>>
>>>>>>> ---------
>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> *Founder & CEO*
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>> Skype: docbrij
>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>> google hangout for this mail id.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Hi Santosh,
>>>>>>>>>
>>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>
>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>> events.
>>>>>>>>>
>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>
>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> Status: true
>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> *Events:*
>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> CREATE - CLIENT
>>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> SMS Provider: Twilio
>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>
>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Mangal
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Mangal,
>>>>>>>>>>
>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>
>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Santosh
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>
>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>
>>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>>> about it.
>>>>>>>>>>>>
>>>>>>>>>>>> Ed
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>
>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

Twilio is trying to call(I mean while send sms)  only valid IP address or
valid domain name mapped to the IP address. Since, http://localhost:9191 is
neither IP address ,nor domain name, it's throwing above error messsage.
Could you try with system having domain or IP address?

Regards
Santosh

On Mon, Jul 16, 2018 at 1:41 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign. SMS provider
> name is displaying in campaign page drop-down but getting errors on sending
> SMS.
>
> *Errors*
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +9193xxxxxx77 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :93xxxxxx77 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> *Steps:*
>
> *1. Setup Message Gateway*
>
>    - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>
> 2018-07-16 12:38:17.440  INFO 1172 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer
>> : Tomcat started on port(s): 9191/http
>> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
>> o.f.messagegateway.MessageGateway        : Started MessageGateway in
>> 5.992 seconds (JVM running for 6.438)
>
>
>
> *2. Create Tenant app key*
> POST http://localhost:9191/tenants/
> {
> "tenantId" : "default",
> "description" : "Some Description"
> }
>
> *3. Create Twilio SMS Bridge *
> POST http://local:9191/smsbridges
> {
> "phoneNo": "+15xxxxxxx46",
> "providerName": "Twilio Provider",
> "providerDescription": "SMS Provider for promotional messages",
> "providerKey":"Twilio",
> "countryCode":"+91",
> "bridgeConfigurations": [
> {
> "configName":"Provider_Account_Id",
> "configValue":"xxxxxxxxx"
> },
> {
> "configName":"Provider_Auth_Token",
> "configValue":"xxxxxxxxxx"
> }
> ]
> }
>
> 4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
> Twilio Provider.
>
> 5. Try to deposit in client savings account.
>
> 6. No SMS on client phone but getting errors on Message Gateway console:
>
> 2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : Sending SMS to +919358209777 ...
>> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1] o.f.m.s.p.i.t.TwilioMessageProvider
>>     : ApiException while sending message to :9358209777 with reason The
>> StatusCallback URL http://localhost:9191/twilio/report/11 is not a valid
>> URL.
>
>
> Request to respond.
>
> Thank you,
> Mangal
>
> On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have taken the following steps to enable SMS Campaign.
>>
>>    1. Setup Message Gateway
>>       - Create a database messagegateway.
>>       - Clone the Message gateway code locally
>>       - Build the Message Gateway code by runnign command:
>>       - $ cd message-gateway
>>       - $ gradlew clean  build -Pprofile=deployable
>>       - Run the message gateway application standalone, run the command:
>>       - $ cd build/libs
>>       - java -jar message-gateway.jar
>>       -
>>
>>
>>
>>
>> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>>> SMS Gateway Trial Account.*
>>>
>>> Best,
>>>
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal
>>>>
>>>> Please find the attached file to understand how sms campaign works. You
>>>> can download front end for sql , ie.. heidisql from here:
>>>>
>>>> https://www.heidisql.com/download.php
>>>>
>>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hi Santosh,
>>>>>
>>>>> I have sent contact request to you. Please accept.
>>>>> My Skype id: mangal@bodhiproject.org
>>>>>
>>>>> ---
>>>>> Mangal
>>>>>
>>>>>
>>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> I am online on Skype. Please send me contact request to skype id
>>>>>> santoshmath99
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>>> docbrij@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Thanks! Santosh, Mangal,
>>>>>>>
>>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Brijesh
>>>>>>>
>>>>>>>
>>>>>>> ---------
>>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>>> *Founder & CEO*
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>>> Skype: docbrij
>>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in
>>>>>>>> google hangout for this mail id.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Hi Santosh,
>>>>>>>>>
>>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>>
>>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>>
>>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>>> events.
>>>>>>>>>
>>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>>
>>>>>>>>> Hook Name: Twilio SMS
>>>>>>>>> Status: true
>>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>>> Updated On: [2018,7,12]
>>>>>>>>> *Events:*
>>>>>>>>> REPAYMENT - LOAN
>>>>>>>>> CREATE - CLIENT
>>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>>> SMS Provider: Twilio
>>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>>
>>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Mangal
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Mangal,
>>>>>>>>>>
>>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>>
>>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Santosh
>>>>>>>>>>
>>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thank you ED.
>>>>>>>>>>>
>>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>>
>>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>>> about it.
>>>>>>>>>>>>
>>>>>>>>>>>> Ed
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>>> supported
>>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>>> Source)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>>> 1. We have configured the message-gateway and running on
>>>>>>>>>>>>> Tomcat;
>>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you,
>>>>>>>>>>>>> Mangal
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>>
>>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have taken the following steps to enable SMS Campaign. SMS provider name
is displaying in campaign page drop-down but getting errors on sending SMS.

*Errors*

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77 ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :93xxxxxx77 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


*Steps:*

*1. Setup Message Gateway*

   - Create a database messagegateway.
      - Clone the Message gateway code locally
      - Build the Message Gateway code by runnign command:
      - $ cd message-gateway
      - $ gradlew clean  build -Pprofile=deployable
      - Run the message gateway application standalone, run the command:
      - $ cd build/libs
      - java -jar message-gateway.jar

2018-07-16 12:38:17.440  INFO 1172 --- [           main]
> s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s):
> 9191/http
> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
> o.f.messagegateway.MessageGateway        : Started MessageGateway in 5.992
> seconds (JVM running for 6.438)



*2. Create Tenant app key*
POST http://localhost:9191/tenants/
{
"tenantId" : "default",
"description" : "Some Description"
}

*3. Create Twilio SMS Bridge *
POST http://local:9191/smsbridges
{
"phoneNo": "+15xxxxxxx46",
"providerName": "Twilio Provider",
"providerDescription": "SMS Provider for promotional messages",
"providerKey":"Twilio",
"countryCode":"+91",
"bridgeConfigurations": [
{
"configName":"Provider_Account_Id",
"configValue":"xxxxxxxxx"
},
{
"configName":"Provider_Auth_Token",
"configValue":"xxxxxxxxxx"
}
]
}

4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
Twilio Provider.

5. Try to deposit in client savings account.

6. No SMS on client phone but getting errors on Message Gateway console:

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +919358209777 ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :9358209777 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


Request to respond.

Thank you,
Mangal

On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign.
>
>    1. Setup Message Gateway
>       - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>       -
>
>
>
>
> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>> SMS Gateway Trial Account.*
>>
>> Best,
>>
>> Mangal
>>
>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal
>>>
>>> Please find the attached file to understand how sms campaign works. You
>>> can download front end for sql , ie.. heidisql from here:
>>>
>>> https://www.heidisql.com/download.php
>>>
>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> I have sent contact request to you. Please accept.
>>>> My Skype id: mangal@bodhiproject.org
>>>>
>>>> ---
>>>> Mangal
>>>>
>>>>
>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> I am online on Skype. Please send me contact request to skype id
>>>>> santoshmath99
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>> docbrij@bodhiproject.org> wrote:
>>>>>
>>>>>> Thanks! Santosh, Mangal,
>>>>>>
>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Brijesh
>>>>>>
>>>>>>
>>>>>> ---------
>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>> *Founder & CEO*
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>> Skype: docbrij
>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> Hi Mangal,
>>>>>>>
>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>>>> hangout for this mail id.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Santosh
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Hi Santosh,
>>>>>>>>
>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>
>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>
>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>> events.
>>>>>>>>
>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>
>>>>>>>> Hook Name: Twilio SMS
>>>>>>>> Status: true
>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>> Updated On: [2018,7,12]
>>>>>>>> *Events:*
>>>>>>>> REPAYMENT - LOAN
>>>>>>>> CREATE - CLIENT
>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>> SMS Provider: Twilio
>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>
>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> Mangal
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>
>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>
>>>>>>>>>> Thank you ED.
>>>>>>>>>>
>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>
>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>> about it.
>>>>>>>>>>>
>>>>>>>>>>> Ed
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello,
>>>>>>>>>>>>
>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>
>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>
>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>> supported
>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>> Source)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>
>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you,
>>>>>>>>>>>> Mangal
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>
>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have taken the following steps to enable SMS Campaign. SMS provider name
is displaying in campaign page drop-down but getting errors on sending SMS.

*Errors*

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +9193xxxxxx77 ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :93xxxxxx77 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


*Steps:*

*1. Setup Message Gateway*

   - Create a database messagegateway.
      - Clone the Message gateway code locally
      - Build the Message Gateway code by runnign command:
      - $ cd message-gateway
      - $ gradlew clean  build -Pprofile=deployable
      - Run the message gateway application standalone, run the command:
      - $ cd build/libs
      - java -jar message-gateway.jar

2018-07-16 12:38:17.440  INFO 1172 --- [           main]
> s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s):
> 9191/http
> 2018-07-16 12:38:17.443  INFO 1172 --- [           main]
> o.f.messagegateway.MessageGateway        : Started MessageGateway in 5.992
> seconds (JVM running for 6.438)



*2. Create Tenant app key*
POST http://localhost:9191/tenants/
{
"tenantId" : "default",
"description" : "Some Description"
}

*3. Create Twilio SMS Bridge *
POST http://local:9191/smsbridges
{
"phoneNo": "+15xxxxxxx46",
"providerName": "Twilio Provider",
"providerDescription": "SMS Provider for promotional messages",
"providerKey":"Twilio",
"countryCode":"+91",
"bridgeConfigurations": [
{
"configName":"Provider_Account_Id",
"configValue":"xxxxxxxxx"
},
{
"configName":"Provider_Auth_Token",
"configValue":"xxxxxxxxxx"
}
]
}

4. Create a SMS Campaign Type Trigger on Deposit in Savings account using
Twilio Provider.

5. Try to deposit in client savings account.

6. No SMS on client phone but getting errors on Message Gateway console:

2018-07-16 13:34:04.471  INFO 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : Sending SMS to +919358209777 ...
> 2018-07-16 13:34:07.644 ERROR 1172 --- [ool-12-thread-1]
> o.f.m.s.p.i.t.TwilioMessageProvider      : ApiException while sending
> message to :9358209777 with reason The StatusCallback URL
> http://localhost:9191/twilio/report/11 is not a valid URL.


Request to respond.

Thank you,
Mangal

On Mon, Jul 16, 2018 at 1:23 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have taken the following steps to enable SMS Campaign.
>
>    1. Setup Message Gateway
>       - Create a database messagegateway.
>       - Clone the Message gateway code locally
>       - Build the Message Gateway code by runnign command:
>       - $ cd message-gateway
>       - $ gradlew clean  build -Pprofile=deployable
>       - Run the message gateway application standalone, run the command:
>       - $ cd build/libs
>       - java -jar message-gateway.jar
>       -
>
>
>
>
> On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio
>> SMS Gateway Trial Account.*
>>
>> Best,
>>
>> Mangal
>>
>> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal
>>>
>>> Please find the attached file to understand how sms campaign works. You
>>> can download front end for sql , ie.. heidisql from here:
>>>
>>> https://www.heidisql.com/download.php
>>>
>>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> I have sent contact request to you. Please accept.
>>>> My Skype id: mangal@bodhiproject.org
>>>>
>>>> ---
>>>> Mangal
>>>>
>>>>
>>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> I am online on Skype. Please send me contact request to skype id
>>>>> santoshmath99
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>>> docbrij@bodhiproject.org> wrote:
>>>>>
>>>>>> Thanks! Santosh, Mangal,
>>>>>>
>>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Brijesh
>>>>>>
>>>>>>
>>>>>> ---------
>>>>>> Brijesh Kumar, *Ph.D.*
>>>>>> *Founder & CEO*
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>>> Skype: docbrij
>>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> Hi Mangal,
>>>>>>>
>>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>>>> hangout for this mail id.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Santosh
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Hi Santosh,
>>>>>>>>
>>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>>
>>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>>
>>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>>> events.
>>>>>>>>
>>>>>>>> SMS Bridge webhook template details are:
>>>>>>>>
>>>>>>>> Hook Name: Twilio SMS
>>>>>>>> Status: true
>>>>>>>> Activation Date: [2018,7,12]
>>>>>>>> Updated On: [2018,7,12]
>>>>>>>> *Events:*
>>>>>>>> REPAYMENT - LOAN
>>>>>>>> CREATE - CLIENT
>>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>>> SMS Provider: Twilio
>>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>>
>>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> Mangal
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mangal,
>>>>>>>>>
>>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>>
>>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Santosh
>>>>>>>>>
>>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>
>>>>>>>>>> Thank you ED.
>>>>>>>>>>
>>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>>
>>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>>> about it.
>>>>>>>>>>>
>>>>>>>>>>> Ed
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello,
>>>>>>>>>>>>
>>>>>>>>>>>> Need help to understand the SMS Bridge configuration and
>>>>>>>>>>>> working on Fineract 1.1.
>>>>>>>>>>>>
>>>>>>>>>>>> *Issue:*
>>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>>> *Error:*
>>>>>>>>>>>>
>>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>>> supported
>>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>> er.invokeRequest(RestAdapter.java:382)
>>>>>>>>>>>>> at retrofit.RestAdapter$RestHandl
>>>>>>>>>>>>> er.invoke(RestAdapter.java:240)
>>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>>> Source)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.sendRequest(TwilioH
>>>>>>>>>>>>> ookProcessor.java:96)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.processor.TwilioHookProcessor.process(TwilioHookP
>>>>>>>>>>>>> rocessor.java:72)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>> FineractHookListener.java:75)
>>>>>>>>>>>>> at org.apache.fineract.infrastruc
>>>>>>>>>>>>> ture.hooks.listener.FineractHookListener.onApplicationEvent(
>>>>>>>>>>>>> FineractHookListener.java:36)
>>>>>>>>>>>>> at org.springframework.context.ev
>>>>>>>>>>>>> ent.SimpleApplicationEventMulticaster$1.run(SimpleApplicatio
>>>>>>>>>>>>> nEventMulticaster.java:93)
>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> *Steps*:
>>>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>>
>>>>>>>>>>>> Request to respond.
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you,
>>>>>>>>>>>> Mangal
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>>> Tech Lead
>>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Ed Cable*
>>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>>
>>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have taken the following steps to enable SMS Campaign.

   1. Setup Message Gateway
      - Create a database messagegateway.
      - Clone the Message gateway code locally
      - Build the Message Gateway code by runnign command:
      - $ cd message-gateway
      - $ gradlew clean  build -Pprofile=deployable
      - Run the message gateway application standalone, run the command:
      - $ cd build/libs
      - java -jar message-gateway.jar
      -




On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio SMS
> Gateway Trial Account.*
>
> Best,
>
> Mangal
>
> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal
>>
>> Please find the attached file to understand how sms campaign works. You
>> can download front end for sql , ie.. heidisql from here:
>>
>> https://www.heidisql.com/download.php
>>
>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> I have sent contact request to you. Please accept.
>>> My Skype id: mangal@bodhiproject.org
>>>
>>> ---
>>> Mangal
>>>
>>>
>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> I am online on Skype. Please send me contact request to skype id
>>>> santoshmath99
>>>>
>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>> docbrij@bodhiproject.org> wrote:
>>>>
>>>>> Thanks! Santosh, Mangal,
>>>>>
>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>
>>>>> Best,
>>>>>
>>>>> Brijesh
>>>>>
>>>>>
>>>>> ---------
>>>>> Brijesh Kumar, *Ph.D.*
>>>>> *Founder & CEO*
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>> Skype: docbrij
>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>>> hangout for this mail id.
>>>>>>
>>>>>> Thanks
>>>>>> Santosh
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Hi Santosh,
>>>>>>>
>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>
>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>
>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>> events.
>>>>>>>
>>>>>>> SMS Bridge webhook template details are:
>>>>>>>
>>>>>>> Hook Name: Twilio SMS
>>>>>>> Status: true
>>>>>>> Activation Date: [2018,7,12]
>>>>>>> Updated On: [2018,7,12]
>>>>>>> *Events:*
>>>>>>> REPAYMENT - LOAN
>>>>>>> CREATE - CLIENT
>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>> SMS Provider: Twilio
>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>
>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Mangal
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>
>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Thank you ED.
>>>>>>>>>
>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>
>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>> about it.
>>>>>>>>>>
>>>>>>>>>> Ed
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> Need help to understand the SMS Bridge configuration and working
>>>>>>>>>>> on Fineract 1.1.
>>>>>>>>>>>
>>>>>>>>>>> *Issue:*
>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>> *Error:*
>>>>>>>>>>>
>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>> supported
>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>>>>> ava:382)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240
>>>>>>>>>>>> )
>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>> Source)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *Steps*:
>>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>
>>>>>>>>>>> Request to respond.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>> Mangal
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>> Tech Lead
>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Ed Cable*
>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>
>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have taken the following steps to enable SMS Campaign.

   1. Setup Message Gateway
      - Create a database messagegateway.
      - Clone the Message gateway code locally
      - Build the Message Gateway code by runnign command:
      - $ cd message-gateway
      - $ gradlew clean  build -Pprofile=deployable
      - Run the message gateway application standalone, run the command:
      - $ cd build/libs
      - java -jar message-gateway.jar
      -




On Fri, Jul 13, 2018 at 6:58 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> Sharing in the enclosed excel sheet steps undertaken to setup *Twilio SMS
> Gateway Trial Account.*
>
> Best,
>
> Mangal
>
> On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal
>>
>> Please find the attached file to understand how sms campaign works. You
>> can download front end for sql , ie.. heidisql from here:
>>
>> https://www.heidisql.com/download.php
>>
>> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> I have sent contact request to you. Please accept.
>>> My Skype id: mangal@bodhiproject.org
>>>
>>> ---
>>> Mangal
>>>
>>>
>>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> I am online on Skype. Please send me contact request to skype id
>>>> santoshmath99
>>>>
>>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>>> docbrij@bodhiproject.org> wrote:
>>>>
>>>>> Thanks! Santosh, Mangal,
>>>>>
>>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>>
>>>>> Best,
>>>>>
>>>>> Brijesh
>>>>>
>>>>>
>>>>> ---------
>>>>> Brijesh Kumar, *Ph.D.*
>>>>> *Founder & CEO*
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>>> Skype: docbrij
>>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>>> hangout for this mail id.
>>>>>>
>>>>>> Thanks
>>>>>> Santosh
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Hi Santosh,
>>>>>>>
>>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>>
>>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>>
>>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>>> events.
>>>>>>>
>>>>>>> SMS Bridge webhook template details are:
>>>>>>>
>>>>>>> Hook Name: Twilio SMS
>>>>>>> Status: true
>>>>>>> Activation Date: [2018,7,12]
>>>>>>> Updated On: [2018,7,12]
>>>>>>> *Events:*
>>>>>>> REPAYMENT - LOAN
>>>>>>> CREATE - CLIENT
>>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>> Phone Number: <Twilio Phone number>
>>>>>>> SMS Provider: Twilio
>>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>>
>>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Mangal
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>>
>>>>>>>> Hi Mangal,
>>>>>>>>
>>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>>
>>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>>> /Message+Gateway+Configuration
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Santosh
>>>>>>>>
>>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Thank you ED.
>>>>>>>>>
>>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Sampath/Santosh,
>>>>>>>>>>
>>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>>> about it.
>>>>>>>>>>
>>>>>>>>>> Ed
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> Need help to understand the SMS Bridge configuration and working
>>>>>>>>>>> on Fineract 1.1.
>>>>>>>>>>>
>>>>>>>>>>> *Issue:*
>>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>>> *Error:*
>>>>>>>>>>>
>>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>>> supported
>>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>>>>> ava:382)
>>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240
>>>>>>>>>>>> )
>>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>>> Source)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *Steps*:
>>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it
>>>>>>>>>>> throws an error placed above.
>>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>>
>>>>>>>>>>> Request to respond.
>>>>>>>>>>>
>>>>>>>>>>> Thank you,
>>>>>>>>>>> Mangal
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Mangal Kumar
>>>>>>>>>>> Tech Lead
>>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Ed Cable*
>>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>>
>>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

Sharing in the enclosed excel sheet steps undertaken to setup *Twilio SMS
Gateway Trial Account.*

Best,

Mangal

On Fri, Jul 13, 2018 at 4:45 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal
>
> Please find the attached file to understand how sms campaign works. You
> can download front end for sql , ie.. heidisql from here:
>
> https://www.heidisql.com/download.php
>
> On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> I have sent contact request to you. Please accept.
>> My Skype id: mangal@bodhiproject.org
>>
>> ---
>> Mangal
>>
>>
>> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> I am online on Skype. Please send me contact request to skype id
>>> santoshmath99
>>>
>>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
>>> docbrij@bodhiproject.org> wrote:
>>>
>>>> Thanks! Santosh, Mangal,
>>>>
>>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>>
>>>> Best,
>>>>
>>>> Brijesh
>>>>
>>>>
>>>> ---------
>>>> Brijesh Kumar, *Ph.D.*
>>>> *Founder & CEO*
>>>> Digital Media Initiatives | Bodhi Project
>>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>>> +91 955 724 8880 <+91%2095572%2048880>
>>>> Skype: docbrij
>>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>>
>>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal,
>>>>>
>>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>>> hangout for this mail id.
>>>>>
>>>>> Thanks
>>>>> Santosh
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
>>>>> mangal@bodhiproject.org> wrote:
>>>>>
>>>>>> Hi Santosh,
>>>>>>
>>>>>> We have implemented and configured Message Gateway successfully as
>>>>>> per documentation (https://mifosforge.jira.com/w
>>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>>
>>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>>
>>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>>> events.
>>>>>>
>>>>>> SMS Bridge webhook template details are:
>>>>>>
>>>>>> Hook Name: Twilio SMS
>>>>>> Status: true
>>>>>> Activation Date: [2018,7,12]
>>>>>> Updated On: [2018,7,12]
>>>>>> *Events:*
>>>>>> REPAYMENT - LOAN
>>>>>> CREATE - CLIENT
>>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>> Phone Number: <Twilio Phone number>
>>>>>> SMS Provider: Twilio
>>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>>> SMS Provider Token: <Twilio Token>
>>>>>>
>>>>>> Please suggest why MifosX is not sending SMS.
>>>>>>
>>>>>> Thank you,
>>>>>> Mangal
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>>
>>>>>>> Hi Mangal,
>>>>>>>
>>>>>>> I think Antony is referrring to this documentation:
>>>>>>>
>>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>>> /Message+Gateway+Configuration
>>>>>>>
>>>>>>> Thanks
>>>>>>> Santosh
>>>>>>>
>>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Thank you ED.
>>>>>>>>
>>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>>> implementation? It will help us to implement it.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Sampath/Santosh,
>>>>>>>>>
>>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>>> about it.
>>>>>>>>>
>>>>>>>>> Ed
>>>>>>>>>
>>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> Need help to understand the SMS Bridge configuration and working
>>>>>>>>>> on Fineract 1.1.
>>>>>>>>>>
>>>>>>>>>> *Issue:*
>>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>>> *Error:*
>>>>>>>>>>
>>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>>> supported
>>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>>>> ava:382)
>>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>>> Source)
>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *Steps*:
>>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
>>>>>>>>>> an error placed above.
>>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>>
>>>>>>>>>> Request to respond.
>>>>>>>>>>
>>>>>>>>>> Thank you,
>>>>>>>>>> Mangal
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Mangal Kumar
>>>>>>>>>> Tech Lead
>>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>>> <https://glimmer.finance>
>>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Ed Cable*
>>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>>
>>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal

Please find the attached file to understand how sms campaign works. You can
download front end for sql , ie.. heidisql from here:

https://www.heidisql.com/download.php

On Fri, Jul 13, 2018 at 4:13 PM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> I have sent contact request to you. Please accept.
> My Skype id: mangal@bodhiproject.org
>
> ---
> Mangal
>
>
> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> I am online on Skype. Please send me contact request to skype id
>> santoshmath99
>>
>> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <docbrij@bodhiproject.org
>> > wrote:
>>
>>> Thanks! Santosh, Mangal,
>>>
>>> I will also join the Skype meeting. My Skype ID: docbrij.
>>>
>>> Best,
>>>
>>> Brijesh
>>>
>>>
>>> ---------
>>> Brijesh Kumar, *Ph.D.*
>>> *Founder & CEO*
>>> Digital Media Initiatives | Bodhi Project
>>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>>> +91 955 724 8880 <+91%2095572%2048880>
>>> Skype: docbrij
>>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>>
>>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal,
>>>>
>>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>>> hangout for this mail id.
>>>>
>>>> Thanks
>>>> Santosh
>>>>
>>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <mangal@bodhiproject.org
>>>> > wrote:
>>>>
>>>>> Hi Santosh,
>>>>>
>>>>> We have implemented and configured Message Gateway successfully as per
>>>>> documentation (https://mifosforge.jira.com/w
>>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>>
>>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>>
>>>>> Currently, we are using Twilio test account. Message gateway is
>>>>> sending SMS on my mobile number using REST client but when we register it
>>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>>> events.
>>>>>
>>>>> SMS Bridge webhook template details are:
>>>>>
>>>>> Hook Name: Twilio SMS
>>>>> Status: true
>>>>> Activation Date: [2018,7,12]
>>>>> Updated On: [2018,7,12]
>>>>> *Events:*
>>>>> REPAYMENT - LOAN
>>>>> CREATE - CLIENT
>>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>> Phone Number: <Twilio Phone number>
>>>>> SMS Provider: Twilio
>>>>> SMS Provider Account Id: <Twilio AccountID>
>>>>> SMS Provider Token: <Twilio Token>
>>>>>
>>>>> Please suggest why MifosX is not sending SMS.
>>>>>
>>>>> Thank you,
>>>>> Mangal
>>>>>
>>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>>> santosh@confluxtechnologies.com> wrote:
>>>>>
>>>>>> Hi Mangal,
>>>>>>
>>>>>> I think Antony is referrring to this documentation:
>>>>>>
>>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>>> /Message+Gateway+Configuration
>>>>>>
>>>>>> Thanks
>>>>>> Santosh
>>>>>>
>>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>
>>>>>>> Thank you ED.
>>>>>>>
>>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>>> implementation? It will help us to implement it.
>>>>>>>
>>>>>>> Thank you,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Sampath/Santosh,
>>>>>>>>
>>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>>> about it.
>>>>>>>>
>>>>>>>> Ed
>>>>>>>>
>>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> Need help to understand the SMS Bridge configuration and working
>>>>>>>>> on Fineract 1.1.
>>>>>>>>>
>>>>>>>>> *Issue:*
>>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>>> *Error:*
>>>>>>>>>
>>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>>> supported
>>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>>> ava:382)
>>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>>> Source)
>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *Steps*:
>>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
>>>>>>>>> an error placed above.
>>>>>>>>> 5. Also please clarify that while configuring External SMS
>>>>>>>>> Service, is it mandatory to define a port (9191 as shown in the documents).
>>>>>>>>> Tomcat is running with HTTPS on a pre-defined port.
>>>>>>>>>
>>>>>>>>> Request to respond.
>>>>>>>>>
>>>>>>>>> Thank you,
>>>>>>>>> Mangal
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Mangal Kumar
>>>>>>>>> Tech Lead
>>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>>> <https://glimmer.finance>
>>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Ed Cable*
>>>>>>>> President/CEO, Mifos Initiative
>>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>>
>>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Mangal Kumar
>>>>>>> Tech Lead
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> <https://glimmer.finance>
>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>>
>>>>>> Santosh Math
>>>>>>
>>>>>> *QA Engineer*
>>>>>>
>>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>>> | *Office*: +91-080-41208662 |
>>>>>>
>>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>>
>>>> Santosh Math
>>>>
>>>> *QA Engineer*
>>>>
>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>> | *Office*: +91-080-41208662 |
>>>>
>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

I have sent contact request to you. Please accept.
My Skype id: mangal@bodhiproject.org

---
Mangal


On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> I am online on Skype. Please send me contact request to skype id
> santoshmath99
>
> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <do...@bodhiproject.org>
> wrote:
>
>> Thanks! Santosh, Mangal,
>>
>> I will also join the Skype meeting. My Skype ID: docbrij.
>>
>> Best,
>>
>> Brijesh
>>
>>
>> ---------
>> Brijesh Kumar, *Ph.D.*
>> *Founder & CEO*
>> Digital Media Initiatives | Bodhi Project
>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>> +91 955 724 8880 <+91%2095572%2048880>
>> Skype: docbrij
>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>
>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal,
>>>
>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>> hangout for this mail id.
>>>
>>> Thanks
>>> Santosh
>>>
>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> We have implemented and configured Message Gateway successfully as per
>>>> documentation (https://mifosforge.jira.com/w
>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>
>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>
>>>> Currently, we are using Twilio test account. Message gateway is
>>>> sending SMS on my mobile number using REST client but when we register it
>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>> events.
>>>>
>>>> SMS Bridge webhook template details are:
>>>>
>>>> Hook Name: Twilio SMS
>>>> Status: true
>>>> Activation Date: [2018,7,12]
>>>> Updated On: [2018,7,12]
>>>> *Events:*
>>>> REPAYMENT - LOAN
>>>> CREATE - CLIENT
>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>> Phone Number: <Twilio Phone number>
>>>> SMS Provider: Twilio
>>>> SMS Provider Account Id: <Twilio AccountID>
>>>> SMS Provider Token: <Twilio Token>
>>>>
>>>> Please suggest why MifosX is not sending SMS.
>>>>
>>>> Thank you,
>>>> Mangal
>>>>
>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal,
>>>>>
>>>>> I think Antony is referrring to this documentation:
>>>>>
>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>> /Message+Gateway+Configuration
>>>>>
>>>>> Thanks
>>>>> Santosh
>>>>>
>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>> mangal@bodhiproject.org> wrote:
>>>>>
>>>>>> Thank you ED.
>>>>>>
>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>> implementation? It will help us to implement it.
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>>>
>>>>>>> Sampath/Santosh,
>>>>>>>
>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>> about it.
>>>>>>>
>>>>>>> Ed
>>>>>>>
>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>>>> Fineract 1.1.
>>>>>>>>
>>>>>>>> *Issue:*
>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>> *Error:*
>>>>>>>>
>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>> supported
>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>> ava:382)
>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>> Source)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>
>>>>>>>>
>>>>>>>> *Steps*:
>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
>>>>>>>> an error placed above.
>>>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>>>
>>>>>>>> Request to respond.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> Mangal
>>>>>>>>
>>>>>>>> --
>>>>>>>> Mangal Kumar
>>>>>>>> Tech Lead
>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> <https://glimmer.finance>
>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Ed Cable*
>>>>>>> President/CEO, Mifos Initiative
>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>
>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mangal Kumar
>>>>>> Tech Lead
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> <https://glimmer.finance>
>>>>>> Skype: mangal@bodhiproject.org
>>>>>> *Leveraging technology for social challenges...*
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>>
>>>>> Santosh Math
>>>>>
>>>>> *QA Engineer*
>>>>>
>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>> | *Office*: +91-080-41208662 |
>>>>>
>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Santosh Math
>>>
>>> *QA Engineer*
>>>
>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>> | *Office*: +91-080-41208662 |
>>>
>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>> Bengaluru, Karnataka, 560043 INDIA
>>>
>>
>>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

I have sent contact request to you. Please accept.
My Skype id: mangal@bodhiproject.org

---
Mangal


On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> I am online on Skype. Please send me contact request to skype id
> santoshmath99
>
> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <do...@bodhiproject.org>
> wrote:
>
>> Thanks! Santosh, Mangal,
>>
>> I will also join the Skype meeting. My Skype ID: docbrij.
>>
>> Best,
>>
>> Brijesh
>>
>>
>> ---------
>> Brijesh Kumar, *Ph.D.*
>> *Founder & CEO*
>> Digital Media Initiatives | Bodhi Project
>> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
>> +91 955 724 8880 <+91%2095572%2048880>
>> Skype: docbrij
>> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>>
>> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal,
>>>
>>> Can  we have a  call at 4 pm IST , today? I will be online in google
>>> hangout for this mail id.
>>>
>>> Thanks
>>> Santosh
>>>
>>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hi Santosh,
>>>>
>>>> We have implemented and configured Message Gateway successfully as per
>>>> documentation (https://mifosforge.jira.com/w
>>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>>
>>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>>
>>>> Currently, we are using Twilio test account. Message gateway is
>>>> sending SMS on my mobile number using REST client but when we register it
>>>> as SMS bridge webhook in MifosX then it is not sending SMS on specified
>>>> events.
>>>>
>>>> SMS Bridge webhook template details are:
>>>>
>>>> Hook Name: Twilio SMS
>>>> Status: true
>>>> Activation Date: [2018,7,12]
>>>> Updated On: [2018,7,12]
>>>> *Events:*
>>>> REPAYMENT - LOAN
>>>> CREATE - CLIENT
>>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>> Phone Number: <Twilio Phone number>
>>>> SMS Provider: Twilio
>>>> SMS Provider Account Id: <Twilio AccountID>
>>>> SMS Provider Token: <Twilio Token>
>>>>
>>>> Please suggest why MifosX is not sending SMS.
>>>>
>>>> Thank you,
>>>> Mangal
>>>>
>>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>>> santosh@confluxtechnologies.com> wrote:
>>>>
>>>>> Hi Mangal,
>>>>>
>>>>> I think Antony is referrring to this documentation:
>>>>>
>>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>>> /Message+Gateway+Configuration
>>>>>
>>>>> Thanks
>>>>> Santosh
>>>>>
>>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
>>>>> mangal@bodhiproject.org> wrote:
>>>>>
>>>>>> Thank you ED.
>>>>>>
>>>>>> Anthony could you please share your notes regarding sms gateway
>>>>>> implementation? It will help us to implement it.
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>>>
>>>>>>> Sampath/Santosh,
>>>>>>>
>>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>>> about it.
>>>>>>>
>>>>>>> Ed
>>>>>>>
>>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
>>>>>>> mangal@bodhiproject.org> wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>>>> Fineract 1.1.
>>>>>>>>
>>>>>>>> *Issue:*
>>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>>> *Error:*
>>>>>>>>
>>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>>> supported
>>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>>> ava:382)
>>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>>> Source)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>>
>>>>>>>>
>>>>>>>> *Steps*:
>>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
>>>>>>>> an error placed above.
>>>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>>>
>>>>>>>> Request to respond.
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> Mangal
>>>>>>>>
>>>>>>>> --
>>>>>>>> Mangal Kumar
>>>>>>>> Tech Lead
>>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>>> <https://glimmer.finance>
>>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Ed Cable*
>>>>>>> President/CEO, Mifos Initiative
>>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>>
>>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>>> <http://www.twitter.com/mifos>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mangal Kumar
>>>>>> Tech Lead
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> <https://glimmer.finance>
>>>>>> Skype: mangal@bodhiproject.org
>>>>>> *Leveraging technology for social challenges...*
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>>
>>>>> Santosh Math
>>>>>
>>>>> *QA Engineer*
>>>>>
>>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>>> | *Office*: +91-080-41208662 |
>>>>>
>>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Santosh Math
>>>
>>> *QA Engineer*
>>>
>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>> | *Office*: +91-080-41208662 |
>>>
>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>> Bengaluru, Karnataka, 560043 INDIA
>>>
>>
>>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Yes. accepted.

On Fri, Jul 13, 2018 at 4:13 PM, Brijesh Kumar <do...@bodhiproject.org>
wrote:

> Online now. Can we chat?
> Mangal/ brijesh
>
> On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
> > I am online on Skype. Please send me contact request to skype id
> > santoshmath99
> >
> > On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <
> docbrij@bodhiproject.org>
> > wrote:
> >
> > > Thanks! Santosh, Mangal,
> > >
> > > I will also join the Skype meeting. My Skype ID: docbrij.
> > >
> > > Best,
> > >
> > > Brijesh
> > >
> > >
> > > ---------
> > > Brijesh Kumar, *Ph.D.*
> > > *Founder & CEO*
> > > Digital Media Initiatives | Bodhi Project
> > > http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
> > > +91 955 724 8880 <+91%2095572%2048880>
> > > Skype: docbrij
> > > LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
> > >
> > > On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
> > > santosh@confluxtechnologies.com> wrote:
> > >
> > >> Hi Mangal,
> > >>
> > >> Can  we have a  call at 4 pm IST , today? I will be online in google
> > >> hangout for this mail id.
> > >>
> > >> Thanks
> > >> Santosh
> > >>
> > >> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <
> mangal@bodhiproject.org
> > >
> > >> wrote:
> > >>
> > >>> Hi Santosh,
> > >>>
> > >>> We have implemented and configured Message Gateway successfully as
> per
> > >>> documentation (https://mifosforge.jira.com/w
> > >>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
> > >>>
> > >>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> > >>>
> > >>> Currently, we are using Twilio test account. Message gateway is
> sending
> > >>> SMS on my mobile number using REST client but when we register it as
> > SMS
> > >>> bridge webhook in MifosX then it is not sending SMS on specified
> > events.
> > >>>
> > >>> SMS Bridge webhook template details are:
> > >>>
> > >>> Hook Name: Twilio SMS
> > >>> Status: true
> > >>> Activation Date: [2018,7,12]
> > >>> Updated On: [2018,7,12]
> > >>> *Events:*
> > >>> REPAYMENT - LOAN
> > >>> CREATE - CLIENT
> > >>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> > >>> Phone Number: <Twilio Phone number>
> > >>> SMS Provider: Twilio
> > >>> SMS Provider Account Id: <Twilio AccountID>
> > >>> SMS Provider Token: <Twilio Token>
> > >>>
> > >>> Please suggest why MifosX is not sending SMS.
> > >>>
> > >>> Thank you,
> > >>> Mangal
> > >>>
> > >>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
> > >>> santosh@confluxtechnologies.com> wrote:
> > >>>
> > >>>> Hi Mangal,
> > >>>>
> > >>>> I think Antony is referrring to this documentation:
> > >>>>
> > >>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
> > >>>> /Message+Gateway+Configuration
> > >>>>
> > >>>> Thanks
> > >>>> Santosh
> > >>>>
> > >>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
> > mangal@bodhiproject.org
> > >>>> > wrote:
> > >>>>
> > >>>>> Thank you ED.
> > >>>>>
> > >>>>> Anthony could you please share your notes regarding sms gateway
> > >>>>> implementation? It will help us to implement it.
> > >>>>>
> > >>>>> Thank you,
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
> > wrote:
> > >>>>>
> > >>>>>> Sampath/Santosh,
> > >>>>>>
> > >>>>>> Could you please try to help Mangal and also while we're at it,
> > >>>>>> improve the documentation for configuring of the SMS bridge. He
> > along with
> > >>>>>> a couple others, Antony and Karthik, are attempting to use and
> > inquiring
> > >>>>>> about it.
> > >>>>>>
> > >>>>>> Ed
> > >>>>>>
> > >>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
> > mangal@bodhiproject.org>
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>>> Hello,
> > >>>>>>>
> > >>>>>>> Need help to understand the SMS Bridge configuration and working
> on
> > >>>>>>> Fineract 1.1.
> > >>>>>>>
> > >>>>>>> *Issue:*
> > >>>>>>> Unable to POST message on Message-gateway endpoint.
> > >>>>>>> *Error:*
> > >>>>>>>
> > >>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
> > >>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST'
> > not
> > >>>>>>>> supported
> > >>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
> > >>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
> > >>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
> > >>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
> > >>>>>>>> ava:382)
> > >>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(
> RestAdapter.java:240)
> > >>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
> > >>>>>>>> Source)
> > >>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
> > >>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
> > >>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
> > >>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
> > >>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
> > >>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
> > >>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
> > >>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
> > >>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
> > >>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
> > >>>>>>>> at java.lang.Thread.run(Thread.java:748)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> *Steps*:
> > >>>>>>> 1. We have configured the message-gateway and running on Tomcat;
> > >>>>>>> 2. Our instance is running on https configured with Tomcat;
> > >>>>>>> 3. We have also checked communication with the endpoint;
> > >>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
> > an
> > >>>>>>> error placed above.
> > >>>>>>> 5. Also please clarify that while configuring External SMS
> Service,
> > >>>>>>> is it mandatory to define a port (9191 as shown in the
> documents).
> > Tomcat
> > >>>>>>> is running with HTTPS on a pre-defined port.
> > >>>>>>>
> > >>>>>>> Request to respond.
> > >>>>>>>
> > >>>>>>> Thank you,
> > >>>>>>> Mangal
> > >>>>>>>
> > >>>>>>> --
> > >>>>>>> Mangal Kumar
> > >>>>>>> Tech Lead
> > >>>>>>> Digital Media Initiatives | Bodhi Project
> > >>>>>>> <https://glimmer.finance>
> > >>>>>>> Skype: mangal@bodhiproject.org
> > >>>>>>> *Leveraging technology for social challenges...*
> > >>>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>> *Ed Cable*
> > >>>>>> President/CEO, Mifos Initiative
> > >>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
> > >>>>>>
> > >>>>>> *Collectively Creating a World of 3 Billion Maries | *
> > >>>>>> http://mifos.org  <http://facebook.com/mifos>
> > >>>>>> <http://www.twitter.com/mifos>
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Mangal Kumar
> > >>>>> Tech Lead
> > >>>>> Digital Media Initiatives | Bodhi Project
> > >>>>> <https://glimmer.finance>
> > >>>>> Skype: mangal@bodhiproject.org
> > >>>>> *Leveraging technology for social challenges...*
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Thanks & Regards
> > >>>>
> > >>>> Santosh Math
> > >>>>
> > >>>> *QA Engineer*
> > >>>>
> > >>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/
> >*
> > >>>> | *Office*: +91-080-41208662 |
> > >>>>
> > >>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> > >>>> Bengaluru, Karnataka, 560043 INDIA
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Mangal Kumar
> > >>> Tech Lead
> > >>> Digital Media Initiatives | Bodhi Project
> > >>> <https://glimmer.finance>
> > >>> Skype: mangal@bodhiproject.org
> > >>> *Leveraging technology for social challenges...*
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Thanks & Regards
> > >>
> > >> Santosh Math
> > >>
> > >> *QA Engineer*
> > >>
> > >> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> > >> | *Office*: +91-080-41208662 |
> > >>
> > >> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> > >> Bengaluru, Karnataka, 560043 INDIA
> > >>
> > >
> > >
> >
> >
> > --
> > Thanks & Regards
> >
> > Santosh Math
> >
> > *QA Engineer*
> >
> > *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> > | *Office*: +91-080-41208662 |
> >
> > *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> > Bengaluru, Karnataka, 560043 INDIA
> >
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Brijesh Kumar <do...@bodhiproject.org>.
Online now. Can we chat?
Mangal/ brijesh

On Fri, Jul 13, 2018 at 3:37 PM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> I am online on Skype. Please send me contact request to skype id
> santoshmath99
>
> On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <do...@bodhiproject.org>
> wrote:
>
> > Thanks! Santosh, Mangal,
> >
> > I will also join the Skype meeting. My Skype ID: docbrij.
> >
> > Best,
> >
> > Brijesh
> >
> >
> > ---------
> > Brijesh Kumar, *Ph.D.*
> > *Founder & CEO*
> > Digital Media Initiatives | Bodhi Project
> > http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
> > +91 955 724 8880 <+91%2095572%2048880>
> > Skype: docbrij
> > LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
> >
> > On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
> > santosh@confluxtechnologies.com> wrote:
> >
> >> Hi Mangal,
> >>
> >> Can  we have a  call at 4 pm IST , today? I will be online in google
> >> hangout for this mail id.
> >>
> >> Thanks
> >> Santosh
> >>
> >> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <mangal@bodhiproject.org
> >
> >> wrote:
> >>
> >>> Hi Santosh,
> >>>
> >>> We have implemented and configured Message Gateway successfully as per
> >>> documentation (https://mifosforge.jira.com/w
> >>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
> >>>
> >>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> >>>
> >>> Currently, we are using Twilio test account. Message gateway is sending
> >>> SMS on my mobile number using REST client but when we register it as
> SMS
> >>> bridge webhook in MifosX then it is not sending SMS on specified
> events.
> >>>
> >>> SMS Bridge webhook template details are:
> >>>
> >>> Hook Name: Twilio SMS
> >>> Status: true
> >>> Activation Date: [2018,7,12]
> >>> Updated On: [2018,7,12]
> >>> *Events:*
> >>> REPAYMENT - LOAN
> >>> CREATE - CLIENT
> >>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> >>> Phone Number: <Twilio Phone number>
> >>> SMS Provider: Twilio
> >>> SMS Provider Account Id: <Twilio AccountID>
> >>> SMS Provider Token: <Twilio Token>
> >>>
> >>> Please suggest why MifosX is not sending SMS.
> >>>
> >>> Thank you,
> >>> Mangal
> >>>
> >>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
> >>> santosh@confluxtechnologies.com> wrote:
> >>>
> >>>> Hi Mangal,
> >>>>
> >>>> I think Antony is referrring to this documentation:
> >>>>
> >>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
> >>>> /Message+Gateway+Configuration
> >>>>
> >>>> Thanks
> >>>> Santosh
> >>>>
> >>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <
> mangal@bodhiproject.org
> >>>> > wrote:
> >>>>
> >>>>> Thank you ED.
> >>>>>
> >>>>> Anthony could you please share your notes regarding sms gateway
> >>>>> implementation? It will help us to implement it.
> >>>>>
> >>>>> Thank you,
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org>
> wrote:
> >>>>>
> >>>>>> Sampath/Santosh,
> >>>>>>
> >>>>>> Could you please try to help Mangal and also while we're at it,
> >>>>>> improve the documentation for configuring of the SMS bridge. He
> along with
> >>>>>> a couple others, Antony and Karthik, are attempting to use and
> inquiring
> >>>>>> about it.
> >>>>>>
> >>>>>> Ed
> >>>>>>
> >>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <
> mangal@bodhiproject.org>
> >>>>>> wrote:
> >>>>>>
> >>>>>>> Hello,
> >>>>>>>
> >>>>>>> Need help to understand the SMS Bridge configuration and working on
> >>>>>>> Fineract 1.1.
> >>>>>>>
> >>>>>>> *Issue:*
> >>>>>>> Unable to POST message on Message-gateway endpoint.
> >>>>>>> *Error:*
> >>>>>>>
> >>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
> >>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST'
> not
> >>>>>>>> supported
> >>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
> >>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
> >>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
> >>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
> >>>>>>>> ava:382)
> >>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
> >>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
> >>>>>>>> Source)
> >>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
> >>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
> >>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
> >>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
> >>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
> >>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
> >>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
> >>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
> >>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
> >>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
> >>>>>>>> at java.lang.Thread.run(Thread.java:748)
> >>>>>>>
> >>>>>>>
> >>>>>>> *Steps*:
> >>>>>>> 1. We have configured the message-gateway and running on Tomcat;
> >>>>>>> 2. Our instance is running on https configured with Tomcat;
> >>>>>>> 3. We have also checked communication with the endpoint;
> >>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws
> an
> >>>>>>> error placed above.
> >>>>>>> 5. Also please clarify that while configuring External SMS Service,
> >>>>>>> is it mandatory to define a port (9191 as shown in the documents).
> Tomcat
> >>>>>>> is running with HTTPS on a pre-defined port.
> >>>>>>>
> >>>>>>> Request to respond.
> >>>>>>>
> >>>>>>> Thank you,
> >>>>>>> Mangal
> >>>>>>>
> >>>>>>> --
> >>>>>>> Mangal Kumar
> >>>>>>> Tech Lead
> >>>>>>> Digital Media Initiatives | Bodhi Project
> >>>>>>> <https://glimmer.finance>
> >>>>>>> Skype: mangal@bodhiproject.org
> >>>>>>> *Leveraging technology for social challenges...*
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> *Ed Cable*
> >>>>>> President/CEO, Mifos Initiative
> >>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
> >>>>>>
> >>>>>> *Collectively Creating a World of 3 Billion Maries | *
> >>>>>> http://mifos.org  <http://facebook.com/mifos>
> >>>>>> <http://www.twitter.com/mifos>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Mangal Kumar
> >>>>> Tech Lead
> >>>>> Digital Media Initiatives | Bodhi Project
> >>>>> <https://glimmer.finance>
> >>>>> Skype: mangal@bodhiproject.org
> >>>>> *Leveraging technology for social challenges...*
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Thanks & Regards
> >>>>
> >>>> Santosh Math
> >>>>
> >>>> *QA Engineer*
> >>>>
> >>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> >>>> | *Office*: +91-080-41208662 |
> >>>>
> >>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> >>>> Bengaluru, Karnataka, 560043 INDIA
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Mangal Kumar
> >>> Tech Lead
> >>> Digital Media Initiatives | Bodhi Project
> >>> <https://glimmer.finance>
> >>> Skype: mangal@bodhiproject.org
> >>> *Leveraging technology for social challenges...*
> >>>
> >>
> >>
> >>
> >> --
> >> Thanks & Regards
> >>
> >> Santosh Math
> >>
> >> *QA Engineer*
> >>
> >> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> >> | *Office*: +91-080-41208662 |
> >>
> >> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> >> Bengaluru, Karnataka, 560043 INDIA
> >>
> >
> >
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
I am online on Skype. Please send me contact request to skype id
santoshmath99

On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <do...@bodhiproject.org>
wrote:

> Thanks! Santosh, Mangal,
>
> I will also join the Skype meeting. My Skype ID: docbrij.
>
> Best,
>
> Brijesh
>
>
> ---------
> Brijesh Kumar, *Ph.D.*
> *Founder & CEO*
> Digital Media Initiatives | Bodhi Project
> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
> +91 955 724 8880 <+91%2095572%2048880>
> Skype: docbrij
> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>
> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal,
>>
>> Can  we have a  call at 4 pm IST , today? I will be online in google
>> hangout for this mail id.
>>
>> Thanks
>> Santosh
>>
>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> We have implemented and configured Message Gateway successfully as per
>>> documentation (https://mifosforge.jira.com/w
>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>
>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>
>>> Currently, we are using Twilio test account. Message gateway is sending
>>> SMS on my mobile number using REST client but when we register it as SMS
>>> bridge webhook in MifosX then it is not sending SMS on specified events.
>>>
>>> SMS Bridge webhook template details are:
>>>
>>> Hook Name: Twilio SMS
>>> Status: true
>>> Activation Date: [2018,7,12]
>>> Updated On: [2018,7,12]
>>> *Events:*
>>> REPAYMENT - LOAN
>>> CREATE - CLIENT
>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>> Phone Number: <Twilio Phone number>
>>> SMS Provider: Twilio
>>> SMS Provider Account Id: <Twilio AccountID>
>>> SMS Provider Token: <Twilio Token>
>>>
>>> Please suggest why MifosX is not sending SMS.
>>>
>>> Thank you,
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal,
>>>>
>>>> I think Antony is referrring to this documentation:
>>>>
>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>> /Message+Gateway+Configuration
>>>>
>>>> Thanks
>>>> Santosh
>>>>
>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <mangal@bodhiproject.org
>>>> > wrote:
>>>>
>>>>> Thank you ED.
>>>>>
>>>>> Anthony could you please share your notes regarding sms gateway
>>>>> implementation? It will help us to implement it.
>>>>>
>>>>> Thank you,
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>>
>>>>>> Sampath/Santosh,
>>>>>>
>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>> about it.
>>>>>>
>>>>>> Ed
>>>>>>
>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>>> Fineract 1.1.
>>>>>>>
>>>>>>> *Issue:*
>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>> *Error:*
>>>>>>>
>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>> supported
>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>> ava:382)
>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>> Source)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>
>>>>>>>
>>>>>>> *Steps*:
>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>>>> error placed above.
>>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>>
>>>>>>> Request to respond.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Mangal
>>>>>>>
>>>>>>> --
>>>>>>> Mangal Kumar
>>>>>>> Tech Lead
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> <https://glimmer.finance>
>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Ed Cable*
>>>>>> President/CEO, Mifos Initiative
>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>
>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>> <http://www.twitter.com/mifos>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>>
>>>> Santosh Math
>>>>
>>>> *QA Engineer*
>>>>
>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>> | *Office*: +91-080-41208662 |
>>>>
>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>
>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>
>


-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
I am online on Skype. Please send me contact request to skype id
santoshmath99

On Fri, Jul 13, 2018 at 11:59 AM, Brijesh Kumar <do...@bodhiproject.org>
wrote:

> Thanks! Santosh, Mangal,
>
> I will also join the Skype meeting. My Skype ID: docbrij.
>
> Best,
>
> Brijesh
>
>
> ---------
> Brijesh Kumar, *Ph.D.*
> *Founder & CEO*
> Digital Media Initiatives | Bodhi Project
> http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
> +91 955 724 8880 <+91%2095572%2048880>
> Skype: docbrij
> LinkedIn: https://in.linkedin.com/in/brijeshkumardmi
>
> On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal,
>>
>> Can  we have a  call at 4 pm IST , today? I will be online in google
>> hangout for this mail id.
>>
>> Thanks
>> Santosh
>>
>> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hi Santosh,
>>>
>>> We have implemented and configured Message Gateway successfully as per
>>> documentation (https://mifosforge.jira.com/w
>>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>>
>>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>>
>>> Currently, we are using Twilio test account. Message gateway is sending
>>> SMS on my mobile number using REST client but when we register it as SMS
>>> bridge webhook in MifosX then it is not sending SMS on specified events.
>>>
>>> SMS Bridge webhook template details are:
>>>
>>> Hook Name: Twilio SMS
>>> Status: true
>>> Activation Date: [2018,7,12]
>>> Updated On: [2018,7,12]
>>> *Events:*
>>> REPAYMENT - LOAN
>>> CREATE - CLIENT
>>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>> Phone Number: <Twilio Phone number>
>>> SMS Provider: Twilio
>>> SMS Provider Account Id: <Twilio AccountID>
>>> SMS Provider Token: <Twilio Token>
>>>
>>> Please suggest why MifosX is not sending SMS.
>>>
>>> Thank you,
>>> Mangal
>>>
>>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>>> santosh@confluxtechnologies.com> wrote:
>>>
>>>> Hi Mangal,
>>>>
>>>> I think Antony is referrring to this documentation:
>>>>
>>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>>> /Message+Gateway+Configuration
>>>>
>>>> Thanks
>>>> Santosh
>>>>
>>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <mangal@bodhiproject.org
>>>> > wrote:
>>>>
>>>>> Thank you ED.
>>>>>
>>>>> Anthony could you please share your notes regarding sms gateway
>>>>> implementation? It will help us to implement it.
>>>>>
>>>>> Thank you,
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>>
>>>>>> Sampath/Santosh,
>>>>>>
>>>>>> Could you please try to help Mangal and also while we're at it,
>>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>>> about it.
>>>>>>
>>>>>> Ed
>>>>>>
>>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>>> Fineract 1.1.
>>>>>>>
>>>>>>> *Issue:*
>>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>>> *Error:*
>>>>>>>
>>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>>> supported
>>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>>> ava:382)
>>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>>> Source)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>>
>>>>>>>
>>>>>>> *Steps*:
>>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>>> 3. We have also checked communication with the endpoint;
>>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>>>> error placed above.
>>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>>
>>>>>>> Request to respond.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Mangal
>>>>>>>
>>>>>>> --
>>>>>>> Mangal Kumar
>>>>>>> Tech Lead
>>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>>> <https://glimmer.finance>
>>>>>>> Skype: mangal@bodhiproject.org
>>>>>>> *Leveraging technology for social challenges...*
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Ed Cable*
>>>>>> President/CEO, Mifos Initiative
>>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>>
>>>>>> *Collectively Creating a World of 3 Billion Maries | *
>>>>>> http://mifos.org  <http://facebook.com/mifos>
>>>>>> <http://www.twitter.com/mifos>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>>
>>>> Santosh Math
>>>>
>>>> *QA Engineer*
>>>>
>>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>>> | *Office*: +91-080-41208662 |
>>>>
>>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>>> Bengaluru, Karnataka, 560043 INDIA
>>>>
>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>
>


-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Brijesh Kumar <do...@bodhiproject.org>.
Thanks! Santosh, Mangal,

I will also join the Skype meeting. My Skype ID: docbrij.

Best,

Brijesh


---------
Brijesh Kumar, *Ph.D.*
*Founder & CEO*
Digital Media Initiatives | Bodhi Project
http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
+91 955 724 8880 <+91%2095572%2048880>
Skype: docbrij
LinkedIn: https://in.linkedin.com/in/brijeshkumardmi

On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> Can  we have a  call at 4 pm IST , today? I will be online in google
> hangout for this mail id.
>
> Thanks
> Santosh
>
> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have implemented and configured Message Gateway successfully as per
>> documentation (https://mifosforge.jira.com/w
>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>
>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>
>> Currently, we are using Twilio test account. Message gateway is sending
>> SMS on my mobile number using REST client but when we register it as SMS
>> bridge webhook in MifosX then it is not sending SMS on specified events.
>>
>> SMS Bridge webhook template details are:
>>
>> Hook Name: Twilio SMS
>> Status: true
>> Activation Date: [2018,7,12]
>> Updated On: [2018,7,12]
>> *Events:*
>> REPAYMENT - LOAN
>> CREATE - CLIENT
>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>> Phone Number: <Twilio Phone number>
>> SMS Provider: Twilio
>> SMS Provider Account Id: <Twilio AccountID>
>> SMS Provider Token: <Twilio Token>
>>
>> Please suggest why MifosX is not sending SMS.
>>
>> Thank you,
>> Mangal
>>
>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal,
>>>
>>> I think Antony is referrring to this documentation:
>>>
>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>> /Message+Gateway+Configuration
>>>
>>> Thanks
>>> Santosh
>>>
>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thank you ED.
>>>>
>>>> Anthony could you please share your notes regarding sms gateway
>>>> implementation? It will help us to implement it.
>>>>
>>>> Thank you,
>>>>
>>>>
>>>>
>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>
>>>>> Sampath/Santosh,
>>>>>
>>>>> Could you please try to help Mangal and also while we're at it,
>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>> about it.
>>>>>
>>>>> Ed
>>>>>
>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>> Fineract 1.1.
>>>>>>
>>>>>> *Issue:*
>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>> *Error:*
>>>>>>
>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>> supported
>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>> ava:382)
>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>> Source)
>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>
>>>>>>
>>>>>> *Steps*:
>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>> 3. We have also checked communication with the endpoint;
>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>>> error placed above.
>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>
>>>>>> Request to respond.
>>>>>>
>>>>>> Thank you,
>>>>>> Mangal
>>>>>>
>>>>>> --
>>>>>> Mangal Kumar
>>>>>> Tech Lead
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> <https://glimmer.finance>
>>>>>> Skype: mangal@bodhiproject.org
>>>>>> *Leveraging technology for social challenges...*
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Ed Cable*
>>>>> President/CEO, Mifos Initiative
>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>
>>>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>>>>   <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Santosh Math
>>>
>>> *QA Engineer*
>>>
>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>> | *Office*: +91-080-41208662 |
>>>
>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>> Bengaluru, Karnataka, 560043 INDIA
>>>
>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Brijesh Kumar <do...@bodhiproject.org>.
Thanks! Santosh, Mangal,

I will also join the Skype meeting. My Skype ID: docbrij.

Best,

Brijesh


---------
Brijesh Kumar, *Ph.D.*
*Founder & CEO*
Digital Media Initiatives | Bodhi Project
http://dmi.systems  <http://dmi.systems>| https://glimmer.finance
+91 955 724 8880 <+91%2095572%2048880>
Skype: docbrij
LinkedIn: https://in.linkedin.com/in/brijeshkumardmi

On Fri, Jul 13, 2018 at 11:40 AM, Santosh Math <
santosh@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> Can  we have a  call at 4 pm IST , today? I will be online in google
> hangout for this mail id.
>
> Thanks
> Santosh
>
> On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hi Santosh,
>>
>> We have implemented and configured Message Gateway successfully as per
>> documentation (https://mifosforge.jira.com/w
>> iki/spaces/docs/pages/166658049/Message+Gateway+Configuration).
>>
>> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>>
>> Currently, we are using Twilio test account. Message gateway is sending
>> SMS on my mobile number using REST client but when we register it as SMS
>> bridge webhook in MifosX then it is not sending SMS on specified events.
>>
>> SMS Bridge webhook template details are:
>>
>> Hook Name: Twilio SMS
>> Status: true
>> Activation Date: [2018,7,12]
>> Updated On: [2018,7,12]
>> *Events:*
>> REPAYMENT - LOAN
>> CREATE - CLIENT
>> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>> Phone Number: <Twilio Phone number>
>> SMS Provider: Twilio
>> SMS Provider Account Id: <Twilio AccountID>
>> SMS Provider Token: <Twilio Token>
>>
>> Please suggest why MifosX is not sending SMS.
>>
>> Thank you,
>> Mangal
>>
>> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
>> santosh@confluxtechnologies.com> wrote:
>>
>>> Hi Mangal,
>>>
>>> I think Antony is referrring to this documentation:
>>>
>>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>>> /Message+Gateway+Configuration
>>>
>>> Thanks
>>> Santosh
>>>
>>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Thank you ED.
>>>>
>>>> Anthony could you please share your notes regarding sms gateway
>>>> implementation? It will help us to implement it.
>>>>
>>>> Thank you,
>>>>
>>>>
>>>>
>>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>>
>>>>> Sampath/Santosh,
>>>>>
>>>>> Could you please try to help Mangal and also while we're at it,
>>>>> improve the documentation for configuring of the SMS bridge. He along with
>>>>> a couple others, Antony and Karthik, are attempting to use and inquiring
>>>>> about it.
>>>>>
>>>>> Ed
>>>>>
>>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>>> Fineract 1.1.
>>>>>>
>>>>>> *Issue:*
>>>>>> Unable to POST message on Message-gateway endpoint.
>>>>>> *Error:*
>>>>>>
>>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>>> supported
>>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>>> ava:382)
>>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown
>>>>>>> Source)
>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>>
>>>>>>
>>>>>> *Steps*:
>>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>>> 3. We have also checked communication with the endpoint;
>>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>>> error placed above.
>>>>>> 5. Also please clarify that while configuring External SMS Service,
>>>>>> is it mandatory to define a port (9191 as shown in the documents). Tomcat
>>>>>> is running with HTTPS on a pre-defined port.
>>>>>>
>>>>>> Request to respond.
>>>>>>
>>>>>> Thank you,
>>>>>> Mangal
>>>>>>
>>>>>> --
>>>>>> Mangal Kumar
>>>>>> Tech Lead
>>>>>> Digital Media Initiatives | Bodhi Project
>>>>>> <https://glimmer.finance>
>>>>>> Skype: mangal@bodhiproject.org
>>>>>> *Leveraging technology for social challenges...*
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Ed Cable*
>>>>> President/CEO, Mifos Initiative
>>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>>
>>>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>>>>   <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Santosh Math
>>>
>>> *QA Engineer*
>>>
>>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>>> | *Office*: +91-080-41208662 |
>>>
>>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>>> Bengaluru, Karnataka, 560043 INDIA
>>>
>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

Can  we have a  call at 4 pm IST , today? I will be online in google
hangout for this mail id.

Thanks
Santosh

On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have implemented and configured Message Gateway successfully as per
> documentation (https://mifosforge.jira.com/wiki/spaces/docs/pages/16665804
> 9/Message+Gateway+Configuration).
>
> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>
> Currently, we are using Twilio test account. Message gateway is sending
> SMS on my mobile number using REST client but when we register it as SMS
> bridge webhook in MifosX then it is not sending SMS on specified events.
>
> SMS Bridge webhook template details are:
>
> Hook Name: Twilio SMS
> Status: true
> Activation Date: [2018,7,12]
> Updated On: [2018,7,12]
> *Events:*
> REPAYMENT - LOAN
> CREATE - CLIENT
> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> Phone Number: <Twilio Phone number>
> SMS Provider: Twilio
> SMS Provider Account Id: <Twilio AccountID>
> SMS Provider Token: <Twilio Token>
>
> Please suggest why MifosX is not sending SMS.
>
> Thank you,
> Mangal
>
> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal,
>>
>> I think Antony is referrring to this documentation:
>>
>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>> /Message+Gateway+Configuration
>>
>> Thanks
>> Santosh
>>
>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thank you ED.
>>>
>>> Anthony could you please share your notes regarding sms gateway
>>> implementation? It will help us to implement it.
>>>
>>> Thank you,
>>>
>>>
>>>
>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>
>>>> Sampath/Santosh,
>>>>
>>>> Could you please try to help Mangal and also while we're at it, improve
>>>> the documentation for configuring of the SMS bridge. He along with a couple
>>>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>>>
>>>> Ed
>>>>
>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>> Fineract 1.1.
>>>>>
>>>>> *Issue:*
>>>>> Unable to POST message on Message-gateway endpoint.
>>>>> *Error:*
>>>>>
>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>> supported
>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>> ava:382)
>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>
>>>>>
>>>>> *Steps*:
>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>> 3. We have also checked communication with the endpoint;
>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>> error placed above.
>>>>> 5. Also please clarify that while configuring External SMS Service, is
>>>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>>>> running with HTTPS on a pre-defined port.
>>>>>
>>>>> Request to respond.
>>>>>
>>>>> Thank you,
>>>>> Mangal
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>>>
>>>> --
>>>> *Ed Cable*
>>>> President/CEO, Mifos Initiative
>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>
>>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>>
>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

Can  we have a  call at 4 pm IST , today? I will be online in google
hangout for this mail id.

Thanks
Santosh

On Fri, Jul 13, 2018 at 11:37 AM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Hi Santosh,
>
> We have implemented and configured Message Gateway successfully as per
> documentation (https://mifosforge.jira.com/wiki/spaces/docs/pages/16665804
> 9/Message+Gateway+Configuration).
>
> https://mfi.glimmer.finance/message-gateway-0.0.1/sms
>
> Currently, we are using Twilio test account. Message gateway is sending
> SMS on my mobile number using REST client but when we register it as SMS
> bridge webhook in MifosX then it is not sending SMS on specified events.
>
> SMS Bridge webhook template details are:
>
> Hook Name: Twilio SMS
> Status: true
> Activation Date: [2018,7,12]
> Updated On: [2018,7,12]
> *Events:*
> REPAYMENT - LOAN
> CREATE - CLIENT
> Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
> Phone Number: <Twilio Phone number>
> SMS Provider: Twilio
> SMS Provider Account Id: <Twilio AccountID>
> SMS Provider Token: <Twilio Token>
>
> Please suggest why MifosX is not sending SMS.
>
> Thank you,
> Mangal
>
> On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <
> santosh@confluxtechnologies.com> wrote:
>
>> Hi Mangal,
>>
>> I think Antony is referrring to this documentation:
>>
>> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
>> /Message+Gateway+Configuration
>>
>> Thanks
>> Santosh
>>
>> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Thank you ED.
>>>
>>> Anthony could you please share your notes regarding sms gateway
>>> implementation? It will help us to implement it.
>>>
>>> Thank you,
>>>
>>>
>>>
>>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>>
>>>> Sampath/Santosh,
>>>>
>>>> Could you please try to help Mangal and also while we're at it, improve
>>>> the documentation for configuring of the SMS bridge. He along with a couple
>>>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>>>
>>>> Ed
>>>>
>>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Need help to understand the SMS Bridge configuration and working on
>>>>> Fineract 1.1.
>>>>>
>>>>> *Issue:*
>>>>> Unable to POST message on Message-gateway endpoint.
>>>>> *Error:*
>>>>>
>>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>>> supported
>>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>>> ava:382)
>>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>>
>>>>>
>>>>> *Steps*:
>>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>>> 2. Our instance is running on https configured with Tomcat;
>>>>> 3. We have also checked communication with the endpoint;
>>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>>> error placed above.
>>>>> 5. Also please clarify that while configuring External SMS Service, is
>>>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>>>> running with HTTPS on a pre-defined port.
>>>>>
>>>>> Request to respond.
>>>>>
>>>>> Thank you,
>>>>> Mangal
>>>>>
>>>>> --
>>>>> Mangal Kumar
>>>>> Tech Lead
>>>>> Digital Media Initiatives | Bodhi Project
>>>>> <https://glimmer.finance>
>>>>> Skype: mangal@bodhiproject.org
>>>>> *Leveraging technology for social challenges...*
>>>>>
>>>>
>>>>
>>>> --
>>>> *Ed Cable*
>>>> President/CEO, Mifos Initiative
>>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>>
>>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>>
>>>>
>>>
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Santosh Math
>>
>> *QA Engineer*
>>
>> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
>> | *Office*: +91-080-41208662 |
>>
>> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
>> Bengaluru, Karnataka, 560043 INDIA
>>
>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have implemented and configured Message Gateway successfully as per
documentation (https://mifosforge.jira.com/wiki/spaces/docs/pages/16665804
9/Message+Gateway+Configuration).

https://mfi.glimmer.finance/message-gateway-0.0.1/sms

Currently, we are using Twilio test account. Message gateway is sending SMS
on my mobile number using REST client but when we register it as SMS bridge
webhook in MifosX then it is not sending SMS on specified events.

SMS Bridge webhook template details are:

Hook Name: Twilio SMS
Status: true
Activation Date: [2018,7,12]
Updated On: [2018,7,12]
*Events:*
REPAYMENT - LOAN
CREATE - CLIENT
Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
Phone Number: <Twilio Phone number>
SMS Provider: Twilio
SMS Provider Account Id: <Twilio AccountID>
SMS Provider Token: <Twilio Token>

Please suggest why MifosX is not sending SMS.

Thank you,
Mangal

On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <santosh@confluxtechnologies.
com> wrote:

> Hi Mangal,
>
> I think Antony is referrring to this documentation:
>
> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
> /Message+Gateway+Configuration
>
> Thanks
> Santosh
>
> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Thank you ED.
>>
>> Anthony could you please share your notes regarding sms gateway
>> implementation? It will help us to implement it.
>>
>> Thank you,
>>
>>
>>
>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>
>>> Sampath/Santosh,
>>>
>>> Could you please try to help Mangal and also while we're at it, improve
>>> the documentation for configuring of the SMS bridge. He along with a couple
>>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>>
>>> Ed
>>>
>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Need help to understand the SMS Bridge configuration and working on
>>>> Fineract 1.1.
>>>>
>>>> *Issue:*
>>>> Unable to POST message on Message-gateway endpoint.
>>>> *Error:*
>>>>
>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>> supported
>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>> ava:382)
>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>
>>>>
>>>> *Steps*:
>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>> 2. Our instance is running on https configured with Tomcat;
>>>> 3. We have also checked communication with the endpoint;
>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>> error placed above.
>>>> 5. Also please clarify that while configuring External SMS Service, is
>>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>>> running with HTTPS on a pre-defined port.
>>>>
>>>> Request to respond.
>>>>
>>>> Thank you,
>>>> Mangal
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>> --
>>> *Ed Cable*
>>> President/CEO, Mifos Initiative
>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>
>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>
>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Hi Santosh,

We have implemented and configured Message Gateway successfully as per
documentation (https://mifosforge.jira.com/wiki/spaces/docs/pages/16665804
9/Message+Gateway+Configuration).

https://mfi.glimmer.finance/message-gateway-0.0.1/sms

Currently, we are using Twilio test account. Message gateway is sending SMS
on my mobile number using REST client but when we register it as SMS bridge
webhook in MifosX then it is not sending SMS on specified events.

SMS Bridge webhook template details are:

Hook Name: Twilio SMS
Status: true
Activation Date: [2018,7,12]
Updated On: [2018,7,12]
*Events:*
REPAYMENT - LOAN
CREATE - CLIENT
Payload URL: https://mfi.glimmer.finance/message-gateway-0.0.1/sms
Phone Number: <Twilio Phone number>
SMS Provider: Twilio
SMS Provider Account Id: <Twilio AccountID>
SMS Provider Token: <Twilio Token>

Please suggest why MifosX is not sending SMS.

Thank you,
Mangal

On Fri, Jul 13, 2018 at 11:01 AM, Santosh Math <santosh@confluxtechnologies.
com> wrote:

> Hi Mangal,
>
> I think Antony is referrring to this documentation:
>
> https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049
> /Message+Gateway+Configuration
>
> Thanks
> Santosh
>
> On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Thank you ED.
>>
>> Anthony could you please share your notes regarding sms gateway
>> implementation? It will help us to implement it.
>>
>> Thank you,
>>
>>
>>
>> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>>
>>> Sampath/Santosh,
>>>
>>> Could you please try to help Mangal and also while we're at it, improve
>>> the documentation for configuring of the SMS bridge. He along with a couple
>>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>>
>>> Ed
>>>
>>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Need help to understand the SMS Bridge configuration and working on
>>>> Fineract 1.1.
>>>>
>>>> *Issue:*
>>>> Unable to POST message on Message-gateway endpoint.
>>>> *Error:*
>>>>
>>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>>> supported
>>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.j
>>>>> ava:382)
>>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>> kProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>>> at org.apache.fineract.infrastructure.hooks.processor.TwilioHoo
>>>>> kProcessor.process(TwilioHookProcessor.java:72)
>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>>> at java.lang.Thread.run(Thread.java:748)
>>>>
>>>>
>>>> *Steps*:
>>>> 1. We have configured the message-gateway and running on Tomcat;
>>>> 2. Our instance is running on https configured with Tomcat;
>>>> 3. We have also checked communication with the endpoint;
>>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>>> error placed above.
>>>> 5. Also please clarify that while configuring External SMS Service, is
>>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>>> running with HTTPS on a pre-defined port.
>>>>
>>>> Request to respond.
>>>>
>>>> Thank you,
>>>> Mangal
>>>>
>>>> --
>>>> Mangal Kumar
>>>> Tech Lead
>>>> Digital Media Initiatives | Bodhi Project
>>>> <https://glimmer.finance>
>>>> Skype: mangal@bodhiproject.org
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>> --
>>> *Ed Cable*
>>> President/CEO, Mifos Initiative
>>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>>
>>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>>
>>>
>>
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
>
> --
> Thanks & Regards
>
> Santosh Math
>
> *QA Engineer*
>
> *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
> | *Office*: +91-080-41208662 |
>
> *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
> Bengaluru, Karnataka, 560043 INDIA
>



-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

I think Antony is referrring to this documentation:

https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049/Message+Gateway+Configuration

Thanks
Santosh

On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thank you ED.
>
> Anthony could you please share your notes regarding sms gateway
> implementation? It will help us to implement it.
>
> Thank you,
>
>
>
> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>
>> Sampath/Santosh,
>>
>> Could you please try to help Mangal and also while we're at it, improve
>> the documentation for configuring of the SMS bridge. He along with a couple
>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>
>> Ed
>>
>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hello,
>>>
>>> Need help to understand the SMS Bridge configuration and working on
>>> Fineract 1.1.
>>>
>>> *Issue:*
>>> Unable to POST message on Message-gateway endpoint.
>>> *Error:*
>>>
>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>> supported
>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>> at org.apache.fineract.infrastructure.hooks.processor.
>>>> TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>> at org.apache.fineract.infrastructure.hooks.processor.
>>>> TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>
>>>
>>> *Steps*:
>>> 1. We have configured the message-gateway and running on Tomcat;
>>> 2. Our instance is running on https configured with Tomcat;
>>> 3. We have also checked communication with the endpoint;
>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>> error placed above.
>>> 5. Also please clarify that while configuring External SMS Service, is
>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>> running with HTTPS on a pre-defined port.
>>>
>>> Request to respond.
>>>
>>> Thank you,
>>> Mangal
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>> --
>> *Ed Cable*
>> President/CEO, Mifos Initiative
>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>
>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>
>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Santosh Math <sa...@confluxtechnologies.com>.
Hi Mangal,

I think Antony is referrring to this documentation:

https://mifosforge.jira.com/wiki/spaces/docs/pages/166658049/Message+Gateway+Configuration

Thanks
Santosh

On Fri, Jul 13, 2018 at 10:49 AM, Mangal Kumar <ma...@bodhiproject.org>
wrote:

> Thank you ED.
>
> Anthony could you please share your notes regarding sms gateway
> implementation? It will help us to implement it.
>
> Thank you,
>
>
>
> On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:
>
>> Sampath/Santosh,
>>
>> Could you please try to help Mangal and also while we're at it, improve
>> the documentation for configuring of the SMS bridge. He along with a couple
>> others, Antony and Karthik, are attempting to use and inquiring about it.
>>
>> Ed
>>
>> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
>> wrote:
>>
>>> Hello,
>>>
>>> Need help to understand the SMS Bridge configuration and working on
>>> Fineract 1.1.
>>>
>>> *Issue:*
>>> Unable to POST message on Message-gateway endpoint.
>>> *Error:*
>>>
>>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>>> supported
>>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>>> retrofit.RetrofitError: 405 Method Not Allowed
>>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>>> at org.apache.fineract.infrastructure.hooks.processor.
>>>> TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>>>> at org.apache.fineract.infrastructure.hooks.processor.
>>>> TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>> okListener.onApplicationEvent(FineractHookListener.java:75)
>>>> at org.apache.fineract.infrastructure.hooks.listener.FineractHo
>>>> okListener.onApplicationEvent(FineractHookListener.java:36)
>>>> at org.springframework.context.event.SimpleApplicationEventMult
>>>> icaster$1.run(SimpleApplicationEventMulticaster.java:93)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>
>>>
>>> *Steps*:
>>> 1. We have configured the message-gateway and running on Tomcat;
>>> 2. Our instance is running on https configured with Tomcat;
>>> 3. We have also checked communication with the endpoint;
>>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>>> error placed above.
>>> 5. Also please clarify that while configuring External SMS Service, is
>>> it mandatory to define a port (9191 as shown in the documents). Tomcat is
>>> running with HTTPS on a pre-defined port.
>>>
>>> Request to respond.
>>>
>>> Thank you,
>>> Mangal
>>>
>>> --
>>> Mangal Kumar
>>> Tech Lead
>>> Digital Media Initiatives | Bodhi Project
>>> <https://glimmer.finance>
>>> Skype: mangal@bodhiproject.org
>>> *Leveraging technology for social challenges...*
>>>
>>
>>
>> --
>> *Ed Cable*
>> President/CEO, Mifos Initiative
>> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>>
>> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
>> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>>
>>
>
>
> --
> Mangal Kumar
> Tech Lead
> Digital Media Initiatives | Bodhi Project
> <https://glimmer.finance>
> Skype: mangal@bodhiproject.org
> *Leveraging technology for social challenges...*
>



-- 
Thanks & Regards

Santosh Math

*QA Engineer*

*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>*
| *Office*: +91-080-41208662 |

*Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block,
Bengaluru, Karnataka, 560043 INDIA

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thank you ED.

Anthony could you please share your notes regarding sms gateway
implementation? It will help us to implement it.

Thank you,



On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:

> Sampath/Santosh,
>
> Could you please try to help Mangal and also while we're at it, improve
> the documentation for configuring of the SMS bridge. He along with a couple
> others, Antony and Karthik, are attempting to use and inquiring about it.
>
> Ed
>
> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hello,
>>
>> Need help to understand the SMS Bridge configuration and working on
>> Fineract 1.1.
>>
>> *Issue:*
>> Unable to POST message on Message-gateway endpoint.
>> *Error:*
>>
>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>> supported
>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>> retrofit.RetrofitError: 405 Method Not Allowed
>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>> at org.apache.fineract.infrastructure.hooks.
>>> processor.TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>>> at org.apache.fineract.infrastructure.hooks.
>>> processor.TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>>> at org.apache.fineract.infrastructure.hooks.listener.
>>> FineractHookListener.onApplicationEvent(FineractHookListener.java:75)
>>> at org.apache.fineract.infrastructure.hooks.listener.
>>> FineractHookListener.onApplicationEvent(FineractHookListener.java:36)
>>> at org.springframework.context.event.SimpleApplicationEventMulticas
>>> ter$1.run(SimpleApplicationEventMulticaster.java:93)
>>> at java.lang.Thread.run(Thread.java:748)
>>
>>
>> *Steps*:
>> 1. We have configured the message-gateway and running on Tomcat;
>> 2. Our instance is running on https configured with Tomcat;
>> 3. We have also checked communication with the endpoint;
>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>> error placed above.
>> 5. Also please clarify that while configuring External SMS Service, is it
>> mandatory to define a port (9191 as shown in the documents). Tomcat is
>> running with HTTPS on a pre-defined port.
>>
>> Request to respond.
>>
>> Thank you,
>> Mangal
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
> --
> *Ed Cable*
> President/CEO, Mifos Initiative
> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>
> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>
>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*

Re: SMS Bridge Configuration on Fineract 1.1

Posted by Mangal Kumar <ma...@bodhiproject.org>.
Thank you ED.

Anthony could you please share your notes regarding sms gateway
implementation? It will help us to implement it.

Thank you,



On Thu, Jul 12, 2018 at 10:17 PM, Ed Cable <ed...@mifos.org> wrote:

> Sampath/Santosh,
>
> Could you please try to help Mangal and also while we're at it, improve
> the documentation for configuring of the SMS bridge. He along with a couple
> others, Antony and Karthik, are attempting to use and inquiring about it.
>
> Ed
>
> On Thu, Jul 12, 2018 at 7:26 AM Mangal Kumar <ma...@bodhiproject.org>
> wrote:
>
>> Hello,
>>
>> Need help to understand the SMS Bridge configuration and working on
>> Fineract 1.1.
>>
>> *Issue:*
>> Unable to POST message on Message-gateway endpoint.
>> *Error:*
>>
>>> 2018-07-12 14:13:28.977  WARN 8522 --- [bio-443-exec-81]
>>> o.s.web.servlet.PageNotFound             : Request method 'POST' not
>>> supported
>>> Exception in thread "SimpleAsyncTaskExecutor-11347"
>>> retrofit.RetrofitError: 405 Method Not Allowed
>>> at retrofit.RetrofitError.httpError(RetrofitError.java:39)
>>> at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:382)
>>> at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
>>> at com.sun.proxy.$Proxy455.sendSmsBridgeConfigRequest(Unknown Source)
>>> at org.apache.fineract.infrastructure.hooks.
>>> processor.TwilioHookProcessor.sendRequest(TwilioHookProcessor.java:96)
>>> at org.apache.fineract.infrastructure.hooks.
>>> processor.TwilioHookProcessor.process(TwilioHookProcessor.java:72)
>>> at org.apache.fineract.infrastructure.hooks.listener.
>>> FineractHookListener.onApplicationEvent(FineractHookListener.java:75)
>>> at org.apache.fineract.infrastructure.hooks.listener.
>>> FineractHookListener.onApplicationEvent(FineractHookListener.java:36)
>>> at org.springframework.context.event.SimpleApplicationEventMulticas
>>> ter$1.run(SimpleApplicationEventMulticaster.java:93)
>>> at java.lang.Thread.run(Thread.java:748)
>>
>>
>> *Steps*:
>> 1. We have configured the message-gateway and running on Tomcat;
>> 2. Our instance is running on https configured with Tomcat;
>> 3. We have also checked communication with the endpoint;
>> 4. When we configure with MifosX as SMS Bridge Webhook, it throws an
>> error placed above.
>> 5. Also please clarify that while configuring External SMS Service, is it
>> mandatory to define a port (9191 as shown in the documents). Tomcat is
>> running with HTTPS on a pre-defined port.
>>
>> Request to respond.
>>
>> Thank you,
>> Mangal
>>
>> --
>> Mangal Kumar
>> Tech Lead
>> Digital Media Initiatives | Bodhi Project
>> <https://glimmer.finance>
>> Skype: mangal@bodhiproject.org
>> *Leveraging technology for social challenges...*
>>
>
>
> --
> *Ed Cable*
> President/CEO, Mifos Initiative
> edcable@mifos.org | Skype: edcable | Mobile: +1.484.477.8649
>
> *Collectively Creating a World of 3 Billion Maries | *http://mifos.org
> <http://facebook.com/mifos>  <http://www.twitter.com/mifos>
>
>


-- 
Mangal Kumar
Tech Lead
Digital Media Initiatives | Bodhi Project
<https://glimmer.finance>
Skype: mangal@bodhiproject.org
*Leveraging technology for social challenges...*