<div dir="ltr"><div class="gmail_quote"><br><u></u>
        
                
                
                
                
<div style="height:100%;margin:0px;padding:0px;width:100%;background-color:rgb(250,250,250)">
<center>
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="gmail-m_2943177204832689592bodyTable" style="text-align:center;border-collapse:collapse;height:100%;margin:0px;padding:0px;width:100%;background-color:rgb(250,250,250)">
<tbody><tr>
<td align="center" valign="top" id="gmail-m_2943177204832689592bodyCell" style="height:100%;margin:0px;padding:0px;width:100%;border-top:0px">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="text-align:center;border-collapse:collapse">
<tbody><tr>
                                                                <td align="center" valign="top" id="gmail-m_2943177204832689592templatePreheader" style="background-origin:initial;background-clip:initial;background-color:rgb(250,250,250);background-image:none;background-repeat:no-repeat;background-position:50% 50%;background-size:cover;border-top:0px;border-bottom:0px;padding-top:9px;padding-bottom:9px"><br>
                                                                        
                                                                </td>
</tr>
                                                        <tr>
                                                                <td align="center" valign="top" id="gmail-m_2943177204832689592templateHeader" style="background-origin:initial;background-clip:initial;background-color:rgb(255,255,255);background-image:none;background-repeat:no-repeat;background-position:50% 50%;background-size:cover;border-top:0px;border-bottom:0px;padding-top:9px;padding-bottom:0px">
                                                                        
                                                                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592templateContainer" style="border-collapse:collapse;max-width:600px">
                                                                                <tbody><tr>
                        <td valign="top" class="gmail-m_2943177204832689592headerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnImageBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnImageBlockOuter">
<tr>
<td valign="top" style="padding:9px" class="gmail-m_2943177204832689592mcnImageBlockInner">
<table align="left" width="100%" border="0" cellpadding="0" cellspacing="0" class="gmail-m_2943177204832689592mcnImageContentContainer" style="min-width:100%;border-collapse:collapse">
<tbody><tr>
<td class="gmail-m_2943177204832689592mcnImageContent" valign="top" style="padding:0px 9px;text-align:center">
<img src="cid:ii_iycdea0w6_159d397a8b66513e" width="562" height="144"><br><img align="center" alt="" width="564" style="max-width: 1024px; padding-bottom: 0px; vertical-align: bottom; border: 0px; height: auto; outline: none; text-decoration: none; display: inline;" class="gmail-m_2943177204832689592mcnImage">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnBoxedTextBlock" style="min-width:100%;border-collapse:collapse">
        <tbody class="gmail-m_2943177204832689592mcnBoxedTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnBoxedTextBlockInner">
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnBoxedTextContentContainer">
<tbody><tr>
<td style="padding:9px 18px">
<table border="0" cellpadding="18" cellspacing="0" class="gmail-m_2943177204832689592mcnTextContentContainer" width="100%" style="background-color:rgb(255,255,255);border-collapse:collapse;min-width:100%">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="color:rgb(8,0,0);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px;font-style:normal;font-weight:normal;text-align:left;word-break:break-word;line-height:150%">
<p dir="ltr" style="color:rgb(8,0,0);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px;font-style:normal;font-weight:normal;text-align:left;margin:10px 0px;padding:0px;line-height:150%">Hello FreeSWITCHers!</p>
<div>The FreeSWITCH team is working hard on getting version 1.8 ready for release. While you wait, we thought you might be interested in learning a few FreeSWITCH tricks you can try yourself. We had a look into our cookbook and found a few recipes you may be interested in. Have a look and don't forget you can learn even more about FreeSWITCH and other open source projects at ClueCon 2017 <a href="http://freeswitch.us13.list-manage.com/track/click?u=73f7dcee16e0a87ece76c372d&id=14ace00040&e=a45f2f7d64" style="color:rgb(43,170,223);font-weight:normal;text-decoration:underline" target="_blank">http://cluecon.com</a> Don't miss our early bird pricing available for only a short time!</div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table></td>
                                                                                </tr>
                                                                        </tbody></table>
                                                                        
                                                                </td>
</tr>
                                                        <tr>
                                                                <td align="center" valign="top" id="gmail-m_2943177204832689592templateBody" style="background-origin:initial;background-clip:initial;background-color:rgb(255,255,255);background-image:none;background-repeat:no-repeat;background-position:50% 50%;background-size:cover;border-top:0px;border-bottom:0px;padding-top:9px;padding-bottom:9px">
                                                                        
                                                                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592templateContainer" style="text-align:center;border-collapse:collapse;max-width:600px">
                                                                                <tbody><tr>
                        <td valign="top" class="gmail-m_2943177204832689592bodyContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;font-size:16px;line-height:150%;text-align:left">
<div style="text-align:center"><span style="font-size:24px"><u>Simple Call Failover</u></span></div>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<p dir="ltr" style="font-size:14px;margin:10px 0px;padding:0px;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left"><u><span style="font-size:17px"></span></u><img src="cid:ii_iyccsi5u0_159d3882866559cd" width="562" height="337"><br><br>
<span style="font-size:14px"><span style="font-family:tahoma,verdana,segoe,sans-serif">How often do you miss a customer’s phone call? It always seems like the phone rings at the most inconvenient time and ends just before you can get to it. Wouldn’t it be great if instead of going to voicemail it just rang your co-worker? Well, FreeSWITCH has a solution for you. What if you didn’t have to answer those calls by yourself? In the FreeSWITCH dialplan you can configure something called Simple Call Failover. What this means is a call comes in and rings multiple endpoints (two separate desk phones in this example, one right after the other) and the person that answers is connected to the call. That way if you are busy someone else can answer that call and keep the customers happy.</span></span></p>
<p dir="ltr" style="font-size:14px;margin:10px 0px;padding:0px;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left"><span style="font-size:14px"><span style="font-family:tahoma,verdana,segoe,sans-serif">To set this up open up your dialplan, in this example we will use the default located at </span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace">conf/dialplan/default.xml</span> <span style="font-family:tahoma,verdana,segoe,sans-serif">in a text editor in our terminal. Navigate to the extension you would like to use and add these lines:</span></span></p>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnBoxedTextBlock" style="min-width:100%;border-collapse:collapse">
        <tbody class="gmail-m_2943177204832689592mcnBoxedTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnBoxedTextBlockInner">
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnBoxedTextContentContainer">
<tbody><tr>
<td style="padding:9px 18px">
<table border="0" cellpadding="18" cellspacing="0" class="gmail-m_2943177204832689592mcnTextContentContainer" width="100%" style="background-color:rgb(240,240,240);border-collapse:collapse;min-width:100%">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="color:rgb(0,0,0);font-family:helvetica;font-size:14px;font-weight:normal;text-align:center;word-break:break-word;line-height:150%">
<div style="text-align:left"><span style="font-size:14px"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="failover_example"><br>
<condition field="destination_number" expression="^(1000)$"><br>
<action application="bridge" data="{ignore_early_media=<wbr>true}sofia/internal/<a href="mailto:first@domain.com" target="_blank">first@<wbr>domain.com</a>|sofia/internal/<a href="mailto:second@domain.com" target="_blank">seco<wbr>nd@domain.com</a>"/> <br>
</condition><br>
</extension></span></span></div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<p dir="ltr" style="font-size:14px;margin:10px 0px;padding:0px;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left"><span style="font-size:14px"><span style="font-family:tahoma,verdana,segoe,sans-serif">By adding a pipe between your endpoints you are telling FreeSWITCH to dial those endpoints sequentially. The first one that is successfully connected will get the call and FreeSWITCH will cease dialing the additional endpoints. Now, to do this FreeSWITCH needs to ignore any early media like ringing so we added</span> <span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace">ignore_early_media=true</span> <span style="font-family:tahoma,verdana,segoe,sans-serif">at the beginning to tell FreeSWITCH to only connect the call when it is answered. It is as easy as that.</span></span></p>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;font-size:16px;line-height:150%;text-align:left">
<div style="text-align:center"><span style="font-size:24px"><u><span style="font-family:tahoma,verdana,segoe,sans-serif">Time of Day Routing</span></u></span></div>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<p dir="ltr" style="font-size:14px;margin:10px 0px;padding:0px;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left"></p><div style="text-align:center"><img src="cid:ii_iyccvoyv2_159d38a6c0258c44" width="208" height="243"></div><br>
<div style="text-align:left"><span style="font-family:tahoma,verdana,segoe,sans-serif">Did you know you can configure FreeSWITCH to route to certain extensions based on the time of day? This is particularly convenient if you want to play a different greeting based </span><span style="font-family:tahoma,verdana,segoe,sans-serif">on your office’s hours. To configure this you first need to define some variables for </span><span style="font-family:tahoma,verdana,segoe,sans-serif">FreeSWITCH to use as a reference. For this example, we will assume our office is open 8:00 a.m. to 4:00 p.m. We start by adding this extension to the beginning of your dialplan context:</span></div>
<p></p>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnBoxedTextBlock" style="min-width:100%;border-collapse:collapse">
        <tbody class="gmail-m_2943177204832689592mcnBoxedTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnBoxedTextBlockInner">
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnBoxedTextContentContainer">
<tbody><tr>
<td style="padding:9px 18px">
<table border="0" cellpadding="18" cellspacing="0" class="gmail-m_2943177204832689592mcnTextContentContainer" width="100%" style="background-color:rgb(240,240,240);border-collapse:collapse;min-width:100%">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="color:rgb(0,0,0);font-family:helvetica;font-size:14px;font-weight:normal;text-align:center;word-break:break-word;line-height:150%">
<div style="text-align:left"><span style="font-size:14px"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="Time of day, day of week example" continue="true"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <condition wday="2-6" hour="8-15" break="never"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="set" data="office_status=open" inline="true"/></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <anti-action application="set" data="office_status=closed" inline="true"/> </span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> </condition></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"></extension></span></span></div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<span style="font-family:tahoma,verdana,segoe,sans-serif"><span style="font-size:14px">Now you can use the previously defined variables to set your extensions. In the example below FreeSWITCH will first check to see if the office is open or closed based on the first condition we defined. After that, FreeSWITCH will then execute whichever dialplan extension is necessary depending on the value of ‘</span></span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><span style="font-size:14px">office_status</span></span><span style="font-family:tahoma,verdana,segoe,sans-serif"><span style="font-size:14px">’ in the first condition. This configuration allows you to set specific actions depending on the time of day and what you would like your IVR to do. In this example we are initiating a particular IVR depending on whether the office is open or closed.</span></span>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnBoxedTextBlock" style="min-width:100%;border-collapse:collapse">
        <tbody class="gmail-m_2943177204832689592mcnBoxedTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnBoxedTextBlockInner">
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnBoxedTextContentContainer">
<tbody><tr>
<td style="padding:9px 18px">
<table border="0" cellpadding="18" cellspacing="0" class="gmail-m_2943177204832689592mcnTextContentContainer" width="100%" style="background-color:rgb(240,240,240);border-collapse:collapse;min-width:100%">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="color:rgb(0,0,0);font-family:helvetica;font-size:14px;font-weight:normal;text-align:center;word-break:break-word;line-height:150%">
<div style="text-align:left"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="Office_Hours, 2001_X"></span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <br>
<condition field="destination_number" expression="^(2001)$"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="execute_<wbr>extension" data="2001_${office_status}"/><wbr> </span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> </condition></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"></extension></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="Open"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <condition field="destination_number" expression="^(2001_open)$"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="answer"/></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="sleep" data="1000"/></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="sleep" data="500"/><!-- Open IVR --><br>
</condition></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"></extension></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="Closed"> </span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <condition field="destination_number" expression="^(2001_closed)$"></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="answer"/></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="sleep" data="1000"/></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"> <action application="sleep" data="500"/><!-- Closed IVR --><br>
</condition></span><br>
<span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"></extension></span></div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<span style="font-family:tahoma,verdana,segoe,sans-serif;font-size:14px">We have also added </span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><span style="font-size:14px">continue=”true”</span></span><span style="font-family:tahoma,verdana,segoe,sans-serif;font-size:14px"> and </span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><span style="font-size:14px">break=”never”</span></span><span style="font-family:tahoma,verdana,segoe,sans-serif;font-size:14px"> in our conditions. These tell FreeSWITCH to keep looking for more matches and without them FreeSWITCH would stop. Additionally, it should be noted that by setting variables we can easily allow for more conditions. If we were to set the “open” and “closed” extensions in an action tag and anti-action tag we are limited by only two options. In our current example you could go on to add things like lunch or holiday hours.</span>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;font-size:16px;line-height:150%;text-align:left">
<div style="text-align:center"><span style="font-size:24px"><u><span style="font-family:tahoma,verdana,segoe,sans-serif">Manipulating SIP Request URIs</span></u></span><br>
<img src="cid:ii_iyccw8ue3_159d38ad2749419d" style="margin-right: 0px;" width="562" height="337"><br><br>
</div>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<p dir="ltr" style="font-size:14px;margin:10px 0px;padding:0px;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left"><span style="font-size:14px"><span style="font-family:tahoma,verdana,segoe,sans-serif">Another cool feature in FreeSWITCH is the ability to manipulate SIP To: Headers. You can use customized SIP To: Headers when routing calls to endpoints registered within your setup. This lets you send the DID in cases where a single registration is representing multiple DIDs. There isn’t a single flag to set in order to do this so you will have to configure your dialplan to grab the user’s registration information and parse out the username, replacing it with your custom setting. Be sure to only replace the username to prevent issues with things like NAT traversal. <br>
<br>
For this example, we have configured DID 123-456-7890, a username of user01, and domain of <a href="http://example.com" target="_blank">example.com</a>. Our example extension will look like this: </span></span></p>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnBoxedTextBlock" style="min-width:100%;border-collapse:collapse">
        <tbody class="gmail-m_2943177204832689592mcnBoxedTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnBoxedTextBlockInner">
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnBoxedTextContentContainer">
<tbody><tr>
<td style="padding:9px 18px">
<table border="0" cellpadding="18" cellspacing="0" class="gmail-m_2943177204832689592mcnTextContentContainer" width="100%" style="background-color:rgb(240,240,240);border-collapse:collapse;min-width:100%">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="color:rgb(0,0,0);font-family:helvetica;font-size:14px;font-weight:normal;text-align:center;word-break:break-word;line-height:150%">
<div style="text-align:left"><span style="font-size:14px"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><extension name="call_1234567890"><br>
<condition field="destination_number" expression="^(?:\+1|1)?<wbr>1234567890$"/><br>
<condition field="${sofia_contact(<a href="mailto:user01@example.com" target="_blank">user01@<wbr>example.com</a>)}" expression="^[^\@]+(.*)"><br>
<action application="bridge" data="sofia/external/<wbr>123457890$1"/><br>
</condition><br>
</extension></span></span></div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;font-size:14px;word-break:break-word;color:rgb(32,32,32);font-family:helvetica;line-height:150%;text-align:left">
<span style="font-size:14px"><span style="font-family:tahoma,verdana,segoe,sans-serif">This example shows the extension grabbing the user01 dial string and replacing the username with the preferred DID. In the first condition we are matching the determined DID and only if the incoming call matches that DID will the extension execute the actions. The second condition uses the results of an API, sofia_contact, to return the results as a value. This puts everything after the </span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace">@</span><span style="font-family:tahoma,verdana,segoe,sans-serif"> into the </span><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace">$1</span><span style="font-family:tahoma,verdana,segoe,sans-serif"> variable which is then called during the bridge after our custom header. This preserves all the information required for contacting the server and sending the call to the correct destination. </span></span>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnCodeBlock" style="border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner">
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnCaptionBlock" style="text-align:center;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnCaptionBlockOuter">
<tr>
<td class="gmail-m_2943177204832689592mcnCaptionBlockInner" valign="top" style="padding:9px">
<table border="0" cellpadding="0" cellspacing="0" class="gmail-m_2943177204832689592mcnCaptionRightContentOuter" width="100%" style="text-align:center;border-collapse:collapse">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnCaptionRightContentInner" style="padding:0px 9px"><br><img src="cid:ii_iycd86sd5_159d393527f3dca8" width="224" height="70" style="margin-right: 0px;"><br>Be sure to register at <a href="http://freeswitch.us13.list-manage.com/track/click?u=73f7dcee16e0a87ece76c372d&id=ff3d693fbf&e=a45f2f7d64" target="_blank" style="color:rgb(43,170,223);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px;text-align:left">https://cluecon.com</a><span style="color:rgb(32,32,32);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px;text-align:left"> for ClueCon 2017 to see all the latest and greatest the open-source community has to offer! </span>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnCaptionBlock" style="text-align:center;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnCaptionBlockOuter">
<tr>
<td class="gmail-m_2943177204832689592mcnCaptionBlockInner" valign="top" style="padding:9px">
<table border="0" cellpadding="0" cellspacing="0" class="gmail-m_2943177204832689592mcnCaptionLeftContentOuter" width="100%" style="border-collapse:collapse">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnCaptionLeftContentInner" style="padding:0px 9px">
<table border="0" cellpadding="0" cellspacing="0" class="gmail-m_2943177204832689592mcnCaptionLeftImageContentContainer" style="border-collapse:collapse;text-align:right">
<tbody><tr>
<td class="gmail-m_2943177204832689592mcnCaptionLeftImageContent" valign="top">
<a href="http://freeswitch.us13.list-manage.com/track/click?u=73f7dcee16e0a87ece76c372d&id=9b55e81853&e=a45f2f7d64" title="" target="_blank">
<img alt="" width="176" style="max-width: 1024px; border: 0px; height: auto; outline: none; text-decoration: none; vertical-align: bottom;" class="gmail-m_2943177204832689592mcnImage">
</a>
</td>
</tr>
</tbody></table><img src="cid:ii_iycd4ssv4_159d390e992cc86f" width="160" height="120" style="margin-right: 0px;"><br><div style="text-align:center"><span style="color:rgb(32,32,32);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px">For other tips like these, subscribe to our YouTube channel at </span><a href="http://freeswitch.us13.list-manage2.com/track/click?u=73f7dcee16e0a87ece76c372d&id=3e6b4f94a7&e=a45f2f7d64" target="_blank" style="color:rgb(43,170,223);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px">https://youtube.com/freeswitch</a><wbr style="color:rgb(32,32,32);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px"><span style="color:rgb(32,32,32);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px"> or check for our books at </span><a href="http://freeswitch.us13.list-manage.com/track/click?u=73f7dcee16e0a87ece76c372d&id=85f249dbd7&e=a45f2f7d64" target="_blank" style="color:rgb(43,170,223);font-family:tahoma,verdana,segoe,sans-serif;font-size:14px">https://freeswitch.org</a></div><table class="gmail-m_2943177204832689592mcnCaptionLeftTextContentContainer" border="0" cellpadding="0" cellspacing="0" width="352" style="border-collapse:collapse;text-align:left">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="word-break:break-word;color:rgb(32,32,32);font-family:helvetica;font-size:16px;line-height:150%;text-align:left"><br></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table></td>
                                                                                </tr>
                                                                        </tbody></table>
                                                                        
                                                                </td>
</tr>
<tr>
                                                                <td align="center" valign="top" id="gmail-m_2943177204832689592templateFooter" style="background-origin:initial;background-clip:initial;background-color:rgb(250,250,250);background-image:none;background-repeat:no-repeat;background-position:50% 50%;background-size:cover;border-top:0px;border-bottom:0px;padding-top:9px;padding-bottom:9px">
                                                                        
                                                                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592templateContainer" style="text-align:center;border-collapse:collapse;max-width:600px">
                                                                                <tbody><tr>
                        <td valign="top" class="gmail-m_2943177204832689592footerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnFollowBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnFollowBlockOuter">
<tr>
<td align="center" valign="top" style="padding:9px" class="gmail-m_2943177204832689592mcnFollowBlockInner">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnFollowContentContainer" style="min-width:100%;border-collapse:collapse">
<tbody><tr>
<td align="center" style="padding-left:9px;padding-right:9px">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-collapse:collapse" class="gmail-m_2943177204832689592mcnFollowContent">
<tbody><tr>
<td align="center" valign="top" style="padding-top:9px;padding-right:9px;padding-left:9px">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse">
<tbody><tr>
<td align="center" valign="top">
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;border-collapse:collapse">
<tbody><tr>
<td valign="top" style="padding-right:10px;padding-bottom:9px" class="gmail-m_2943177204832689592mcnFollowContentItemContainer">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnFollowContentItem" style="border-collapse:collapse">
<tbody><tr>
<td align="left" valign="middle" style="padding:5px 10px 5px 9px">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="" style="border-collapse:collapse">
<tbody><tr>
<td align="center" valign="middle" width="24" class="gmail-m_2943177204832689592mcnFollowIconContent">
<a href="http://freeswitch.us13.list-manage.com/track/click?u=73f7dcee16e0a87ece76c372d&id=ca614c2d5e&e=a45f2f7d64" target="_blank"><img style="display: block; border: 0px; height: auto; outline: none; text-decoration: none;" height="24" width="24"></a>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;border-collapse:collapse">
<tbody><tr>
<td valign="top" style="padding-right:10px;padding-bottom:9px" class="gmail-m_2943177204832689592mcnFollowContentItemContainer">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnFollowContentItem" style="border-collapse:collapse">
<tbody><tr>
<td align="left" valign="middle" style="padding:5px 10px 5px 9px">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="" style="border-collapse:collapse">
<tbody><tr>
<td align="center" valign="middle" width="24" class="gmail-m_2943177204832689592mcnFollowIconContent">
<a href="http://freeswitch.us13.list-manage2.com/track/click?u=73f7dcee16e0a87ece76c372d&id=8869b95b17&e=a45f2f7d64" target="_blank"><img style="display: block; border: 0px; height: auto; outline: none; text-decoration: none;" height="24" width="24"></a>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;border-collapse:collapse">
<tbody><tr>
<td valign="top" style="padding-right:0px;padding-bottom:9px" class="gmail-m_2943177204832689592mcnFollowContentItemContainer">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnFollowContentItem" style="border-collapse:collapse">
<tbody><tr>
<td align="left" valign="middle" style="padding:5px 10px 5px 9px">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="" style="border-collapse:collapse">
<tbody><tr>
<td align="center" valign="middle" width="24" class="gmail-m_2943177204832689592mcnFollowIconContent">
<a href="http://freeswitch.us13.list-manage2.com/track/click?u=73f7dcee16e0a87ece76c372d&id=3d15cc459f&e=a45f2f7d64" target="_blank"><img style="display: block; border: 0px; height: auto; outline: none; text-decoration: none;" height="24" width="24"></a>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnDividerBlock" style="min-width:100%;border-collapse:collapse;table-layout:fixed">
<tbody class="gmail-m_2943177204832689592mcnDividerBlockOuter">
<tr>
<td class="gmail-m_2943177204832689592mcnDividerBlockInner" style="min-width:100%;padding:10px 18px 25px">
<table class="gmail-m_2943177204832689592mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;border-top:2px solid rgb(238,238,238);border-collapse:collapse">
<tbody><tr>
<td>
<span></span>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="gmail-m_2943177204832689592mcnTextBlock" style="min-width:100%;border-collapse:collapse">
<tbody class="gmail-m_2943177204832689592mcnTextBlockOuter">
<tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextBlockInner" style="padding-top:9px">
        
                        
                                
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%;min-width:100%;border-collapse:collapse" width="100%" class="gmail-m_2943177204832689592mcnTextContentContainer">
<tbody><tr>
<td valign="top" class="gmail-m_2943177204832689592mcnTextContent" style="padding:0px 18px 9px;word-break:break-word;color:rgb(101,101,101);font-family:helvetica;font-size:12px;line-height:150%;text-align:center">
<em>Copyright © 2017 FreeSWITCH Solutions, All rights reserved.</em>
<br>
This is a mailing list for all things ClueCon! You have been subscribed to this list because you subscribed to the FreeSWITCH Users mailing list. If you would like to unsubscribe please follow the directions.
<br>
<br>
<strong>Our mailing address is:</strong>
<br>
<div class="gmail-m_2943177204832689592vcard"><span class="gmail-m_2943177204832689592org gmail-m_2943177204832689592fn">FreeSWITCH Solutions</span><div class="gmail-m_2943177204832689592adr"><div class="gmail-m_2943177204832689592street-address">17345 Civic Drive #2531</div><span class="gmail-m_2943177204832689592locality">Brookfield</span>, <span class="gmail-m_2943177204832689592region">WI</span> <span class="gmail-m_2943177204832689592postal-code">53045</span></div><br><a href="http://freeswitch.us13.list-manage.com/vcard?u=73f7dcee16e0a87ece76c372d&id=8de1531556" class="gmail-m_2943177204832689592hcard-download" target="_blank">Add us to your address book</a></div>
<br>
<br>
        Want to change how you receive these emails?<br>
You can <a href="http://freeswitch.us13.list-manage.com/profile?u=73f7dcee16e0a87ece76c372d&id=8de1531556&e=a45f2f7d64" style="color:rgb(101,101,101);font-weight:normal;text-decoration:underline" target="_blank">update your preferences</a> or <a href="http://freeswitch.us13.list-manage.com/unsubscribe?u=73f7dcee16e0a87ece76c372d&id=8de1531556&e=a45f2f7d64&c=ab22542a17" style="color:rgb(101,101,101);font-weight:normal;text-decoration:underline" target="_blank">unsubscribe from this list</a>
<br>
<br>
</td>
</tr>
</tbody></table>
                                
                                
</td>
</tr>
</tbody>
</table></td>
                                                                                </tr>
                                                                        </tbody></table>
                                                                        
                                                                </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</center>
<div style="text-align:center"><img height="1" width="1"></div></div>
</div><div style="text-align:center"><br></div></div>