-
FW ver.: RUT2XX_R_00.01.12
I have problem sending sms via the web api.
I can send SMS using the regular web interface on the device but from the API i only get +CMS ERROR: 500.
If i try to send an sms using the web interface to +4670XXXXXX it works.
But if i try with 004670XXXXX i also get the CMS ERROR 500 in the device web interface.
Sample URLs that don't work;
http://192.168.1.1/cgi-bin/sms_send?username=user123&password=xxxx&number=+4670XXXXX&text=testmasessage
http://192.168.1.1/cgi-bin/sms_send?username=user123&password=xxxx&number=004670XXXXX&text=testmasessage
Some data from the log; ( First one is from web interface to +4670XXXXXXX ) Second one is from Web API.
Tue Apr 14 17:00:15 2020 local1.info gsmd[1815]: gsmd send: 'AT+COPS?' (9)
Tue Apr 14 17:00:15 2020 local1.info gsmd[1815]: gsmd get: '+COPS: 0,2,"24007",6' (20)
Tue Apr 14 17:00:17 2020 local1.info gsmd[1815]: gsmd send: 'AT+CMGS=23' (11)
Tue Apr 14 17:00:17 2020 local1.info gsmd[1815]: gsmd send: '0001000b916407949862f700000b41b13cbc0e93c3627918' (49)
Tue Apr 14 17:00:18 2020 local1.info gsmd[1815]: gsmd get: '+CMGS: 22' (9)
Tue Apr 14 17:00:19 2020 user.info Messaged[12822]: Start from new event "SMS" "SMS were sent to 4670XXXXX"
Tue Apr 14 17:01:02 2020 local1.crit luci-reload[12968]: START==1
Tue Apr 14 17:02:15 2020 local1.info gsmd[1815]: gsmd send: 'AT+CMGS=23' (11)
Tue Apr 14 17:02:15 2020 local1.info gsmd[1815]: gsmd send: '0001000c804 764089297600000b41b13cbc0e93c3627918' (49)
Tue Apr 14 17:02:16 2020 local1.info gsmd[1815]: gsmd get: '+CMS ERROR: 500' (15)
Tue Apr 14 17:02:42 2020 local1.crit luci-reload[13161]: START==1