<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Your scenario doesn’t make any sense. We do not send an invite on answer. You haven’t actually answered what you are trying to actually accomplish, just what you think you want the sip traffic to be in a scenario that doesn’t exist.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 15, 2014, at 8:16 PM, Ahmed Habiba <<a href="mailto:ahabiba@gmail.com" class="">ahabiba@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks you really Michael.</div><div class=""><br class=""></div><div class="">My point is as below:</div><div class="">1-when FS get Invite from A number the TO is as below:</div><div class="">To: <<a href="sip:2020@71.233.135.12" class="">sip:2020@71.233.135.12</a>></div><div class=""><br class=""></div><div class="">2-and when I run answer application, FS send invite to A number with TO as below:</div><div class="">To: <<a href="sip:2020@71.233.135.12" class="">sip:2020@71.233.135.12</a>></div><div class=""><br class=""></div><div class="">3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below:</div><div class="">To: <sip<u class="">:<font color="#371a94" class=""><b class="">505</b></font></u><a href="mailto:2020@71.233.135.12" class="">2020@71.233.135.12</a>></div><div class=""><br class=""></div><div class="">is this possible, by editing sip header, and if so how can I do so?</div><div class=""><br class=""></div><div class="">Your kind usual support will be appreciated.</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><br class=""><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">From: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">Michael Jerris <<a href="mailto:mike@jerris.com" class="" style="color: purple;">mike@jerris.com</a>><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">To: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="" style="color: purple;">freeswitch-users@lists.freeswitch.org</a>><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Date: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">December 13, 2014 at 12:37:42 AM GMT+3<br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Reply-To: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="" style="color: purple;">freeswitch-users@lists.freeswitch.org</a>><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Subject: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;"><b class="">Re: [Freeswitch-users] SIP Header Modification / Manipulation</b><br class=""></span></div><br class=""><br class=""><span class="" style="float: none; display: inline !important;">if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.</span><br class=""><br class=""><blockquote type="cite" class="">On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <<a href="mailto:ahabiba@gmail.com" class="" style="color: purple;">ahabiba@gmail.com</a>> wrote:<br class=""><br class="">Dears,<br class=""><br class="">Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:<br class=""><br class=""><br class="">[A Number] <———>[FreeSWitch]<———>[B Number]<br class=""><br class=""><br class="">1-A Number Call B Number (Sip Invite sent from A number)<br class="">2-B number is not registered.<br class="">3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)<br class=""><br class="">in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.<br class=""><br class=""><br class="">Your help will be appreciated.</blockquote></div></blockquote></div></div>_________________________________________________________________________<br class=""></div></blockquote></div><br class=""></div></body></html>