<br><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 2:57 PM, Ken Fulmer <span dir="ltr">&lt;<a href="mailto:kenfulmer@icstechnologysolutions.com">kenfulmer@icstechnologysolutions.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Yes, we do. I assume I can just reverse the statements to send
calls in the other direction?</span></p></div></div></blockquote><div>Mostly yes. However you need to handle a range of phone numbers in your regular expression instead of a specific 10-digit phone number. The Dialplan XML page on the wiki has quite a few examples...<br>
<br>-MC <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks,</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ken</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael
Collins<br>
<b>Sent:</b> Tuesday, March 30, 2010 4:39 PM<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] Bridge two calls</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal" style="margin-bottom: 12pt;">You&#39;re getting there. You were
correct to use the public.xml file. However, your syntax wasn&#39;t correct:<br>
<br>
<span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;!-- Oops --&gt;<br>
&lt;action application=&quot;bridge&quot;
data=&quot;sofia/external/IPCM-VLAB-1&quot;/&gt;<br>
<br>
&lt;!-- Correct --&gt;<br>
&lt;action application=&quot;bridge&quot;
data=&quot;sofia/gateway/IPCM-VLAB-1/$1&quot;/&gt;</span><br>
<br>
Question: what about calls from the internal PBX to the ITSP? Do you need to
route calls that way as well?<br>
-MC</p>

<div>

<p class="MsoNormal">On Tue, Mar 30, 2010 at 2:30 PM, Ken Fulmer &lt;<a href="mailto:kenfulmer@icstechnologysolutions.com" target="_blank">kenfulmer@icstechnologysolutions.com</a>&gt;
wrote:</p>

<div>

<div>

<p class="MsoNormal">I
need to bridge two calls together: one from an ITSP and one from an internal
PBX. I’ve tried the following syntax but can’t get it to work. Can someone
clarify what I’m doing wrong?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Here
are the two gateway configs located in the Sip Profiles / External directory:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;include&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   
&lt;gateway name=&quot;IPCM-VLAB-1&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;proxy&quot; value=&quot;10.10.3.10&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   
&lt;/gateway&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/include&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;include&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   
&lt;gateway name=&quot;SDC1-VGW-1&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;proxy&quot; value=&quot;172.16.15.11&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">     
&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   
&lt;/gateway&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/include&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Here
is the inbound route in the Dial Plan / Public directory (I’m just trying to
get one number working at the moment):</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;extension name=&quot;From
SDC1-VGW-1&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   &lt;condition
field=&quot;destination_number&quot; expression=&quot;^(2053148491)$&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      
&lt;action application=&quot;bridge&quot;
data=&quot;sofia/external/IPCM-VLAB-1&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">  
&lt;/condition&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/extension&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve
also tried the gateway statement with no luck either:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">  &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/mygatewayname/555123456&quot;
/&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any
ideas?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Ken
Fulmer</p>

<p class="MsoNormal"> </p>

</div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p>

</div>

<p class="MsoNormal"> </p>

</div></div></div>

</div>


<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>