Notifications and Event Forwarding

James5 years ago

We use both SMS notifications and event forwarding for various parts of our traccar implementation.
Since upgrading (3.16 --> 4.2) some of this seems to have stopped working.

We are using a local SMPP server for SMS notifications and have this configured in the xml file. I understand that I now need to add notificator.types, which I have done:
<entry key='notificator.types'>web,mail,sms</entry>

However this seems to have stopped events such as IgnitionOn and deviceMoving from being sent to my event forwarding destination, as configured here:

<entry key='notificator.types'>web,mail,sms</entry>'	
<entry key='sms.smpp.enable'>true</entry>
    <entry key='sms.smpp.host'>localhost</entry>
    <entry key='sms.smpp.port'>2775</entry>
    <entry key='sms.smpp.username'>traccar</entry>
    <entry key='sms.smpp.password'>mypass</entry>
    <entry key='sms.smpp.notificationsCharset'>GSM</entry>
    <entry key='sms.smpp.notificationsDataCoding'>0</entry>
    <entry key='sms.smpp.sourceAddress'>+44123456789</entry>
    
        <!-- position forwarding -->
    <entry key='forward.enable'>true</entry>
    <entry key='forward.json'>true</entry>
    <entry key='forward.url'>https://mypositionhandler</entry>
    
    <!-- event forwarding -->
    <entry key="event.forward.enable">true</entry>
    <entry key='event.forward.url'>https://myeventhandler</entry>
    <!-- <entry key='event.forward.header'></entry> -->

if I remove the notificator types then I get my events in positions back again

Is there an undocumented (or documented that I can't find) notificator that I need to add?

Anton Tananaev5 years ago

I believe instead of sms.smpp.enable you should use sms.enable. Don't see any other issues.

James5 years ago

Thanks Anton, is that instead of adding in the notificator.types ?

Anton Tananaev5 years ago

No. Not sure where you got that idea from. Please read documentation.

James5 years ago

Thanks, the problem I'm having is that when I add notificator.types I stop receiving event.type notifications (eg IgnitionOn etc) on my http event handler

James5 years ago

I can confirm that after correcting <entry key='sms.smpp.enable'>true</entry> to <entry key='sms.enable'>true</entry> both event forwarding and SMS are working correctly.

Thanks
James