[midPoint] SMS Notification

Martin Lízner - AMI Praha a.s. martin.lizner at ami.cz
Wed Feb 22 12:52:29 CET 2017


Hi, not sure if it helps, but we are just now coding our custom Transport
class to call SOAP-based SMS GW. Its fairly easy, basically just copy and
rename SimpleSmsTransport class, change NAME to specify new transport name
(smsBmg in our case)

Test it with bulk action:

<s:pipeline xmlns:s="
http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">
<s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s:SearchExpressionType">
<s:type>SystemConfigurationType</s:type>
</s:expression>
<s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s:ActionExpressionType">
<s:type>notify</s:type>
<s:parameter>
<s:name>handler</s:name>
<c:value xsi:type="c:EventHandlerType" xmlns:c="
http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<c:generalNotifier>
<c:recipientExpression>
<c:value>+420737745111</c:value>
</c:recipientExpression>
<c:bodyExpression>
<c:value>ZPRAVA-12345</c:value>
</c:bodyExpression>
<c:transport>smsBmg</c:transport>
</c:generalNotifier>
</c:value>
</s:parameter>
</s:expression>
</s:pipeline>

You can use SystemConfig to hold some environmental properties:
<c:sms>
  <c:defaultFrom>$(vfcz.bmg.fromNo)</c:defaultFrom>
  <c:gateway>
  <c:url>
  <c:value>$(vfcz.bmg.url)</c:value>
  </c:url>
  <c:username>$(vfcz.bmg.username)</c:username>
  <!--

<c:redirectToFile>/opt/SP/idm/midpoint/export/sms-notifications.txt</c:redirectToFile>
  -->
  </c:gateway>
  </c:sms>

M.

Martin Lízner
solution architect

gsm: [+420] 737 745 571
e-mail: martin.lizner at ami.cz


AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel.: [+420] 274 783 239
web: www.ami.cz



[image: AMI Praha a.s.] <http://www.skyidentity.com/>

Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně
písemnou formu.


2017-02-22 12:43 GMT+01:00 mceylan <mrveceylan at gmail.com>:

> Can you help me?
>
> 2017-02-22 8:30 GMT+02:00 mceylan <mrveceylan at gmail.com>:
>
>> hi, thanks for you answer. I did not succeed when I tried.
>>
>> systemConfiguration file in add
>>
>>
>> <notificationConfiguration>
>>       <sms name="default">
>>          <gateway>
>>             <url>
>>                <script>
>>                   <code>"http://my-sms-gateway/a
>> pi/v3/sendsms/plain?number=" + 01234568745 + "&text=" + deneme</code>
>>                </script>
>>             </url>
>>          </gateway>
>>       </sms>
>>    </notificationConfiguration>
>>
>>
>> working sms method
>>
>>
>> http://my-sms-gateway/api/v3/sendsms/plain?user=ABC&password
>> =DEF&sender=XXX&SMSText=XXX&GSM=01234568745
>>
>>
>> Can you help me?
>>
>>
>> 2017-02-17 18:41 GMT+02:00 Jason Everling <jeverling at bshp.edu>:
>>
>>> We use clickatell as our sms gateway for various applications, including
>>> midpoint, and it works great. We haven't had any issues with them,
>>>
>>> JASON
>>>
>>> On Fri, Feb 17, 2017 at 2:57 AM, Oskar Butovič - AMI Praha a.s. <
>>> oskar.butovic at ami.cz> wrote:
>>>
>>>> Hi,
>>>>
>>>> you can use standard notification and direct it towards sms gateway
>>>> instead of email. see: https://wiki.evolveum.com
>>>> /display/midPoint/Configuring+notifications
>>>>
>>>> Best Regards
>>>>
>>>> Oskar Butovič
>>>>
>>>> 2017-02-17 9:52 GMT+01:00 mceylan <mrveceylan at gmail.com>:
>>>>
>>>>> Hi,
>>>>>
>>>>> How can I make changes to the accounts of users to provide information
>>>>> to the user via SMS?
>>>>>
>>>>> Can you help me?
>>>>>
>>>>> --
>>>>> Merve CEYLAN
>>>>>
>>>>> _______________________________________________
>>>>> midPoint mailing list
>>>>> midPoint at lists.evolveum.com
>>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Oskar Butovič
>>>> solution architect
>>>>
>>>> gsm: [+420] 774 480 101 <+420%20774%20480%20101>
>>>> e-mail: oskar.butovic at ami.cz
>>>>
>>>>
>>>> AMI Praha a.s.
>>>> Pláničkova 11
>>>> 162 00 Praha 6
>>>> tel.: [+420] 274 783 239 <+420%20274%20783%20239>
>>>> web: www.ami.cz
>>>>
>>>>
>>>> [image: AMI Praha a.s.]
>>>>
>>>> [image: AMI Praha a.s.]
>>>> <http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>>>>
>>>> Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
>>>> společnost AMI Praha a.s.
>>>> jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít
>>>> výhradně písemnou formu.
>>>>
>>>>
>>>> _______________________________________________
>>>> midPoint mailing list
>>>> midPoint at lists.evolveum.com
>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>
>>>>
>>>
>>> _______________________________________________
>>> midPoint mailing list
>>> midPoint at lists.evolveum.com
>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>
>>>
>>
>>
>> --
>> Merve CEYLAN
>>
>
>
>
> --
> Merve CEYLAN
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170222/de99a295/attachment.htm>


More information about the midPoint mailing list