yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Handling Calls

Open lcmeyer37 opened this issue 11 years ago • 12 comments

Hey people, I noticed that now when I run my app client it can receive calls from other users. So, I actually HAVE to handle the calls coming, so I don't get socket errors after from the program. Do you know how to properly handle the calls? Or, how to just handle messages, properly ignoring other types of contact without getting any bugs on my app?

Thank you,

Lucas Meyer.

lcmeyer37 avatar May 01 '15 15:05 lcmeyer37

Same problem here. This seems related to #692 and recent wa changes in the way of managing <ack> tags. I think we should reply to <call> tags with a proper <ack> , but this is not yet handled by yowsup. let's study a bit...

aguiraf avatar May 01 '15 22:05 aguiraf

Which Yowsup environment are you guys using? I guess Android?

ghost avatar May 01 '15 22:05 ghost

Windows and Python 3.0+, yowsup v2.2.78 after I applied the fix #748 by @aesedepece

lcmeyer37 avatar May 01 '15 22:05 lcmeyer37

You don't seem to get my question. Anyway, switch your Yowsup environment from Android to S40 to avoid calls (but you will loose encryption).

ghost avatar May 01 '15 22:05 ghost

needed a bit to realize, env.CURRENT_ENV.getResource() = Android-2.12.68 so we should switch to S40? trying...

aguiraf avatar May 01 '15 22:05 aguiraf

init.py on /env folder. Set CURRENT_ENV = S40YowsupEnv()

Thanks @0xTryCatch and @aguiraf

lcmeyer37 avatar May 01 '15 23:05 lcmeyer37

easy, change to S40 no more calls, currently this api Dont Support Call Receive/Send ..

assegaf avatar May 02 '15 09:05 assegaf

Setting environment to S40 avoids receiving calls, but breaks Axolotl cypher. I think we can't consider this solved.

aesedepece avatar May 04 '15 12:05 aesedepece

@assegaf you can try latest commits to support call from Chat API

Regards

mgp25 avatar May 04 '15 12:05 mgp25

Cool, thanks for the reference implementation @mgp25. If nobody here minds, I assign this issue to myself :)

aesedepece avatar May 04 '15 13:05 aesedepece

Ok @aesedepece . I reopened the issue! haha

lcmeyer37 avatar May 04 '15 16:05 lcmeyer37

I already got it working. Now I'm writing the tests and running the new code with several lines and calling from different contacts. I'll send tge pull request later today :)

aesedepece avatar May 04 '15 16:05 aesedepece