<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks  a lot Alex.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> de la part de Alex Balashov <abalashov@evaristesys.com><br>
<b>Envoyé :</b> lundi 25 juillet 2022 22:32<br>
<b>À :</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Objet :</b> Re: [Freeswitch-users] CONVERT 3XX to 603</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
> On Jul 15, 2022, at 8:09 AM, Patrick Karton <patrickarton@hotmail.com> wrote:<br>
> <br>
> is there a way for freeswitch to convert receive response code to another code.<br>
> <br>
> i would like for example to convert 3xx received code to 603 code.<br>
<br>
Kind of. <br>
<br>
FreeSWITCH doesn’t expose low-level signalling anatomy on that level of granularity. You don’t handle individual SIP messages in the dial plan, right? You handle channel events and call flows. This is because FreeSWITCH generalises call events from all the
 signalling technologies it supports. <br>
<br>
However, some innards of the Sofia SIP driver are exposed; it’s by no means an airtight abstraction. You can exert some control over what FreeSWITCH does in certain scenarios. But, thinking of them on the level of a SIP message is unproductive and fruitless.
 This question really operates on a different level.<br>
<br>
But in terms of handling redirects per se:<br>
<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/Handling+SIP+Redirect">https://freeswitch.org/confluence/display/FREESWITCH/Handling+SIP+Redirect</a><br>
<br>
If you use ’sip_redirect_context’ to kick the call to a context which then contains:<br>
<br>
   <action application=“hangup” data=“CALL_REJECTED”/> <br>
<br>
See this for more details:<br>
<br>
   <a href="https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table">
https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table</a><br>
<br>
Thus, in a roundabout way, you can do it, but it doesn’t mean you can handle any SIP request or reply any way you want at that level of granularity.<br>
<br>
— Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/">
http://www.csrpswitch.com/</a><br>
<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
sales@freeswitch.com<br>
<a href="https://freeswitch.com">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
FreeSWITCH-users@lists.freeswitch.org<br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>
<a href="https://freeswitch.com">https://freeswitch.com</a></div>
</span></font></div>
</body>
</html>