|
From: | Fabio Takeshi Sakamoto 武史 |
Subject: | Re: [Linphone-developers] Android- LinphoneInfoMessage example |
Date: | Tue, 13 Sep 2016 09:33:29 -0300 |
What I need to do:
During a video call, a peer send a XmlRpc to the other peer...
Could you help me? Is it possible?
Tks
Fabio
FabioTksI need to see how to implement the server side(receiver) in android too. And I need the sync call. Do you have this examples?I am studying the example XmlRpcHelper, but it implements only the client side(sender), and it is an async call.Hi Sylvain,First of all, tks for your answer.On Fri, Sep 9, 2016 at 4:33 AM, Sylvain Berfini <address@hidden> wrote:Hi Fabio,
If you really want to call a remote procedure, why don't you use the XMLRPC library inside liblinphone ? You'll need the LinphoneXmlRpcSession and LinphoneXmlRpcRequest classes, and if you want a sample on how to use them, take a look at XmlRpcHelper.java in src/org/linphone/xmlrpc folder.
Cheers.
Sylvain Berfini Software Engineer @ Belledonne CommunicationsLe 09/09/2016 à 05:14, Fabio Takeshi Sakamoto 武史 a écrit :
> Does anyone have an android example of LinphoneInfoMessage?
>
> I tried this, but it's not working: While debugging, I think the message was sent, but I'm not receiving it.
>
> sending:
>
> final LinphoneCall call = LinphoneManager.getLc().getCurrentCall();
> LinphoneInfoMessage a = LinphoneManager.getLc().createInfoMessage();
> byte[] bb = new byte[8];
> LinphoneContent c = new LinphoneContentImpl("","",bb,"");
> a.setContent(c);
> call.sendInfoMessage(a);
>
> receiving:
>
> mListener = new LinphoneCoreListenerBase() {
>
> @Override
> public void infoReceived(LinphoneCore lc, LinphoneCall call,
> LinphoneInfoMessage info) {
> // TODO Auto-generated method stub
> System.out.print("testesakamoto");
> }
> };
>
> LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
>
> if (lc != null) {
> lc.addListener(mListener);
> }
>
>
>
>
> Actually, I need to send remote procedure call(RPC) during a call. Is there other solution in Linphone?
>
> --
> Tks,
> Fabio Takeshi Sakamoto
> (41) 8468-4450
_______________________________________________ Linphone-developers mailing list address@hidden https://lists.nongnu.org/mailm an/listinfo/linphone-developer s
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developer s
--Abs,
Fabio Takeshi Sakamoto
(41) 8468-4450
[Prev in Thread] | Current Thread | [Next in Thread] |