Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

failed to send sms to short number

Open calin2k opened this issue 11 years ago • 26 comments

signal 3.3.1 android 5.1.1 fails to send sms to short 4 digits number after aotomaticaly adding + country code to short number. can't find where to deactivate automatic countrycode prefix in signal.

calin2k avatar Nov 10 '15 17:11 calin2k

I can confirm this (Samsung Android 5.0.1); it did not happen with previous versions (not sure when it started, but ~10 days ago, with the last beta it worked)...

hpmueller1971 avatar Nov 10 '15 22:11 hpmueller1971

After browsing through the source, i'd assume this commit caused the problem...?

hpmueller1971 avatar Nov 12 '15 18:11 hpmueller1971

Related: https://github.com/WhisperSystems/Signal-Android/issues/4453

riyapenn avatar Nov 12 '15 18:11 riyapenn

Thanks for the fix but it (3.3.3) doesn't really solve the issue. While trying to send a SMS to a shortcode number like 6701, it still becomes +16701.

iosian avatar Nov 13 '15 22:11 iosian

@iosian If you have an existing thread that got converted to +16701, you have to create a new one with just 6701. Alternately, if you receive a new message from 6701 it will create a new thread for you.

moxie0 avatar Nov 13 '15 23:11 moxie0

@moxie0 I cleaned all of the threads in the Signal, deleted the contact associates to 6701, and rebooted the handset. It still adds +1 to 6701. Thanks.

iosian avatar Nov 13 '15 23:11 iosian

What country is your Signal number in, and how are you creating the thread?

moxie0 avatar Nov 13 '15 23:11 moxie0

@iosian can you also put a debug log up when opening the conversation and trying to send?

mcginty avatar Nov 13 '15 23:11 mcginty

@moxie0 It's in US. First hit the pen at the right bottom corner. Enter a number like 6701 (a fake number) using on screen keypad. Select "# New message to... 6701". On the left up corner it shows +16701. Send text through "Send unsecured SMS". Then check the SMS details using the "!". It shows "Via SMS To: #+16701".

@mcginty The log is at https://gist.github.com/anonymous/ba92b15118b4dfa8dd23

iosian avatar Nov 14 '15 00:11 iosian

Country code is added for me too. +49 in my case

McLoo avatar Nov 14 '15 00:11 McLoo

Hmm, ok according to libphonenumber 5 and 6 digit numbers are valid shortcodes in +1. I know some carriers do shit with like 3 digit codes, though, so we should probably special case 4 digit or less numbers as shortcodes, except in countries where numbers can be 4 digits (I think that's less than 10 countries?).

moxie0 avatar Nov 14 '15 00:11 moxie0

I think this is why 40404 works, but 6701 doesn't.

moxie0 avatar Nov 14 '15 00:11 moxie0

@moxie0 For 5 digit numbers, they are working correctly. For 6 digit numbers like 266278, on the top left corner it shows exactly 6 digits, 266278, but in the message details it shows "To: # +1266278" instead.

iosian avatar Nov 14 '15 01:11 iosian

@McLoo libphonenumber thinks that Germany only has 3 digit shortcodes (https://github.com/googlei18n/libphonenumber/blob/master/resources/ShortNumberMetadata.xml#L2623), but wikipedia says that they are 5 or 6 digits. Do you have any sample shortcodes that could confirm one or the other? I noticed Twitter doesn't even have a shortcode for germany.

moxie0 avatar Nov 14 '15 21:11 moxie0

@moxie0 can't remember that I've ever seen a 3 digit shortcode. Checked two carrier's list (youth protection because of sms prices) and there are 4, 5 and 6 digit shortcodes listed.

Edit: here is the list from Vodafone : http://www.vodafone.de/infofaxe/537.pdf

McLoo avatar Nov 15 '15 19:11 McLoo

Tried 5 digit two numbers. Country code, was added, but the SMS were properly sent and I got a deliver receipt on 3.4.0 :open_mouth:

McLoo avatar Nov 15 '15 20:11 McLoo

@moxie0 you might have expected it, but just for completeness: With 3.4.2 shortcodes work well for me (even the fancy 3 or less digit ones)

McLoo avatar Nov 17 '15 06:11 McLoo

thanks!

On 11/16/2015 10:17 PM, McLoo wrote:

@moxie0 https://github.com/moxie0 you have might expected it, but just for completeness: With 3.4.2 shortcodes work well for me (even the fancy 3 or less digit ones)

— Reply to this email directly or view it on GitHub https://github.com/WhisperSystems/Signal-Android/issues/4478#issuecomment-157282080.

http://www.thoughtcrime.org

moxie0 avatar Nov 18 '15 17:11 moxie0

Same issue. Ottawa, Canada, SMS to 560560 for retrieving bus schedule. Signal appends +1 and message is undeliverable. Tried with Google messenger and it works. Signal 3.6.1 on Nexus 6.0

ghost avatar Dec 09 '15 00:12 ghost

Hello. Same problem in Slovakia, O2 operator uses 99222 for managing all services via SMS. Signal 3.9.1 is prepending +421 to the number. The message is undelivered.

dominee avatar Feb 01 '16 12:02 dominee