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@anonymous.invalid SOFIA RING 13:00:18 [DEBUG] switch_core_state_machine.c:65 switch_core_standard_on_ring() Standard RING sofia/default/anonymous@anonymous.invalid 13:00:18 [INFO] mod_dialplan_xml.c:223 dialplan_hunt() Processing Anonymous->1201@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@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@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:418 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State RING going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_EXECUTE 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE 13:00:21 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/default/anonymous@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@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@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@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@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@anonymous.invalid Execute redirect(sip:+46706930821@sipgw2.gotanet.se) 13:00:21 [DEBUG] mod_sofia.c:909 sofia_receive_message() Re-directing to sip:+46706930821@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@anonymous.invalid 13:00:21 [DEBUG] switch_core_session.c:383 switch_core_session_receive_message() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [NOTICE] switch_core_state_machine.c:156 switch_core_standard_on_execute() Hangup sofia/default/anonymous@anonymous.invalid [CS_EXECUTE] [NORMAL_CLEARING] 13:00:21 [DEBUG] switch_channel.c:1355 switch_channel_perform_hangup() Kill sofia/default/anonymous@anonymous.invalid [KILL] 13:00:21 [DEBUG] switch_core_session.c:670 switch_core_session_signal_state_change() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_HANGUP 13:00:21 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State HANGUP 13:00:21 [DEBUG] mod_sofia.c:255 sofia_on_hangup() Channel sofia/default/anonymous@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@anonymous.invalid, cause: NORMAL_CLEARING 13:00:23 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@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@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@anonymous.invalid) Ended 13:00:23 [NOTICE] switch_core_session.c:750 switch_core_session_thread() Close Channel sofia/default/anonymous@anonymous.invalid [CS_HANGUP]
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@anonymous.invalid SOFIA RING 13:00:18 [DEBUG] switch_core_state_machine.c:65 switch_core_standard_on_ring() Standard RING sofia/default/anonymous@anonymous.invalid 13:00:18 [INFO] mod_dialplan_xml.c:223 dialplan_hunt() Processing Anonymous->1201@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@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@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:418 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State RING going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_EXECUTE 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE 13:00:21 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/default/anonymous@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@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@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@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@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@anonymous.invalid Execute redirect(sip:+46706930821@sipgw2.gotanet.se) 13:00:21 [DEBUG] mod_sofia.c:909 sofia_receive_message() Re-directing to sip:+46706930821@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@anonymous.invalid 13:00:21 [DEBUG] switch_core_session.c:383 switch_core_session_receive_message() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [NOTICE] switch_core_state_machine.c:156 switch_core_standard_on_execute() Hangup sofia/default/anonymous@anonymous.invalid [CS_EXECUTE] [NORMAL_CLEARING] 13:00:21 [DEBUG] switch_channel.c:1355 switch_channel_perform_hangup() Kill sofia/default/anonymous@anonymous.invalid [KILL] 13:00:21 [DEBUG] switch_core_session.c:670 switch_core_session_signal_state_change() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_HANGUP 13:00:21 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State HANGUP 13:00:21 [DEBUG] mod_sofia.c:255 sofia_on_hangup() Channel sofia/default/anonymous@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@anonymous.invalid, cause: NORMAL_CLEARING 13:00:23 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@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@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@anonymous.invalid) Ended 13:00:23 [NOTICE] switch_core_session.c:750 switch_core_session_thread() Close Channel sofia/default/anonymous@anonymous.invalid [CS_HANGUP]
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
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@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@anonymous.invalid SOFIA RING 13:00:18 [DEBUG] switch_core_state_machine.c:65 switch_core_standard_on_ring() Standard RING sofia/default/anonymous@anonymous.invalid 13:00:18 [INFO] mod_dialplan_xml.c:223 dialplan_hunt() Processing Anonymous->1201@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@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@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:418 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State RING going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_EXECUTE 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE 13:00:21 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/default/anonymous@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@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@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@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@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@anonymous.invalid Execute redirect(sip:+46706930821@sipgw2.gotanet.se) 13:00:21 [DEBUG] mod_sofia.c:909 sofia_receive_message() Re-directing to sip:+46706930821@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@anonymous.invalid 13:00:21 [DEBUG] switch_core_session.c:383 switch_core_session_receive_message() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [NOTICE] switch_core_state_machine.c:156 switch_core_standard_on_execute() Hangup sofia/default/anonymous@anonymous.invalid [CS_EXECUTE] [NORMAL_CLEARING] 13:00:21 [DEBUG] switch_channel.c:1355 switch_channel_perform_hangup() Kill sofia/default/anonymous@anonymous.invalid [KILL] 13:00:21 [DEBUG] switch_core_session.c:670 switch_core_session_signal_state_change() Kill sofia/default/anonymous@anonymous.invalid [BREAK] 13:00:21 [DEBUG] switch_core_state_machine.c:428 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State EXECUTE going to sleep 13:00:21 [DEBUG] switch_core_state_machine.c:364 switch_core_session_run() sofia/default/anonymous@anonymous.invalid Running State Change CS_HANGUP 13:00:21 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@anonymous.invalid) State HANGUP 13:00:21 [DEBUG] mod_sofia.c:255 sofia_on_hangup() Channel sofia/default/anonymous@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@anonymous.invalid, cause: NORMAL_CLEARING 13:00:23 [DEBUG] switch_core_state_machine.c:392 switch_core_session_run() (sofia/default/anonymous@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@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@anonymous.invalid) Ended 13:00:23 [NOTICE] switch_core_session.c:750 switch_core_session_thread() Close Channel sofia/default/anonymous@anonymous.invalid [CS_HANGUP]
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH? /b On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org
just trying to send a 302. On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Can you provide the dialplan you're using? And what device are you sending the redirect to? /b On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
just trying to send a 302.
On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="ModCurlDialplan"> <context name="default"> <extension name=" 1201 "> <condition field="destination_number" expression="1201"> <action application="set" data="accountcode=1"/> <action application="set" data="gate_direction=outbound"/> <action application="set" data="gate_context=external"/> <action application="set" data="gate_site_id=1"/> <action application="redirect" data="sip:+46706930821@sipgw2.gotanet.se"/> </condition> </extension> </context> </section> In this case I'm trying to send the redirect to my sip gateway. I've also tried to send the redirect to another user in my site (sip:u10001@myrealdomain.com). Both give that error shown in the log in my first email. On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian@freeswitch.org> wrote:
Can you provide the dialplan you're using? And what device are you sending the redirect to?
/b
On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
just trying to send a 302.
On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Could it be the far end not actually following a 302 redirect? Some people will not follow it due to toll fraud issues. You can totally bypass some ones billing systems with it. Do you know what devices you're sending a 302 redirect to? Can you collect the sip trace of the redirect? /b On Apr 21, 2008, at 9:31 AM, Jonas Gauffin wrote:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="ModCurlDialplan"> <context name="default"> <extension name=" 1201 "> <condition field="destination_number" expression="1201"> <action application="set" data="accountcode=1"/> <action application="set" data="gate_direction=outbound"/> <action application="set" data="gate_context=external"/> <action application="set" data="gate_site_id=1"/> <action application="redirect" data="sip:+46706930821@sipgw2.gotanet.se"/> </condition> </extension> </context> </section>
In this case I'm trying to send the redirect to my sip gateway. I've also tried to send the redirect to another user in my site (sip:u10001@myrealdomain.com).
Both give that error shown in the log in my first email.
On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian@freeswitch.org> wrote:
Can you provide the dialplan you're using? And what device are you sending the redirect to?
/b
On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
just trying to send a 302.
On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
Did you trace the sip to see if we are sending a 302? On Mon, Apr 21, 2008 at 9:47 AM, Brian West <brian@freeswitch.org> wrote:
Could it be the far end not actually following a 302 redirect? Some people will not follow it due to toll fraud issues. You can totally bypass some ones billing systems with it. Do you know what devices you're sending a 302 redirect to? Can you collect the sip trace of the redirect?
/b
On Apr 21, 2008, at 9:31 AM, Jonas Gauffin wrote:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="ModCurlDialplan"> <context name="default"> <extension name=" 1201 "> <condition field="destination_number" expression="1201"> <action application="set" data="accountcode=1"/> <action application="set" data="gate_direction=outbound"/> <action application="set" data="gate_context=external"/> <action application="set" data="gate_site_id=1"/> <action application="redirect" data="sip:+46706930821@sipgw2.gotanet.se<sip%3A%2B46706930821@sipgw2.gotanet.se> "/> </condition> </extension> </context> </section>
In this case I'm trying to send the redirect to my sip gateway. I've also tried to send the redirect to another user in my site (sip:u10001@myrealdomain.com <sip%3Au10001@myrealdomain.com>).
Both give that error shown in the log in my first email.
On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian@freeswitch.org> wrote:
Can you provide the dialplan you're using? And what device are you sending the redirect to?
/b
On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
just trying to send a 302.
On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
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?
Brian West sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Ok, ive done some more testing. The redirect works fine in this case (with the dialplan that i sent in my last post): Caller -> 1201 (which is redirected to 1203) -> 1203 is ringing The same dialplan fails in this scenario: Caller -> ivr menu (javascript) -> transfer to 1201 (same redirect is made) -> failure The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML"); On Mon, Apr 21, 2008 at 5:03 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Did you trace the sip to see if we are sending a 302?
On Mon, Apr 21, 2008 at 9:47 AM, Brian West <brian@freeswitch.org> wrote:
Could it be the far end not actually following a 302 redirect? Some people will not follow it due to toll fraud issues. You can totally bypass some ones billing systems with it. Do you know what devices you're sending a 302 redirect to? Can you collect the sip trace of the redirect?
/b
On Apr 21, 2008, at 9:31 AM, Jonas Gauffin wrote:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="ModCurlDialplan"> <context name="default"> <extension name=" 1201 "> <condition field="destination_number" expression="1201"> <action application="set" data="accountcode=1"/> <action application="set" data="gate_direction=outbound"/> <action application="set" data="gate_context=external"/> <action application="set" data="gate_site_id=1"/> <action application="redirect" data="sip:+46706930821@sipgw2.gotanet.se"/> </condition> </extension> </context> </section>
In this case I'm trying to send the redirect to my sip gateway. I've also tried to send the redirect to another user in my site (sip:u10001@myrealdomain.com).
Both give that error shown in the log in my first email.
On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian@freeswitch.org> wrote:
Can you provide the dialplan you're using? And what device are you sending the redirect to?
/b
On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
just trying to send a 302.
On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian@freeswitch.org> wrote:
Is this a redirect done by the far end device? or you're just trying to send a 302 from FreeSWITCH?
/b
On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
> 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?
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Didn't you say you wanted to do 302? transfer app is a FS internal transfer. 302 is initiated with session.execute("redirect", "sip:foo@bar.com<sip%3Afoo@bar.com> "); If you do actually mean to transfer within FS, (meaning send the current call back to the dialplan) Be sure to exit your script as soon as you execute transfer because from that point you must quit your script so the core can return the call to the RING state. On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian@freeswitch.org> wrote:
can you provide the console output for this failure?
On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML");
Brian West sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
I do a transfer to an extension that is redirected to another one. 8888 => ivr app that transfers the call 1201 => uses the redirect app in the dialplan to 1203 1203 => extension that should be ringing this works: caller -> 1201 (redirects to 1203) -> 1203 is ringing caller -> 8888 (doing transfer to 1201) -> 1201 (redirects to 1203) -> 1203 is not ringing I have not touched the redirect at all in the dialplan between the two test cases. Do this to reproduce: 1. Create a extension in the diaplan that uses the redirect app to another extension 2. Create a javascript which does: session.answer(); session.execute("transfer", "yourextension XML"); On Tue, Apr 22, 2008 at 3:00 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Didn't you say you wanted to do 302? transfer app is a FS internal transfer.
302 is initiated with session.execute("redirect", "sip:foo@bar.com");
If you do actually mean to transfer within FS, (meaning send the current call back to the dialplan) Be sure to exit your script as soon as you execute transfer because from that point you must quit your script so the core can return the call to the RING state.
On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian@freeswitch.org> wrote:
can you provide the console output for this failure?
On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML");
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Can you still do a 302 once you answer? I thought that only works before you answer. it's a final response to an invite like a 488 etc. You can try the deflect app instead which is similar in the end result redirect but it sends a SIP refer (like a blind transfer on a sip phone) so it works on answered calls. On Tue, Apr 22, 2008 at 8:08 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
I do a transfer to an extension that is redirected to another one.
8888 => ivr app that transfers the call 1201 => uses the redirect app in the dialplan to 1203 1203 => extension that should be ringing
this works: caller -> 1201 (redirects to 1203) -> 1203 is ringing caller -> 8888 (doing transfer to 1201) -> 1201 (redirects to 1203) -> 1203 is not ringing
I have not touched the redirect at all in the dialplan between the two test cases.
Do this to reproduce: 1. Create a extension in the diaplan that uses the redirect app to another extension 2. Create a javascript which does: session.answer(); session.execute("transfer", "yourextension XML");
On Tue, Apr 22, 2008 at 3:00 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Didn't you say you wanted to do 302? transfer app is a FS internal transfer.
302 is initiated with session.execute("redirect", "sip:foo@bar.com<sip%3Afoo@bar.com> ");
If you do actually mean to transfer within FS, (meaning send the current call back to the dialplan) Be sure to exit your script as soon as you execute transfer because from that point you must quit your script so the core can return the call to the RING state.
On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian@freeswitch.org> wrote:
can you provide the console output for this failure?
On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML");
Brian West sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Ahh. doh. Never thought of that. You are of course correct. Do deflect work both with unanswered and answered calls? Or do I need to use a check whether the call have been answered when it hits the dialplan? On Tue, Apr 22, 2008 at 3:18 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Can you still do a 302 once you answer? I thought that only works before you answer. it's a final response to an invite like a 488 etc.
You can try the deflect app instead which is similar in the end result redirect but it sends a SIP refer (like a blind transfer on a sip phone) so it works on answered calls.
On Tue, Apr 22, 2008 at 8:08 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
I do a transfer to an extension that is redirected to another one.
8888 => ivr app that transfers the call 1201 => uses the redirect app in the dialplan to 1203 1203 => extension that should be ringing
this works: caller -> 1201 (redirects to 1203) -> 1203 is ringing caller -> 8888 (doing transfer to 1201) -> 1201 (redirects to 1203) -> 1203 is not ringing
I have not touched the redirect at all in the dialplan between the two test cases.
Do this to reproduce: 1. Create a extension in the diaplan that uses the redirect app to another extension 2. Create a javascript which does: session.answer(); session.execute("transfer", "yourextension XML");
On Tue, Apr 22, 2008 at 3:00 PM, Anthony Minessale
<anthony.minessale@gmail.com> wrote:
Didn't you say you wanted to do 302? transfer app is a FS internal transfer.
302 is initiated with session.execute("redirect", "sip:foo@bar.com");
If you do actually mean to transfer within FS, (meaning send the current call back to the dialplan) Be sure to exit your script as soon as you execute transfer because from that point you must quit your script so the core can return the call to the RING state.
On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian@freeswitch.org> wrote:
can you provide the console output for this failure?
On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML");
Brian West sip:brian@freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I think it will always work. But I am not 100% sure. On Tue, Apr 22, 2008 at 8:44 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
Ahh. doh. Never thought of that. You are of course correct.
Do deflect work both with unanswered and answered calls? Or do I need to use a check whether the call have been answered when it hits the dialplan?
On Tue, Apr 22, 2008 at 3:18 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
Can you still do a 302 once you answer? I thought that only works before you answer. it's a final response to an invite like a 488 etc.
You can try the deflect app instead which is similar in the end result redirect but it sends a SIP refer (like a blind transfer on a sip phone) so it works on answered calls.
On Tue, Apr 22, 2008 at 8:08 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
I do a transfer to an extension that is redirected to another one.
8888 => ivr app that transfers the call 1201 => uses the redirect app in the dialplan to 1203 1203 => extension that should be ringing
this works: caller -> 1201 (redirects to 1203) -> 1203 is ringing caller -> 8888 (doing transfer to 1201) -> 1201 (redirects to 1203) -> 1203 is not ringing
I have not touched the redirect at all in the dialplan between the two test cases.
Do this to reproduce: 1. Create a extension in the diaplan that uses the redirect app to another extension 2. Create a javascript which does: session.answer(); session.execute("transfer", "yourextension XML");
On Tue, Apr 22, 2008 at 3:00 PM, Anthony Minessale
<anthony.minessale@gmail.com> wrote:
Didn't you say you wanted to do 302? transfer app is a FS internal transfer.
302 is initiated with session.execute("redirect", "sip:foo@bar.com<sip%3Afoo@bar.com> ");
If you do actually mean to transfer within FS, (meaning send the current call back to the dialplan) Be sure to exit your script as soon as you execute transfer because from that point you must quit your script so the core can return the call to the RING state.
On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian@freeswitch.org> wrote:
can you provide the console output for this failure?
On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
The transfer is made with: session.setVariable("ringback", "%(1000,4000,425)"); session.execute("transfer", user.extension + " XML");
Brian West sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (3)
-
Anthony Minessale
-
Brian West
-
Jonas Gauffin