SMS notifications with a field other than Phone

Victor Butler3 years ago

Hi Anton,

Documentation says Phone field should be added in order to send SMS to a device but is it possible to configure another custom attribute in the "to" value instead of {phone}?
For example, we add a device attribute called smsnumber and change the configuration to something like this: "to": "{smsnumber}"?

<entry key='sms.http.url'>https://www.traccar.org/sms/</entry>
<entry key='sms.http.authorization'>TOKEN</entry>
<entry key='sms.http.template'>
    {
        "to": "{phone}",
        "message": "{message}"
    }
</entry>
Anton Tananaev3 years ago

Not possible out of the box. You would have to change the code to achieve it.