jigar-joshi / libjingle

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

example of call question #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
send call ip:192.168.8.221(WIN7)
    call.exe --voiceinput ./voice.rtpdump --videoinput ./video.rtpdump

receive call ip:192.168.0.236(WIN7)
    call.exe --voiceinput ./voice.rtpdump --videoinput ./video.rtpdump --voiceoutput voiceout.rtpdump --videooutput

two caller on one network;
but the receive caller can not recive voice or video ?
is my test way wrong or p2p error?
thanks!

What is the expected output? What do you see instead?

================================================================================
send client ip:192.168.8.221
================================================================================
C:\Users\Sun>call.exe --voiceinput ./voice.rtpdump --videoinput ./video.rtpdump
JID: sender_xx@gmail.com
Password:
Logging in to talk.google.com as sender_xx@gmail.com
talk_base::Win32Socket::Connect: async dns lookup (talk.google.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) talk_base::Win32Socket::OnDnsNotify: (72.14.203.125, 0)
WSAAsync:connect (78 ms)

logging in...
(call)
logged in...
(call)
Adding to roster: receiver_xx@gmail.com/call1353A833
(call)
Adding to roster: receiver_xx@gmail.com/gmail.7D31033F
(call) call receiver_xx@gmail.com

Found online friend 'receiver_xx@gmail.com/call1353A833'
(call) Created channel
Setting local voice description

calling...
(receiver_xx@gmail.com/call1353A833) Channel enabled
Changing voice state, recv=1 send=0
Jingle:Net[Dell:192.168.8.221]: Allocation Phase=Udp (Step=0)
Jingle:Port[:local:Net[Dell:192.168.8.221]]: Port created
Jingle:Port[rtp:local:Net[Dell:192.168.8.221]]: Added port to allocator
Jingle:Port[:stun:Net[Dell:192.168.8.221]]: Port created
Jingle:Port[rtp:stun:Net[Dell:192.168.8.221]]: Added port to allocator
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:local:udp:192.168.0.236:62853
|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (1 total)
Jingle:Conn[0:rtp:local:udp:192.168.8.221:53177->rtp:local:udp:192.168.0.236:628
53|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (2 total)
Jingle:Channel[rtp|__]: New best connection: Conn[0:rtp:local:udp:192.168.8.221:
53177->rtp:local:udp:192.168.0.236:62853|C-w|3000]
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:stun:udp:218.61.39.111:7527|C
-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (3 total)
Jingle:Conn[0:rtp:local:udp:192.168.8.221:53177->rtp:stun:udp:218.61.39.111:7527
|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (4 total)
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:stun:udp:192.168.0.236:62854|
C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=1, (5 total)
Jingle:Conn[0:rtp:local:udp:192.168.8.221:53177->rtp:stun:udp:192.168.0.236:6285
4|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=0, (6 total)
Channel socket writable (rtp)
Changing voice state, recv=1 send=0
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:local:udp:192.168.0.236:62853
|C--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (5 remaining)
Jingle:Conn[0:rtp:local:udp:192.168.8.221:53177->rtp:stun:udp:218.61.39.111:7527
|C--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (4 remaining)
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:stun:udp:218.61.39.111:7527|C
--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (3 remaining)
Setting remote voice description
SRTP reset to init state
Changing voice state, recv=1 send=1

call answered
(receiver_xx@gmail.com/call1353A833)
call in progress
(receiver_xx@gmail.com/call1353A833) s

Available commands:

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

(receiver_xx@gmail.com/call1353A833) dtmf

Available commands:

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

(receiver_xx@gmail.com/call1353A833) dtmf

Available commands:

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

(receiver_xx@gmail.com/call1353A833) dtmf

Available commands:

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

(receiver_xx@gmail.com/call1353A833) dtmf

Available commands:

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

(receiver_xx@gmail.com/call1353A833) 
Jingle:Conn[0:rtp:local:udp:192.168.8.221:53177
->rtp:stun:udp:192.168.0.236:62854|C--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (2 remaining)
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7523->rtp:stun:udp:192.168.0.236:62854|
C--|3000]: Connection deleted
Jingle:Port[rtp:stun:Net[Dell:192.168.8.221]]: Port deleted
Jingle:Port[rtp:stun:Net[Dell:192.168.8.221]]: Removed port from allocator (1 re
maining)
Removed port from p2p socket: 1 remaining
Jingle:Channel[rtp|RW]: Removed connection (1 remaining)
dtmf

Available commands:

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

(receiver_xx@gmail.com/call1353A833)
Removing from roster: receiver_xx@gmail.com/call1353A833
(receiver_xx@gmail.com/call1353A833) ^C

================================================================================
receive client ip:192.168.0.236
================================================================================
D:\OpenSource\libjingle5\talk\build\dbg\staging>call.exe --voiceinput ./voice.rt
pdump --videoinput ./video.rtpdump --voiceoutput voiceout.rtpdump --videooutput
videoout.rtpdump
JID: receiver_xx@gmail.com
Password:
Logging in to talk.google.com as receiver_xx@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) talk_base::Win32Socket::Connect: async dns lookup (talk.google.com)
talk_base::Win32Socket::OnDnsNotify: (72.14.203.125, 0)
WSAAsync:connect (63 ms)

logging in...
(call)
logged in...
(call) Ignoring device Google Camera Adapter 0
Ignoring device Google Camera Adapter 1
Ignoring device Google Camera Adapter 0
Ignoring device Google Camera Adapter 1
Ignoring device Google Camera Adapter 0
Ignoring device Google Camera Adapter 1

Adding to roster: receiver_xx@gmail.com/gmail.7D31033F
(call)
Removing from roster: sender_xx@gmail.com/call7088B2DD
(call)
Removing from roster: sender_xx@gmail.com/call7088B2DD
(call)
Removing from roster: sender_xx@gmail.com/call1673A43B
(call) Created channel
Setting remote voice description
Changing voice state, recv=0 send=0

Incoming call from 'sender_xx@gmail.com/call1673A43B'
(call) Jingle:Net[Intel(R):192.168.0.236]: Allocation Phase=Udp (Step=0)
Jingle:Port[:local:Net[Intel(R):192.168.0.236]]: Port created
Jingle:Port[rtp:local:Net[Intel(R):192.168.0.236]]: Added port to allocator
Jingle:Port[:stun:Net[Intel(R):192.168.0.236]]: Port created
Jingle:Port[rtp:stun:Net[Intel(R):192.168.0.236]]: Added port to allocator
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7527->rtp:local:udp:192.168.8.221:53177
|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (1 total)
Jingle:Conn[0:rtp:local:udp:192.168.0.236:62853->rtp:local:udp:192.168.8.221:531
77|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (2 total)
Jingle:Channel[rtp|__]: New best connection: Conn[0:rtp:local:udp:192.168.0.236:
62853->rtp:local:udp:192.168.8.221:53177|C-w|3000]
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7527->rtp:stun:udp:218.61.39.111:7523|C
-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (3 total)
Jingle:Conn[0:rtp:local:udp:192.168.0.236:62853->rtp:stun:udp:218.61.39.111:7523
|C-w|3000]: Connection created
Jingle:Channel[rtp|__]: Created connection with origin=2, (4 total)
Jingle:Channel[rtp|R_]: New best connection: Conn[0:rtp:stun:udp:218.61.39.111:7
527->rtp:local:udp:192.168.8.221:53177|C-W|2285]
Channel socket writable (rtp)
Changing voice state, recv=0 send=0
Jingle:Conn[0:rtp:local:udp:192.168.0.236:62853->rtp:stun:udp:218.61.39.111:7523
|C--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (3 remaining)
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7527->rtp:stun:udp:218.61.39.111:7523|C
--|3000]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (2 remaining)
Jingle:Channel[rtp|RW]: New best connection: Conn[0:rtp:local:udp:192.168.0.236:
62853->rtp:local:udp:192.168.8.221:53177|CRW|2253]
Jingle:Conn[0:rtp:stun:udp:218.61.39.111:7527->rtp:local:udp:192.168.8.221:53177
|C--|2285]: Connection deleted
Jingle:Channel[rtp|RW]: Removed connection (1 remaining)
accept
Setting local voice description
SRTP reset to init state
Channel enabled
Changing voice state, recv=1 send=1

call in progress
(call) Jingle:Port[rtp:stun:Net[Intel(R):192.168.0.236]]: Port deleted
Jingle:Port[rtp:stun:Net[Intel(R):192.168.0.236]]: Removed port from allocator (
1 remaining)
Removed port from p2p socket: 1 remaining
^C

What version of the product are you using? On what operating system?
Win7 and VS2010

Please provide any additional information below.

Original issue reported on code.google.com by aton...@gmail.com on 14 Jan 2011 at 10:03

GoogleCodeExporter commented 9 years ago
Could you please run the call.exe with debugging switch ("call.exe -d"). It'll 
generate more useful debugging information.

Original comment by jun...@google.com on 15 Jan 2011 at 6:34

GoogleCodeExporter commented 9 years ago
thanks, log file is call with -d.

Original comment by aton...@gmail.com on 17 Jan 2011 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
On the receiver side, you need to use "-a" switch to "auto accept calls". So 
the command should be:
D:\OpenSource\libjingle5\talk\build\dbg\staging>call.exe --voiceinput ./voice.rt
pdump --videoinput ./video.rtpdump --voiceoutput voiceout.rtpdump --videooutput
videoout.rtpdump -a

Original comment by jun...@google.com on 25 Jan 2011 at 10:05