[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Android- LinphoneInfoMessage example
From: |
Fabio Takeshi Sakamoto 武史 |
Subject: |
[Linphone-developers] Android- LinphoneInfoMessage example |
Date: |
Fri, 9 Sep 2016 00:14:19 -0300 |
> 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] Android- LinphoneInfoMessage example,
Fabio Takeshi Sakamoto 武史 <=