linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Media address in SDP


From: Simon Morlat
Subject: Re: [Linphone-developers] Media address in SDP
Date: Fri, 22 Oct 2010 09:59:02 +0200

Hi,

You encountered an interesting bug, thank you.
I think I have fixed it, it was in linphone_core_get_local_ip_for().
You can checkout lastest git tree to check it is fixed.

Simon


Le dimanche 17 octobre 2010 à 08:14 +0530, Nimal Ratnayake a écrit :
> Hi,
> 
> My computer has a DSL connection which is NATted,
> (eth0, 192.168.1.64) and a VPN connection (ppp0, 192.248.1.181).
> After establishing the ppp connection, default route is set
> via ppp0.
> 
> When initiating a call, the local address used in the SDP
> message appears to be the first IP address linphone finds, although
> the SIP header uses the address of the ppp0 interface correctly.
> 
> I want to change the code so that the address in SDP is the same
> as address used in SIP header (at least for my personal use, but I
> think this would be the logical thing to do for linphone in general
> - I would be happy to contribute code back to the main project).
> 
> I dug through the code and doxygen docs, but couldn't  find exactly
> where the SDP message is created.  Any pointers to where the relevant
> section of code would be very much appreciated.
> 
> Relevant excerpts from the debug window are:
> 
> Log  from startup:
> > message: New local ip address is 192.168.1.64
> > message: Network state is now [UP]
> 
> Log for INVITE
> > message: Contact address updated to <sip:address@hidden> for this dialog
> > message: ping reply !
> > message: Contact has been fixed using OPTIONS to <sip:address@hidden>
> > message: allocating transaction ressource 16 1654486990
> > message: allocating ICT context
> > message: DNS resolution with 192.248.42.2:5060
> > message: getaddrinfo returned the following addresses:
> > message: 192.248.42.2 port 5060
> > message: Message sent: (to dest=192.248.42.2:5060)
> > INVITE sip:address@hidden SIP/2.0
> > Via: SIP/2.0/UDP 192.248.1.181:5060;rport;branch=z9hG4bK16537736
> > From: <sip:address@hidden>;tag=532184608
> > To: <sip:address@hidden>
> > Call-ID: 1654486990
> > CSeq: 20 INVITE
> > Contact: <sip:address@hidden>
> > Content-Type: application/sdp
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, 
> > SUBSCRIBE, INFO
> > Max-Forwards: 70
> > User-Agent: Linphone/3.3.2 (eXosip2/3.1.0)
> > Subject: Phone call
> > Expires: 120
> > Content-Length:   353
> >
> > v=0
> > o=nimalr 123456 654321 IN IP4 192.168.1.64
> > s=A conversation
> > c=IN IP4 192.168.1.64
> > t=0 0
> > m=audio 7078 RTP/AVP 111 110 3 113 101
> > a=rtpmap:111 speex/16000/1
> > a=fmtp:111 vbr=on
> > a=rtpmap:110 speex/8000/1
> > a=fmtp:110 vbr=on
> > a=rtpmap:3 GSM/8000/1
> > a=rtpmap:113 iLBC/8000/1
> > a=fmtp:113 mode=30
> > a=rtpmap:101 telephone-event/8000/1
> > a=fmtp:101 0-11
> 
> Thanks.
> 
> Nimal Ratnayake
> 
> 
> 
> _______________________________________________
> 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]