New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344


Thread Closed 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FAQ]How to configure dial plan for Yealink phones?
Author Message
Yealink Support Offline
Administrator
*******

Posts: 2,685
Joined: Dec 2012
Reputation: 19
Post: #1
Lightbulb [FAQ]How to configure dial plan for Yealink phones?
Regular expression, often called a pattern, is an expression that specifies a set of strings. A regular expression provides a concise and flexible means to “match” (specify and recognize) strings of text, such as particular characters, words, or patterns of characters. Regular expression is used by many text editors, utilities, and programming languages to search and manipulate text based on patterns.
Regular expression can be used to define IP phone dial plan. Dial plan is a string of characters that governs the way for IP phones to process the inputs received from the IP phone’s keypads. IP phones support the following dial plan features:

l Replace Rule
l Dial-now
l Area Code
l Block Out


You need to know the following basic regular expression syntax when creating dial plan:

[Image: attachment.php?aid=681]

It’s account-oriented for Dial Plan, you can choose to specify any rule to any an account and will not affect other accounts.
You can input corresponding digit into the column, here:
1 stands for account 1
2 stands for account 2
And so on

And it allows you to input one or more digits to define multiple accounts like below:
1,2,3,4,5,6 (it stands for working for all 6 accounts)
1,3,5 (it stands for this rule will only work for account 1,3,5)
And []color=redNULL/EMPTY[/color] stands for working for all accounts.

Replace rule

Replace rule is an alternative string that replaces the numbers entered by the user. IP phones support up to 100 replace rules, which can be created either one by one or in batch using a replace rule template.

To create a replace rule via web user interface:(Take T46G-V72 for example)
1. Click on Settings->Dial Plan->Replace Rule.
2. Enter the string in the Prefix field.
3. Enter the string in the Replace field.
4. Enter the desired line ID in the Account field or leave it blank.
If you leave the field blank or enter 0, the replace rule will apply to all accounts on the IP phone.

[Image: attachment.php?aid=682]

5. Click Add to add the replace rule.

Replace Rule Template

The replace rule template helps with the creation of multiple replace rules. The existing
replace rules on the phones will be overwritten by the downloaded replace rules. After setup, you need to place the replace rule template to the provisioning server and specify the access URL in the configuration files.
When editing a replace rule template file, learn the following:
l <DialRule> indicates the start of the template file and </DialRule> indicates the
end of the template file.
l Create replace rules between <DialRule> and </DialRule>.
l When specifying the desired line(s) to apply the replace rule, the valid values are 0
and line ID. The digit 0 stands for all lines. Multiple line IDs are separated by
commas.
l At most 100 replace rules can be added to the IP phone.

Use the following procedures to customize a replace rule template.
To customize a replace rule template:
1. Open the template file using an ASCII editor .
2. Add the following string to the template, each starting on a separate line:
<Data Prefix=”” Replace=”” LineID=””/>
Where:
Prefix=”” specifies the numbers to be replaced.
Replace=”” specifies the alternate string instead of what the user enters.
LineID=”” specifies the desired line(s) for this rule. When leaving it blank, this
replace rule will apply to all lines.
3. Specify the values within double quotes.
4. Save the change and place this file to the provisioning server .

The following is an example of a replace rule file:
Code:
<DialRule>
<Data Prefix="1" Replace="05928665234" LineID=""/>
<Data Prefix="2(xx)" Replace="002$1" LineID="0"/>
<Data Prefix="5([6-9])(.)" Replace="3$2" LineID="1,2,3"/>
<Data Prefix="0(.)" Replace="9$1" LineID="2"/>
<Data Prefix="1009" Replace="05921009" LineID="1"/>
</DialRule>

Explanations of Replace Rule:

1. Exact match

(1) prefix=0, replace=0086
When you dial 0 out, the number will be replaced by 0086 automatically
(2) prefix=123, replace=0592
When you dial 123 out, the number will be replaced by 0592 automatically.

2. Partial match
If need to replace the unknown contents, then you can use (.) or (x). The content in () stands for a variable, the first variable is expressed by $1, the second variable is expressed by $2, the rest can be done in the same manner.
For example: if you want to replace the any input content with the content beginning with 8. Input (.) in Prefix box, and input 8$1 in Replace box .

(1) prefix=(xxxx), replace=9$1

When you dial out any four characters on your phone, the IP phone will replace the number added with 9.For example, you dial 8742 out, the number will be replaced by 98742 automatically.
If you dial 55555 out, the replace rule can't take effect.

(2) prefix=(.), replace=9$1

When you dial out any string on your phone, the IP phone will replace the number added with 9. For example, you dial 06612 out, the number will be replaced by 906612 automatically.

(3) prefix=9(.), replace=$1

For example, you dial 9321 out, the number will be replaced by 321.
If you dial 99987 out, the number will be replaced by 9987 automatically. And so on.

(4) prefix=13([0-9])(.), replace=913$1$2

When you dial 1308765 out, the number will be replaced by 91308765.
When you dial 91308765 out, the replace rule can't take effect.

(5)prefix=(21)([1,3]), replace=9$1$2

When you dial 211, the number will be replaced by 9211.
When you dial 214, the replace rule can't take effect.
When you dial 121, the replace rule can't take effect. And so on.

(6)prefix=(xxx)(23), replace=8$1$2

When you dial 55523, the number will be replaced by 855523.
When you dial out 878723, the replace rule can't take effect.
When you dial out 55513, the replace rule can't take effect. And so on.

Dial-now

Dial-now is a string used to match the numbers entered by the user . When entered numbers match the predefined dial-now rule, IP phones will automatically dial out the numbers without pressing the send key. IP phones support up to 100 dial-now rules, which can be created either one by one or in batch using a dial-now rule template.
Delay Time for Dial-now Rule
IP phones will automatically dial out the entered number, which matches the dial-now rule, after a specified period of time.

To create a dial-now rule via web user interface:(Take T46G-V72 for example)
1. Click on Settings->Dial Plan->Dial-now.
2. Enter the desired value in the Rule field.
3. Enter the desired line ID in the Account field or leave it blank.
If you leave the field blank or enter 0, the dial-now rule will apply to all accounts on the IP phone.

[Image: attachment.php?aid=683]

4. Click Add to add the dial-now rule.

To configure the delay time for the dial-now rule via web user interface:(Take T46G-V72 for example)
1. Click on Features->General Information.
2. Enter the desired time within 1-14 (in seconds) in the Time- Out for Dial-Now Rule field.

[Image: attachment.php?aid=684]

3. Click Confirm to accept the change.

Dial-now Template

The dial-now template helps with the creation of multiple dial-now rules. After setup,
you need to place the dial-now template to the provisioning server and specify the access URL in the configuration files.
When editing a dial-now template, learn the following:
l <DialNow> indicates the start of a template and </DialNow> indicates the end of
a template.
l Create dial-now rules between <DialNow> and </DialNow>.
l When specifying the desired line(s) for the dial-now rule, the valid values are 0 and
line ID. 0 stands for all lines. Multiple line IDs are separated by commas.
l At most 100 dial-now rules can be added to the IP phone.

Use the following procedures to customize a dial-now template.
To customize a dial-now template:
1. Open the template file using an ASCII editor .
2. Add the following string to the template, each starting on a separate line:
<Data DialNowRule="" LineID=""/>
Where:
DialNowRule="" specifies the dial-now rule.
LineID="" specifies the desired line(s) for this rule. When leaving it blank, this rule
will apply to all lines.
3. Specify the values within double quotes.
4. Save the change and place this file to the provisioning server.

The following is an example of a dial-now template:
Code:
<DialNow>
<Data DialNowRule="1234" LineID="1"/>
<Data DialNowRule="52[0-6]" LineID="1"/>
<Data DialNowRule="xxxxxx" LineID=""/>
</DialNow>

Area Code

Area codes are also known as Numbering Plan Areas (NPAs). They usually indicate geographical areas in one country . When the entered numbers match the predefined area code rule, the IP phone will automatically add the area code before the numbers when dialing out them. IP phones only support one area code rule.

To configure an area code rule via web user interface:(Take T46G-V72 for example)
1. Click on Settings->Dial Plan->Area Code.
2. Enter desired values in the Code, Min Length (1-15) and Max Length (1-15) fields.
3. Enter the desired line ID in the Account field or leave it blank.
If you leave the field blank or enter 0, the area code rule will apply to all accounts on the IP phone.

[Image: attachment.php?aid=685]

4. Click Confirm to accept the change.


Attached File(s) Thumbnail(s)
                   
(This post was last modified: 03-31-2014 03:14 PM by Yealink Support.)
03-28-2014 10:49 AM
Find all posts by this user    like0    dislike0
Yealink Support Offline
Administrator
*******

Posts: 2,685
Joined: Dec 2012
Reputation: 19
Post: #2
RE: [FAQ] How to configure dial plan for Yealink phones?
Block Out

Block out rule prevents users from dialing out specific numbers. When the entered numbers match the predefined block out rule, the LCD screen prompts “Forbidden Number”. IP phones support up to 10 block out rules.

To create a block out rule via web user interface:(Take T46G-V72 for example)
1. Click on Settings->Dial Plan->Block Out.
2. Enter the desired value in the BlockOut Number field.
3. Enter the desired line ID in the Account field or leave it blank.
If you leave the field blank or enter 0, the block out rule will apply to all accounts on the IP phone.

[Image: attachment.php?aid=686]

4. Click Confirm to add the block out rule.

The auto provisioning template (CFG file) for dial plan is below:
You can refer to more details in auto provisioning guide and administrator guide in Yealink website.
Support Module of Yealink website
----------------------------------------------------------------------------------
#!version:1.0.0.1
#Note: This file header cannot be edited or deleted.
dialplan.area_code.code =
dialplan.area_code.min_len =
dialplan.area_code.max_len =
dialplan.area_code.line_id =
dialplan.block_out.number.1 =
dialplan.block_out.line_id.1 =
dialplan.dialnow.rule.1 =
dialplan.dialnow.line_id.1 =
dialplan.replace.prefix.1 =
dialplan.replace.replace.1 =
dialplan.replace.line_id.1 =
-----------------------------------------------------------------------------------

NOTE(Important)

The priority of dial plan is as below:

High <--- Dial-now <---Replace rule <--- Area Code <--- Block Out <--- Low



Please be aware:

The purpose of these forums is to allow forum members collaborate and help each other.
Questions posted here won't be appreciated.
If you require assistance from Yealink technical support, please email to support@yealink.com or USA support support.usa@yealink.com


Attached File(s) Thumbnail(s)
   
(This post was last modified: 04-19-2014 12:21 PM by Yealink Support.)
03-28-2014 10:52 AM
Find all posts by this user    like0    dislike0
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Yealink Meeting Server joel 1 325 08-15-2017 10:46 AM
Last Post: joel
  Yealink T21P E2 - Raspberry OpenVPN Kostas 1 2,821 01-03-2017 07:35 AM
Last Post: Kevin_Yealink
  YEALINK T48G sbsinfo 4 2,021 11-06-2016 09:30 AM
Last Post: Lucia_Yealink
  Difference between Yealink IP Phone and Wildix IP Phone Mohamed Chaari 2 4,233 08-29-2016 10:56 PM
Last Post: elena_wildix
  Problem with YEALINK T23G Ana 1 1,939 06-23-2016 09:37 AM
Last Post: Yealink_Karl
  Yealink T27P latest Firmware (Loudspeaker & Hold Volume too loud) bradley.abrahams 2 3,797 05-06-2016 08:58 AM
Last Post: bradley.abrahams
  Yealink VP2009 firmware upgrade with TFTP server fasilkaks 1 5,082 03-05-2016 07:50 AM
Last Post: fraukas
  DHCP issue on Yealink phones with HP Switch HP2920 Crizz 2 3,347 03-03-2016 11:17 AM
Last Post: bunce
  no audio on t22, t26 phones Daniel Gagnon 0 1,983 02-25-2015 02:45 AM
Last Post: Daniel Gagnon
  YEALINK T18 HARD RESET nim 3 5,183 02-10-2015 03:10 PM
Last Post: Yealink_James

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication