linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users] Retrieve password


From: Simon Morlat
Subject: Re: [Linphone-users] Retrieve password
Date: Wed, 23 Jun 2010 15:35:00 +0200

Hi,

The popup appears when liblinphone requests a user it doesn't have
already in the config file, or when the authentication failed,
indicating that the password might be wrong.
So the good way of fixing your problem isn't in the graphical interface
code, but in coreapi/ . Could you provide a log so that we can see the
SIP error that could lead to think the password was wrong ?
Also, which version of linphone is it ?

Simon

Le jeudi 17 juin 2010 à 11:38 +0800, Darrick Leom Ming Xian a écrit :
> Dear all,
>  
> I'm was wondering on the 'Authentication required' box which popped up
> usually after a disconnection, can the previous password regenerate at
> the password entry slot, just like what happened in the username entry
> slot?
>  
> I wanted to change this function found in main.c:
>  
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> static void linphone_gtk_auth_info_requested(LinphoneCore *lc, const
> char *realm, const char *username){
> 
> GtkWidget *w=linphone_gtk_create_window("password");
> 
> GtkWidget *label=linphone_gtk_get_widget(w,"message");
> 
> LinphoneAuthInfo *info;
> 
> gchar *msg;
> 
> GtkWidget *mw=linphone_gtk_get_main_window();
> 
> if (mw &&
> GTK_WIDGET_VISIBLE(linphone_gtk_get_widget(mw,"login_frame"))){
> 
> /*don't prompt for authentication when login frame is visible*/
> 
> linphone_core_abort_authentication(lc,NULL);
> 
> return;
> 
> }
> 
> msg=g_strdup_printf(_("Please enter your password for username <i>%
> s</i>\n at domain <i>%s</i>:"),
> 
> username,realm);
> 
> gtk_label_set_markup(GTK_LABEL(label),msg);
> 
> g_free(msg);
> 
> gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"userid_entry")),username);
> 
> gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"password_entry")),""12345678);
> 
> info=linphone_auth_info_new(username, NULL, NULL, NULL,realm);
> 
> g_object_set_data(G_OBJECT(w),"auth_info",info);
> 
> g_object_weak_ref(G_OBJECT(w),(GWeakNotify)linphone_auth_info_destroy,info);
> 
> gtk_widget_show(w);
> 
> auth_timeout_new(w);
> 
> }
> 
> --------------------------------------------------------------------------------------------------------
> 
> Instead of "12345678", I want to retrieve the real password from %
> appdata%\linphonerc. Any idea?
> 
> Thanks in advance.
> 
>  
> 
> Regards,
> 
> Darrick Leom
> 
> 
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users





reply via email to

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