Linphonec looks like a good base for building desktop phone clients and its debugging output was helpful when reconfiguring the network. I've been using earlier versions happily with some servers, but I've upgraded to 1.6.0 and tried to register with aql.com and hit a few problems:
1. Can I make linphonec prefer particular codecs? 2. I'm sat behind a NAT gateway. UDP packets from the NAT IP address on relevant ports are forwarded to my Linphone computer. However, aql's proxy complained about the Via 192.168... header. It looked wrong to me too, so I hacked the source to call apply_nat_settings(lc) right after the linphone_core_set_sip_port(lc,port). How should I have put my external IP in the Via header? None of the firewall or nat_address settings seemed to work. 3. What should route parameters be? I tried entering sip:somestuff and linphone changed it to <sip:somestuff;lr> and calling didn't work then. Is this a way of avoiding having to proxy use and proxy unuse so much? I don't understand the October 2006 descriptions of route. 4. Finally, a log extract of a conversation with aql.com is below. I'm at 192.168.0.2 behind NAT 139.222.130.1 registered as [EMAIL PROTECTED] getting a call from 01934888888. For some reason, linphone is mentioning 192.168.... again, which means I can't hear anything. How should I fix that? If you need me to run more tests or pull more from logs, just ask. Thanks in advance for any help! [...] | INFO1 | <udp.c: 2208> Received message: INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK70cf61fa;rport From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060> Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE User-Agent: Asterisk PBX Max-Forwards: 70 Date: Sat, 10 Feb 2007 10:37:08 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Type: application/sdp Content-Length: 340 v=0 o=root 3388 3388 IN IP4 194.145.190.143 s=session c=IN IP4 194.145.190.143 t=0 0 m=audio 16224 RTP/AVP 8 0 3 18 97 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:97 iLBC/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - | INFO3 | <osip_event.c: 89> MESSAGE REC. CALLID:6c78af886bc8ad12761eb86e61605c1a | INFO1 | <udp.c: 2227> This is a request | INFO2 | <osip_transaction.c: 131> allocating transaction ressource 53 6c78af886bc8ad12761eb86e61605c1a | INFO2 | <ist.c: 31> allocating IST context | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jresponse.c: 209> eXosip: here is the resolved destination host=194.145.190.143 | INFO1 | <jcallback.c: 332> cb_rcvinvite (id=53) | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 100 Trying Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK70cf61fa;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060> Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Length: 0 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1674> cb_snd1xx (id=53) | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 101 Dialog Establishement Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK70cf61fa;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE Contact: <sip:[EMAIL PROTECTED]:5060> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Length: 0 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1674> cb_snd1xx (id=53) | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! ortp-message-CALL_NEW | INFO1 | <sdphandler.c: 261> Using firewall address in sdp. ortp-warning-payload G729 is not enabled. ortp-message-Refusing audio codec 18 (G729/8000) ortp-warning-payload iLBC is not enabled. ortp-message-Refusing audio codec 97 (iLBC/8000) | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jresponse.c: 209> eXosip: here is the resolved destination host=194.145.190.143 | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 180 Ringing Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK70cf61fa;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE Contact: <sip:[EMAIL PROTECTED]:5060> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Length: 0 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1674> cb_snd1xx (id=53) | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! ortp-message-Starting local ring... ortp-message-/Programs/Linphone/1.6.0/share/sounds/linphone/rings/oldphone.wav opened: rate=44100,channel=2 ortp-message-ms_filter_link: MSFilePlayer:0x4042f748,0-->MSAlsaWrite:0x4042f7b0,0 ortp-message-incoming call ringing for 0 seconds ortp-warning-alsa_set_params: The period size 1280 is not supported by your hardware. ==> Using 1278 instead. ortp-warning-We are late of 291 miliseconds. ortp-warning-We are late of 214 miliseconds. ortp-message-incoming call ringing for 1 seconds ortp-message-ms_filter_unlink: MSFilePlayer:0x4042f748,0-->MSAlsaWrite:0x4042f7b0,0 ortp-message-MSTicker thread exiting | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jresponse.c: 209> eXosip: here is the resolved destination host=194.145.190.143 | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 200 OK Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK70cf61fa;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE Contact: <sip:[EMAIL PROTECTED]:5060> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Type: application/sdp Content-Length: 234 v=0 o=mjr 123456 654321 IN IP4 139.222.130.1 s=A conversation c=IN IP4 139.222.130.1 t=0 0 m=audio 7078 RTP/AVP 8 0 3 101 b=AS:256 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1689> cb_snd2xx (id=53) | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! ortp-message-Setting audio encoder network bitrate to 64000 ortp-message-ms_filter_link: MSAlsaRead:0x4042f030,0-->MSAlawEnc:0x4042f1d0,0 ortp-message-ms_filter_link: MSDtmfGen:0x4042efd0,0-->MSAlsaWrite:0x4042f158,0 ortp-message-ms_filter_link: MSAlawEnc:0x4042f1d0,0-->MSRtpSend:0x4042f2e8,0 ortp-message-ms_filter_link: MSRtpRecv:0x4042ef30,0-->MSAlawDec:0x4042f270,0 ortp-message-ms_filter_link: MSAlawDec:0x4042f270,0-->MSDtmfGen:0x4042efd0,0 ortp-message-bandwidth usage: audio=[d=0.0,u=0.0] video=[d=0.0,u=0.0] kbit/sec | INFO1 | <udp.c: 2208> Received message: ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK46763efb;rport From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 102 ACK User-Agent: Asterisk PBX Max-Forwards: 70 Content-Length: 0 | INFO3 | <osip_event.c: 89> MESSAGE REC. CALLID:6c78af886bc8ad12761eb86e61605c1a | INFO1 | <udp.c: 2227> This is a request | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! | INFO1 | <udp.c: 2208> Received message: INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK233c4968;rport From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 103 INVITE User-Agent: Asterisk PBX Max-Forwards: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Type: application/sdp Content-Length: 365 v=0 o=root 3388 3389 IN IP4 213.166.5.134 s=session c=IN IP4 213.166.5.134 t=0 0 m=audio 16612 RTP/AVP 8 0 3 18 4 111 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:4 G723/8000 a=rtpmap:111 G726-32/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - | INFO3 | <osip_event.c: 89> MESSAGE REC. CALLID:6c78af886bc8ad12761eb86e61605c1a | INFO1 | <udp.c: 2227> This is a request | INFO2 | <osip_transaction.c: 131> allocating transaction ressource 54 6c78af886bc8ad12761eb86e61605c1a | INFO2 | <ist.c: 31> allocating IST context | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jresponse.c: 209> eXosip: here is the resolved destination host=194.145.190.143 | INFO1 | <jcallback.c: 332> cb_rcvinvite (id=54) | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 100 Trying Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK233c4968;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Call-ID: [EMAIL PROTECTED] CSeq: 103 INVITE Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Length: 0 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1674> cb_snd1xx (id=54) | INFO2 | <eXutils.c: 218> IPv4 address detected: 194.145.190.143 | INFO2 | <eXutils.c: 267> DNS resolution with 194.145.190.143:5060 | INFO1 | <jcallback.c: 148> Message sent: SIP/2.0 200 OK Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK233c4968;rport=5060 From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Call-ID: [EMAIL PROTECTED] CSeq: 103 INVITE Contact: <sip:[EMAIL PROTECTED]:5060> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO Content-Type: application/sdp Content-Length: 166 v=0 o=userX 20000001 20000001 IN IP4 192.168.0.2 s=session c=IN IP4 192.168.0.2 t=0 0 m=audio 10500 RTP/AVP 8 0 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 (len=16 sizeof(addr)=128 28) | INFO1 | <jcallback.c: 1689> cb_snd2xx (id=54) | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! | INFO1 | <udp.c: 2208> Received message: ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 194.145.190.143:5060;branch=z9hG4bK2c5272fd;rport From: "01934888888" <sip:[EMAIL PROTECTED]>;tag=as3949c59f To: <sip:[EMAIL PROTECTED]:5060>;tag=264528327 Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 103 ACK User-Agent: Asterisk PBX Max-Forwards: 70 Content-Length: 0 | INFO3 | <osip_event.c: 89> MESSAGE REC. CALLID:6c78af886bc8ad12761eb86e61605c1a | INFO1 | <udp.c: 2227> This is a request | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up! ortp-message-synchronizing timestamp, diff=720 ortp-message-CALL_ACK ortp-message-CALL_HOLD ou OFFHOLD ortp-message-CALL_ACK ortp-message-bandwidth usage: audio=[d=6.7,u=81.2] video=[d=0.0,u=0.0] kbit/sec ortp-message-bandwidth usage: audio=[d=0.0,u=81.9] video=[d=0.0,u=0.0] kbit/sec ortp-message-bandwidth usage: audio=[d=0.0,u=79.4] video=[d=0.0,u=0.0] kbit/sec [...] Thanks again for any help! -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Somerset, England. Work/Laborejo: http://www.ttllp.co.uk/ IRC/Jabber/SIP: on request/peteble. _______________________________________________ Linphone-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/linphone-users
