[Freeswitch-users] xml lib curl - transfer isn't working
can_man at gmx.de
can_man at gmx.de
Thu Dec 25 12:38:11 PST 2008
Hello,
I am trying to replace some static settings with dynamic ones which are provided by a webserver. I can bridge calls that way, however I just can't get the following transfer to work.
The transfer works when in public.xml and looks like this:
<extension name="test9">
<condition field="destination_number" expression="^(10001)$">
<action application="set" data="domain_name=$${domain}"/>
<action application="transfer" data="9999 XML default"/>
</condition>
</extension>
The xml received by FS from the webserver looks like this:
<context name="public">
<extension name="test9">
<condition field="destination_number" expression="^(10001)$">
<action application="set" data="domain_name=$${domain}"/>
<action application="transfer" data="9999 XML default"/>
</condition>
</extension>
</context>
I have also tried without context name and extension name, but I got the same result.
This is the console log output:
2008-12-25 21:27:27 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/external/anonymous at sipgate.de [7281a542-d2c2-11dd-80f0-3fe65955e25b]
2008-12-25 21:27:27 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing anonymous->10001 in context public
2008-12-25 21:27:29 [CONSOLE] mod_xml_curl.c:236 xml_url_fetch() XML response is in /tmp/72829470-d2c2-11dd-80f0-3fe65955e25b.tmp.xml
2008-12-25 21:27:29 [NOTICE] switch_core_state_machine.c:168 switch_core_standard_on_execute() Hangup sofia/external/anonymous at sipgate.de [CS_EXECUTE] [NORMAL_CLEARING]
2008-12-25 21:27:29 [NOTICE] switch_core_session.c:956 switch_core_session_thread() Session 3 (sofia/external/anonymous at sipgate.de) Ended
2008-12-25 21:27:29 [NOTICE] switch_core_session.c:958 switch_core_session_thread() Close Channel sofia/external/anonymous at sipgate.de [CS_HANGUP]
The 9999 extension in default looks like this:
<extension name="hold_music">
<condition field="destination_number" expression="^9999$"/>
<condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$">
<action application="answer"/>
<action application="execute_extension" data="is_secure XML features"/>
<action application="playback" data="$${hold_music}"/>
<anti-action application="answer"/>
<anti-action application="playback" data="$${hold_music}"/>
</condition>
</extension>
Thank you very much for your help.
Phil
--
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
More information about the FreeSWITCH-users
mailing list