git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMS Bridge Configuration on Fineract 1.1


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 <mangal@xxxxxxxxxxxxxxxx>
> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx>
>>> 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@xxxxxxxxxxxxxxxx
>>>> *Leveraging technology for social challenges...*
>>>>
>>>
>>>
>>> --
>>> *Ed Cable*
>>> President/CEO, Mifos Initiative
>>> edcable@xxxxxxxxx | 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@xxxxxxxxxxxxxxxx
>> *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@xxxxxxxxxxxxxxxx
*Leveraging technology for social challenges...*