<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What you need to add is the provider context.<div>For instance, add in dialplan/ a file called provider.xml with the following content:</div><div><br></div><div><div><div>&lt;include&gt;</div><div>&nbsp;&nbsp;&lt;context name="provider"&gt;</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>&lt;extension name="default"&gt;</div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>&lt;condition field="destination_number" expression="^(3015551212)$"&gt;</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>&lt;action application="bridge" data="sofia/gateway/sipxecs/$1"/&gt;</div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>&lt;/condition&gt;</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>&lt;/extension&gt;</div><div>&nbsp;&nbsp;&lt;/context&gt;</div><div>&lt;/include&gt;</div></div></div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone &nbsp;</font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space">&nbsp;</span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); ">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 25/08/2010 à 21:17, Michael Scheidell a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div text="#000000" bgcolor="#ffffff"><br><br>On 8/24/10 9:43 PM, David Ponzone wrote:<blockquote cite="mid:95225D68-6D7F-4D7C-ABE0-2E8C1CCC5894@ipeva.fr" type="cite">Michael,<div><br></div><div>what you want to achieve is pretty simple to do with FreeSWITCH, and is quite close from what I do.</div><br></blockquote>Thanks for the reply<br>(simple once I know where everything goes.. :-)<br>I just loaded this last night.&nbsp; nothing like the Mitel SX50's (bit mapped options, digital pbx), 3com nbx (not really VOIP. was vo layer2 multicast), and more powerful then sipxecs..<br><br><blockquote cite="mid:95225D68-6D7F-4D7C-ABE0-2E8C1CCC5894@ipeva.fr" type="cite"><div>Or you do like me: you split calls coming into public to a specific contex, based on source IP with such extensions in public.xml:</div><div><br></div><div><div>&nbsp;&nbsp;&lt;extension name="from_provider"&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="network_addr" expression="X.X.X.X"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="destination_number" expression="^(.*)$"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="transfer" data="$1 XML provider"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp;&nbsp;&lt;/extension&gt;</div></div><div><br></div></blockquote>is above right? from_provider, then $1 XML provider? (assuming _{provider} is the friendly name)<br><blockquote cite="mid:95225D68-6D7F-4D7C-ABE0-2E8C1CCC5894@ipeva.fr" type="cite"><div><div><div>&nbsp;&nbsp;&lt;extension name="from_sipxecs"&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="network_addr" expression="Y.Y.Y.Y"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="destination_number" expression="^(.*)$"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="transfer" data="$1 XML sipxecs"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp;&nbsp;&lt;/extension&gt;</div></div></div><br><div>And you just have to add the right extensions in those dialplans to bridge calls to the other side.</div><div>That's the easy part.</div><div><br></div></blockquote>famous last words.&nbsp; where caller is 561-555-1212 and destination is 301-555-1212. I see it coming from provider in public context:(i hope)<br>close:<span class="Apple-converted-space">&nbsp;</span><br><tt>Dialplan:<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:sofia/external/5615551212@68.100.226.97">sofia/external/5615551212@68.100.226.97</a><span class="Apple-converted-space">&nbsp;</span>parsing [public-&gt;from_provider] continue=false<br></tt><tt>Dialplan:<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:sofia/external/5615551212@68.100.226.97">sofia/external/5615551212@68.100.226.97</a><span class="Apple-converted-space">&nbsp;</span>Regex (PASS) [from_provider] network_addr(68.233.226.97) =~ /68.233.226.97/ break=on-false<br>Dialplan:<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:sofia/external/5615551212@68.100.226.97">sofia/external/5615551212@68.100.226.97</a><span class="Apple-converted-space">&nbsp;</span>Regex (PASS) [from_provider] destination_number(3015551212) =~ /^(.*)$/ break=on-false<br>Dialplan:<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:sofia/external/5615551212@68.100.226.97">sofia/external/5615551212@68.100.226.97</a><span class="Apple-converted-space">&nbsp;</span>Action transfer(3015551212 XML provider)<br></tt>[snip]<br><tt>2010-08-25 10:52:16.276232 [DEBUG] mod_dptools.c:748<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:sofia/external/5615551212@68.100.226.97">sofia/external/5615551212@68.100.226.97</a><span class="Apple-converted-space">&nbsp;</span>SET [outside_call]=[true]<br></tt>[snip] gets this far:<br><tt>2010-08-25 10:52:16.278237 [INFO] mod_dialplan_xml.c:315 Processing 5615551212-&gt;3015551212 in context provider<br>2010-08-25 10:52:16.278237 [WARNING] mod_dialplan_xml.c:345 Context provider not found<br></tt><br>I guess I don't understand.<br>as a test, PSTN number is 3015551212, coming from provider to sipxecs, do I put something like this in dialplan/provider.xml?<br>dialplan/public/provider.xml?<br><br>(I just want the call send to sipxecs.&nbsp; I don't care about ringback, timeouts.. I guess.. maybe I do for safety)<br>so if a call come in to 3015551212, and its handled by sipxecs, and, MAYBE, I think I want it to fall back to a cell phone if sipxecs is down<br>(say a 120 second timeout?)<br>what do I put here? (what do I per where?)<br><br>or this?<br><br><pre>&lt;extension name="provider"&gt;
  &lt;condition field="destination_number" expression="^(<tt>3015551212</tt>)$"&gt;
    &lt;action application="bridge" data="sofia/gateway/sipxecs/$1"/&gt;
  &lt;/condition&gt;
&lt;/extension&gt;
</pre>(with 'bridge' I get 'so far', but still get<span class="Apple-converted-space">&nbsp;</span><br><tt>2010-08-25 15:14:15.590404 [INFO] mod_dialplan_xml.c:315 Processing 5615551212-&gt;3015551212 in context provider<br>2010-08-25 15:14:15.590404 [WARNING] mod_dialplan_xml.c:345 Context provider not found<br>2010-08-25 15:14:15.590404 [INFO] switch_core_state_machine.c:136 No Route, Aborting</tt><br><br><div class="moz-signature">--<span class="Apple-converted-space">&nbsp;</span><br>Michael Scheidell, CTO<br>o: 561-999-5000<br>d: 561-948-2259<br>ISN: 1259*1300<span class="Apple-converted-space">&nbsp;</span><a href="sip:michael.scheidell@secnap.com">sip:michael.scheidell@secnap.com</a><br><font color="#999999">&nbsp;<br>&gt;</font><font color="#cc0000"><span class="Apple-converted-space">&nbsp;</span><b>|<span class="Apple-converted-space">&nbsp;</span></b></font>SECNAP Network Security Corporation<ul class="unnamed1" style="margin-top: 1em; margin-right: 1em; margin-bottom: 1em; margin-left: 1em; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; "><li>Certified SNORT Integrator</li><li>2008-9 Hot Company Award Winner, World Executive Alliance</li><li>Five-Star Partner Program 2009, VARBusiness</li><li>Best in Email Security,2010: Network Products Guide</li><li>King of Spam Filters, SC Magazine 2008</li></ul></div><br><div id="disclaimer.secnap.com"><hr><p>This email has been scanned and certified safe by SpammerTrap®.<span class="Apple-converted-space">&nbsp;</span><br>For Information please see<span class="Apple-converted-space">&nbsp;</span><a href="http://www.secnap.com/products/spammertrap/">http://www.secnap.com/products/spammertrap/</a></p><hr></div><br></div></span><br class="Apple-interchange-newline"></blockquote></div><br></body></html>