linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Broken audio with Linphone & ALSA


From: Simon Morlat
Subject: Re: [Linphone-developers] Broken audio with Linphone & ALSA
Date: Tue, 25 Jan 2011 22:09:55 +0100

Hi John,

Linphone always attempt to use alsa with the minimal latency to minimize
the end-to end transmission delay. Unfortunately some drivers claim that
they are able to do low latency while they simply cannot.
The workaround is then to tell linphone to use alsa with bigger buffers:

read top of mediastreamer2/src/alsa.c

/*in case of troubles with a particular driver, try incrementing
ALSA_PERIOD_SIZE
to 512, 1024, 2048, 4096...
then try incrementing the number of periods*/
#define ALSA_PERIODS 8
#define ALSA_PERIOD_SIZE 256

You can indeed try to increment the ALSA_PERIOD_SIZE or ALSA_PERIODS and
see if it improves.

Other possibility is that the driver simply does not work when used at a
sample rate of 8000 hz (as telephony applications do). 

If alsa is definitely buggy for you, you can try an OSS4 driver
http://developer.opensound.com/
You will need to re build linphone from git tree to benefit from this
OSS driver.

Simon


Le dimanche 23 janvier 2011 à 18:10 +0000, John a écrit :
> Hello all,
> 
> I have a problem with linphone producing garbled audio when outputting via 
> ALSA.
> 
> If I use "soundcard files" and record to a .wav file then play the .wav file 
> with alsaplay I can hear perfect audio. Playing any other .wav file with 
> aplay produces normal sound, so I'm convinced that ALSA and the soundcard 
> themselves are fine.
> 
> But when I use the ALSA soundcard in linphone, all I can hear is garbled 
> audio. The voice is so faint it's inaudible, and there is a horrible 
> stuttering noise in the foreground.
> 
> Calling another linphone instance on another laptop gives perfect audio, so 
> I'm sure it's not a problem with the network, asterisk, codecs, etc (besides, 
> recording to file works fine). It's something between linphone and ALSA.
> 
> I've tried everything to debug this problem (been trying to get it working 
> for three weeks!), but I've hit a wall. Can anyone give me some pointers on 
> how I can get linphones ALSA output to sound like it does when I record to a 
> file?
> 
> I've pasted the aplay logs and the linphone logs (showing registration and a 
> call) in the hope one of you can spot something I've missed.
> 
> Thanks,
> 
> John
> 
> 
> 
> 
> 
> address@hidden:~/software/sounds# aplay -v newcall.wav 
> Playing WAVE 'newcall.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
> Plug PCM: Route conversion PCM (sformat=S16_LE)
>   Transformation table:
>     0 <- 0
>     1 <- 0
> Its setup is:
>   stream       : PLAYBACK
>   access       : RW_INTERLEAVED
>   format       : S16_LE
>   subformat    : STD
>   channels     : 1
>   rate         : 44100
>   exact rate   : 44100 (44100/1)
>   msbits       : 16
>   buffer_size  : 22052
>   period_size  : 5513
>   period_time  : 125011
>   tstamp_mode  : NONE
>   period_step  : 1
>   avail_min    : 5513
>   period_event : 0
>   start_threshold  : 22052
>   stop_threshold   : 22052
>   silence_threshold: 0
>   silence_size : 0
>   boundary     : 1945162816
> Slave: Hardware PCM card 0 'overo' device 0 subdevice 0
> Its setup is:
>   stream       : PLAYBACK
>   access       : MMAP_INTERLEAVED
>   format       : S16_LE
>   subformat    : STD
>   channels     : 2
>   rate         : 44100
>   exact rate   : 44100 (44100/1)
>   msbits       : 16
>   buffer_size  : 22052
>   period_size  : 5513
>   period_time  : 125011
>   tstamp_mode  : NONE
>   period_step  : 1
>   avail_min    : 5513
>   period_event : 0
>   start_threshold  : 22052
>   stop_threshold   : 22052
>   silence_threshold: 0
>   silence_size : 0
>   boundary     : 1945162816
>   appl_ptr     : 0
>   hw_ptr       : 0
> 
> 
> 
> 
> address@hidden:~/software/sounds# linphonec -a -d6
> INFO: no logfile, logging to stdout
> ortp-message-oRTP-0.16.3 initialized.
> ortp-message-Registering all filters...
> ortp-message-Registering all soundcard handlers
> ortp-message-Card ALSA: default device added
> ALSA lib conf.c:4600:(snd_config_expand) Unknown parameters 0
> ALSA lib control.c:902:(snd_ctl_open_noupdate) Invalid CTL default:0
> ortp-warning-Could not attach mixer to card: Invalid argument
> ortp-message-Card ALSA: overo added
> 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 15s before waking up!
> Ready
> Warning: video is disabled in linphonec, use -V or -C or -D to enable.
> linphonec> ortp-message-New local ip address is 192.168.1.102
> ortp-message-Network state is now [UP]
> ortp-message-allocating transaction ressource 1 2147473328
> ortp-message-allocating NICT context
> ortp-message-DNS resolution with asterisk:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> REGISTER sip:asterisk SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.102:5060;rport;branch=z9hG4bK1978795012
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>
> Call-ID: 2147473328
> CSeq: 1 REGISTER
> Contact: <sip:address@hidden>
> Max-Forwards: 70
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Expires: 3600
> Content-Length: 0
> 
> 
> ortp-message-cb_sndregister (id=1)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 
> 192.168.1.102:5060;branch=z9hG4bK1978795012;received=91.125.133.74;rport=13522
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>;tag=as0013ffba
> Call-ID: 2147473328
> CSeq: 1 REGISTER
> Server: Asterisk PBX 1.6.2.15
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="01abded4"
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:2147473328
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcv4xx (id=1)
> ortp-message-eXosip: timer sec:5 usec:10000!
> ortp-message-linphone process event get a message 2
> 
> ortp-message-REGISTRATION_FAILURE
> 
> ortp-message-auth_requested() for realm="asterisk", username=0019883AB008
> ortp-message-auth_requested(): authenticating realm="asterisk", 
> username=0019883AB008
> ortp-message-Authentication info for 0019883AB008 "asterisk" added to eXosip
> ortp-message-INFO: authinfo: "asterisk" "asterisk"
> ortp-message-allocating transaction ressource 2 2147473328
> ortp-message-allocating NICT context
> ortp-message-eXosip_default_action() done
> ortp-message-DNS resolution with asterisk:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> REGISTER sip:asterisk SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.102:5060;rport;branch=z9hG4bK1325889996
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>
> Call-ID: 2147473328
> CSeq: 2 REGISTER
> Contact: <sip:address@hidden>
> Authorization: Digest username="0019883AB008", realm="asterisk", 
> nonce="01abded4", uri="sip:asterisk", 
> response="9eab564578093cc3fd794fd28a93b273", algorithm=MD5
> Max-Forwards: 70
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Expires: 3600
> Content-Length: 0
> 
> 
> ortp-message-cb_sndregister (id=2)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> OPTIONS sip:address@hidden:13522 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK5abab13b;rport
> Max-Forwards: 70
> From: "asterisk" <sip:address@hidden>;tag=as59481a11
> To: <sip:address@hidden:13522>
> Contact: <sip:address@hidden>
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> User-Agent: Asterisk PBX 1.6.2.15
> Date: Sun, 23 Jan 2011 17:57:29 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:7d503eff00a384a354caae0d28cc5891
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-This is a request
> ortp-message-allocating transaction ressource 3 
> 7d503eff00a384a354caae0d28cc5891
> ortp-message-allocating NIST context
> ortp-message-cb_rcvunkrequest (id=3)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 
> 192.168.1.102:5060;branch=z9hG4bK1325889996;received=91.125.133.74;rport=13522
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>;tag=as0013ffba
> Call-ID: 2147473328
> CSeq: 2 REGISTER
> Server: Asterisk PBX 1.6.2.15
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Expires: 3600
> Contact: <sip:address@hidden:5060>;expires=3600
> Date: Sun, 23 Jan 2011 17:57:29 GMT
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:2147473328
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcv2xx (id=2)
> ortp-message-eXosip: timer sec:4 usec:10000!
> ortp-message-linphone process event get a message 27
> 
> ortp-message-in other_request
> ortp-message-linphone process event get a message 1
> 
> ortp-message-"asterisk"/0019883AB008 authentication works.
> ortp-message-authinfo: No authentication found for 0019883AB008 "asterisk"
> ortp-message-allocating transaction ressource 4 2147473328
> ortp-message-allocating NICT context
> ortp-message-Resending new register with updated contact 
> <sip:address@hidden:13522>
> ortp-message-DNS resolution with asterisk:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> REGISTER sip:asterisk SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.102:5060;rport;branch=z9hG4bK1621024602
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>
> Call-ID: 2147473328
> CSeq: 3 REGISTER
> Contact: <sip:address@hidden:13522>
> Max-Forwards: 70
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Expires: 3600
> Content-Length: 0
> 
> 
> ortp-message-cb_sndregister (id=4)
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK5abab13b;rport=5060
> From: "asterisk" <sip:address@hidden>;tag=as59481a11
> To: <sip:address@hidden:13522>;tag=529812774
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, SUBSCRIBE, NOTIFY, INFO
> Accept: application/sdp
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=3)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> OPTIONS sip:address@hidden:13522 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK5abab13b;rport
> Max-Forwards: 70
> From: "asterisk" <sip:address@hidden>;tag=as59481a11
> To: <sip:address@hidden:13522>
> Contact: <sip:address@hidden>
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> User-Agent: Asterisk PBX 1.6.2.15
> Date: Sun, 23 Jan 2011 17:57:29 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:7d503eff00a384a354caae0d28cc5891
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcvreq_retransmission (id=3)
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK5abab13b;rport=5060
> From: "asterisk" <sip:address@hidden>;tag=as59481a11
> To: <sip:address@hidden:13522>;tag=529812774
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, SUBSCRIBE, NOTIFY, INFO
> Accept: application/sdp
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_sndresp_retransmission (id=3)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 
> 192.168.1.102:5060;branch=z9hG4bK1621024602;received=91.125.133.74;rport=13522
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>;tag=as0013ffba
> Call-ID: 2147473328
> CSeq: 3 REGISTER
> Server: Asterisk PBX 1.6.2.15
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="552e8217"
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:2147473328
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcv4xx (id=4)
> ortp-message-eXosip: timer sec:3 usec:10000!
> ortp-message-linphone process event get a message 2
> 
> ortp-message-REGISTRATION_FAILURE
> 
> ortp-message-auth_requested() for realm="asterisk", username=0019883AB008
> ortp-message-auth_requested(): authenticating realm="asterisk", 
> username=0019883AB008
> ortp-message-Authentication info for 0019883AB008 "asterisk" added to eXosip
> ortp-message-INFO: authinfo: "asterisk" "asterisk"
> ortp-message-allocating transaction ressource 5 2147473328
> ortp-message-allocating NICT context
> ortp-message-eXosip_default_action() done
> ortp-message-DNS resolution with asterisk:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> REGISTER sip:asterisk SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.102:5060;rport;branch=z9hG4bK331039611
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>
> Call-ID: 2147473328
> CSeq: 4 REGISTER
> Contact: <sip:address@hidden:13522>
> Authorization: Digest username="0019883AB008", realm="asterisk", 
> nonce="552e8217", uri="sip:asterisk", 
> response="0db82fbb04eeace227df490d98dcae3f", algorithm=MD5
> Max-Forwards: 70
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Expires: 3600
> Content-Length: 0
> 
> 
> ortp-message-cb_sndregister (id=5)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> OPTIONS sip:address@hidden:13522 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK17a24db9;rport
> Max-Forwards: 70
> From: "asterisk" <sip:address@hidden>;tag=as6dfaf285
> To: <sip:address@hidden:13522>
> Contact: <sip:address@hidden>
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> User-Agent: Asterisk PBX 1.6.2.15
> Date: Sun, 23 Jan 2011 17:57:31 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:163d85717293d8f061855a7b4058c90d
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-This is a request
> ortp-message-allocating transaction ressource 6 
> 163d85717293d8f061855a7b4058c90d
> ortp-message-allocating NIST context
> ortp-message-cb_rcvunkrequest (id=6)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Received message: 
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 
> 192.168.1.102:5060;branch=z9hG4bK331039611;received=91.125.133.74;rport=13522
> From: <sip:address@hidden>;tag=545617771
> To: <sip:address@hidden>;tag=as0013ffba
> Call-ID: 2147473328
> CSeq: 4 REGISTER
> Server: Asterisk PBX 1.6.2.15
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Expires: 3600
> Contact: <sip:address@hidden:5060>;expires=3600
> Date: Sun, 23 Jan 2011 17:57:31 GMT
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:2147473328
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcv2xx (id=5)
> ortp-message-eXosip: timer sec:2 usec:10000!
> ortp-message-linphone process event get a message 27
> 
> ortp-message-in other_request
> ortp-message-linphone process event get a message 1
> 
> ortp-message-"asterisk"/0019883AB008 authentication works.
> ortp-message-Register has up to date contact, doing nothing.
> Registration on sip:asterisk successful.
> linphonec> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK17a24db9;rport=5060
> From: "asterisk" <sip:address@hidden>;tag=as6dfaf285
> To: <sip:address@hidden:13522>;tag=1041172002
> Call-ID: address@hidden
> CSeq: 102 OPTIONS
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, SUBSCRIBE, NOTIFY, INFO
> Accept: application/sdp
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=6)
> ortp-message-eXosip: timer sec:1 usec:100000!
> ortp-message-cb_nict_kill_transaction (id=1)
> ortp-message-Release a terminated transaction
> ortp-message-free transaction ressource 1 2147473328
> ortp-message-free nict ressource
> ortp-message-eXosip: timer sec:1 usec:10000!
> ortp-message-cb_nict_kill_transaction (id=2)
> ortp-message-Release a terminated transaction
> ortp-message-free transaction ressource 2 2147473328
> ortp-message-free nict ressource
> ortp-message-eXosip: timer sec:1 usec:10000!
> ortp-message-cb_nict_kill_transaction (id=4)
> ortp-message-Release a terminated transaction
> ortp-message-free transaction ressource 4 2147473328
> ortp-message-free nict ressource
> ortp-message-eXosip: timer sec:1 usec:10000!
> ortp-message-cb_nict_kill_transaction (id=5)
> ortp-message-eXosip: Reseting timer to 15s before waking up!
> ortp-message-Received message: 
> INVITE sip:address@hidden:5060 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK3211c171;rport
> Max-Forwards: 70
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>
> Contact: <sip:address@hidden>
> Call-ID: address@hidden
> CSeq: 102 INVITE
> User-Agent: Asterisk PBX 1.6.2.15
> Date: Sun, 23 Jan 2011 17:57:43 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Content-Type: application/sdp
> Content-Length: 239
> 
> v=0
> o=root 858577545 858577545 IN IP4 178.79.148.121
> s=Asterisk PBX 1.6.2.15
> c=IN IP4 178.79.148.121
> t=0 0
> m=audio 12636 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=ptime:20
> a=sendrecv
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:629fc37108c38e00029714b16680dfa5
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-This is a request
> ortp-message-allocating transaction ressource 7 
> 629fc37108c38e00029714b16680dfa5
> ortp-message-allocating IST context
> ortp-message-cb_rcvinvite (id=7)
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK3211c171;rport=5060
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>
> Call-ID: address@hidden
> CSeq: 102 INVITE
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=7)
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 101 Dialog Establishement
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK3211c171;rport=5060
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Call-ID: address@hidden
> CSeq: 102 INVITE
> Contact: <sip:address@hidden:5060>
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=7)
> ortp-message-eXosip: Keep Alive sent on UDP!
> ortp-message-eXosip: Reseting timer to 15s before waking up!
> ortp-message-eXosip: Reseting timer to 15s before waking up!
> ortp-message-linphone process event get a message 5
> 
> ortp-message-CALL_NEW
> 
> ortp-message-Found payload PCMU/8000 fmtp=
> ortp-message-Found payload telephone-event/8000 fmtp=0-16
> ortp-message-allocating transaction ressource 8 1294408177
> ortp-message-allocating NICT context
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> OPTIONS sip:178.79.148.121:5060 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.102:5060;rport;branch=z9hG4bK114410855
> Route: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> From: <sip:address@hidden:13522>;tag=696865555
> To: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> Call-ID: 1294408177
> CSeq: 20 OPTIONS
> Accept: application/sdp
> Max-Forwards: 70
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Expires: 120
> Content-Length: 0
> 
> 
> ortp-message-cb_sndoptions (id=8)
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-Notifying all friends that we are in status 5
> ortp-message-Received message: 
> SIP/2.0 404 Not Found
> Via: SIP/2.0/UDP 
> 192.168.1.102:5060;branch=z9hG4bK114410855;received=91.125.133.74;rport=13522
> From: <sip:address@hidden:5060>;tag=696865555
> To: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> Call-ID: 1294408177
> CSeq: 20 OPTIONS
> Server: Asterisk PBX 1.6.2.15
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> Accept: application/sdp
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:1294408177
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-cb_rcv4xx (id=8)
> ortp-message-eXosip: timer sec:5 usec:10000!
> ortp-message-Partial MTU discovered : 1500
> ortp-error-send(): Message too long
> ortp-message-Doing SDP offer/answer process
> ortp-message-Processing for stream 0
> "johnlaptop" <sip:address@hidden> is contacting you.
> linphonec> ortp-message-Starting local ring...
> ortp-message-/usr/share/sounds/linphone/rings/oldphone.wav opened: 
> rate=44100,channel=2
> ortp-message-ms_filter_link: MSFilePlayer:0x46190,0-->MSAlsaWrite:0x46240,0
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 180 Ringing
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK3211c171;rport=5060
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Call-ID: address@hidden
> CSeq: 102 INVITE
> Contact: <sip:address@hidden:5060>
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=7)
> ortp-message-eXosip: timer sec:4 usec:100000!
> ortp-message-MS ticker priority set to max
> ortp-message-alsa_open_r: opening default:0 at 44100Hz, bits=16, stereo=1
> ortp-message-linphone process event get a message 31
> 
> ortp-message-Contact address updated to <sip:address@hidden:13522> for this 
> dialog
> ortp-message-ping reply !
> ortp-message-incoming call ringing for 0 seconds
> -------auto answering to call-------
> ortp-message-stop ringing
> ortp-warning-alsa_set_params: periodsize:1280 Using 1280
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-message-alsa_open_w: Audio params set
> ortp-message-ms_filter_unlink: MSFilePlayer:0x46190,0-->MSAlsaWrite:0x46240,0
> ortp-message-Audio (ring) MSTicker thread exiting
> ortp-message-ring stopped
> ortp-message-Contact has been fixed using OPTIONS to 
> <sip:address@hidden:13522>
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK3211c171;rport=5060
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Call-ID: address@hidden
> CSeq: 102 INVITE
> Contact: <sip:address@hidden:13522>
> Content-Type: application/sdp
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length:   203
> 
> v=0
> o=root 123456 654321 IN IP4 192.168.1.102
> s=A conversation
> c=IN IP4 192.168.1.102
> t=0 0
> m=audio 7078 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000/1
> a=rtpmap:101 telephone-event/8000/1
> a=fmtp:101 0-11
> 
> Connected.
> linphonec> ortp-message-Payload's bitrate is -1
> ortp-message-cb_snd123456xx (id=7)
> ortp-message-cb_nict_kill_transaction (id=7)
> ortp-message-eXosip: timer sec:4 usec:100000!
> ortp-message-MSUlawEnc: got ptime=20
> ortp-message-ms_filter_link: MSAlsaRead:0x44e20,0-->MSVolume:0x47dc8,0
> ortp-message-ms_filter_link: MSVolume:0x47dc8,0-->MSUlawEnc:0x47cf8,0
> ortp-message-ms_filter_link: MSUlawEnc:0x47cf8,0-->MSRtpSend:0x4ef78,0
> ortp-message-ms_filter_link: MSRtpRecv:0x57100,0-->MSUlawDec:0x47d68,0
> ortp-message-ms_filter_link: MSUlawDec:0x47d68,0-->MSDtmfGen:0x4bb08,0
> ortp-message-ms_filter_link: MSDtmfGen:0x4bb08,0-->MSEqualizer:0x540e0,0
> ortp-message-ms_filter_link: MSEqualizer:0x540e0,0-->MSVolume:0x53ff0,0
> ortp-message-ms_filter_link: MSVolume:0x53ff0,0-->MSAlsaWrite:0x47c80,0
> ortp-message-call answered.
> ortp-message-MS ticker priority set to max
> ortp-message-alsa_open_r: opening default:0 at 8000Hz, bits=16, stereo=0
> ortp-warning-alsa_set_params: periodsize:256 Using 256
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-message-alsa_open_r: Audio params set
> ortp-message-Received message: 
> ACK sip:address@hidden:5060 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK0828842c;rport
> Max-Forwards: 70
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Contact: <sip:address@hidden>
> Call-ID: address@hidden
> CSeq: 102 ACK
> User-Agent: Asterisk PBX 1.6.2.15
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:629fc37108c38e00029714b16680dfa5
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-This is a request
> ortp-message-eXosip: timer sec:4 usec:100000!
> ortp-message-synchronizing timestamp, diff=400
> ortp-message-alsa_open_r: opening default:0 at 8000Hz, bits=16, stereo=0
> ortp-warning-alsa_set_params: periodsize:256 Using 256
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-message-alsa_open_w: Audio params set
> ortp-message-linphone process event get a message 15
> 
> ortp-message-CALL_ACK
> ortp-message-bandwidth usage: audio=[d=79.9,u=80.9] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-bandwidth usage: audio=[d=81.4,u=82.2] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-bandwidth usage: audio=[d=80.5,u=80.5] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-bandwidth usage: audio=[d=81.8,u=81.1] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-eXosip: timer sec:0 usec:100000!
> ortp-message-cb_nict_kill_transaction (id=8)
> ortp-message-Release a terminated transaction
> ortp-message-free transaction ressource 8 1294408177
> ortp-message-free nict ressource
> ortp-message-eXosip: timer sec:13 usec:100000!
> ortp-message-bandwidth usage: audio=[d=79.4,u=81.0] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-bandwidth usage: audio=[d=80.0,u=81.6] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-bandwidth usage: audio=[d=80.7,u=80.0] video=[d=0.0,u=0.0] 
> kbit/sec
> ortp-message-Received message: 
> BYE sip:address@hidden:5060 SIP/2.0
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK60f4f214;rport
> Max-Forwards: 70
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Call-ID: address@hidden
> CSeq: 103 BYE
> User-Agent: Asterisk PBX 1.6.2.15
> X-Asterisk-HangupCause: Normal Clearing
> X-Asterisk-HangupCauseCode: 16
> Content-Length: 0
> 
> 
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-MESSAGE REC. CALLID:629fc37108c38e00029714b16680dfa5
> ortp-message-Message received from: 178.79.148.121:5060
> ortp-message-This is a request
> ortp-message-allocating transaction ressource 9 
> 629fc37108c38e00029714b16680dfa5
> ortp-message-allocating NIST context
> ortp-message-cb_rcvunkrequest (id=9)
> ortp-message-cb_rcv? (id=9)
> ortp-message-DNS resolution with 178.79.148.121:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-178.79.148.121 port 5060
> ortp-message-Message sent: (to dest=178.79.148.121:5060)
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 178.79.148.121:5060;branch=z9hG4bK60f4f214;rport=5060
> From: "johnlaptop" <sip:address@hidden>;tag=as433824e7
> To: <sip:address@hidden:13522>;tag=328765160
> Call-ID: address@hidden
> CSeq: 103 BYE
> User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> Content-Length: 0
> 
> 
> ortp-message-cb_snd123456xx (id=9)
> ortp-message-eXosip: timer sec:10 usec:100000!
> ortp-message-eXosip: timer sec:10 usec:100000!
> ortp-message-linphone process event get a message 18
> 
> ortp-message-EXOSIP_CALL_MESSAGE_NEW
> ortp-message-linphone process event get a message 25
> 
> ortp-message-CALL_CLOSED or CANCELLED
> 
> ortp-message-Current call terminated...
> ortp-message-oRTP-stats:
>    Audio session's RTP statistics :
> ortp-message- number of rtp packet sent=398
> ortp-message- number of rtp bytes sent=68456 bytes
> ortp-message- number of rtp packet received=389
> ortp-message- number of rtp bytes received=66908 bytes
> ortp-message- number of incoming rtp bytes successfully delivered to the 
> application=66736 
> ortp-message- number of times the application queried a packet that didn't 
> exist=802 
> ortp-message- number of rtp packet lost=0
> ortp-message- number of rtp packets received too late=0
> ortp-message- number of bad formatted rtp packets=0
> ortp-message- number of packet discarded because of queue overflow=0
> ortp-message-ms_filter_unlink: MSAlsaRead:0x44e20,0-->MSVolume:0x47dc8,0
> ortp-message-ms_filter_unlink: MSVolume:0x47dc8,0-->MSUlawEnc:0x47cf8,0
> ortp-message-ms_filter_unlink: MSUlawEnc:0x47cf8,0-->MSRtpSend:0x4ef78,0
> ortp-message-ms_filter_unlink: MSRtpRecv:0x57100,0-->MSUlawDec:0x47d68,0
> ortp-message-ms_filter_unlink: MSUlawDec:0x47d68,0-->MSDtmfGen:0x4bb08,0
> ortp-message-ms_filter_unlink: MSDtmfGen:0x4bb08,0-->MSEqualizer:0x540e0,0
> ortp-message-ms_filter_unlink: MSEqualizer:0x540e0,0-->MSVolume:0x53ff0,0
> ortp-message-ms_filter_unlink: MSVolume:0x53ff0,0-->MSAlsaWrite:0x47c80,0
> ortp-message-Audio MSTicker thread exiting
> Call terminated.
> linphonec> ortp-message-Notifying all friends that we are in status 1
> 
> 
> 
> 
>       
> 
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers





reply via email to

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