Fix domain when performing an outgoing call without outgoing SIP proxy.

This commit is contained in:
Ghislain MARY 2013-04-02 10:47:35 +02:00
parent 5cfe4d211c
commit 892bcefa2c

View file

@ -1287,7 +1287,7 @@ static void audioRouteChangeListenerCallback (
[error release];
} else {
char normalizedUserName[256];
LinphoneAddress* linphoneAddress = linphone_address_new("sip:user@domain.com");
LinphoneAddress* linphoneAddress = linphone_address_new(linphone_core_get_identity(theLinphoneCore));
linphone_proxy_config_normalize_number(proxyCfg,[address cStringUsingEncoding:[NSString defaultCStringEncoding]],normalizedUserName,sizeof(normalizedUserName));
linphone_address_set_username(linphoneAddress, normalizedUserName);
if(displayName!=nil) {