linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Linphonecsh return status flag for ringing


From: Gautier Pelloux-Prayer
Subject: Re: [Linphone-developers] Linphonecsh return status flag for ringing
Date: Thu, 7 May 2015 11:13:21 +0200

Hi,

Added in adb1254.

Cheers,

Gautier Pelloux-Prayer
Software Engineer @ Belledonne Communications

> On 04 May 2015, at 16:47, Henrik Pauli <address@hidden> wrote:
> 
> I couldn't find if I have sent a mail about this before, so here goes again.
> Just like off-hook, autoanswer and so on, it would be nice if it were 
> possible to detect ringing via linphonecsh.
> 
> I have a patch for it, though I left out a number from the flags just to 
> avoid clashing with you if in the meantime you extend them. You could change 
> it of course.  What do you think?
> 
> diff --git a/console/shell.c b/console/shell.c
> index 7a502ec..77b2245 100644
> --- a/console/shell.c
> +++ b/console/shell.c
> @@ -48,6 +48,7 @@
> #define STATUS_AUTOANSWER (1<<3)
> #define STATUS_IN_CONNECTED (1<<4) /* incoming call accepted */
> #define STATUS_OUT_CONNECTED (1<<5) /*outgoing call accepted */
> +#define STATUS_INCOMING (1<<7)
> 
> 
> static int make_status_value(const char *status_string){
> @@ -70,6 +71,9 @@ static int make_status_value(const char *status_string){
>     if (strstr(status_string,"hook=answered")){
>         ret|=STATUS_IN_CONNECTED;
>     }
> +    if (strstr(status_string,"ncoming call from")){ // was "incoming" around 
> 3.6, "Incoming" in 3.8
> +        ret|=STATUS_INCOMING;
> +    }
>     return ret;
> }
> 
> 
> 
> _______________________________________________
> 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]