linphone-developers
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: [Linphone-developers] Need example codes for Android
From
:
Akib Sayyed
Subject
:
Re: [Linphone-developers] Need example codes for Android
Date
:
Tue, 5 Nov 2013 22:33:04 +0530
On Tue, Nov 5, 2013 at 9:43 PM, Rodrigo Pimenta Carvalho
<
address@hidden
>
wrote:
.
I tried codes from example but they are not working.
here is example code
test_registeration test_reg=new test_registeration(); // listener
final LinphoneCoreFactory lcFactory = LinphoneCoreFactory.instance();
LinphoneCore lc = null;
String username,domain;
username=null;
domain=null;
try {
lc=lcFactory.createLinphoneCore(test_reg);
} catch (LinphoneCoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
LinphoneCall call;
try {
call = lc.invite("
sip:address@hidden
");
if (call == null) {
System.out.println("Could not place call to " + "
sip:address@hidden
");
System.out.println("Aborting");
return;
}
} catch (LinphoneCoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("Call to
sip:address@hidden
is in progress...");
// main loop for receiving notifications and doing background linphonecore work
while (true) {
lc.iterate();
try{
Thread.sleep(50);
} catch(InterruptedException ie) {
System.out.println("Interrupted!\nAborting");
return;
}
}
--
Akib Sayyed
Matrix-Shell
address@hidden
address@hidden
Mob:- +91-966-514-2243
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
[Linphone-developers] Need example codes for Android
,
Akib Sayyed
,
2013/11/05
Re: [Linphone-developers] Need example codes for Android
,
Rodrigo Pimenta Carvalho
,
2013/11/05
Re: [Linphone-developers] Need example codes for Android
,
Akib Sayyed
<=
Re: [Linphone-developers] Need example codes for Android
,
Akib Sayyed
,
2013/11/06
Prev by Date:
Re: [Linphone-developers] TLS certificate for Linphone?
Next by Date:
[Linphone-developers] Choosing TLS transport is just choosing a Port?
Previous by thread:
Re: [Linphone-developers] Need example codes for Android
Next by thread:
Re: [Linphone-developers] Need example codes for Android
Index(es):
Date
Thread