<div dir="ltr">Thanks for your replay. Setting <span style="font-size:12.8px">sip_req_uri variable was giving me internal server error.<br></span><br><anti-action application="bridge" data="{sip_invite_req_rui=${sip_invite_req_rui}<font color="#000000" face="monospace, Courier" style="white-space:pre-wrap"><span style="font-size:12.8px;line-height:1.3em">sofia/external/${</span></font><font color="#000000" face="monospace, Courier" style="white-space:pre-wrap"><span style="font-size:12.8px;line-height:1.3em">destination}@</span></font><span style="white-space:pre-wrap;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px">${sip_h_</span><span style="white-space:pre-wrap">X-Dest</span><span style="white-space:pre-wrap;font-size:14px;line-height:20px"><font color="#333333" face="Arial, sans-serif">}</font></span>"/><div><br></div><div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:40 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> Standard INIT</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:48 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State Change CS_INIT -> CS_ROUTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:516 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State INIT going to sleep</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:473 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Running State Change CS_ROUTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] sofia.c:6760 Channel sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> entering state [terminated][900]</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [NOTICE] sofia.c:7779 Hangup sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> [CS_ROUTING] [NORMAL_UNSPECIFIED]</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:532 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State ROUTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:141 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> SOFIA ROUTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:532 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State ROUTING going to sleep</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:473 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Running State Change CS_HANGUP</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:739 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Callstate Change DOWN -> HANGUP</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:741 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State HANGUP</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:431 Channel sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> hanging up, cause: NORMAL_UNSPECIFIED</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:60 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> Standard HANGUP, cause: NORMAL_UNSPECIFIED</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:741 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State HANGUP going to sleep</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:508 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State Change CS_HANGUP -> CS_REPORTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:473 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Running State Change CS_REPORTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:827 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State REPORTING</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:104 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> Standard REPORTING, cause: NORMAL_UNSPECIFIED</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:827 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State REPORTING going to sleep</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_ivr_originate.c:3751 Originate Resulted in Error Cause: 31 [NORMAL_UNSPECIFIED]</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:499 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State Change CS_REPORTING -> CS_DESTROY</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_session.c:1646 Session 50 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Locked, Waiting on external entities</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [NOTICE] switch_core_session.c:1664 Session 50 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Ended</div><div> fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [NOTICE] switch_core_session.c:1668 Close Channel sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> [CS_DESTROY]</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:630 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) Running State Change CS_DESTROY</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [INFO] mod_dptools.c:3379 Originate Failed. Cause: NORMAL_UNSPECIFIED</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [NOTICE] switch_channel.c:4804 Hangup sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a> [CS_EXECUTE] [NORMAL_UNSPECIFIED]</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:640 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State DESTROY</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:341 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> SOFIA DESTROY</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:111 sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a> Standard DESTROY</div><div>fd3863cc-ecd6-481f-80c6-102fb0d31fbe 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:640 (sofia/external/<a href="http://14703999454@45.56.70.29:5070">14703999454@45.56.70.29:5070</a>) State DESTROY going to sleep</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_session.c:2796 sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a> skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:539 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) State EXECUTE going to sleep</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:473 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) Running State Change CS_HANGUP</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:739 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) Callstate Change RINGING -> HANGUP</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:741 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) State HANGUP</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:425 sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a> Overriding SIP cause 480 with 900 from the other leg</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:431 Channel sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a> hanging up, cause: NORMAL_UNSPECIFIED</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] mod_sofia.c:568 Responding to INVITE with: 900</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:60 sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a> Standard HANGUP, cause: NORMAL_UNSPECIFIED</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:741 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) State HANGUP going to sleep</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:508 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) State Change CS_HANGUP -> CS_REPORTING</div><div>9f034ddd-6548-449c-8299-408d0d5cba9b 2016-02-06 17:23:18.139328 [DEBUG] switch_core_state_machine.c:473 (sofia/external/<a href="http://sipp@104.237.140.13:5061">sipp@104.237.140.13:5061</a>) Running State Change CS_REPORTING</div><div>send 296 bytes to udp/[104.237.140.13]:5061 at 17:23:18.156113:</div><div><br></div><div><br></div><div>But got solution by using fs_path. </div><div><br></div><div> <anti-action application="bridge" data="sofia/external/${sip_req_uri};fs_path=sip:<span style="white-space:pre-wrap;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px">${sip_h_</span><span style="white-space:pre-wrap">X-Dest</span><span style="white-space:pre-wrap;font-size:14px;line-height:20px"><font color="#333333" face="Arial, sans-serif">}</font></span>}"/><br></div><div><br></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 February 2016 at 22:07, Sergey Safarov <span dir="ltr"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try set sip_req_uri variable.<div><br></div><div>Sergey</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Feb 6, 2016 at 7:01 PM, Aqs Younas <span dir="ltr"><<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I receive Invite from vendor with i need to forward to a destination ip set in special header X-Dest without changing the RURI.</div><div><br></div><div>When I try to bridge this invite </div><div><br></div><div><pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249)"><font color="#000000" face="monospace, Courier"><span style="font-size:12.8px;line-height:1.3em"> <action application="bridge" data="sofia/external/${</span></font><font color="#000000" face="monospace, Courier"><span style="font-size:12.8px;line-height:1.3em">destination}@</span></font><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(255,255,255)">${sip_h_</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;background-color:rgb(255,255,255)">X-Dest</span><span style="background-color:rgb(255,255,255);font-size:14px;line-height:20px"><font color="#333333" face="Arial, sans-serif">}</font></span><span style="color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.8px;line-height:1.3em">" /></span></pre></div><div>It changes the RURI. I need to preserve the RURI but set destination to X-Dest header. <br><br>How can i forward call to that IP without changing the RURI. </div><div><br></div><div><br></div><div>Best Regard. </div><div><table style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(170,171,182);margin-top:30px">
        <tbody><tr>
                <td style="width:105px;padding-top:15px">
                        <a href="https://www.avast.com/sig-email" target="_blank"><img src="https://ipmcdn.avast.com/images/logo-avast-v1.png" style="width:90px;min-height:33px"></a>
                </td>
                <td style="width:470px;padding-top:20px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">This email has been sent from a virus-free computer protected by Avast. <br><a href="https://www.avast.com/sig-email" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="#1808395836_-1084937732_396301616_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>