zf8848 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Google Talk cannot call libjingle example 'call' application: You cannot call because xxx is using chat in Gmail or another chat program other than Google Talk #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. User A and B are both in the buddy list of each other
2. Build libjingle 0.51 on Ubuntu 10.10
3. Use the example application "call" to login user A into gtalk
4. Use Google Talk client on windows XP SP2 to login user B into gtalk
5. User B wants to call user A

What is the expected output? 
The call should be made and user B would get the incoming call.

What do you see instead?
Google talk client refuses the call attempt, and reports error:

You cannot call because UserA@gmail.com is using chat in Gmail or another chat 
program other than Google Talk.

What version of the product are you using? On what operating system?
libjingle: 0.51, built on Ubuntu 10.10

Google Talk product version: 1,0,0,104 running on Windows XP SP2

Please provide any additional information below.

Original issue reported on code.google.com by wallyz...@gmail.com on 9 Jan 2011 at 7:36

GoogleCodeExporter commented 9 years ago
Typo:

What is the expected output? 

The call should be made and user B would get the incoming call.

Should be:

The call should be made and user A would get the incoming call.

Original comment by wallyz...@gmail.com on 9 Jan 2011 at 7:38

GoogleCodeExporter commented 9 years ago
The output of the 'call' application during user A login:

(The actual JID of A and B are relaced with userA@gmail.com and userB@gmail.com 
respectively for privacy)

build/dbg/staging/call
JID: userA@gmail.com
Password:
Logging in to talk.google.com as userA@gmail.com

Available commands:

  roster              Prints the online friends from your roster.
  friend user         Request to add a user to your roster.
  call [jid] [bw]     Initiates a call to the user[/room] with the
                      given JID and with optional bandwidth.
  vcall [jid] [bw]    Initiates a video call to the user[/room] with
                      the given JID and with optional bandwidth.
  voicemail [jid]     Leave a voicemail for the user with the given JID.
  join [room]         Joins a multi-user-chat.
  invite user [room]  Invites a friend to a multi-user-chat.
  leave [room]        Leaves a multi-user-chat.
  getdevs             Prints the available media devices.
  quit                Quits the application.

(call) OpenSSLAdapter::OnConnectEvent

logging in...
(call) BeginSSL: gmail.com
ContinueSSL
SSL_connect:before/connect initialization
SSL_connect:SSLv3 write client hello A
SSL_connect:error in SSLv3 read server hello A
 -- error want read
ContinueSSL
SSL_connect:error in SSLv3 read server hello A
 -- error want read
ContinueSSL
SSL_connect:SSLv3 read server hello A
Error with certificate at depth: 0
  issuer  = /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
  subject = /C=US/ST=California/L=Mountain View/O=Google Inc./CN=gmail.com
  err     = 20:unable to get local issuer certificate
Warning(openssladapter.cc:817): Ignoring cert error while verifying cert chain
Error with certificate at depth: 0
  issuer  = /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
  subject = /C=US/ST=California/L=Mountain View/O=Google Inc./CN=gmail.com
  err     = 27:certificate not trusted
Warning(openssladapter.cc:817): Ignoring cert error while verifying cert chain
Error with certificate at depth: 0
  issuer  = /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
  subject = /C=US/ST=California/L=Mountain View/O=Google Inc./CN=gmail.com
  err     = 21:unable to verify the first certificate
Warning(openssladapter.cc:817): Ignoring cert error while verifying cert chain
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server key exchange A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL_connect:error in SSLv3 read finished A
 -- error want read
ContinueSSL
SSL_connect:SSLv3 read finished A
 -- success
Certificate from server:
        Version: 3 (0x2)
        Serial Number: 475026 (0x73f92)
        Signature Algorithm: sha1WithRSAEncryption
        Issuer: C=US, O=Equifax, OU=Equifax Secure Certificate Authority
        Validity
            Not Before: Apr 11 17:17:38 2007 GMT
            Not After : Apr 10 17:17:38 2012 GMT
        Subject: C=US, ST=California, L=Mountain View, O=Google Inc., CN=gmail.com
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
            RSA Public Key: (1024 bit)
                Modulus (1024 bit):
                    00:d4:77:6c:da:35:b0:5c:05:46:79:fd:3a:ec:f7:
                    92:24:5f:e1:f4:19:e8:62:54:dd:ca:4c:74:94:14:
                    c3:73:dd:bf:24:bb:ee:ab:49:49:93:2b:6a:96:5d:
                    54:47:89:07:98:5e:2f:c2:a4:24:c1:ca:8e:2b:4d:
                    f0:93:ca:83:2b:c7:e1:e8:cd:77:3d:88:6f:3c:45:
                    cf:d3:6a:33:b2:e2:f7:be:a1:3c:85:c0:af:6b:60:
                    7d:1d:59:ce:3d:8d:7b:42:89:37:ee:b6:10:fb:27:
                    b1:b3:03:79:7a:1d:3e:f7:79:dd:74:46:b5:3f:21:
                    e0:11:0f:02:0c:a0:89:69:65
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature, Non Repudiation, Key Encipherment, Data Encipherment
            X509v3 Subject Key Identifier:
                97:23:CD:71:1E:BC:C1:03:20:4B:EE:42:24:FB:A6:E1:09:63:BD:FB
            X509v3 CRL Distribution Points:
                URI:http://crl.geotrust.com/crls/secureca.crl

            X509v3 Authority Key Identifier:
                keyid:48:E6:68:F9:2B:D2:B2:95:D7:47:D8:23:20:10:4F:33:98:90:9F:D4

            X509v3 Extended Key Usage:
                TLS Web Server Authentication, TLS Web Client Authentication
    Signature Algorithm: sha1WithRSAEncryption
        7b:e1:c1:a9:8d:d1:0d:7f:d5:3e:58:47:76:f5:d7:f3:63:74:
        f3:25:e8:67:95:8e:5c:1f:96:ac:f1:b3:93:7b:b3:cd:3f:38:
        fd:eb:b3:89:ed:33:d6:13:27:0c:c2:54:bb:0a:ca:88:b2:67:
        d1:18:e1:45:7e:81:f1:a3:e8:8f:ba:06:7c:b8:ed:8a:77:ef:
        90:1c:25:cb:f8:cb:a6:1a:39:16:e0:57:13:16:67:1e:57:f4:
        35:d9:67:61:dd:60:29:72:a2:19:65:c8:90:ef:d3:00:78:58:
        7b:6f:3b:5e:01:8a:9f:c0:2f:7c:61:0c:32:94:2f:70:56:17:
        f5:cb

Cipher: DHE-RSA-AES256-SHA      SSLv3 Kx=DH       Au=RSA  Enc=AES(256)  Mac=SHA1

Other TLS post connection checks failed.

Available commands:

  roster              Prints the online friends from your roster.
  friend user         Request to add a user to your roster.
  call [jid] [bw]     Initiates a call to the user[/room] with the
                      given JID and with optional bandwidth.
  vcall [jid] [bw]    Initiates a video call to the user[/room] with
                      the given JID and with optional bandwidth.
  voicemail [jid]     Leave a voicemail for the user with the given JID.
  join [room]         Joins a multi-user-chat.
  invite user [room]  Invites a friend to a multi-user-chat.
  leave [room]        Leaves a multi-user-chat.
  getdevs             Prints the available media devices.
  quit                Quits the application.

(call)
logged in...
(call) Enumerating V4L2 devices
Error(devicemanager.cc:888): Unable to detect v4l2 metadata directory
Plan B. Scanning all video devices in /dev directory
Total V4L2 devices found : 0
Enumerating V4L2 devices
Error(devicemanager.cc:888): Unable to detect v4l2 metadata directory
Plan B. Scanning all video devices in /dev directory
Total V4L2 devices found : 0
Found device: id = 0, name = Ensoniq AudioPCI (ES1371 DAC2/ADC)
Found device: id = 0, name = Ensoniq AudioPCI (ES1371 DAC2/ADC)
Found device: id = 0, name = Ensoniq AudioPCI (ES1371 DAC1)
Enumerating V4L2 devices
Error(devicemanager.cc:888): Unable to detect v4l2 metadata directory
Plan B. Scanning all video devices in /dev directory
Total V4L2 devices found : 0

Adding to roster: UserB@gmail.com/Talk.v1041F2FB0C1

Original comment by wallyz...@gmail.com on 9 Jan 2011 at 7:44

GoogleCodeExporter commented 9 years ago
Problem bypassed by hard-coding phone_capability_ to true

Original comment by wallyz...@gmail.com on 9 Jan 2011 at 8:17

GoogleCodeExporter commented 9 years ago
Since libjingle only shipped with file media engine, to perform video/voice 
call to the Call client, you need to run it with file media engine with output 
file path and "auto accept" option. For example:
call.exe -d -a --videoinput=..\..\..\session\phone\testdata\video.rtpdump 
--voiceinput=..\..\..\session\phone\testdata\voice.rtpdump 
--videooutput=vout.rtpdump --voiceoutput=aout.rtpdump

Original comment by jun...@google.com on 7 Jun 2011 at 11:04