{"id":1291,"date":"2022-11-10T20:53:18","date_gmt":"2022-11-10T19:53:18","guid":{"rendered":"https:\/\/alessandromasciadri.com\/?p=1291"},"modified":"2023-01-17T22:47:19","modified_gmt":"2023-01-17T21:47:19","slug":"come-impostare-molteplici-outbound-routes-con-freepbx","status":"publish","type":"post","link":"https:\/\/alessandromasciadri.com\/come-impostare-molteplici-outbound-routes-con-freepbx\/","title":{"rendered":"Come impostare molteplici outbound routes con FreePBX"},"content":{"rendered":"\t\t<div data-akihiro-type=\"ama-post\" data-akihiro-id=\"1291\" class=\"akihiro akihiro-1291\" data-akihiro-post-type=\"post\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-ef9729c e-flex e-con-boxed e-con e-parent\" data-id=\"ef9729c\" data-element_type=\"container\" data-e-type=\"container\" id=\"my-post\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-62fb003 akihiro-widget akihiro-widget-text-editor\" data-id=\"62fb003\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Le outbound routes sono le rotte che utilizzano le estensioni telefoniche per eseguire chiamate in uscita.<\/p><p>Quando si hanno pi\u00f9 numerazioni configurate su un centralino FreePBX, per poter instradare le chiamate in uscita sulla base di quale estensione si sta utilizzando per piazzare la chiamata, possiamo utilizzare una semplice configurazione che intercetta il CallerID. Vediamo qui di seguito nel dettaglio.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-5faf0ce akihiro-toc--minimized-on-tablet akihiro-widget akihiro-widget-table-of-contents\" data-id=\"5faf0ce\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;container&quot;:&quot;#my-post&quot;,&quot;exclude_headings_by_selector&quot;:[],&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;no_headings_message&quot;:&quot;Non sono state trovate intestazioni in questa pagina.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"akihiro-toc__header\">\n\t\t\t\t\t\t<h4 class=\"akihiro-toc__header-title\">\n\t\t\t\tTable of Contents\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t\t\t<div class=\"akihiro-toc__toggle-button akihiro-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"akihiro-toc__5faf0ce\" aria-expanded=\"true\" aria-label=\"Apri l&#039;indice dei contenuti\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-down\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\"><\/path><\/svg><\/div>\n\t\t\t\t<div class=\"akihiro-toc__toggle-button akihiro-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"akihiro-toc__5faf0ce\" aria-expanded=\"true\" aria-label=\"Chiudi l&#039;indice dei contenuti\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-up\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"><\/path><\/svg><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"akihiro-toc__5faf0ce\" class=\"akihiro-toc__body\">\n\t\t\t<div class=\"akihiro-toc__spinner-container\">\n\t\t\t\t<svg class=\"akihiro-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading\" aria-hidden=\"true\" viewBox=\"0 0 1000 1000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-48ac0f6 akihiro-widget akihiro-widget-heading\" data-id=\"48ac0f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Scenario<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-a4d8d67 akihiro-widget akihiro-widget-text-editor\" data-id=\"a4d8d67\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Ragioniamo con un esempio concreto. Abbiamo due trunk VoIP cos\u00ec denominati:<\/p><ol><li>Milano \u00a0&#8211;&gt; 029030280<\/li><li>Genova &#8211;&gt; 010807590<\/li><\/ol><p>Le estensioni configurate sono le seguenti:<\/p><ol><li>Milano \u00a0&#8211;&gt; 201, 202, 203, 204<\/li><li>Genova &#8211;&gt; 401, 402, 403, 404<\/li><\/ol><p>L&#8217;obiettivo che vogliamo raggiungere \u00e8 quello che le chiamate effettuate dalle estensioni di Milano escano dal corrispondente numero geografico, lo stesso deve avvenire per le estensioni di Genova.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-75240a9 akihiro-widget akihiro-widget-heading\" data-id=\"75240a9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Configurazione delle rotte in uscita<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-a774bf5 akihiro-widget akihiro-widget-text-editor\" data-id=\"a774bf5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>La prima cosa da fare \u00e8 creare due rotte in uscita, una per ogni trunk configurato, poi nella sezione Connectivity &#8211;&gt; Outbound Routes &#8211;&gt; Dial Patterns impostare i valori in modo tale che vengano intercettate le estensioni cos\u00ec che le chiamate in uscita possano essere instradate correttamente.<\/p><p>Configuriamo ora le due outbound routes per i trunk di Milano e di Genova nel seguente modo:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-0714ef1 akihiro-widget akihiro-widget-heading\" data-id=\"0714ef1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h4 class=\"akihiro-heading-title akihiro-size-default\">Outbound route Milano<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-5257187 akihiro-widget akihiro-widget-text-editor\" data-id=\"5257187\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<table><tbody><tr><th>Prepend<\/th><th>Prefix<\/th><th>Match Pattern<\/th><th>CallerID<\/th><\/tr><tr><td>\u00a0<\/td><td>\u00a0<\/td><td>0.<\/td><td>20[1234]<\/td><\/tr><tr><td>\u00a0<\/td><td>\u00a0<\/td><td>3.<\/td><td>20[1234]<\/td><\/tr><tr><td>\u00a0<\/td><td>\u00a0<\/td><td>8.<\/td><td>20[1234]<\/td><\/tr><\/tbody><\/table>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-600aae4 akihiro-widget akihiro-widget-heading\" data-id=\"600aae4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h4 class=\"akihiro-heading-title akihiro-size-default\">Outbound route Genova<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-a78c71e akihiro-widget akihiro-widget-text-editor\" data-id=\"a78c71e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<table>\n<tbody>\n<tr>\n<th>Prepend<\/th>\n<th>Prefix<\/th>\n<th>Match Pattern<\/th>\n<th>CallerID<\/th>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>0.<\/td>\n<td>40[1234]<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>3.<\/td>\n<td>40[1234]<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>8.<\/td>\n<td>40[1234]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-6b491ad akihiro-widget akihiro-widget-heading\" data-id=\"6b491ad\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h4 class=\"akihiro-heading-title akihiro-size-default\">Conclusione<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-fa0a74e akihiro-widget akihiro-widget-text-editor\" data-id=\"fa0a74e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>La seguente configurazione ci permette di intercettare le estensioni 201, 202, 203, 204 e di instradarne le chiamate attraverso il trunk di Milano, mentre le estensioni 401, 402, 403, 404 vengono instradate attraverso il trunk di Genova.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-df23a96 akihiro-widget akihiro-widget-heading\" data-id=\"df23a96\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Link utili<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-22882ee akihiro-widget akihiro-widget-text-editor\" data-id=\"22882ee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><a href=\"https:\/\/community.freepbx.org\/t\/is-there-a-way-to-route-an-ext-outbound-call-to-a-particular-trunk\/53634\">https:\/\/community.freepbx.org\/t\/is-there-a-way-to-route-an-ext-outbound-call-to-a-particular-trunk\/53634<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Le outbound routes sono le rotte che utilizzano le estensioni telefoniche per eseguire chiamate in uscita. Quando si hanno pi\u00f9 numerazioni configurate su un centralino FreePBX, per poter instradare le chiamate in uscita sulla base di quale estensione si sta utilizzando per piazzare la chiamata, possiamo utilizzare una semplice configurazione che intercetta il CallerID. Vediamo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[37,39,38],"class_list":["post-1291","post","type-post","status-publish","format-standard","hentry","category-sistemistica","tag-asterisk","tag-freepbx","tag-voip"],"_links":{"self":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/comments?post=1291"}],"version-history":[{"count":29,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1291\/revisions"}],"predecessor-version":[{"id":1323,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1291\/revisions\/1323"}],"wp:attachment":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/media?parent=1291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/categories?post=1291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/tags?post=1291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}