{"id":3368,"date":"2023-05-02T04:24:48","date_gmt":"2023-05-02T04:24:48","guid":{"rendered":"https:\/\/www.ablenet.co.th\/?p=3368"},"modified":"2023-05-02T04:25:09","modified_gmt":"2023-05-02T04:25:09","slug":"translation-rule-best-practice-for-cme","status":"publish","type":"post","link":"https:\/\/www.ablenet.co.th\/en\/2023\/05\/02\/translation-rule-best-practice-for-cme\/","title":{"rendered":"Translation Rule Best Practice for CME"},"content":{"rendered":"<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e1b\u0e25\u0e48\u0e2d\u0e22\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21 \u0e01\u0e32\u0e23\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22 Translation Rule \u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e23\u0e31\u0e49\u0e07\u0e01\u0e48\u0e2d\u0e19\u00a0<a href=\"http:\/\/ablenet.co.th\/2017\/03\/30\/voice-translation-rules\" target=\"_blank\" rel=\"noopener\">http:\/\/ablenet.co.th\/2017\/03\/30\/voice-translation-rules<\/a>\u00a0\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e21\u0e32\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 Best Practice \u0e2b\u0e23\u0e37\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22 \u0e46 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Rule \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e19\u0e30 \u0e04\u0e37\u0e2d\u0e41\u0e1b\u0e25\u0e07\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e2d\u0e30\u0e44\u0e23 \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e2d\u0e30\u0e44\u0e23 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e15\u0e32\u0e21\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<br \/>\n\u201crule 1 \u00a0 \u00a0 \u00a0 \/match-this\/ \u00a0 \u00a0 \u00a0 \u00a0 \/replace-with-this\/\u201d<\/p>\n<p><strong>1. \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Rule \u0e17\u0e35\u0e48\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e19 CME (Cisco Callmanager Express) \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a\u00a0<\/strong><\/p>\n<p>rule 1 \/2023331234\/ \u00a0 \u00a0 \u00a0\/1234\/<br \/>\ndial \u20182023331234\u2019 translated output\u00a0\u21d2\u00a01234\u00a0; DID converts to internal extension<\/p>\n<p>rule 1 \/2023331\u2026\/ \u00a0 \u00a0 \u00a0\/1\u2026\/<br \/>\ndial \u20182023331234\u2019 translated output\u00a0\u21d2 \u00a01234<\/p>\n<p>rule 1 \/^1\u2026$\/ \u00a0 \u00a0 \u00a0\/2023331\u2026\/<br \/>\ndial \u20181234\u2019 translated output\u00a0\u21d2\u00a0\u00a02023331234<\/p>\n<p>rule 1 \/2023331[0-2]..\/ \u00a0 \u00a0 \u00a0\/1\u2026\/<br \/>\ndial \u20182023331234\u2019 translated output\u00a0\u21d2\u00a0\u00a01234\u00a0; Internal extension 1000~2999<\/p>\n<p>rule 1 \/2023331[012]..\/ \u00a0 \u00a0 \u00a0\/1\u2026\/<br \/>\ndial \u20182023331234\u2019 translated output\u00a0\u21d2\u00a0\u00a01234\u00a0; Internal extension 1000~2999<\/p>\n<p>rule 1 \/\\(\u2026.\\)\/ \u00a0 \u00a0 \u00a0 \/645\\1\/<br \/>\ntranslated output\u00a0\u21d2\u00a0\u00a0645xxxx; Adding 645 in front of 4 digits extension(calling party) that is displayed as caller ID.<\/p>\n<p>rule 1 \/^.*\/ \u00a0 \u00a0 \u00a0\/\/<br \/>\nAnything will be translated to null string<\/p>\n<p>rule 1 \/\/ \u00a0 \u00a0 \u00a0\/\/<br \/>\ndial \u20182023331234\u2019 translated output\u00a0\u21d2\u00a0\u00a02023331234\u00a0; Nothing translated<\/p>\n<p>rule 1 \/\\(^\u2026\\)123\\(\u2026\\)\/ \u00a0 \u00a0 \u00a0\/\\1777\\2\/<br \/>\ndial \u20182021238822\u2019 translated output\u00a0\u21d2\u00a0\u00a02027778822\u00a0; Translate strings from the middle of the input string<\/p>\n<p>rule 1 \/\\(.*\\)1234\/ \u00a0 \u00a0 \u00a0\/\\15678\/<br \/>\ndial \u20182025551234\u2019 translated output\u00a0\u21d2\u00a0\u00a02025555678\u00a0; Translate strings from the end of the input string<\/p>\n<p>rule 1 \/^202\u2026\\(\u2026.\\)\/ \u00a0 \u00a0 \u00a0\/555\\1\/<br \/>\ndial \u20182027771234\u2019 translated output\u00a0\u21d2\u00a0\u00a05551234; Translate multiple patterns<\/p>\n<p>rule 1 \/\\(9\\)\\(1234\\)\\(\u2026\u2026\\)\/ \u00a0 \u00a0 \u00a0 \/\\1\\3\/<br \/>\ndial \u20189 1234 884422\u2019 translated output \u00a0\u21d2\u00a0\u00a09 884422; Eliminate middle of string. \\1 = group1, \\3 = group 3.<\/p>\n<p>rule 1 \/^\u2026\u2026.$\/ \u00a0 \u00a0 \u00a0\/9&amp;\/<br \/>\ndial \u20182027777\u2019 translated output\u00a0\u21d2\u00a0\u00a092027777; \u201c&amp;\u201d put everything from the match string.<\/p>\n<p>rule 1 \/^[2-9]..[2-9]\u2026$\/ \u00a0 \u00a0 \u00a0\/91&amp;\/<br \/>\ndial \u20182027777\u2019 translated output\u00a0\u21d2\u00a0\u00a0912027777; Translate multiple patterns<\/p>\n<p>rule 1 \/*\/ \u00a0 \u00a0 \u00a0\/9011&amp;\/<br \/>\ndial \u20182027777\u2019 translated output\u00a0\u21d2\u00a0\u00a090112027777; Translate multiple patterns<\/p>\n<p><strong>2. Translation Profile<\/strong><\/p>\n<p>\u2013 Translation Profile allows one voice translation rule for called party, one voice translation rule for calling party and one voice translation rule for redirect number.<\/p>\n<p>\u2013 Translation Profile are most commonly applied to ports or dial-peers. Also, it applied on inbound and outbound each.<\/p>\n<p>voice-port 0\/0\/0<br \/>\ntranslation-profile incoming E1-IN<br \/>\ntranslation-profile outgoing E1-OUT<\/p>\n<p>dial-peer voice 10 pots<br \/>\nincoming called-number<br \/>\ntranslation-profile incoming E1-IN<br \/>\ndirect-inward-dial<\/p>\n<p>dial-peer voice 20 pots<br \/>\ndestination-pattern 9[2-9]..[2-9]\u2026<br \/>\ntranslation-profile incoming E1-OUT<br \/>\ndirect-inward-dial<br \/>\nport 0\/0\/0:15<\/p>\n<p><strong>3. \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e44\u0e27\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Testing and Troubleshooting \u0e01\u0e32\u0e23 translate<\/strong>\u00a0\u0e41\u0e25\u0e30\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33 CLI \u0e1a\u0e19 Router CME \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>\u2013 show voice translation-profile<br \/>\n\u2013 show voice translation-rule<br \/>\n\u2013 test voice translation-rule [number] [testing number]<br \/>\n\u2013 show dialplan incall 0\/0\/0:15 number [testing number]<br \/>\n\u2013 show call active voice<br \/>\n\u2013 debug voice translation and csim start xxxxxxxx<br \/>\n\u2013 show dialplan number xxxxxx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e1b\u0e25\u0e48\u0e2d\u0e22\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21 \u0e01\u0e32\u0e23\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22 Translation Rule \u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e23\u0e31\u0e49\u0e07\u0e01\u0e48\u0e2d\u0e19\u00a0http:\/\/ablenet.co.th\/2017\/03\/30\/voice-translation-rules\u00a0\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e21\u0e32\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 Best Practice \u0e2b\u0e23\u0e37\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22 \u0e46 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Rule \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e19\u0e30 \u0e04\u0e37\u0e2d\u0e41\u0e1b\u0e25\u0e07\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e2d\u0e30\u0e44\u0e23 \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e2d\u0e30\u0e44\u0e23 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e15\u0e32\u0e21\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a \u201crule 1 \u00a0 \u00a0 \u00a0 \/match-this\/ \u00a0 \u00a0 \u00a0 \u00a0 \/replace-with-this\/\u201d 1. \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Rule \u0e17\u0e35\u0e48\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e19 CME (Cisco Callmanager Express) \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a\u00a0 rule 1 \/2023331234\/ \u00a0 \u00a0 \u00a0\/1234\/ dial \u20182023331234\u2019 translated output\u00a0\u21d2\u00a01234\u00a0; DID converts to internal extension rule 1 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":3371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[63,107,164,165],"class_list":["post-3368","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","tag-cisco","tag-cisco-collaboration","tag-dialplan","tag-translation-rule"],"_links":{"self":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/comments?post=3368"}],"version-history":[{"count":1,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3368\/revisions"}],"predecessor-version":[{"id":3372,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3368\/revisions\/3372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media\/3371"}],"wp:attachment":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media?parent=3368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/categories?post=3368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/tags?post=3368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}