tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.07k stars 2.23k forks source link

How to register whatsapp number using V2? #34

Closed brittson closed 11 years ago

brittson commented 11 years ago

Please help me to find how to register a number.

brittson commented 11 years ago

when i am in listening mode (-l), then its receiving all the msgs sent to this number , but when in interactive mode , msgs are not going !!

tgalal commented 11 years ago

Is there an error thrown? Can you try send mode (-s and see if it sends?

brittson commented 11 years ago

I also used the send mode, but no luck.

2opremio commented 11 years ago

I was planning to do this as an alternative to whatsapi which seems to be broken for version 2 . I that the case for yowsup too?

tgalal commented 11 years ago

@adasmalakar can you try send mode with -d to enable more debug output and -w to wait for a sent receipt to check if server receives it or not and post the output?

@2opremio Yowsup is updated to registration v2 and so far @adasmalakar is the only one facing problems which I'm still trying to figure out why. It should work with you, please let me know if you need any help.

brittson commented 11 years ago

@tgalal here is the debug log, its showing msg sent , but i am not receiving any msgs , i registered a new number with --v2 with an android IMEI. infact when in listen mode i am receiving incoming msgs but msg sent is not working..

YowsupConnectionManager: >>>>>>>> AUTH CALLED BinTreeNodeReader: Reader init Connecting to c.whatsapp.net WAuth: Yowsup WAUTH-1 INIT WAuth: Starting stream WAuth: Sending Features BinTreeNodeWriter: Outgoing BinTreeNodeWriter:
stream:features

/w:profile:picture /w:profile:picture /stream:features WAuth: Sending Auth BinTreeNodeWriter: Outgoing BinTreeNodeWriter: WAuth: Read stream start WAuth: Read features and challenge BinTreeNodeReader: Incoming BinTreeNodeReader: stream:features /w:profile:picture /stream:features WAuth: GOT FEATURES !!!! BinTreeNodeReader: Incoming BinTreeNodeReader: �b�xG��T��ơ�7�C� WAuth: GOT CHALLENGE !!!! WAuth: Sending Response BinTreeNodeWriter: Outgoing BinTreeNodeWriter: ��� hG[h�$j�(�'��Ĩ#�
brittson commented 11 years ago

WAuth: Read success BinTreeNodeReader: Incoming BinTreeNodeReader:

WAuth: Login Status: success WAuth: Expires: 1387355271 WAuth: Account type: free WAuth: Account status: active Authed Mobile no. BinTreeNodeWriter: Outgoing BinTreeNodeWriter:

Sent message

tgalal commented 11 years ago

can you pastebin or something as github escapes all tags?

brittson commented 11 years ago

@tgalal http://pastebin.com/x1HpBsGR

tgalal commented 11 years ago

@adasmalakar I see you have passed the number and message in enclosing bracket; as <91956457XXXX> , you need to remove those < >.

Example for correct way: yowsup-cli --config myconfig -s 91956457XXXX "Hello there!" instead of: yowsup-cli --config myconfig -s <91956457XXXX> <Hello there!>

brittson commented 11 years ago

thanks @tgalal big help