<div>Sure thing.  Here it is:</div>
<div> </div>
<div>&lt;include&gt;<br>  &lt;user id=&quot;$${default_provider}&quot;&gt;<br>      &lt;gateway name=&quot;$${default_provider}&quot;&gt;<br>        &lt;param name=&quot;username&quot; value=&quot;$${default_provider_username}&quot;/&gt;<br>
        &lt;param name=&quot;password&quot; value=&quot;$${default_provider_password}&quot;/&gt;<br>        &lt;param name=&quot;from-user&quot; value=&quot;$${default_provider_username}&quot;/&gt;<br>        &lt;param name=&quot;from-domain&quot; value=&quot;$${default_provider_from_domain}&quot;/&gt;<br>
        &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt;<br>        &lt;param name=&quot;register&quot; value=&quot;$${default_provider_register}&quot;/&gt;<br>        &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
        &lt;param name=&quot;extension&quot; value=&quot;$${default_provider_contact}&quot;/&gt;<br>        &lt;param name=&quot;contact-params&quot; value=&quot;domain_name=$${domain}&quot;/&gt;<br>        &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>
      &lt;/gateway&gt;<br>  &lt;/user&gt;<br>&lt;/include&gt;<br><br>In vars.conf I supplied the variables&#39; values:</div>
<div>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider=<a href="http://pbx-sip-4.usa.internal.net">pbx-sip-4.usa.internal.net</a>&quot;/&gt;<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider_username=pbx-sip-4&quot;/&gt;<br>
  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider_password=9997&quot;/&gt;<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider_from_domain=<a href="http://pbx-sip-4.usa.internal.net">pbx-sip-4.usa.internal.net</a>&quot;/&gt;<br>
  &lt;!-- true or false --&gt;<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider_register=false&quot;/&gt;<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_provider_contact=1000&quot;/&gt;<br>
</div>
<div><br> </div>
<div class="gmail_quote">2009/3/16 Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">I would almost bet your xml is wrong when you moved it.. care to share that little bit of info? 
<div><br></div><font color="#888888">
<div>/b</div></font>
<div>
<div></div>
<div class="h5">
<div><br>
<div>
<div>On Mar 16, 2009, at 12:39 PM, Steven Ward wrote:</div><br>
<blockquote type="cite"><span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<div>I simply moved the file defining the gateway to conf/sip_profiles/internal</div>
<div> </div>
<div>Well, when calling from extension 1000 to 70904, what I see on the console (debug mode) is:</div>
<div> </div>
<div>2009-03-16 13:35:39 [DEBUG] switch_core_state_machine.c:152 switch_core_standard_on_execute()<span> </span><a href="mailto:sofia/internal/1000@pbx-sip-3.usa.internal.net" target="_blank">sofia/internal/1000@pbx-sip-3.usa.internal.net</a><span> </span>Execute bridge(sofia/gateway/${default_gateway}/70904)<br>
2009-03-16 13:35:39 [DEBUG] switch_core_session.c:1286 switch_core_session_exec()<span> </span><a href="mailto:sofia/internal/1000@pbx-sip-3.usa.internal.net" target="_blank">sofia/internal/1000@pbx-sip-3.usa.internal.net</a><span> </span>Expanded String bridge(sofia/gateway/<a href="http://pbx-sip-4.usa.internal.net/70904" target="_blank">pbx-sip-4.usa.internal.net/70904</a>)<br>
2009-03-16 13:35:39 [ERR] mod_sofia.c:2379 sofia_outgoing_channel() Invalid Gateway<br>2009-03-16 13:35:39 [NOTICE] mod_sofia.c:2591 sofia_outgoing_channel() Close Channel N/A [CS_NEW]<br>2009-03-16 13:35:39 [ERR] switch_ivr_originate.c:1425 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]<br>
2009-03-16 13:35:39 [DEBUG] switch_ivr_originate.c:2014 switch_ivr_originate() Originate Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT]<br>2009-03-16 13:35:39 [INFO] mod_dptools.c:1998 audio_bridge_function() Originate Failed.  Cause: INVALID_NUMBER_FORMAT<br>
<br><br>What else am I missing and not doing right?  Thanks again for your help.</div></span><br></blockquote></div><br></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>