SMS Receiving Problem Brazil

Carlos Alberto6 years ago

Good afternoon, congratulations on the software.
I'm having a problem receiving the return of the SMS that was sent to the device.

Sms sending is normal.

I'm having this feedback in the log.

LOG:

2018-01-19 18:08:08 DEBUG: SMS submitted, message id: 37eed923
2018-01-19 18:08:14 DEBUG: SMS Message Received: id:37eed923 sub:001 dlvrd:001 submit date:1801191809 done date:1801191809 stat:DELIVRD err:120 text:, Source Address: 55***********
2018-01-19 18:08:23  WARN: NullPointerException (ClientSmppSessionHandler:49 < ...)

Config:

 <!-- SMS SETTINGS -->
    <entry key = 'sms.smpp.enable'>true</entry>
    <entry key = 'sms.smpp.host'>smsmarket.com.br</entry>
    
    <entry key = 'sms.smpp.version'>34</entry>
    
    <entry key = 'sms.smpp.port'>1575</entry>
    <entry key = 'sms.smpp.username'>logpay.smpp</entry>
    <entry key = 'sms.smpp.password'>*****</entry>
    <entry key = 'sms.smpp.starttls.enable'>true</entry>
    
    <entry key = 'sms.smpp.notificationsCharset'>GSM</entry>
    <entry key = 'sms.smpp.notificationsDataCoding'>0</entry>
    
    <entry key = 'sms.smpp.commandsCharset'>GSM</entry>
    <entry key = 'sms.smpp.commandsDataCoding'>0</entry>
    
    <entry key = 'sms.smpp.sourceTon'>1</entry>
    <entry key = 'sms.smpp.sourceNpi'>1</entry>
    
    <entry key = 'sms.smpp.commandSourceTon'>1</entry>
    <entry key = 'sms.smpp.commandSourceNpi'>1</entry>
    
    <entry key = 'sms.smpp.logPdu'>true</entry>
        
    <entry key = 'sms.smpp.enquireLinkPeriod'>120000</entry>
    <entry key = 'sms.smpp.enquireLinkTimeout'>120000</entry>
    
    <entry key = 'sms.smpp.sourceAddress'>logpay</entry>
    <entry key = 'sms.smpp.commandSourceAddress'>+5519*********</entry>

Sorry for the English.

Thank you.

Anton Tananaev6 years ago

Make sure Source Address is matching phone number in device settings, and notification is enabled.

Carlos Alberto6 years ago

A notification is enabled without trailing.

The source number and number that the SMS is sending.

An SMS company said they did not have to put anything in that field.

Do you have any idea what it could be?
Thank you.

Anton Tananaev6 years ago

Can I see a screenshot of your device settings?

Carlos Alberto6 years ago

alt text

Anton Tananaev6 years ago

As far as I can tell, it should work and you should get a notification with SMS.

Carlos Alberto6 years ago

I requested the logs to SMS company and had the equipment return.

On tracing I do not get this response message.

visiondrive6 years ago

Please check your message is not too long.

Also I had to use the country code (in Australia) +61 as the leading for the mobile number of the tracker - ie +61419123456

abyss6 years ago

Looks like you have enabled logPdu it is good, unfortunately they are in wrapper.log. Could you provide a piece of it around that time.

abyss6 years ago

The problem is probably solved in https://github.com/tananaev/traccar/pull/3737
Here is test build https://drive.google.com/open?id=0Bxu1vjhFvq74Vy1iQk93WlUtWTA based on 3.15 and this PR.

  • Stop the server
  • Backup tracker-server.jar file in your traccar folder
  • Replace it with attached tracker-server.jar
  • Start the server
  • Check if problem solved

Please provide feedback

Carlos Alberto6 years ago

Abyss I do not even know how to thank.

I'm running normal now.

Thank you.

Abismo, eu tenho um sistema de sms montado porem é com api, mas sei q tem a possibilidade de alterar o tracker-server.jar para ele aceitar o uso da api em vez do smpp. poderia me ajudar?