Hello everyone,
I am trying to configure Traccar to call a custom URL with a phone number whenever a specific event occurs. I have the following entries in my configuration:
<entry key='notificator.types'>web,sms,firebase,mail,web1</entry>
<entry key='notificator.web1.url'>http://yourserver/middleman.php?campaign_id=your_campaign_id&msisdn={phone}</entry>
My goal is to run the URL http://yourserver/middleman.php?campaign_id=your_campaign_id&msisdn={phone}
where {phone}
is replaced with the actual phone number of the device or user when an event is triggered.
I would like to know if this setup works and if Traccar will correctly substitute the {phone}
placeholder with the actual phone number when the event occurs. If anyone has experience with similar configurations or can provide guidance on ensuring this works, I would greatly appreciate your help.
Thank you!
I checked, but I don't understand. Does it work that way or not?
Thank you for your response
Have you found the configuration keys you're using on that page?
if web is not correct configuration key? So please tell me correct key and formate.
Hamza what platform are you using? I'm interested too for calling events
Hello everyone,
I am trying to configure Traccar to call a custom URL with a phone number whenever a specific event occurs. I have the following entries in my configuration:
<entry key='notificator.types'>web,sms,firebase,mail,web1</entry> <entry key='notificator.web1.url'>http://yourserver/middleman.php?campaign_id=your_campaign_id&msisdn={phone}</entry>
My goal is to run the URL
http://yourserver/middleman.php?campaign_id=your_campaign_id&msisdn={phone}
where{phone}
is replaced with the actual phone number of the device or user when an event is triggered.I would like to know if this setup works and if Traccar will correctly substitute the
{phone}
placeholder with the actual phone number when the event occurs. If anyone has experience with similar configurations or can provide guidance on ensuring this works, I would greatly appreciate your help.Thank you!