yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

possisble CC detection issue with --sync

Open alejandro-amo opened this issue 13 years ago • 7 comments

given the country code of spain (34), I attach de debug output of -d --sync 650xxxxxx

WAContactsSyncQuery:
{"c":[{"p":"650xxxxxx","n":"34650xxxx","s":"bla bla bla","t":1356700941,"w":1}

and the output of -d --sync 34650xxxxxx specifying the number with the country code as always did:

{"p":"34650xxxxxx","n":" 3434650xxxxxx","w":0}

both cases report country code 34 as detected. this error happens wether config file has cc configuration or not.

so, numbers outside my country cannot be checked

alejandro-amo avatar Jan 10 '13 22:01 alejandro-amo

For any numbers in non-international format (without '+' at the beginning), Whatsapp will assume your own account's cc for them and prepends it. So the detection during sync actually happens at Whatsapp's server side and not by yowsup. As for the cc in config file and yowsup's cc detection, there are only used at registration-related calls.

tgalal avatar Jan 10 '13 22:01 tgalal

damn! so it's a wrong use for my part, since I started to use yowsup... so embarrassed Tarek! so sorry!

alejandro-amo avatar Jan 10 '13 23:01 alejandro-amo

please i try python ./yowsup-cli -c config.example -d --sync 963xxxxxxxxxxxxxx

but debug show this :

Traceback (most recent call last): File "./yowsup-cli", line 302, in wsync = WAContactsSyncRequest(login, password, contacts) File "C:\Python27\Yowsup\Contacts\contacts.py", line 37, in init self.authReq = WAContactsSyncAuth(username, password) File "C:\Python27\Yowsup\Contacts\contacts.py", line 82, in init cnonce = Utilities.str(random.randint(100000000000000,1000000000000000), 36)

what the problem ?

moufjamalz avatar Jan 12 '13 21:01 moufjamalz

not the correct place to put this support request, dude!

alejandro-amo avatar Jan 12 '13 21:01 alejandro-amo

and more importantly, where is the error message ?!

tgalal avatar Jan 12 '13 22:01 tgalal

i think need to read help before using yowsup? numbers for sync should be in international format with + sign

CODeRUS avatar Jan 13 '13 06:01 CODeRUS

@CODeRUS yes, in many threads can be found answers, for example, i came looking for the format in --sync for international numbers and this works +506XXXXXXX. Thanks!

eraguive avatar Jan 18 '13 17:01 eraguive