linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Android- LinphoneInfoMessage example


From: Sylvain Berfini
Subject: Re: [Linphone-developers] Android- LinphoneInfoMessage example
Date: Fri, 9 Sep 2016 09:33:49 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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 Communications
Le 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/mailman/listinfo/linphone-developers


reply via email to

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