To begin I warn you that I use the latest version on git (the revision is like 3.3.99)
I don't know what you mean about contact status, but regarding the rest:
1) Call status:
There is a new LinphoneCallState object with accessors:
typedef enum _LinphoneCallState{
LinphoneCallIdle,
LinphoneCallIncomingReceived,
LinphoneCallOutgoingInit,
LinphoneCallOutgoingProgress,
LinphoneCallOutgoingRinging,
LinphoneCallOutgoingEarlyMedia,
LinphoneCallConnected,
LinphoneCallStreamsRunning,
LinphoneCallPausing,
LinphoneCallPaused,
LinphoneCallResuming,
LinphoneCallRefered,
LinphoneCallError,
LinphoneCallEnd,
LinphoneCallPausedByRemote,
LinphoneCallUpdatedByRemote /**<used when video is asked by remote */
} LinphoneCallState;
2) Something about status info:
typedef enum _LinphoneOnlineStatus{
LinphoneStatusOffline,
LinphoneStatusOnline,
LinphoneStatusBusy,
LinphoneStatusBeRightBack,
LinphoneStatusAway,
LinphoneStatusOnThePhone,
LinphoneStatusOutToLunch,
LinphoneStatusDoNotDisturb,
LinphoneStatusMoved,
LinphoneStatusAltService,
LinphoneStatusPending,
LinphoneStatusEnd
}LinphoneOnlineStatus;
3) Registration status:
/**
* LinphoneRegistrationState describes proxy registration states.
**/
typedef enum _LinphoneRegistrationState{
LinphoneRegistrationNone,
LinphoneRegistrationProgress,
LinphoneRegistrationOk,
LinphoneRegistrationCleared,
LinphoneRegistrationFailed
}LinphoneRegistrationState;
All necessary code examples you can, for example, in console/linphonec.c, where they are all handled.
This model is much more convenient than the previous GSTATE. Any questions - please ask.
2010/11/19 Bert Geelen
<address@hidden>
Well i need:
Contact on/offline status,
Call status ( incomming, outgoing, in call, standby)
Registration information.
I prefer not tu use a polling method, but something as GSTATE was ....
Kind regards,
Bert Geelen
Op 19 nov. 2010 om 17:10 heeft "Maxim Podbereznyy" <
address@hidden> het volgende geschreven:
it depends on what exactly you need to tell to your application. Can you specify that? There are a few options presently.
2010/11/19 Bert Geelen
<address@hidden>
I need it to tell my application what is happening in linphone. Is there a better way for that ?
Op 19 nov. 2010 om 12:06 heeft "Maxim Podbereznyy" <
address@hidden> het volgende geschreven:
It was in previous versions. Do you need it now? This GSTATE can't reflect the actual state of the linphone after multicall feature was added.
2010/11/19 Bert Geelen
<address@hidden>
I was working with the old 3.3.2 version to interact with other programs.
I've updated to the latest git version and now the -S option with linphone c had no effect.
I looked in the source code and saw that the GSTATE messages where removed.
The variable:
static bool_t show_general_state=FALSE;
Only gets set to TRUE, but it is never checked to set ouput.
Will this be added in the near future ? or is there a way to get something similar working ?
Kind Regards,
Bert
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers