<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Michael Collins gave me a suggestions a while back:<br>
<br>
<pre><font face="Arial Black">I looked in mod_openzap.c and I didn't see any references to channel
variables. However, you have context and dialplan options. I suggest that
you create a dialplan context just for your FXS port(s). Try this. Create
conf/dialplan/fxs-ports.xml:
<include>
<context name="fxs-ports">
<extension name="outbound">
<condition field="destination_number" expression="^(.*)$">
<action application="set"
data="toll_allow=local,domestic,international"/>
<action application="transfer" data="$1 XML default"/>
</condition>
</extension>
</context>
</include>
Then in your openzap.conf.xml change the context for the analog span(s) with
the FXS ports:
<param name="context" value="default"/>
Restart FS after making these changes and then give it a shot. You should
see the call from the analog phone going into context "fxs-ports" and then
get transferred over to the default context where it will act like your SIP
phones because we manually set the ${toll_allow} chan var.
-MC
</font></pre>
<font face="Times New Roman, Times, serif">Unfortunately that did not
work. The "default_gateway" variable used by this line:<br>
<big>Dialplan: OpenZAP/1:1/17705550068 Action
bridge(sofia/gateway/${default_gateway}/17705550068) <br>
<br>
ended up looking like:<br>
EXECUTE OpenZAP/1:1/17705550068 bridge(sofia/gateway//17705550068)<br>
<br>
whereas a successful dialout looks like:<br>
<br>
EXECUTE <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@192.168.2.51">sofia/internal/1002@192.168.2.51</a>
bridge(sofia/gateway/gw4.telasip.com/17705550068)<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>
<br>
Thanks for any guidance.<br>
<br>
Jim.<br>
<br>
</big><br>
</font>
</body>
</html>