Estrange behavior when enable SMPP (see the notification but no in the web)

vmedrano4 years ago

i am trying to make a custom SMPP server but when i enable de sms config file pointing to my SMPP server,
the stop refreshing the devices, i see the pupop from change state but no more.
i see the data format in my SMPP server but no more, if i remove the sms configs the use stop.

if someone have the same problem.

example from logging

2021-02-19 15:32:13  WARN: Enquire link failed, executing reconnect:  - Unable to get response within [10000 ms] - SmppTimeoutException (... < EnquireLinkTask:46 < ...)
2021-02-19 15:32:14  INFO: [44fee97b] connected
2021-02-19 15:32:14  INFO: [44fee97b: h02 < 190.8.32.216] HEX: 2a48512c393830353035303437392c4e42522c3139333231312c3337302c342c302c362c313032322c313137332c2d35372c313032362c323034332c2d35372c313032322c323536312c2d36372c313032322c353036322c2d36392c313032322c353339312c2d38392c313032322c353339322c2d38392c3139303232312c46464646464246462c3623
2021-02-19 15:32:14  INFO: [44fee97b: h02 > 190.8.32.216] HEX: 2a48512c393830353035303437392c56342c4e42522c323032313032313931393332313423
2021-02-19 15:32:15  WARN: [44fee97b] error - URI template of the newly created target must not be null. - NullPointerException (... < HttpSmsClient:85 < *:102 < NotificatorSms:47 < NotificationManager:111 < ...)
2021-02-19 15:32:15  INFO: [44fee97b] disconnected
2021-02-19 15:32:15  WARN: [44fee97b] error - URI template of the newly created target must not be null. - NullPointerException (... < HttpSmsClient:85 < *:102 < NotificatorSms:47 < NotificationManager:111 < ...)
2021-02-19 15:32:23  INFO: Cleaning up SMPP session... 
2021-02-19 15:32:23  INFO: Successfully closed
2021-02-19 15:32:23  INFO: SMPP session connected
Anton Tananaev4 years ago

Looks like the issue is with HTTP SMS, not SMPP.

vmedrano4 years ago

Thats true. I am mixing two protocols. that http API provide a post to the server.

Thanks

vmedrano4 years ago

NOw its woring wuth this

  <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
            <!--<entry key='sms.http.enable'>true</entry> -->
    <entry key='sms.http.url'>http://127.0.0.1:8881/</entry>
    <entry key='sms.http.template'>
               {
        "To": "{phone}",
        "Msg": "{message}"
    }
    </entry>

my server is nw receiving the notification, but is there a way to add more itens, not only phone and message.

thanks

vmedrano4 years ago

I just made a full SMPP / Whatsapp service to deliver internally to android gateway sms and customers . if some one interest int his please post a message.
part golang / part java (android).
Amazing !!! traccars ROCKS !!!!!