mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix crash when running linphonecsh register with a password.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@340 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
91a4b2164a
commit
26db37b47f
4 changed files with 7 additions and 11 deletions
|
|
@ -1256,7 +1256,7 @@ static int lpc_cmd_register(LinphoneCore *lc, char *args){
|
|||
LinphoneAuthInfo *info;
|
||||
osip_from_init(&from);
|
||||
if (osip_from_parse(from,identity)==0){
|
||||
info=linphone_auth_info_new(from->url->username,NULL,passwd,NULL,NULL);
|
||||
info=linphone_auth_info_new(from->url->username,NULL,passwd,NULL,from->url->host);
|
||||
linphone_core_add_auth_info(lc,info);
|
||||
}
|
||||
osip_from_free(from);
|
||||
|
|
|
|||
|
|
@ -571,9 +571,11 @@ void linphone_proxy_config_set_sip_setup(LinphoneProxyConfig *cfg, const char *t
|
|||
if (!ss) return ;
|
||||
ssc=sip_setup_context_new(ss,cfg);
|
||||
if (sip_setup_context_login_account(ssc,cfg->reg_identity,NULL)==0){
|
||||
char proxy[256];
|
||||
if (sip_setup_context_get_proxy(ssc,NULL,proxy,sizeof(proxy))==0){
|
||||
linphone_proxy_config_set_server_addr(cfg,proxy);
|
||||
if (sip_setup_context_get_capabilities(ssc) & SIP_SETUP_CAP_PROXY_PROVIDER){
|
||||
char proxy[256];
|
||||
if (sip_setup_context_get_proxy(ssc,NULL,proxy,sizeof(proxy))==0){
|
||||
linphone_proxy_config_set_server_addr(cfg,proxy);
|
||||
}
|
||||
}
|
||||
}
|
||||
cfg->ssctx=ssc;
|
||||
|
|
|
|||
|
|
@ -32,14 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FONIS
|
||||
extern SipSetup fonis_sip_setup;
|
||||
#endif
|
||||
|
||||
static SipSetup *all_sip_setups[]={
|
||||
#ifdef HAVE_FONIS
|
||||
&fonis_sip_setup,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -261,6 +261,7 @@ static void __ortp_logv_out(OrtpLogLevel lev, const char *fmt, va_list args){
|
|||
OutputDebugString("\r\n");
|
||||
#else
|
||||
fprintf(__log_file,"ortp-%s-%s" ENDLINE,lname,msg);
|
||||
fflush(__log_file);
|
||||
#endif
|
||||
|
||||
ortp_free(msg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue