linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Mediastream Fail.


From: .Kǎκa
Subject: [Linphone-developers] Mediastream Fail.
Date: Sat, 3 Jan 2009 15:43:08 +0800

Hi,all
 
Thanks for reading.I really appreciate your help!
I cross-compile mediastreamer2, ortp, osip and some necessary packages on my FreeScale MX27(arm-926ejs). First I send a INVITE from mx27 to a hardphone, after the hardphone answered(MX27 received 200OK), The SDP told that MX27 would recv PCMU RTP at port 16770 and the port of hardphone was 10384. Then I run the test program ---- mediastream like this:
 
mediastream --local 16770 --remote hardphoneIP:10384 --payload 0
 
It was supposed to build a duplex conversation between MX27 and the hardphone, but in reality, only MX27 can recv audio from the mic of the hardphone while the hardphone can not hear anything.
Strangely, when I changed the arguments of mediastream:
 
mediastream --local 16540 --remote hardphoneIP:10384 --payload 0
(P.S: 16540 didn't mean anything, it was just a wrong port number)
 
In this case, MX27 cannot hear anything of course, but hardphone can hear the voice from MX27.So the conclusion seems to be like this: If mediastream gets some RTP packages from local port ,it will not send the sound from its mic to the remote port; but if it gets nothing from local port, it can send out the sound.
 
The sound card is PMIC-AUDIO ,the driver is ALSA.
 
./mediastream --local 16770 --remote hardphoneIP:10384 --payload 0
Remote addr: ip=192.168.2.100 port=10384
ortp-message-Registering all filters...
ortp-message-Registering all soundcard handlers
ortp-message-Card ALSA: default device added
ortp-message-Card ALSA: PMIC-audio added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Loading plugins
ortp-message-Cannot open directory /root/osip/lib/mediastreamer/plugins: No such file or directory
ortp-message-ms_init() done
Starting audio stream.
ortp-message-captcard=default device, playcard=default device
ortp-message-Setting audio encoder network bitrate to 64000
ortp-message-ms_filter_link: MSAlsaRead:0x14ef8,0-->MSUlawEnc:0x14fb0,0
ortp-message-ms_filter_link: MSDtmfGen:0x14e78,0-->MSAlsaWrite:0x14f38,0
ortp-message-ms_filter_link: MSUlawEnc:0x14fb0,0-->MSRtpSend:0x14d50,0
ortp-message-ms_filter_link: MSRtpRecv:0x14dc0,0-->MSUlawDec:0x15050,0
ortp-message-ms_filter_link: MSUlawDec:0x15050,0-->MSDtmfGen:0x14e78,0
ortp-error-MSAlsaRead
ortp-error-MSUlawEnc
ortp-error-MSRtpSend
ortp-error-MSRtpRecv
ortp-error-MSUlawDec
ortp-error-MSDtmfGen
ortp-error-MSAlsaWrite
ortp-warning-We are late of 246 miliseconds.
ortp-warning-We are late of 678 miliseconds.
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=0
 number of rtp bytes sent=0 bytes
 number of rtp packet received=53
 number of rtp bytes received=9116 bytes
 number of incoming rtp bytes successfully delivered to the application=7912
 number of times the application queried a packet that didn't exist=102
 number of rtp packet lost=0
 number of rtp packets received too late=5
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=111.474656 kbits/sec, upload=0.000000 kbits/sec
ortp-message-Receiving RTCP RR
ortp-message-Receiving RTCP SDES
ortp-message-Found CNAME=
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=0
 number of rtp bytes sent=0 bytes
 number of rtp packet received=103
 number of rtp bytes received=17716 bytes
 number of incoming rtp bytes successfully delivered to the application=16340
 number of times the application queried a packet that didn't exist=202
 number of rtp packet lost=0
 number of rtp packets received too late=5
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=79.984242 kbits/sec, upload=0.000000 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=0
 number of rtp bytes sent=0 bytes
 number of rtp packet received=154
 number of rtp bytes received=26488 bytes
 number of incoming rtp bytes successfully delivered to the application=25284
 number of times the application queried a packet that didn't exist=304
 number of rtp packet lost=0
 number of rtp packets received too late=5
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=80.840984 kbits/sec, upload=0.000000 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=0
 number of rtp bytes sent=0 bytes
 number of rtp packet received=205
 number of rtp bytes received=35260 bytes
 number of incoming rtp bytes successfully delivered to the application=34056
 number of times the application queried a packet that didn't exist=406
 number of rtp packet lost=0
 number of rtp packets received too late=5
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
 
./mediastream --local 16540 --remote hardphoneIP:10384 --payload 0
Remote addr: ip=192.168.2.100 port=10384
ortp-message-Registering all filters...
ortp-message-Registering all soundcard handlers
ortp-message-Card ALSA: default device added
ortp-message-Card ALSA: PMIC-audio added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Loading plugins
ortp-message-Cannot open directory /root/osip/lib/mediastreamer/plugins: No such file or directory
ortp-message-ms_init() done
Starting audio stream.
ortp-message-captcard=default device, playcard=default device
ortp-message-Setting audio encoder network bitrate to 64000
ortp-message-ms_filter_link: MSAlsaRead:0x14ef8,0-->MSUlawEnc:0x14fb0,0
ortp-message-ms_filter_link: MSDtmfGen:0x14e78,0-->MSAlsaWrite:0x14f38,0
ortp-message-ms_filter_link: MSUlawEnc:0x14fb0,0-->MSRtpSend:0x14d50,0
ortp-message-ms_filter_link: MSRtpRecv:0x14dc0,0-->MSUlawDec:0x15050,0
ortp-message-ms_filter_link: MSUlawDec:0x15050,0-->MSDtmfGen:0x14e78,0
ortp-error-MSAlsaRead
ortp-error-MSUlawEnc
ortp-error-MSRtpSend
ortp-error-MSRtpRecv
ortp-error-MSUlawDec
ortp-error-MSDtmfGen
ortp-error-MSAlsaWrite
ortp-warning-We are late of 244 miliseconds.
ortp-message-synchronizing timestamp, diff=2240
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=36
 number of rtp bytes sent=6192 bytes
 number of rtp packet received=0
 number of rtp bytes received=0 bytes
 number of incoming rtp bytes successfully delivered to the application=0
 number of times the application queried a packet that didn't exist=100
 number of rtp packet lost=0
 number of rtp packets received too late=0
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=0.000000 kbits/sec, upload=80.257383 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=88
 number of rtp bytes sent=15136 bytes
 number of rtp packet received=0
 number of rtp bytes received=0 bytes
 number of incoming rtp bytes successfully delivered to the application=0
 number of times the application queried a packet that didn't exist=202
 number of rtp packet lost=0
 number of rtp packets received too late=0
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=0.000000 kbits/sec, upload=83.195258 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=137
 number of rtp bytes sent=23564 bytes
 number of rtp packet received=0
 number of rtp bytes received=0 bytes
 number of incoming rtp bytes successfully delivered to the application=0
 number of times the application queried a packet that didn't exist=304
 number of rtp packet lost=0
 number of rtp packets received too late=0
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=0.000000 kbits/sec, upload=79.178406 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=188
 number of rtp bytes sent=32336 bytes
 number of rtp packet received=0
 number of rtp bytes received=0 bytes
 number of incoming rtp bytes successfully delivered to the application=0
 number of times the application queried a packet that didn't exist=406
 number of rtp packet lost=0
 number of rtp packets received too late=0
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
Bandwidth usage: download=0.000000 kbits/sec, upload=80.781203 kbits/sec
ortp-message-oRTP-stats:
   Global statistics :
 number of rtp packet sent=195
 number of rtp bytes sent=33540 bytes
 number of rtp packet received=0
 number of rtp bytes received=0 bytes
 number of incoming rtp bytes successfully delivered to the application=0
 number of times the application queried a packet that didn't exist=418
 number of rtp packet lost=0
 number of rtp packets received too late=0
 number of bad formatted rtp packets=0
 number of packet discarded because of queue overflow=0
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]