wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
299 stars 104 forks source link

How to send SMS to shortcode ?? #70

Closed rgchurion closed 4 years ago

rgchurion commented 4 years ago

Hi, how can i send SMS to shortcode for example 3535 ??, i try and get ERROR[5285]:

dongle sms dongle0 3535 registro

[dongle0] SMS queued for send with id 0x7f35340520e0

[Nov 7 18:48:25] ERROR[5285]: at_response.c:500 at_response_error: [dongle0] Error sending SMS message 0x7f35340520e0

I have installed this version of dongle in asterisk 16.

wdoekes commented 4 years ago

Does this help:

https://github.com/miopa/asterisk-chan-dongle/commit/3a85d35c6689da1489e448944e089e7f390fde35

?

wdoekes commented 4 years ago

I would indeed guess that:

#define NUMBER_TYPE_NETWORKSHORT    (TP_A_EXT_NOEXT | TP_A_TON_NETSPECIFIC | TP_A_NPI_PRIVATENUM) /* 0xB9 */

and

            dst_toa=NUMBER_TYPE_NETWORKSHORT; //0xB9

help.

But you'd have to test.

Closing for lack of feedback.