iOS app converting the dialed number automatically


I am working on an iOS app and writing code to make calls from that app. It is working fine for non toll free numbers, But for some number such as 18601231000 for BigBasket, it is converting the number as +1(860)1231000 which when dialed comes as wrong number. But for numbers starting with 1800 it is working fine. I am searching solution of this query and taking help from some iphone developer forum and iphone blogs. If you have answer of my query please reply me. Please check my code snippet.

private func dialNumber(phoneNumber:String) {
let phoneUrl:NSURL = NSURL(string: "tel://\(phoneNumber)")!let application:UIApplication = UIApplication.sharedApplication()if(application.canOpenURL(phoneUrl)){application.openURL(phoneUrl)}self.ratingLabel.text = "Rate (self.selectedProvider!.providerName)' Customer Care"callCenter.callEventHandler = {(call:CTCall!) inswitch call.callState {case CTCallStateConnected:breakcase CTCallStateDisconnected:NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ctCall")breakdefault:break}}}


Have you tried without the 1 at the beginning ?

  1. Any progress?

  2. Can you reformat your code so it displays correctly in the code block element (copy/paste from Xcode).

  3. Share a sample project via dropbox so we can see the problem.