Subject: Gtalk Voip
Hello ,
I am trying to implement the Gtalk voip client.
In that to call a buddy the first stanza tht must be sent is as follows:
<iq to="xyz@gmail.com/Talk.v104D273568E" type="set" id="203"><session xmlns="http://www.google.com/session" type="initiate" id="4259145837" initiator="abc@gmail.com/Talk.v104E40E936E"><description xmlns="http://www.google.com/session/phone" xml:lang="en"><payload-type xmlns="http://www.google.com/session/phone" id="103" name="ISAC" clockrate="16000"/><payload-type xmlns="http://www.google.com/session/phone" id="97" name="IPCMWB" clockrate="16000" bitrate="80000"/><payload-type xmlns="http://www.google.com/session/phone" id="99" name="speex" clockrate="16000" bitrate="22000"/><payload-type xmlns="http://www.google.com/session/phone" id="4" name="G723" clockrate="8000" bitrate="6300"/><payload-type xmlns="http://www.google.com/session/phone" id="98" name="speex" clockrate="8000" bitrate="11000"/><payload-type xmlns="http://www.google.com/session/phone" id="100" name="EG711U" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="101" name="EG711A" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="0" name="PCMU" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="8" name="PCMA" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="13" name="CN" clockrate="8000"/><payload-type xmlns="http://www.google.com/session/phone" id="102" name="iLBC" clockrate="8000" bitrate="13300"/><payload-type xmlns="http://www.google.com/session/phone" id="106" name="telephone-event" clockrate="8000"/></description><transport xmlns="http://www.google.com/transport/p2p"/></session></iq>
Then Gtalk sever replies with the 2 stanzas as follows:
<iq to="abc@gmail.com/Talk.v104E40E936E" id="203" type="result" from="xyz@gmail.com/Talk.v104D273568E"/>
<iq to="abc@gmail.com/Talk.v104E40E936E" type="set" id="200" from="xyz@gmail.com/Talk.v104D273568E"><session type="transport-accept" id="4259145837" initiator="kaaustubh@gmail.com/Talk.v104E40E936E" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"/></session></iq>
Then after everytime Gtalk sever communicates with the client the "transport Info" stanza it sends the encrypted username and passwd with tht stanza.
eg:
<iq to="abc@gmail.com/Talk.v104E40E936E" type="set" id="202" from="xyz@gmail.com/Talk.v104D273568E"><session type="transport-info" id="4259145837" initiator="kaaustubh@gmail.com/Talk.v104E40E936E" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"><candidate name="rtp" address="169.254.2.2" port="2535" preference="1" username="W0knXRzOnN95OhnG" protocol="udp" generation="0" password="B9xNGgwVZneHPiVi" type="local" network="0"/></transport></session></iq>
I want to know how the username and passwd are encrypted in tht?
I am trying to implement the Gtalk voip client.
In that to call a buddy the first stanza tht must be sent is as follows:
<iq to="xyz@gmail.com/Talk.v104D273568E" type="set" id="203"><session xmlns="http://www.google.com/session" type="initiate" id="4259145837" initiator="abc@gmail.com/Talk.v104E40E936E"><description xmlns="http://www.google.com/session/phone" xml:lang="en"><payload-type xmlns="http://www.google.com/session/phone" id="103" name="ISAC" clockrate="16000"/><payload-type xmlns="http://www.google.com/session/phone" id="97" name="IPCMWB" clockrate="16000" bitrate="80000"/><payload-type xmlns="http://www.google.com/session/phone" id="99" name="speex" clockrate="16000" bitrate="22000"/><payload-type xmlns="http://www.google.com/session/phone" id="4" name="G723" clockrate="8000" bitrate="6300"/><payload-type xmlns="http://www.google.com/session/phone" id="98" name="speex" clockrate="8000" bitrate="11000"/><payload-type xmlns="http://www.google.com/session/phone" id="100" name="EG711U" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="101" name="EG711A" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="0" name="PCMU" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="8" name="PCMA" clockrate="8000" bitrate="64000"/><payload-type xmlns="http://www.google.com/session/phone" id="13" name="CN" clockrate="8000"/><payload-type xmlns="http://www.google.com/session/phone" id="102" name="iLBC" clockrate="8000" bitrate="13300"/><payload-type xmlns="http://www.google.com/session/phone" id="106" name="telephone-event" clockrate="8000"/></description><transport xmlns="http://www.google.com/transport/p2p"/></session></iq>
Then Gtalk sever replies with the 2 stanzas as follows:
<iq to="abc@gmail.com/Talk.v104E40E936E" id="203" type="result" from="xyz@gmail.com/Talk.v104D273568E"/>
<iq to="abc@gmail.com/Talk.v104E40E936E" type="set" id="200" from="xyz@gmail.com/Talk.v104D273568E"><session type="transport-accept" id="4259145837" initiator="kaaustubh@gmail.com/Talk.v104E40E936E" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"/></session></iq>
Then after everytime Gtalk sever communicates with the client the "transport Info" stanza it sends the encrypted username and passwd with tht stanza.
eg:
<iq to="abc@gmail.com/Talk.v104E40E936E" type="set" id="202" from="xyz@gmail.com/Talk.v104D273568E"><session type="transport-info" id="4259145837" initiator="kaaustubh@gmail.com/Talk.v104E40E936E" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"><candidate name="rtp" address="169.254.2.2" port="2535" preference="1" username="W0knXRzOnN95OhnG" protocol="udp" generation="0" password="B9xNGgwVZneHPiVi" type="local" network="0"/></transport></session></iq>
I want to know how the username and passwd are encrypted in tht?

shoan
Show profile
Link to this post