linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Can I get remote actual IP address, not one fr


From: Praveen Kumar
Subject: Re: [Linphone-developers] Can I get remote actual IP address, not one from SIP packet.
Date: Tue, 21 Feb 2017 15:39:16 +0530

I'm not exactly sure about how it can be done in Linphone Android as I've worked on the Linux based Linphone. 

But what I know on the basis of Linux based Linphone implementation is that Linphone uses "belle-sip" library to parse the SIP message. As I can see in the belle-sip library code they use "fix_incoming_via()" function in "belle-sip/src/channel.c", this function checks the remote host address & port in VIA header & compares them with the source IP address & source port of the received SIP packet. In case, they don't match the function overwrites & replaces the host, port values in VIA header with the actual remote source IP & remote source port of the received packet.

So, in essence, I think you can use the values present in the SIP Via header (as they're fixed in case of any discripency at the lower level itself).


--
Praveen Kumar
VVDN Technologies Pvt Ltd
Mobile: +91 987 162 3666 | Skype: praveenkumar_vvdn


On Tue, Feb 21, 2017 at 2:36 PM, Aniruddh Bhilvare <address@hidden> wrote:
Hello Praveen,

Any suggestion how we can achieve this? Do I have to make changes in C source or it would be possible to get in JAVA layer in linphone?

On Tue, Feb 21, 2017 at 12:53 PM, Praveen Kumar <address@hidden> wrote:
Hi Aniruddh,

The source IP address you shall read & use from actual UDP packet rather than from SIP packet for your case.



--
Praveen Kumar
VVDN Technologies Pvt Ltd
Mobile: +91 987 162 3666 | Skype: praveenkumar_vvdn


On Tue, Feb 21, 2017 at 12:17 PM, Aniruddh Bhilvare <address@hidden> wrote:
Hello,

I want to get actual remote address in my linphone Android application. All what I was able to find is address sent in SIP packet which can be sent by anytool. Thus, is there any way in linphone-android, using which I can get actual address from where SIP packet is coming ?

--
Thanks & Regards,
Aniruddh Bhilvare 
Tech Lead | Ecosmob Technologies Pvt. Ltd.
(+91)-8460317172.


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--
Thanks & Regards,
Aniruddh Bhilvare | Android Enthusiast

Linkedin BlogGithub TwitterFacebook

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

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