Mobile electronic communications using internet protocol
A database stores unique associations between account identifiers and mobile-network telephone numbers assigned by a mobile network to mobile communications devices. The account identifiers are also associated with voice-over-IP (VoIP) telephone numbers. Voice calls between the mobile communications devices are made as voice-over-IP (VoIP) calls using respective VoIP telephone numbers. Tracking of the VoIP calls is performed through the mobile network using respective mobile-network telephone numbers, so that a prepaid balance can be enforced.
1. A method for electronic communications, the method comprising:
receiving, at a Voice over Internet Protocol (VoIP) service, a call request for a call from a source device to a destination device;
determining, by the VoIP service, whether the destination device is on a public switched telephone network (PSTN) coupled to the VoIP service;
when the destination device is on the PSTN, routing the call through the PSTN;
when the destination device is not on the PSTN, routing the call through the VoIP service;
receiving at a communications routing system coupled to the VoIP service, call information for the call, wherein at least one of the source device or the destination device corresponds to an account identifier stored at the communications routing system, the call information indicating whether the call is routed through a mobile network or through a wireless local area network (WLAN) and including a call length;
when the call information indicates that the call is routed through the mobile network, reducing a usage balance for the account identifier based on the call length; and
when the call information indicates that the call is routed through the WLAN, recording the call length without reducing the usage balance for the account identifier.
2. The method of claim 1 , further comprising, when the source device is associated with the account identifier and the usage balance for the account identifier is depleted:
when the source device connected only to the mobile network, denying initiation of the call; and
when the source device is connected to the WLAN, allowing the call.
3. The method of claim 1 , further comprising, when the destination device is associated with the account identifier and the usage balance for the account identifier is depleted:
when the destination device is connected only to the mobile network, denying initiation of the call; and
when the destination device is connected to the WLAN, allowing the call.
4. The method of claim 1 , further comprising, issuing, by the communications routing system, a push notification to the destination device.
5. The method of claim 1 , further comprising providing, to the destination device, a stored VoIP telephone number as a caller ID for the source device.
6. The method of claim 5 , further comprising excluding a stored mobile telephone number from the caller ID for the source device.
7. The method of claim 1 , further comprising:
receiving, at the communications routing system, a periodic request for an ongoing call between the source device and the destination device;
responsive to the periodic request, determining whether a usage balance for a destination account identifier has been depleted;
when the determination is affirmative and the destination device is connected only to the mobile network, ending the ongoing call;
when the determination is affirmative and the destination device is connected to the WLAN, allowing the ongoing call to continue; and
when the determination is negative, reducing the usage balance for the destination account identifier based on a call initiation time and a most recent periodic request specified in the periodic request and allowing the ongoing call to continue.
8. The method of claim 1 , further comprising:
receiving, at the communications routing system, a periodic request for an ongoing call between the source device and the destination device;
responsive to the periodic request, determining whether a usage balance for a source account identifier has been depleted;
when the determination is affirmative and the source device is connected only to the mobile network, ending the ongoing call;
when the determination is affirmative and the source device is connected to the WLAN, allowing the ongoing call to continue; and
when the determination is negative, reducing the usage balance for the source account identifier based on a call initiation time and a most recent periodic request specified in the periodic request and allowing the ongoing call to continue.