liyvhg / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
0 stars 0 forks source link

Unable to send SMS to short numbers #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. By sending SMS to any short numbers like 999 not in the format of 
international number.

What is the expected output? What do you see instead?

I need to subscribe to a package by sending a single letter like 'k' to the 
number like 999 of provider and in reply I must receive a pin code sent by the 
provider. But I see the following error message

[dongle-1] Error sending SMS message 0x892cfe8.

What version of the product are you using? On what operating system?

Modem: E1550
Asterisk: 1.6.2.18
Debian: 4.3.2-1.1
Kernel: 2.6.36.4

Please provide any additional information below.

I have attached 32 modems E1550 to the single box and it is not possible for me 
to subscribe to a package remotely by sending SMS to short number.

Adding this feature will be great thing. If this feature is not available yet.

Original issue reported on code.google.com by geosoh...@gmail.com on 24 Jul 2011 at 7:51

GoogleCodeExporter commented 9 years ago
dongle sms <device> <number> <message>
expect International format for <number> field.

please use dongle pdu for sending to other numbers or other message types.

Original comment by bg_...@mail.ru on 24 Jul 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Thanks for your reply.

Any useful guide to send message using PDU from linux environment? 

Original comment by geosoh...@gmail.com on 25 Jul 2011 at 8:58

GoogleCodeExporter commented 9 years ago
I found several PDU libraries like java pduutils.jar of smslib, Perl 
http://www.umts-tools.org/docs/SMS/ or others...
PDU easy to encode, online java-scipt converters also found

Other way: use external software (not asterisk/chan_dongle) for sending SMS on 
COM port of modem

usually 
/dev/ttyUSB0 - COM
/dev/ttyUSB1 - voice
/dev/ttyUSB2 - DATA (extended COM)

Original comment by bg_...@mail.ru on 25 Jul 2011 at 6:42

GoogleCodeExporter commented 9 years ago
I am thinking to use minicom to try this

Original comment by geosoh...@gmail.com on 26 Jul 2011 at 6:14

GoogleCodeExporter commented 9 years ago
The original chan_datacard does work. I think something was changed in the 
branches that dont allow it maybe can put it back as option. I also require to 
send to short numbers. 

Unless some one have some other way to work.

Original comment by coretw...@gmail.com on 19 Aug 2011 at 2:04

GoogleCodeExporter commented 9 years ago
http://www.dreamfabric.com/sms/type_of_address.html

patch for:
pdu.c

185,187d184
< #define NUMBER_TYPE_NETWORKSHORT              0xB1
< #define NUMBER_TYPE_UNKNOWN                   0x81
< 
568c565
<       if(dst[0] == '+'){
---
>       if(dst[0] == '+')
570,576d566
<       }else{
<               if(strlen(dst)<6){
<                       dst_toa=NUMBER_TYPE_NETWORKSHORT; //0xB1
<               }else{
<                       dst_toa=NUMBER_TYPE_UNKNOWN; //0X81
<               }
<       }

Original comment by foundans...@gmail.com on 10 Oct 2011 at 7:01

GoogleCodeExporter commented 9 years ago
You can use PDUspy to construct one-off SMSs. http://www.nobbi.com/pduspy.html 
It is a win32 app but works fine in Wine too. Make sure you select Unknown for 
TON field. Network specific number did not work for me.

Original comment by sta...@gmail.com on 13 Oct 2011 at 11:45

GoogleCodeExporter commented 9 years ago
is there any way to send sms to short number

there how can use pdu library and modem can support with asterisk and if we use 
pdu as same time ?

Original comment by webomli...@gmail.com on 13 Jan 2012 at 7:40