Closed goldandy closed 4 years ago
@goldandy your phone number was evaluated as a number, since you did not put it inside ''
, just change
[+796728585XX]
to
['+796728585XX']
Great, thanks a lot, now it works! You did a great job :) Sure you can add B315 in the list of supported model
Andrey
Hi I'm using B315 Huawei LTE router. When I tried to send SMS by API with python, i got OK but SMS wasn't arrived
This is my python script
I checked both requests from python and from GUI and find out, that in case of python I can't see "+" sign in the front of mobile number
Python output
<?xml version="1.0" encoding="UTF-8" ?><request><Index>-1</Index><Phones><Phone>796728585XX</Phone></Phones><Sca></Sca><Content>Test message</Content><Length>12</Length><Reserved>1</Reserved><Date>2020-01-21 09:27:49</Date></request>
GUI output
<?xml version="1.0" encoding="UTF-8"?><request><Index>-1</Index><Phones><Phone>+796728585XX</Phone></Phones><Sca></Sca><Content>testnumber2</Content><Length>11</Length><Reserved>1</Reserved><Date>2020-01-21 12:33:20</Date></request>
Is it something wrong with my script or my B315 is not fully supported?
Thanks Andrey