<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello All</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I’m currently working with the <code style="font-family: Arial, Helvetica, sans-serif;">
route_to_carrier</code> function for an upcoming implementation and have a few questions. Below is the structure of my
<code style="font-family: Arial, Helvetica, sans-serif;">dr_carriers</code> table:</div>
<pre><div class="elementToProof" style="white-space: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><button class="flex gap-1 items-center select-none py-1"><div class="elementToProof"></div></button><span style="font-family: Arial, Helvetica, sans-serif;"><code style="font-family: Arial, Helvetica, sans-serif;">id   carrierid   gwlist              flags   sort_alg   state   description  
1    Carrier     test-gw             0       N          0      Carrier  
2    PSTN        term-gw,term-gw2    0       W          0      PSTN  
</code></span></div></pre>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I’m calling the following function:</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<code style="font-family: Arial, Helvetica, sans-serif;">route_to_carrier("PSTN")</code></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, I’ve noticed that calls are only routed to the first gateway (<code style="font-family: Arial, Helvetica, sans-serif;">term-gw</code>) in the
<code style="font-family: Arial, Helvetica, sans-serif;">gwlist</code> column, and not to the second one (<code style="font-family: Arial, Helvetica, sans-serif;">term-gw2</code>).</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here are my main questions:</div>
<ol start="1">
<li style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
How can I enable weighted routing while using the <code style="font-family: Arial, Helvetica, sans-serif;">
route_to_carrier</code> function?</li><li style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Is it possible to use the <b><code style="font-family: Arial, Helvetica, sans-serif;">use_next_gw</code></b> function in combination with
<code style="font-family: Arial, Helvetica, sans-serif;">route_to_carrier</code> for handling route failures?</li></ol>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I would appreciate any insights or guidance you could provide on this.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
Best Regards,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ali<br>
<br>
<br>
<br>
</div>
<div dir="ltr" style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;font-size:1px;direction:ltr;"><table dir="ltr" cellpadding="0" cellspacing="0" border="0" style="width:100%;direction:ltr;border-collapse:collapse;font-size:1px;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:30px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:0 0 20px;border-top:none;border-right:none;border-bottom:solid 1px #B1BAD4;border-left:none;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:0 20px 0 0;border-top:none;border-right:solid 1px #CCCCCC;border-bottom:none;border-left:none;vertical-align:middle;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#041729;font-style:normal;font-weight:700;line-height:normal;white-space:nowrap;"><tr style="font-size:14px;"><td align="left" style="padding:0;vertical-align:top;font-family:Verdana;"><p style="margin-top:0px;margin-bottom:0px;">Ali Dogan<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;">​<span style="font-family:'template-IIW3pcg7EeunrQANOhMDEQ';">​</span><span style="font-family:'zone-1';">​</span><span style="font-family:'zones-AQ';">​</span></span></p></td></tr><tr style="font-size:0;"><td align="left" style="padding:15px 0 0;vertical-align:top;"><p style="margin-top:0px;margin-bottom:0px;"><a href="http://www.plan.com/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="http://www.plan.com/signatures/v2/plan-logo.png" width="157" border="0" title="plan.com" alt="plan.com" style="width:157px;min-width:157px;max-width:157px;font-size:12px;" /></a></p></td></tr></table></td><td align="left" style="padding:0 20px;border-top:none;border-right:solid 1px #B1BAD4;border-bottom:none;border-left:none;vertical-align:middle;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#041729;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:12px;"><td align="left" style="padding:0;vertical-align:top;font-family:Verdana;"><p style="margin-top:0px;margin-bottom:0px;"><a href="tel:+44(0)3300%2088%2018%2018" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#041729;">+44(0)3300 88 18 18</a></p></td></tr><tr style="font-size:12px;color:#000001;font-weight:700;"><td align="left" style="padding:8px 0 0;vertical-align:top;font-family:Verdana;"><p style="margin-top:0px;margin-bottom:0px;"><a href="mailto:alidogan@plan.com" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#041729;">alidogan@plan.com</a></p></td></tr><tr style="font-size:0;"><td align="left" style="padding:8px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="center" style="padding:0 7px 0 0;vertical-align:middle;"><p style="margin-top:0px;margin-bottom:0px;"><a href="https://www.facebook.com/plan.im" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="http://www.plan.com/signatures/v3/facebook.png" width="20" border="0" title="Facebook" alt="Facebook" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></p></td><td align="center" style="padding:0 7px;vertical-align:middle;"><p style="margin-top:0px;margin-bottom:0px;"><a href="https://www.instagram.com/plandotcom" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="http://www.plan.com/signatures/v3/instagram.png" width="20" border="0" title="Instagram" alt="Instagram" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></p></td><td align="center" style="padding:0 7px;vertical-align:middle;"><p style="margin-top:0px;margin-bottom:0px;"><a href="https://www.linkedin.com/company/plan-com" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="http://www.plan.com/signatures/v3/linkedin.png" width="20" border="0" title="LinkedIn" alt="LinkedIn" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></p></td><td style="padding:0 0 0 7px;"> </td></tr></table></td></tr></table></td><td align="left" style="padding:0 20px;vertical-align:middle;line-height:normal;"><p style="margin-top:0px;margin-bottom:0px;"><img src="http://www.plan.com/signatures/v4/2024-awards-logos.png" width="615" border="0" alt="" style="width:615px;min-width:615px;max-width:615px;font-size:0;" /></p></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="padding:0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;color:#AFB3C2;font-style:normal;font-weight:400;white-space:normal;"><tr style="font-size:9.33px;"><td align="left" style="padding:20px 0;vertical-align:top;font-family:Verdana;"><p style="margin-top:0px;margin-bottom:0px;"><a href="http://www.plan.com/" target="_blank" id="LPlnk689713" title="http://www.plan.com/" style="text-decoration:none;color:#AFB3C2;">plan.com</a> is the trading name of Plan Communications Limited, registered in the Isle of Man with company number 010273V and Registered Office at No.5 Victoria Street, Douglas, Isle of Man, IM1 2LR. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Plan. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.<br /></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></div></body>
</html>