linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] linphone android can't receive message


From: ThinkinBunny
Subject: [Linphone-developers] linphone android can't receive message
Date: Sat, 15 Feb 2014 16:42:50 +0800


02-15 16:37:08.041: I/LinphoneNDK(12655): channel [0x46fae008]: keep alive sent to [UDP://sip.linphone.org:5060]
02-15 16:37:08.151: I/LinphoneNDK(12655): channel [0x1ff4e8]: received [308] new bytes from [UDP://sip.linphone.org:5060]:
02-15 16:37:08.151: I/LinphoneNDK(12655): SIP/2.0 100 Trying
02-15 16:37:08.151: I/LinphoneNDK(12655): Via: SIP/2.0/UDP 192.168.1.16:5060;branch=z9hG4bK.m0tqHbiWF;rport=5060;received=123.118.115.74
02-15 16:37:08.151: I/LinphoneNDK(12655): From: <sip:address@hidden>;tag=bMx-1rvqB
02-15 16:37:08.151: I/LinphoneNDK(12655): To: <sip:address@hidden>
02-15 16:37:08.151: I/LinphoneNDK(12655): Call-ID: iDCRkGZ-Op
02-15 16:37:08.151: I/LinphoneNDK(12655): CSeq: 20 MESSAGE

 i registered successed,but   then send message,but  why sip account is "toto"? nor my sip account, i send message as this code

public void launchTutorial(String destinationSipAddress)

throws LinphoneCoreException {


// First instantiate the core Linphone object given only a listener.

// The listener will react to events in Linphone core.

LinphoneCore lc = LinphoneCoreFactory.instance().createLinphoneCore(

this);


try {

// Next step is to create a chat room

LinphoneChatRoom chatRoom = lc

.getOrCreateChatRoom(destinationSipAddress);


// Send message

LinphoneChatMessage chatMessage = chatRoom

.createLinphoneChatMessage("Hello worldHH");

chatRoom.sendMessage(chatMessage, this);


// main loop for receiving notifications and doing background

// linphonecore work

running = true;

while (running) {

lc.iterate();

// System.out.println("query");

if (chatRoom.isRemoteComposing()) {

System.out.println("TutorialChatRoom.isRemoteComposing()");

}


try {

Thread.sleep(50);

} catch (InterruptedException ie) {

ie.printStackTrace();

write("Interrupted!\nAborting");

return;

}

}


} finally {

write("Shutting down...");

// You need to destroy the LinphoneCore object when no longer used

lc.destroy();

write("Exited");

}

}

  i need help ,thank you


--


reply via email to

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