xref: /freebsd/contrib/dialog/samples/copifuncs/copi.ifmcfg5 (revision c6879c6c14eedbd060ba588a3129a6c60ebbe783)
1*f4f33ea0SBaptiste Daroussin
2*f4f33ea0SBaptiste Daroussin# PhoneTrans lines provide rules to change phone prefixes to make local
3*f4f33ea0SBaptiste Daroussin# or long-distance calls.  In the example below, my country code is 7,
4*f4f33ea0SBaptiste Daroussin# and local dialing area is 095.  From the numbers starting with "7-095-"
5*f4f33ea0SBaptiste Daroussin# the prefix is stripped and the 7-digit remainder is dialed.  For
6*f4f33ea0SBaptiste Daroussin# the numbers starting with "7-" but not with "7-095-", the country prefix
7*f4f33ea0SBaptiste Daroussin# "7-" is stripped and the long-distance dialing prefix "8W" substituted.
8*f4f33ea0SBaptiste Daroussin# For the numbers not matching any of the above, international
9*f4f33ea0SBaptiste Daroussin# call is performed: international dialing prefix "8W10" is prepended
10*f4f33ea0SBaptiste Daroussin# to the unmodified 11-digit number.  Generally, the syntax is:
11*f4f33ea0SBaptiste Daroussin# "PhoneTrans <what-to-strip> / <what-to-substitute-instead>"
12*f4f33ea0SBaptiste Daroussin#PhoneTrans      7-095-  /
13*f4f33ea0SBaptiste Daroussin#PhoneTrans      7-      /       8W
14*f4f33ea0SBaptiste Daroussin#PhoneTrans              /       8W10
15