On 08/24/2010 01:20 PM, Michael Collins wrote:

EXECUTE sofia/internal/1002@192.168.2.51 bridge(sofia/gateway/gw4.telasip.com/17705550068)

Somehow the information in the directory/default/default.xml file never got included and I'm not sure how to fix it.

When dialing from an FXS port you are not an "authenticated user" so those variables from user directory don't get populated. You have two choices as I see it:
#1 - Manually set the ${default_gateway} variable by inserting this line before the bridge:
<action application="set" data="default_gateway=gw4.telasip.com"/>

#2 - Use the set_user app (http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user) to make the call act like it was from an auth'd user:
<action application="set_user" data="1000@${domain}"/>

Give it a whirl and let me know how it goes.
-MC

Number 1 seems to work fine, my new file looks like:

<include>
  <context name="fxs-ports">
    <extension name="outbound">
      <condition field="destination_number" expression="^(.*)$">
        <action application="set" data="toll_allow=local,domestic,international"/>
        <action application="set" data="default_gateway=gw4.telasip.com"/>
        <variable name="default_gateway"
            />
        <action application="transfer" data="$1 XML default"/>
      </condition>
    </extension>
  </context>
</include>

Thanks,
Jim.