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