|
From: | Fabio Takeshi Sakamoto 武史 |
Subject: | Re: [Linphone-developers] Android- LinphoneInfoMessage example |
Date: | Sun, 11 Sep 2016 00:42:49 -0300 |
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.getLcIfManagerNotDestroyedOrNu ll();
>
> 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/ mailman/listinfo/linphone- developers
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone- developers
[Prev in Thread] | Current Thread | [Next in Thread] |