<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 08/24/2010 01:20 PM, Michael Collins wrote:
<blockquote
cite="mid:AANLkTik29=7B-ojKV1cS6uRFgh+tU0Q8MCKC2a82iUCd@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"><font
face="Times New Roman, Times, serif"><big>EXECUTE <a
moz-do-not-send="true" href="mailto:sofia/internal/1002@192.168.2.51"
target="_blank">sofia/internal/1002@192.168.2.51</a>
bridge(sofia/gateway/<a moz-do-not-send="true"
href="http://gw4.telasip.com/17705550068" target="_blank">gw4.telasip.com/17705550068</a>)<br>
<br>
Somehow the information in the directory/default/default.xml file never
got included and I'm not sure how to fix it.<br>
</big></font></div>
</blockquote>
<div><br>
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:<br>
#1 - Manually set the ${default_gateway} variable by inserting this
line before the bridge:<br>
<action application="set" data="default_gateway=<a
moz-do-not-send="true" href="http://gw4.telasip.com">gw4.telasip.com</a>"/><br>
<br>
#2 - Use the set_user app (<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user</a>)
to make the call act like it was from an auth'd user:<br>
<action application="set_user" data="1000@${domain}"/><br>
<br>
Give it a whirl and let me know how it goes.<br>
-MC<br>
</div>
</div>
<br>
</blockquote>
Number 1 seems to work fine, my new file looks like:<br>
<br>
<include><br>
<context name="fxs-ports"><br>
<extension name="outbound"><br>
<condition field="destination_number" expression="^(.*)$"><br>
<action application="set"
data="toll_allow=local,domestic,international"/><br>
<action application="set"
data="default_gateway=gw4.telasip.com"/><br>
<variable name="default_gateway"<br>
/><br>
<action application="transfer" data="$1 XML default"/><br>
</condition><br>
</extension><br>
</context><br>
</include><br>
<br>
Thanks,<br>
Jim.<br>
</body>
</html>