<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='word-wrap: break-word;
-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for the clarification. It made sense, but the results
remain the same. The log still says &#8216;Invalid Gateway&#8217; and &#8216;sofia status&#8217; at the
console does not show flowroute.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>Dialplan: sofia/internal/1000@192.168.10.29:5090 Regex (PASS)
[Long Distance - flowroute] destination_number(3235551212) =~ /^1?(\d{10})$/
break=on-false<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>Dialplan: sofia/internal/1000@192.168.10.29:5090 Action
set(effective_caller_id_number=13235555555)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>Dialplan: sofia/internal/1000@192.168.10.29:5090 Action
set(effective_caller_id_name=${outbound_caller_id_name})<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>Dialplan: sofia/internal/1000@192.168.10.29:5090 Action
bridge(sofia/gateway/flowroute/flowrouteAccount#13235551212)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:114
switch_core_standard_on_routing() (sofia/internal/1000@192.168.10.29:5090)
State Change CS_ROUTING -&gt; CS_EXECUTE<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_session.c:933
switch_core_session_signal_state_change() Send signal
sofia/internal/1000@192.168.10.29:5090 [BREAK]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:483
switch_core_session_run() (sofia/internal/1000@192.168.10.29:5090) State
ROUTING going to sleep<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:397
switch_core_session_run() (sofia/internal/1000@192.168.10.29:5090) Running
State Change CS_EXECUTE<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:490
switch_core_session_run() (sofia/internal/1000@192.168.10.29:5090) State
EXECUTE<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_sofia.c:173 sofia_on_execute()
sofia/internal/1000@192.168.10.29:5090 SOFIA EXECUTE<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:151
switch_core_standard_on_execute() sofia/internal/1000@192.168.10.29:5090
Standard EXECUTE<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090 set(open=true)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000@192.168.10.29:5090 SET [open]=[true]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
set(use_profile=nat)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000@192.168.10.29:5090 SET [use_profile]=[nat]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
set_user(default@192.168.10.29)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
hash(insert/192.168.10.29-spymap/1000/924426fa-3e85-11de-9b6b-7ba002f89c82)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/1000/3235551212)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/global/924426fa-3e85-11de-9b6b-7ba002f89c82)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
set(effective_caller_id_number=13235555555)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000@192.168.10.29:5090 SET
[effective_caller_id_number]=[13235555555]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
set(effective_caller_id_name=FreeSWITCH)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000@192.168.10.29:5090 SET
[effective_caller_id_name]=[FreeSWITCH]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>EXECUTE sofia/internal/1000@192.168.10.29:5090
bridge(sofia/gateway/flowroute/flowrouteAccount#13235551212)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [ERR] mod_sofia.c:2531
sofia_outgoing_channel() Invalid Gateway<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [NOTICE] mod_sofia.c:2744
sofia_outgoing_channel() Close Channel N/A [CS_NEW]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:559
switch_core_session_destroy_state() (N/A) State DESTROY<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] mod_sofia.c:240 sofia_on_destroy()
N/A SOFIA DESTROY<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:559
switch_core_session_destroy_state() (N/A) State DESTROY going to sleep<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:#1F497D'>2009-05-11 16:43:47 [ERR] switch_ivr_originate.c:1494
switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause:
[INVALID_NUMBER_FORMAT]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Brian
West<br>
<b>Sent:</b> Monday, May 11, 2009 3:28 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] Can't configure outbound call<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>You want to collect 11 or 10 digits and send it out
flowroute which requires 1+ number. &nbsp;The 1? makes the one optional.
&nbsp;So now we only collect 10 digits and append the on in the bridge line.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &lt;extension name=&quot;Long Distance -
flowroute&quot;&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp;&lt;condition
field=&quot;destination_number&quot; expression=&quot;^1?(\d{10})$&quot;&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action
application=&quot;set&quot;
data=&quot;effective_caller_id_number=10000000000&quot;/&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- If your provider does not
provide ringback (180 or 183) you may simulate ringback by uncommenting the
following line. --&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- action
application=&quot;ringback&quot; /--&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action
application=&quot;bridge&quot;
data=&quot;sofia/gateway/flowroute/flowrouteAccount#1$1&quot;/&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp; &lt;/condition&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &lt;/extension&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>/b<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>On May 11, 2009, at 5:23 PM, Lars Zeb wrote:<o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br>
<o:p></o:p></p>

<p class=MsoNormal><span class=apple-style-span><span style='color:black'>I'm
sorry, but do not understand what it is that I should try. Are you</span></span><span
style='color:black'><br>
<span class=apple-style-span>saying to change the data attribute in the action
command of the dialplan?</span></span><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<div>

<div>

<div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'>Brian West<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'>-- Meet us at ClueCon! &nbsp;<a href="http://www.cluecon.com/">http://www.cluecon.com</a><o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>