Closed GoogleCodeExporter closed 9 years ago
In addition,I captured the SIP/SDP message package by using Wireshark and find
that "o=doubango 1983 678901 IN IP4 10.0.2.15".I want to set "o=- 1983 678901
IN IP4 10.0.2.15",how to do it?
Original comment by yuwenbin...@gmail.com
on 9 Dec 2010 at 8:25
First update the source code to SVN revision 343.
sendLMessage() is now implemented.
To achieve your workflow:
// establish an MSRP session
ActionConfig sessionConfig = new ActionConfig();
MyMsrpSession msrpSession = MyMsrpSession.createOutgoingSession(sipStack, MediaType.Chat);
sessionConfig.addHeader("Subject","Hello");
msrpSession.session.callMsrp("+8521341041108", sessionConfig);
sessionConfig.delete();
// Once the session is established
if(msrpSession.isConnected())
{
byte[] content = "Hi buddy!".getBytes();
final ByteBuffer payload = ByteBuffer.allocateDirect(content.length);
payload.put(content);
ActionConfig messageConfig = new ActionConfig();
messageConfig.setMediaString(twrap_media_type_t.twrap_media_msrp, "content-type", "text/plain;charset=utf-8");
msrpSession.session.sendMessage(payload, (long)payload.capacity(), messageConfig);
}
Original comment by boss...@yahoo.fr
on 9 Dec 2010 at 4:34
Thank you for your help!
Original comment by yuwenbin...@gmail.com
on 9 Dec 2010 at 5:10
[deleted comment]
[deleted comment]
Dear yuwenbin...@gmail.com is the code of chat messaging work ?
Please answer .
It's only call and doesn't send message .
Please help .
Original comment by Arian.Sa...@gmail.com
on 13 Feb 2011 at 7:41
Yes,the code works.establish an MSRP session and send MSRP message must be
asynchronous
Original comment by Splash.P...@gmail.com
on 15 Feb 2011 at 3:15
Thanks for your answer,but I have some difficults.
I want to know except the code of top and the changes of revision 343,there are
not any changes in the other part of imsdroid project or there is no any
additional code which you didnn't write here.
Please help.I have already some days trying this ,but widthout any result.
Original comment by Arian.Sa...@gmail.com
on 16 Feb 2011 at 2:19
(msrpSession.isConnected()) its always return false .
Original comment by Arian.Sa...@gmail.com
on 16 Feb 2011 at 2:44
byte[] content = "Hi buddy!".getBytes();
final ByteBuffer payload = ByteBuffer.allocateDirect(content.length);
payload.put(content);
ActionConfig messageConfig = new ActionConfig();
messageConfig.setMediaString(twrap_media_type_t.twrap_media_msrp, "content-type", "text/plain;charset=utf-8");
msrpSession.session.sendMessage(payload, (long)payload.capacity(), messageConfig);
These code MUST be put when receiving 200OK(SIP).
for example,in SipService::OnInviteEvent method.
establish an MSRP session and send MSRP message must be asynchronous,this is
very importment.
Original comment by Splash.P...@gmail.com
on 16 Feb 2011 at 3:23
If it isn't difficult for you please write down the whole
SipService::OnInviteEvent method.
Please .
Thanks in advance.
Original comment by Arian.Sa...@gmail.com
on 16 Feb 2011 at 4:24
No problem.But you have to wait 2 days.
Original comment by Splash.P...@gmail.com
on 16 Feb 2011 at 4:37
[deleted comment]
[deleted comment]
addition.
Dear Splash.P...@gmail.com
Please write here any changes you done in your project for imsdroid chat
messaging
Thanks in advance .I will wait.
It's very important for me.
Original comment by Arian.Sa...@gmail.com
on 17 Feb 2011 at 12:50
[deleted comment]
Dear Splash.P...@gmail.com please answer is it possible to have
SipService::OnInviteEvent method tomorrow(on Friday)?
Original comment by Arian.Sa...@gmail.com
on 17 Feb 2011 at 7:11
[deleted comment]
[deleted comment]
Original issue reported on code.google.com by
yuwenbin...@gmail.com
on 9 Dec 2010 at 7:21