in register command, don't set realm as we don't know it at the time of the command.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@776 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2009-12-01 14:47:53 +00:00
parent c3eb04900b
commit 491c480252

View file

@ -1376,7 +1376,7 @@ static int lpc_cmd_register(LinphoneCore *lc, char *args){
if (osip_from_parse(from,identity)==0){
char realm[128];
snprintf(realm,sizeof(realm)-1,"\"%s\"",from->url->host);
info=linphone_auth_info_new(from->url->username,NULL,passwd,NULL,realm);
info=linphone_auth_info_new(from->url->username,NULL,passwd,NULL,NULL);
linphone_core_add_auth_info(lc,info);
}
osip_from_free(from);