Unable to send SMS +CMS ERROR: 350

I tested two SIM cards from different providers. The configurations all seem correct. SMS messages are sent successfully via smartphone, but using the GL-X3000 router with the module RM520N-GL, I can only read sms; they are not being sent.

Here are some responses to the AT commands from one of the two SIMs:

ATI
Quectel
RM520N-GL
Revision: RM520NGLAAR03A04M4G

AT+CPMS?
+CPMS: “ME”,0,255,“ME”,0,255,“ME”,0,255

AT+COPS?
+COPS: 0,0,“LycaMobile”,7 (using the Vodafone Italy network)

AT+CSCA?
+CSCA: “+393510000111”,145 (correct message center number)

AT+CGDCONT?
+CGDCONT: 1,“IPV4V6”,“data.lycamobile.it”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0,“”,0
+CGDCONT: 2,“IPV4V6”,“ims”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0,“”,0
+CGDCONT: 3,“IPV4V6”,“sos”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,1,“”,0

AT+CGPADDR
+CGPADDR: 1,“10.0.228.230”
+CGPADDR: 2,“10.27.37.113”
+CGPADDR: 3,“0.0.0.0”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”

AT+QCFG=“ims”
+QCFG: “ims”,1,1

AT+QMBNCFG=“List”
+QMBNCFG: “List”,0,1,1,“ROW_Commercial”,0x0A010809,202401151
+QMBNCFG: “List”,1,0,0,“TEF_Spain_Commercial”,0x0A010C00,202302071
+QMBNCFG: “List”,2,0,0,“FirstNet”,0x0A015300,202206171
+QMBNCFG: “List”,3,0,0,“Rogers_Canada”,0x0A014800,202303141
+QMBNCFG: “List”,4,0,0,“Bell_Canada”,0x0A014700,202111051
+QMBNCFG: “List”,5,0,0,“Telus_Jasper_Canada”,0x0A01F900,202304281
+QMBNCFG: “List”,6,0,0,“Telus_Consumer_Canada”,0x0A01FA00,202304281
+QMBNCFG: “List”,7,0,0,“Commercial-Sprint”,0x0A010204,202111051
+QMBNCFG: “List”,8,0,0,“Commercial-TMO”,0x0A01050F,202402061
+QMBNCFG: “List”,9,0,0,“VoLTE-ATT”,0x0A010335,202206171
+QMBNCFG: “List”,10,0,0,“CDMAless_Private-Verizon”,0x0A01FD28,202304271
+QMBNCFG: “List”,11,0,0,“CDMAless-Verizon”,0x0A010126,202304251
+QMBNCFG: “List”,12,0,0,“Swiss-Comm”,0x0A010411,202304261
+QMBNCFG: “List”,13,0,0,“Telia_Sweden”,0x0A012400,202111051
+QMBNCFG: “List”,14,0,0,“TIM_Italy_Commercial”,0x0A012B00,202111051
+QMBNCFG: “List”,15,0,0,“France-Commercial-Orange”,0x0A010B21,202401081
+QMBNCFG: “List”,16,0,0,“Commercial-DT-VOLTE”,0x0A011F1F,202403221
+QMBNCFG: “List”,17,0,0,“Germany-VoLTE-Vodafone”,0x0A010449,202401201
+QMBNCFG: “List”,18,0,0,“UK-VoLTE-Vodafone”,0x0A010426,202401201
+QMBNCFG: “List”,19,0,0,“Commercial-EE”,0x0A01220B,202403131
+QMBNCFG: “List”,20,0,0,“Optus_Australia_Commercial”,0x0A014400,202111051
+QMBNCFG: “List”,21,0,0,“Telstra_Australia_Commercial”,0x0A010F00,202311071
+QMBNCFG: “List”,22,0,0,“Commercial-LGU”,0x0A012608,202111051
+QMBNCFG: “List”,23,0,0,“Commercial-KT”,0x0A01280B,202308031
+QMBNCFG: “List”,24,0,0,“Commercial-SKT”,0x0A01270A,202111051
+QMBNCFG: “List”,25,0,0,“Commercial-Reliance”,0x0A011B0C,202210211
+QMBNCFG: “List”,26,0,0,“Commercial-SBM”,0x0A011C0B,202407111
+QMBNCFG: “List”,27,0,0,“Commercial-KDDI”,0x0A010709,202401191
+QMBNCFG: “List”,28,0,0,“Commercial-DCM”,0x0A010D0D,202312201
+QMBNCFG: “List”,29,0,0,“VoLTE-CU”,0x0A011561,202310181
+QMBNCFG: “List”,30,0,0,“VoLTE_OPNMKT_CT”,0x0A0113E0,202312141
+QMBNCFG: “List”,31,0,0,“Volte_OpenMkt-Commercial-CMCC”,0x0A012010,202209221

AT$QCPDPIMSCFGE?
$QCPDPIMSCFGE: 1,0,0,0
$QCPDPIMSCFGE: 2,1,0,1
$QCPDPIMSCFGE: 3,1,0,0

AT+CPIN?
+CPIN: READY

AT+CEREG?
+CEREG: 0,5

AT+CGCONTRDP
1,5,“data.lycamobile.it”,“10.0.111.41”,“10.133.106.142”,“10.128.28.16”
+CGCONTRDP: 2,6,“ims”,“10.24.212.160”,“85.90.229.188”,“213.52.192.198”,“172.16.0.132”,“172.16.0.156”

The SMS sending attempt fails both via the router web interface and when accessing it through SSH with minicom.

+CMS ERROR: 350

Can you help me solve this?
Thank you

Dear @Fabix
I tested on my side, SMS feature worked fine.
[2024-10-31_14:19:51:907]AT+CMGF=1

[2024-10-31_14:19:51:907]OK
[2024-10-31_14:20:01:781]AT+CSCS=“GSM”

[2024-10-31_14:20:01:781]OK
[2024-10-31_14:20:19:007]AT+CMGS=“xxxxxxxx”

[2024-10-31_14:20:19:007]>
[2024-10-31_14:20:26:530]> QUECTEL
[2024-10-31_14:20:32:356]+CMGS: 213

[2024-10-31_14:20:32:356]OK

Please share your AT commands of send message.

prob

sending remains pending and after about 30 seconds it gives the 350 error

Dear @Fabix
AT+CSCA?
+CSCA: “+393510000111”,145 (correct message center number)
=》Did you confirm this configuration is correct?
Please share the whole AT commands for SMS.