[Freeswitch-users] redirect in dialplan

Jonas Gauffin jonas.gauffin at gmail.com
Mon Apr 21 06:47:17 PDT 2008


huh?

I'm using a custom dialplan (through mod_xml_curl) and are trying to
use the "redirect" application.

You telling me that I should use the deflect app instead? What's the
different between deflect and redirect?


On Mon, Apr 21, 2008 at 3:35 PM, Brian West <brian at freeswitch.org> wrote:
> Look at the default config at the unroll loops extension... that is
>  what processes the loop.
>
>  /b
>
>
>
>  On Apr 21, 2008, at 6:04 AM, Jonas Gauffin wrote:
>
>  > Hello
>  >
>  > I'm trying to get redirect to work in the dialplan.
>  >
>  > Here's the actual attempt:
>  >
>  > 13:00:18 [DEBUG] mod_sofia.c:119 sofia_on_ring()
>  > sofia/default/anonymous at anonymous.invalid SOFIA RING
>  > 13:00:18 [DEBUG] switch_core_state_machine.c:65
>  > switch_core_standard_on_ring() Standard RING
>  > sofia/default/anonymous at anonymous.invalid
>  > 13:00:18 [INFO] mod_dialplan_xml.c:223 dialplan_hunt() Processing
>  > Anonymous->1201 at default
>  > 13:00:21 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions
>  > destination_number(1201) =~ /1201/
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:96
>  > switch_core_standard_on_ring()
>  > sofia/default/anonymous at anonymous.invalid State Change CS_RING ->
>  > CS_EXECUTE
>  > 13:00:21 [DEBUG] switch_core_session.c:670
>  > switch_core_session_signal_state_change() Kill
>  > sofia/default/anonymous at anonymous.invalid [BREAK]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:418
>  > switch_core_session_run() (sofia/default/anonymous at anonymous.invalid)
>  > State RING going to sleep
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:364
>  > switch_core_session_run() sofia/default/anonymous at anonymous.invalid
>  > Running State Change CS_EXECUTE
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:428
>  > switch_core_session_run() (sofia/default/anonymous at anonymous.invalid)
>  > State EXECUTE
>  > 13:00:21 [DEBUG] mod_sofia.c:156 sofia_on_execute()
>  > sofia/default/anonymous at anonymous.invalid SOFIA EXECUTE
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:128
>  > switch_core_standard_on_execute() Standard EXECUTE
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:139
>  > switch_core_standard_on_execute()
>  > sofia/default/anonymous at anonymous.invalid Execute set(accountcode=1)
>  > 13:00:21 [DEBUG] mod_dptools.c:588 set_function() SET
>  > [accountcode]=[1]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:139
>  > switch_core_standard_on_execute()
>  > sofia/default/anonymous at anonymous.invalid Execute
>  > set(gate_direction=outbound)
>  > 13:00:21 [DEBUG] mod_dptools.c:588 set_function() SET
>  > [gate_direction]=[outbound]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:139
>  > switch_core_standard_on_execute()
>  > sofia/default/anonymous at anonymous.invalid Execute
>  > set(gate_context=external)
>  > 13:00:21 [DEBUG] mod_dptools.c:588 set_function() SET
>  > [gate_context]=[external]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:139
>  > switch_core_standard_on_execute()
>  > sofia/default/anonymous at anonymous.invalid Execute set(gate_site_id=1)
>  > 13:00:21 [DEBUG] mod_dptools.c:588 set_function() SET
>  > [gate_site_id]=[1]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:139
>  > switch_core_standard_on_execute()
>  > sofia/default/anonymous at anonymous.invalid Execute
>  > redirect(sip:+46706930821 at sipgw2.gotanet.se)
>  > 13:00:21 [DEBUG] mod_sofia.c:909 sofia_receive_message() Re-directing
>  > to sip:+46706930821 at sipgw2.gotanet.se
>  > 13:00:21 [DEBUG] sofia.c:222 sofia_event_callback() event
>  > [nua_i_error] status [500][Responding to a Non-Existing Request]
>  > session: sofia/default/anonymous at anonymous.invalid
>  > 13:00:21 [DEBUG] switch_core_session.c:383
>  > switch_core_session_receive_message() Kill
>  > sofia/default/anonymous at anonymous.invalid [BREAK]
>  > 13:00:21 [NOTICE] switch_core_state_machine.c:156
>  > switch_core_standard_on_execute() Hangup
>  > sofia/default/anonymous at anonymous.invalid [CS_EXECUTE]
>  > [NORMAL_CLEARING]
>  > 13:00:21 [DEBUG] switch_channel.c:1355 switch_channel_perform_hangup()
>  > Kill sofia/default/anonymous at anonymous.invalid [KILL]
>  > 13:00:21 [DEBUG] switch_core_session.c:670
>  > switch_core_session_signal_state_change() Kill
>  > sofia/default/anonymous at anonymous.invalid [BREAK]
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:428
>  > switch_core_session_run() (sofia/default/anonymous at anonymous.invalid)
>  > State EXECUTE going to sleep
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:364
>  > switch_core_session_run() sofia/default/anonymous at anonymous.invalid
>  > Running State Change CS_HANGUP
>  > 13:00:21 [DEBUG] switch_core_state_machine.c:392
>  > switch_core_session_run() (sofia/default/anonymous at anonymous.invalid)
>  > State HANGUP
>  > 13:00:21 [DEBUG] mod_sofia.c:255 sofia_on_hangup() Channel
>  > sofia/default/anonymous at anonymous.invalid hanging up, cause:
>  > NORMAL_CLEARING
>  > 13:00:21 [ERR] mod_xml_cdr.c:118 my_on_hangup() Error writing
>  > [D:\gate\freeswitch\log\xml_cdr\569b8bdf-5a48-9d42-
>  > bf21-3db37ab69684.cdr.xml][No
>  > such file or directory]
>  > 13:00:23 [DEBUG] switch_core_state_machine.c:46
>  > switch_core_standard_on_hangup() Standard HANGUP
>  > sofia/default/anonymous at anonymous.invalid, cause: NORMAL_CLEARING
>  > 13:00:23 [DEBUG] switch_core_state_machine.c:392
>  > switch_core_session_run() (sofia/default/anonymous at anonymous.invalid)
>  > State HANGUP going to sleep
>  > 13:00:23 [DEBUG] switch_core_session.c:730
>  > switch_core_session_thread() Session 23
>  > (sofia/default/anonymous at anonymous.invalid) Locked, Waiting on
>  > external entities
>  > 13:00:23 [NOTICE] switch_core_session.c:748
>  > switch_core_session_thread() Session 23
>  > (sofia/default/anonymous at anonymous.invalid) Ended
>  > 13:00:23 [NOTICE] switch_core_session.c:750
>  > switch_core_session_thread() Close Channel
>  > sofia/default/anonymous at anonymous.invalid [CS_HANGUP]
>  >
>  > _______________________________________________
>  > 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
>
>  Brian West
>  sip:brian at freeswitch.org
>
>
>
>
>  _______________________________________________
>  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
>




More information about the FreeSWITCH-users mailing list