Android-Number Rewriting

From PhonePower Knowledge Base
Jump to: navigation, search

Number Rewriting

Number rewriting is a powerful tool allowing you to manipulate the numbers dialed from the Phone Power app. The main purpose of the feature is to allow you to utilize your native contacts without having to add new entries. Since numbers dialed from your BV account may need to be dialed differently than they are from your native cell phone number, this can be very useful. It can also be used to make sure certain numbers are dialed from a specific account on the client, regardless of what account is currently active for outbound calls.

  • You can access number rewriting from the preference tab. The rules in the preferences will effect all accounts on the the Phone Power app.
  • Number rewriting works by creating rules. For the rules, you will create Conditions and Action. This basically works in the way -if condition, then action. Each rule can potentially have multiple conditions and actions. It's as customizable as you would like it to be.



How to get to the Number Rewriting Section


Android-keypad.png

1. Open the PhonePower application
2. Make sure that you are on the keypad.



Android-menu.jpg

3. Press and hold the Android menu button.
4. A pop up menu will come up.
5. Press Settings



Android-setting1.png

6. Press Preferences



Android-preferences.png

7. Press Number Rewriting
8. To save after you create a rule simply press the Android back button until you get to the keypad.
9. Rule is now saved.



Conditions

  • Starts with – If the number starts with what you put here, then the action will be applied.
  • Doesn’t Start With - If the number doesn’t start with what you put here, then the action will be applied.
  • Equals – If the number is exactly what you put here, then the action will be applied.
  • Length Equals – If the number is the same length as what you put here, then the action will be applied. For example, if you put 7 here, all numbers with 7 digits will apply the action.
  • Shorter Than – If the number is shorter than what you type here, the action will be applied.
  • Longer Than – If the number is longer than what you type here, the action will applied.

Actions

  • Replace With – Whatever you typed in the condition will be replaced with what you put here.
  • Prepend – The number will be prepended with what you put here.
  • Append – The number will be appended with what you put here.
  • Try Other – Rules are gone through in descending order from the first on the list to the last. Normally, once a number meets a condition, only the actions of the condition will be completed. Try others assures that the actions for any other rules that the number meets the conditions for will be applied as well.

Example

If he numbers in your contacts are stored with just the area code and number (e.g. 818 555 1234), but you need them to be dialed with a 1 first when you dial them from your Phone Power account (e.g. 1 818 555 1234). Go to the number rewriting in preferences if you want this rule to be applied your Phone Power account. Tap on the plus to add a rule. Tap on the + to add a condition and select Starts With and type in 818. Tap done. Tap on the + to add an action and select Prepend and type in 1. Tap done. Now all numbers beginning with a 818 area code will automatically be prepended with a 1. This is just a basic example of the type of use this feature has. You can program the rules to add country codes, replace + with 00, etc.

Android-startswith.png
Android-replacewith.png
Android-rewritingdone.png



Testing Number Rewriting

Android-rewritingtest.png
Android-test2.png

To test a number rewrite, you would simply need to go to the Number Rewriting setting under the preference tab. Once there you will click on Test.
In the box titled Entered number, you will enter the number just as you would on the keypad.
The box titled Dialed Number will automatically populate showing how the number will be dialed on the network.
This is a great way to test the number rewrites that you have set up without actually having to place a real call.



Address Book Matching – Address Book Matching will allow you to make sure that your incoming calls match up to existing contacts without having to create new contact entries. Since incoming calls to your Phone Power account may not be formatted the same way as your existing contacts, they may not match up correctly otherwise, meaning you will only see the number and not the contact.

  • Address Book Matching works by creating rules. Each rule works by creating a condition and an action (You can also set up multiple rules and/or actions for a given rule). This basically works as – if 'condition', then 'action'.

Conditions

  • Starts With – If the incoming number starts with what you put here, then the action will applied.
  • Doesn’t Start With – If the incoming number does not start with what you put here, then the action will be applied.
  • Equals – If the incoming number exactly matches what you put here, then the action will be applied.
  • Length Equals – If the incoming number is the same length as what you put here, then the action will be applied. For example, if you put7 here, all incoming numbers with 7 digits will have the action applied.
  • Shorter Than – If the incoming number is shorter than what you put here, then the action will be applied.
  • Longer Than – If the incoming number is longer than what you put here, then the action will be applied.

Actions

  • Replace With - Will replace whatever you have entered into conditions with what you have entered here.
  • Prepend - Will Prepend what you have entered here.
  • Append – Will append what you have entered here.
  • Try Others – Rules are followed in descending order, from first to last. Normally, once a rule is applied to an incoming number, no other rule will be applied, whether or not the application of the rule results in a match. Try others means that if this rule does not result in a match, it will continue to go through the following rules, with actions for this rule already applied.

Example

Android-addressbook.png
Android-addressbookexample.png

Lets say that your French contacts are all saved with just local numbers in your contacts list. But when you receive a call from them, their numbers are all prepended with 0033 (33 is the French country code) and they are not matching your contacts. Instead of adding new contact entries, one rule in Address Book Matching would take care of this. Go to Address Book Matching and create a new rule. Set a condition of Starts with 0033. Then set an action of Replace With and leave he field blank. Now all incoming numbers that start with 0033 will delete the 0033 and will match your existing contacts.