[Freeswitch-users] Problems with CURL_XML and bridging ?

Avi Marcus avi at avimarcus.net
Sat Jan 14 21:59:08 MSK 2012


The logs show you are getting a "NORMAL_TEMPORARY_FAILURE" from the
endpoint. Have you tried a real number..?

-Avi


On Sat, Jan 14, 2012 at 8:51 PM, Bob Smith
<gb10hkzo-freeswitch at yahoo.co.uk>wrote:

> Hi,
>
> I'm trying to get a basic CURL XML going that will dynamically manage DDI
> numbers as part of a database-driven follow me function.
>
>
> My database generates the following output :
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>    <document type="freeswitch/xml">
>       <section name="dialplan" description="CURL Dialplan Result">
>          <context name="public">
>             <extension name="curl_dialplan"><condition
> field="destination_number" expression="^(87654321)$">
> <action application="set" data="domain_name=my.domain.name"/>
> <!-- <action application="bridge" data="sofia/gateway/mygate/12345678"/>
> -->
> <action application="transfer" data="1000 XML default"/>
>  </condition>
>          </extension>
>       </context>
>    </section>
> </document>
>
>
>
> When the action is "transfer", everything works great.  However when
> "transfer" is the commented one and bridge is active nothing works.
>
> I have tried adding  <action application="set"
> data="hangup_after_bridge=true"/> when bridging, but that has no effect
> either.
>
>
> Here's what it looks like when trying to bridge :
>
>
> 2012-01-14 15:19:24.136494 [INFO] mod_dialplan_xml.c:481 Processing
> 12345678 <12345678>->87654321 in context public
> Dialplan: sofia/internal/12345678 at 192.168.1.134 parsing
> [public->curl_dialplan] continue=false
> Dialplan: sofia/internal/12345678 at 192.168.1.134 Regex (PASS)
> [curl_dialplan] destination_number(87654321) =~ /^(87654321)$/
> break=on-false
> Dialplan: sofia/internal/12345678 at 192.168.1.134 Action set(domain_name=
> my.domain.name)
> Dialplan: sofia/internal/12345678 at 192.168.1.134 Action
> bridge(sofia/gateway/mygate/12345678)
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:154
> (sofia/internal/12345678 at 192.168.1.134) State Change CS_ROUTING ->
> CS_EXECUTE
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal
> sofia/internal/12345678 at 192.168.1.134 [BREAK]
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:410
> (sofia/internal/12345678 at 192.168.1.134) State ROUTING going to sleep
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:362
> (sofia/internal/12345678 at 192.168.1.134) Running State Change CS_EXECUTE
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:417
> (sofia/internal/12345678 at 192.168.1.134) State EXECUTE
> 2012-01-14 15:19:24.176505 [DEBUG] mod_sofia.c:241 sofia/internal/
> 12345678 at 192.168.1.134 SOFIA EXECUTE
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:192
> sofia/internal/12345678 at 192.168.1.134 Standard EXECUTE
> EXECUTE sofia/internal/12345678 at 192.168.1.134 set(domain_name=
> my.domain.name)
> 2012-01-14 15:19:24.176505 [DEBUG] mod_dptools.c:1281 sofia/internal/
> 12345678 at 192.168.1.134 SET [domain_name]=[my.domain.name]
> EXECUTE sofia/internal/12345678 at 192.168.1.134bridge(sofia/gateway/mygate/12345678)
> 2012-01-14 15:19:24.176505 [DEBUG] switch_ivr_originate.c:1884 Parsing
> global variables
> 2012-01-14 15:19:24.176505 [NOTICE] switch_channel.c:930 New Channel
> sofia/external/12345678 [2408b0f2-3ec3-11e1-afaf-89a010d7e66c]
> 2012-01-14 15:19:24.176505 [DEBUG] mod_sofia.c:4674
> (sofia/external/12345678) State Change CS_NEW -> CS_INIT
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:362
> (sofia/external/12345678) Running State Change CS_INIT
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:401
> (sofia/external/12345678) State INIT
> 2012-01-14 15:19:24.176505 [DEBUG] mod_sofia.c:85 sofia/external/12345678
> SOFIA INIT
> 2012-01-14 15:19:24.176505 [DEBUG] mod_sofia.c:125
> (sofia/external/12345678) State Change CS_INIT -> CS_ROUTING
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:401
> (sofia/external/12345678) State INIT going to sleep
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:362
> (sofia/external/12345678) Running State Change CS_ROUTING
> 2012-01-14 15:19:24.176505 [DEBUG] switch_channel.c:1890
> (sofia/external/12345678) Callstate Change DOWN -> RINGING
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:410
> (sofia/external/12345678) State ROUTING
> 2012-01-14 15:19:24.176505 [DEBUG] mod_sofia.c:148
> sofia/external/12345678 SOFIA ROUTING
> 2012-01-14 15:19:24.176505 [DEBUG] switch_ivr_originate.c:66
> (sofia/external/12345678) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:410
> (sofia/external/12345678) State ROUTING going to sleep
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:362
> (sofia/external/12345678) Running State Change CS_CONSUME_MEDIA
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:429
> (sofia/external/12345678) State CONSUME_MEDIA
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_state_machine.c:429
> (sofia/external/12345678) State CONSUME_MEDIA going to sleep
> 2012-01-14 15:19:24.176505 [DEBUG] switch_core_session.c:875 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.176505 [DEBUG] sofia.c:5494 Channel
> sofia/external/12345678 entering state [calling][0]
> 2012-01-14 15:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal
> sofia/external/12345678 [BREAK]
> 2012-01-14 15:19:24.316487 [DEBUG] sofia.c:5494 Channel
> sofia/external/12345678 entering state [terminated][503]
> 2012-01-14 15:19:24.316487 [DEBUG] switch_channel.c:2852
> (sofia/external/12345678) Callstate Change RINGING -> HANGUP
> 2012-01-14 15:19:24.316487 [NOTICE] sofia.c:6258 Hangup
> sofia/external/12345678 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120114/4b5ba01a/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list