mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 19:29:27 +00:00
Fix again the proxy/route sip address
This commit is contained in:
parent
9520312bd9
commit
d986f53066
1 changed files with 8 additions and 2 deletions
|
|
@ -1399,10 +1399,16 @@ static void audioRouteChangeListenerCallback (
|
|||
} else {
|
||||
proxyAddress = configuration.network.globalAddress;
|
||||
}
|
||||
proxyAddress = [NSString stringWithFormat:@"<sip:%@;maddr=%@>", domain, proxyAddress] ;
|
||||
|
||||
// Explode the address
|
||||
NSArray *array = [proxyAddress componentsSeparatedByString:@":"];
|
||||
if([array count] == 2) {
|
||||
proxyAddress = [NSString stringWithFormat:@"<sip:%@:%@;maddr=%@>", domain, [array objectAtIndex:1], [array objectAtIndex:0]];
|
||||
} else if([array count] == 2) {
|
||||
proxyAddress = [NSString stringWithFormat:@"<sip:%@;maddr=%@>", domain, [array objectAtIndex:0]];
|
||||
}
|
||||
|
||||
const char* proxy = [proxyAddress cStringUsingEncoding:[NSString defaultCStringEncoding]];
|
||||
|
||||
NSString* prefix = [[NSUserDefaults standardUserDefaults] stringForKey:@"prefix_preference"];
|
||||
bool substitute_plus_by_00 = [[NSUserDefaults standardUserDefaults] boolForKey:@"substitute_+_by_00_preference"];
|
||||
//possible valid config detected
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue