VOIP to Sim possible? - iphone

Is it possible to get a VOIP number that I already have, and transfer that void into a SIM card, so I can use it as a normal number?
Doubt it helps but I’m on an iPhone wanting to this..

You can do this in your VOIP provider forwarding incoming calls to your SIM card number or in better cases (in case of PSTN phone number) you can request to your SIM provider a portability from your VoIP provider to your SIM provider (this request flow is very important)

Related

How can I make outbound calls with a Twilio number?

I have registered a phone number within twilio to use as "my" phone number.
I set up a simple twiml bin do handle call forwarding to whatever phone SIM/handset I am using right now. So people call my (twilio) number and it forwards to my phone.
However, if I make an outbound call from my phone, of course the callerID is from my SIM, not my twilio number. This confuses people and is inconvenient.
What is the best (easiest) way for me to place calls, using my current phone/SIM/number, but have the call come from my twilio number ?
(I am currently using an iphone, FWIW)
Thanks.
Twilio developer evangelist here.
There are a few options here. You can implement the Twilio Programmable Voice SDK for iOS into an iPhone app that you can then use to make calls from. There are quickstarts and example applications available here: https://github.com/twilio/voice-quickstart-swift#quickstart
Alternatively, you could update your incoming webhook to point at some code that works out if it is your number dialling or not. If it is not, then carry on with the current forwarding behaviour. If it is your number, then ask what number you want to dial and take the digits using <Gather>, then use a <Dial> to make the outbound call.
You could also install a SIP phone app to your device and set up SIP registration. You would then need to set up some TwiML to make outgoing calls from the SIP endpoint.
Just some ideas there. Let me know if that helps at all.
Now there is a Twilio mobile app for iOS and Android called TwiConnect https://twiconnect.com
You can login through your Twilio Account SID, choose one of your Twilio Voice or SMS numbers as a default one, then you will be able to make outgoing calls or send/receive SMS messages usi

Automated Phone calls in swift

I am developing an app in swift in which when a customer places a order we have to notify the vendor about the order. So is it possible to call the vendor mobile through some api with a pre recorded message. More importantly will this app be accepted by the app store.
On iOS it is not possible to use the user's phone. You would have to use an API like https://www.twilio.com.
Use pushkit with local notification to notify user about incoming call in foreground , background or terminated state.
Then there are many supporting platform to join in VoIP call.
References -
https://github.com/hasyapanchasara/PushKit_SilentPushNotification

iPhone App communication using phone numbers?

Is it somehow possible to use phone number of receiver to send app messages?
The idea is the user don't have to know anything about ips, etc. just a phone number. Then the app can find this user and send messages (app protocol).
Sorry complete newbie question, but was just wondering if there's a connection… I didn't find any information with search engine…
Yes, you could do this, but it would require both parties to have your app installed and you would likely need to create some sort of intermediate web-based service to store their account information (username, password, phone number, UDID, etc) then use that service to send the app messages from the sender to the receiver.
Assuming both of these users would be using an iPhone it will probably just be easier to wait until iMessage is released with iOS 5 in a month or two since it will work similar to FaceTime in that you can use phone numbers, emails, etc and works between all iOS devices running iOS 5.

When SIM is not available how should we handle MFMessageComposeViewController

I am using MFMessageComposeViewController to send text message via my App. But I have a problem when we remove the SIM and try to send message. Is there any delegate available to track whether the message will be sent / not?
You can use the CTTelephonyNetworkInfo class of the core telephony framework to gather information about the SIM card. Use the subscriberCellularProviderDidUpdateNotifier method to get notified about SIM card changes:
A block object that is dispatched on
the default priority global dispatch
queue when the user’s cellular
provider information changes. This
occurs, for example, if a user swaps
the device’s SIM card with one from
another provider, while your
application is running.

How to determine if phone number has changed?

Currently I am developing an authentication module for my application. The user provides his phone number and a SMS with some pin code is send to him.
The user enters the code and if it is valid his phone number is authenticated. Maybe you know WhatsApp, it does quite the same when you run the app first time.
However if the user puts a new sim card in his phone he should authenticate it again.
I want to know how to determine if phone number has changed. I read in some other question that it is not possible to determine the phone number itself. But e.g. WhatsApp recognizes that there is another phone number.
Any ideas?
Update 2
One (not the best) way it's detecting carrier changing. Here you can see how to get carrier's name. Save it at first launch and do compare on next launches.
Update 3
I'd recommend to you look at Core Telephony Network reference and especially at CTTelephonyNetworkInfo reference
subscriberCellularProviderDidUpdateNotifier allow you respond on events such like:
... when the user’s cellular provider information changes. This occurs, for example, if a user
swaps the device’s SIM card with one
from another provider, while your
application is running