Hello, I have a problem with SIP Redirect. I see the sip_redirect_dialstring used internal profile but I need to use external. I set a action for changing the sip_redirect_profile, but it didn't work. My redirected context: <context name="redirected"> <extension name="handle_redirect"> <action application="set" data="sip_redirect_profile=external"/> <condition field="${sip_redirect_dialstring}" expression="^(.*)$"> <action application="log" data="${sip_redirect_profile} ${sip_redirect_fork} ${sip_redirect_context} " inline="true"/> <action application="log" data="INFO handling redirect to ${sip_redirect_dialstring}" inline="true"/> <action application="bridge" data="${sip_redirect_dialstring}"/> </condition> </extension> </context> Thanks, Amirhossein
<action application="set" data="sip_redirect_profile=external” inline="true"/> -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Feb 23, 2014, at 1:04 AM, Signor Stylish <signor.stylish@gmail.com> wrote:
<action application="set" data="sip_redirect_profile=external"/>
Hello, Thanks for your prompt reply. I changed to below dial plan but again used internal: <context name="redirected"> <extension name="handle_redirect"> <condition field="${sip_redirect_dialstring}" expression="^(.+)$"> <action application="log" data="INFO handling redirect to ${sip_redirect_dialstring}" inline="true"/> <action application="set" data="sip_redirect_profile=external" inline="true"/> <action application="bridge" data="${sip_redirect_dialstring}"/> </condition> </extension> </context> bridge(sofia/internal/sip:XXXX@XX Best regards, Amirhossein On Mon, Feb 24, 2014 at 4:00 PM, Brian West <brian@freeswitch.org> wrote:
<action application="set" data="sip_redirect_profile=external” inline="true"/> -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Feb 23, 2014, at 1:04 AM, Signor Stylish <signor.stylish@gmail.com> wrote:
<action application="set" data="sip_redirect_profile=external"/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
It has to be set BEFORE the redirect is processed, You’re seeing it after the redirect has already taken place, its too late. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Feb 24, 2014, at 6:50 AM, Signor Stylish <signor.stylish@gmail.com> wrote:
Hello,
Thanks for your prompt reply.
I changed to below dial plan but again used internal:
<context name="redirected"> <extension name="handle_redirect"> <condition field="${sip_redirect_dialstring}" expression="^(.+)$"> <action application="log" data="INFO handling redirect to ${sip_redirect_dialstring}" inline="true"/> <action application="set" data="sip_redirect_profile=external" inline="true"/> <action application="bridge" data="${sip_redirect_dialstring}"/> </condition> </extension> </context>
bridge(sofia/internal/sip:XXXX@XX
Best regards, Amirhossein
participants (2)
-
Brian West
-
Signor Stylish