I have ported
"libeXosip2-3.3.0¡¢libogg-1.1.3-1¡¢libosip2-3.3.0¡¢linphone-3.1.2¡¢speex"
to S3C2410 which linux kernel is 2.6.8 and used oss driver. i disable
linphone's gui and video support.
now one board can connect to the another, but i can't hear any voice include local ring and remote ring.
>From log I find oss_thread() don't get schedule after start. I think
cpu is blocked in ms_ticker_run(), and add some log in ms_ticker_run():
log file show some message: ........ ortp-message-ms_ticker_run, s->time 0xa, realtime 0x0, diff 0x1, (null) ortp-message-ms_ticer_run, sleep 0x9 MS ........
There is some problem in message:
1. diff value is invalid and different in two positions, should be 0xa, but not 0x1 and 0x9 2.
should sleep 10Ms, but not 9Ms. the kernel HZ is 100, if sleep
<10ms, is cpu can let this thread sleep and schedule other thread?
my cross-compile toolchain is arm-linux-gcc-3.3.2. if the problem of diff value is because of toolchain?
The follow is log list: ortp-message-oRTP-0.16.0 initialized.
ortp-message-Registering all filters... ortp-message-Registering all soundcard handlers ortp-message-oss_card_new, pcmdev /dev/dsp, mixdev /dev/mixer ortp-message-Card OSS: /dev/dsp added ortp-message-Loading plugins
ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No such file or directory ortp-message-ms_init() done ortp-message-Cannot open directory /usr/lib/liblinphone/plugins: No such file or directory
ortp-message-DNS resolution with 0.0.0.0:5060 ortp-message-getaddrinfo returned the following addresses: ortp-message-0.0.0.0 port 5060 ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-warning-keep alive: 3 ortp-message-eXosip: Reseting timer to 10s before waking up!
ortp-message-Received message: INVITE sip:address@hidden SIP/2.0 Via: SIP/2.0/UDP 192.168.0.2:5060;rport;branch=z9hG4bK2131305487 From: <sip:address@hidden>;tag=2008435371
To: <sip:address@hidden> Call-ID: 1293866681 CSeq: 20 INVITE Contact: <sip:address@hidden:5060> Content-Type: application/sdp
Max-Forwards: 70 User-Agent: Linphone/3.1.2 (eXosip2/3.3.0) Subject: Phone call Content-Length: 286
ortp-message-Message received from: 192.168.0.2:5060
ortp-message-Message received from: 192.168.0.2:5060 ortp-message-MESSAGE REC. CALLID:1293866681 ortp-message-Message received from: 192.168.0.2:5060
ortp-message-This is a request ortp-message-allocating transaction ressource 1 1293866681 ortp-message-allocating IST context ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.0.3 ortp-message-cb_rcvinvite (id=1)
ortp-message-DNS resolution with 192.168.0.2:5060 ortp-message-getaddrinfo returned the following addresses: ortp-message-192.168.0.2 port 5060 ortp-message-Message sent: (to dest=192.168.0.2:5060)
SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.0.2:5060;rport=5060;branch=z9hG4bK2131305487 From: <sip:address@hidden>;tag=2008435371 To: <sip:address@hidden>
Call-ID: 1293866681 CSeq: 20 INVITE User-Agent: Linphone/3.1.2 (eXosip2/3.3.0) Content-Length: 0
ortp-message-cb_snd123456xx (id=1) ortp-message-DNS resolution with 192.168.0.2:5060
ortp-message-getaddrinfo returned the following addresses: ortp-message-192.168.0.2 port 5060 ortp-message-Message sent: (to dest=192.168.0.2:5060) SIP/2.0 101 Dialog Establishement
Via: SIP/2.0/UDP 192.168.0.2:5060;rport=5060;branch=z9hG4bK2131305487 From: <sip:address@hidden>;tag=2008435371 To: <sip:address@hidden>;tag=1076884318
Call-ID: 1293866681 CSeq: 20 INVITE Contact: <sip:address@hidden:5060> User-Agent: Linphone/3.1.2 (eXosip2/3.3.0) Content-Length: 0
ortp-message-cb_snd123456xx (id=1)
ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-eXosip: Reseting timer to 10s before waking up! ortp-message-CALL_NEW
ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.0.3
ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.0.3 ortp-message-Notifying all friends that we are in status 5 ortp-message-Partial MTU discovered : 1500 ortp-message-Partial MTU discovered : 1500
ortp-message-mtu to 192.168.0.2 is 1500 ortp-message-Discovered mtu is 1500, RTP payload max size is 1440 ortp-message-Using firewall address in sdp. ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.0.3
ortp-message-Starting local ring... ortp-message-DNS resolution with 192.168.0.2:5060 ortp-message-getaddrinfo returned the following addresses: ortp-message-192.168.0.2 port 5060
ortp-message-Message sent: (to dest=192.168.0.2:5060) SIP/2.0 180 Ringing Via: SIP/2.0/UDP 192.168.0.2:5060;rport=5060;branch=z9hG4bK2131305487 From: <sip:address@hidden>;tag=2008435371
To: <sip:address@hidden>;tag=1076884318 Call-ID: 1293866681 CSeq: 20 INVITE Contact: <sip:address@hidden:5060>
User-Agent: Linphone/3.1.2 (eXosip2/3.3.0) Content-Length: 0