How to do text chat, Audio chat and Video Chat using Libjingle?

45 views
Skip to first unread message

RRC

unread,
Jun 6, 2012, 10:31:00 AM6/6/12
to libjingle
Hi All,

I am having some questions on Libjingle:

a. How to do text chat using libjingle application?

I am able to list all my friend after running "call" command, able
to ring on his system.
Please check the log for your reference.

/home/Desktop/Ravi/Libjingle_project/libjingle-0.6.2/talk/build/dbg/obj
$ ./call
JID: ravi.c...@gmail.com
Password:
Logging in to talk.google.com as ravi.c...@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_jid] Joins a multi-user-chat with room JID.
ljoin [room_name] Joins a MUC by looking up JID from room name.
invite user [room] Invites a friend to a multi-user-chat.
leave [room] Leaves a multi-user-chat.
nick [nick] Sets the nick.
getdevs Prints the available media devices.
quit Quits the application.

OpenSSLAdapter::OnConnectEvent
logging in...
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
SSL_connect:SSLv3 read server certificate 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:
14:0a:49:e1:00:03:00:00:44:c3
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=US, O=Google Inc, CN=Google Internet Authority
Validity
Not Before: Jan 20 01:05:56 2012 GMT
Not After : Jan 20 01:15:56 2013 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:be:7e:8a:eb:ac:1f:9c:f5:20:bd:8d:a2:61:4d:
f6:b2:5e:40:15:2c:40:69:85:84:53:4f:e2:d4:d8:
54:fb:2d:75:b3:7d:42:45:cf:b4:69:0c:4c:c5:e5:
df:bd:0a:f3:42:96:97:ca:3d:53:61:0a:04:e7:6c:
ba:d7:29:db:6e:fd:2d:14:13:2d:3a:24:78:33:cc:
84:c4:40:d1:a1:fd:14:ee:d3:44:b1:15:c5:5a:8c:
4c:f8:a5:00:51:55:bf:bf:05:79:89:2d:44:3b:f8:
2b:81:c1:46:18:34:43:f7:34:33:3c:aa:20:15:bb:
0c:c2:27:42:63:05:4b:5f:51
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
D1:8A:DC:2D:05:AD:DE:
22:83:02:9E:F5:A9:97:11:7B:B8:87:1B:BE
X509v3 Authority Key Identifier:
keyid:BF:C0:30:EB:F5:43:11:3E:67:BA:9E:91:FB:FC:
6A:DA:E3:6B:12:24

X509v3 CRL Distribution Points:
URI:http://www.gstatic.com/GoogleInternetAuthority/
GoogleInternetAuthority.crl

Authority Information Access:
CA Issuers - URI:http://www.gstatic.com/
GoogleInternetAuthority/GoogleInternetAuthority.crt

1.3.6.1.4.1.311.20.2:
...W.e.b.S.e.r.v.e.r
Signature Algorithm: sha1WithRSAEncryption
6f:b8:9b:e8:68:70:ac:84:8d:11:53:50:58:b3:6b:71:4e:6b:
33:6b:7a:fc:19:6c:fa:b8:ba:3b:ea:6f:3b:b6:9f:0d:60:1a:
63:5d:5e:3c:ca:88:7a:3e:20:e0:4c:c9:49:c8:70:c8:d1:d2:
0f:b4:1f:f8:42:cb:d7:52:cd:db:a9:13:cf:d3:40:16:ef:53:
cd:48:0e:83:6a:1c:fe:2d:62:ba:e6:fb:56:af:c1:b2:bd:f8:
2a:c3:cd:67:9c:de:56:0b:08:b1:9e:0c:79:4f:4b:f6:29:ab:
9c:0d:04:3f:3a:cf:e3:d5:c4:55:ac:43:64:91:f8:24:1e:f0:
30:96

Cipher: AES128-SHA SSLv3 Kx=RSA Au=RSA
Enc=AES(128) Mac=SHA1

logged in...
Enumerating V4L2 devices
V4L2 device metadata found at /sys/class/video4linux/
Found V4L2 capture device /dev/video0
Trying /sys/class/video4linux/video0/name
Name for video0 is Astro HD Camera
Total V4L2 devices found : 1
Enumerating V4L2 devices
V4L2 device metadata found at /sys/class/video4linux/
Found V4L2 capture device /dev/video0
Trying /sys/class/video4linux/video0/name
Name for video0 is Astro HD Camera
Total V4L2 devices found : 1
Enumerating V4L2 devices
V4L2 device metadata found at /sys/class/video4linux/
Found V4L2 capture device /dev/video0
Trying /sys/class/video4linux/video0/name
Name for video0 is Astro HD Camera
Total V4L2 devices found : 1
Selected ALSA sound system
Selected ALSA sound system
Enumerating V4L2 devices
V4L2 device metadata found at /sys/class/video4linux/
Found V4L2 capture device /dev/video0
Trying /sys/class/video4linux/video0/name
Name for video0 is Astro HD Camera
Total V4L2 devices found : 1
Removing from roster: ravi.c...@gmail.com/call2261EAFA
Adding to roster: tahe...@gmail.com/Talk.v104E51EDB1F

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_jid] Joins a multi-user-chat with room JID.
ljoin [room_name] Joins a MUC by looking up JID from room name.
invite user [room] Invites a friend to a multi-user-chat.
leave [room] Leaves a multi-user-chat.
nick [nick] Sets the nick.
getdevs Prints the available media devices.
quit Quits the application.

vcall tahe...@gmail.com
Found online friend 'tahe...@gmail.com/Talk.v104E51EDB1F'
Failed to set renderer of ssrc 0.
Error(session.cc:722): Session error:
<cli:error type="modify" xmlns:cli="jabber:client"><sta:bad-request
xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas"/><sta:text
xml:lang="en" xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas">unknown
session description type</sta:text></cli:error>
in response to:
<cli:iq to="tahe...@gmail.com/Talk.v104E51EDB1F" type="set" id="8"
xmlns:cli="jabber:client"><jingle xmlns="urn:xmpp:jingle:1"
action="session-initiate" sid="2752237571"
initiator="ravi.c...@gmail.com/call0CFEAB2A"><content name="audio"
creator="initiator"><description xmlns="urn:xmpp:jingle:apps:rtp:1"
media="audio" ssrc="1027775151"><encryption><crypto tag="0" crypto-
suite="AES_CM_128_HMAC_SHA1_32" key-
params="inline:kY0l2DSzQq5lIfJphkMyUgYLPW2s/YDLL4X0gAlc"/><crypto
tag="1" crypto-suite="AES_CM_128_HMAC_SHA1_80" key-params="inline:
0jiyFyq4iTfRtwTbfso+Mb1FpystL868xPvVF/fI"/></encryption><rtcp-mux/></
description><transport xmlns="http://www.google.com/transport/p2p"/></
content><content name="video" creator="initiator"><description
xmlns="urn:xmpp:jingle:apps:rtp:1" media="video"
ssrc="784863519"><encryption><crypto tag="0" crypto-
suite="AES_CM_128_HMAC_SHA1_80" key-
params="inline:Lz02Mqh6hLgWGu75+ga8QYozQsxCfFOz1RFFe3rG"/></
encryption><rtcp-mux/></description><transport xmlns="http://
www.google.com/transport/p2p"/></content></jingle><session
xmlns="http://www.google.com/session" type="initiate" id="2752237571"
initiator="ravi.c...@gmail.com/call0CFEAB2A"><description
xmlns="http://www.google.com/session/video"><src-id xmlns="http://
www.google.com/session/video">784863519</src-id><rtp:encryption
xmlns:rtp="urn:xmpp:jingle:apps:rtp:1"><rtp:crypto tag="0" crypto-
suite="AES_CM_128_HMAC_SHA1_80" key-
params="inline:Lz02Mqh6hLgWGu75+ga8QYozQsxCfFOz1RFFe3rG"/><usage/></
rtp:encryption><src-id xmlns="http://www.google.com/session/
phone">1027775151</src-id><rtp:encryption
xmlns:rtp="urn:xmpp:jingle:apps:rtp:1"><rtp:crypto tag="0" crypto-
suite="AES_CM_128_HMAC_SHA1_32" key-
params="inline:kY0l2DSzQq5lIfJphkMyUgYLPW2s/YDLL4X0gAlc"/><rtp:crypto
tag="1" crypto-suite="AES_CM_128_HMAC_SHA1_80" key-params="inline:
0jiyFyq4iTfRtwTbfso+Mb1FpystL868xPvVF/fI"/><pho:usage
xmlns:pho="http://www.google.com/session/phone"/></rtp:encryption></
description></session></cli:iq>
Adding to roster: tahe...@gmail.com/Talk.v104E51EDB1F
nick
Available commands:

hangup Ends the call.
mute Stops sending voice.
unmute Re-starts sending voice.
dtmf Sends a DTMF tone.
quit Quits the application.


Adding to roster: tahe...@gmail.com/Talk.v104E51EDB1F
Adding to roster: tahe...@gmail.com/Talk.v104E51EDB1F
Removing from roster: tahe...@gmail.com/Talk.v104E51EDB1F

Regards,
Ravi Chobey
Reply all
Reply to author
Forward
0 new messages