Still can't dial gateway from ZAP phone.
Michael Collins gave me a suggestions a while back: 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 Unfortunately that did not work. The "default_gateway" variable used by this line: Dialplan: OpenZAP/1:1/17705550068 Action bridge(sofia/gateway/${default_gateway}/17705550068) ended up looking like: EXECUTE OpenZAP/1:1/17705550068 bridge(sofia/gateway//17705550068) whereas a successful dialout looks like: 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. Thanks for any guidance. Jim.
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
On 08/24/2010 01:20 PM, Michael Collins wrote:
EXECUTE sofia/internal/1002@192.168.2.51 <mailto:sofia/internal/1002@192.168.2.51> bridge(sofia/gateway/gw4.telasip.com/17705550068 <http://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 <http://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.
participants (3)
-
Brian West
-
Jim
-
Michael Collins