Traccar twilio notifications

Segads3 years ago

Hello there, I have upgrated my twilio account with credits,any help is appreciated!!
The number in twilio is a whatsapp confirmed number

i have this error on traccar

{"code": 21212, "message": "The 'From' number whatsapp: xxxxxxxx is not a valid phone number, shortcode, or alphanumeric sender ID.", "more_info": "https://www.twilio.com/docs/errors/21212", "status": 400} - MessageException (HttpSmsClient:97 < NotificatorSms:48 < NotificationResource:63 < ...)
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>
     
    <entry key="config.default">./conf/default.xml</entry>
    <entry key='notificator.types'>web,mail,sms</entry>
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>root</entry>
    <entry key='mail.smtp.port'>587</entry>
    <entry key='mail.smtp.starttls.enable'>true</entry>
    <entry key='mail.smtp.host'>smtp.gmail.com</entry>
    <entry key='mail.smtp.from'>rastreo.xxxxxxxx@gmail.com</entry>
    <entry key='mail.smtp.auth'>true</entry>
    <entry key='mail.smtp.username'>rastreo.xxxxxxxx@gmail.com</entry>
    <entry key='mail.smtp.password'>xxxxxxxx</entry>
    <entry key='web.url'>http://2xxxxxxxx:8082/</entry>
    <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
    <entry key='sms.http.url'>https://api.twilio.com/2010-04-01/Accounts/xxxxxxxx/Messages.json</entry>
    <entry key='sms.http.user'>xxxxxxxx</entry>
    <entry key='sms.http.password'>xxxxxxxx</entry>
    <entry key='sms.http.template'>From=whatsapp:+xxxxxxxx&amp;To=whatsapp:{phone}&amp;Body={message}</entry>

</properties>
Anton Tananaev3 years ago

What makes you think you can just prefix phone number with "whatsapp"?