<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi All!<br>I've submitted my question to the User List but actually this could be something more tricky and of course could involve some dev guru out there...</div><div>This is my first question...and what question...<br>I'm a skilled developer and I'm almost familiar with telephony in general since it's 15 years experience in telco companies. However I'm still facing a problem I couldn't find any solution yet and i hope someone could help in finding a solution<br><font class="Apple-style-span" color="#0064c3"><br><br></font>As my present company can't afford an expensive soft switch I'm using <b>Freeswitch 1.4</b> with a simple <b>dialplan.xml</b> and some scripts to load <b>CDRs into mysql</b> to send incoming calls to my remote peers. At present the live traffic is only <b>1 incoming IP</b> and <b>1 outgoing peer</b>, quite easy.<br><font class="Apple-style-span" color="#0064c3"><br></font>On some calls I'm getting "408 Request Timeout" and FS is giving me a RECOVERY_ON_TIMER_EXPIRE cause (IDSN 102). The problem is that as most of the switches are not able to make automatic rerouting based on this cause and so, I will like to use instead the ISDN Cause 18 (I suppose "480 Temporarily unavailable").<br>Is this possible?<br><font class="Apple-style-span" color="#0064c3"><br><br></font>I've used this snippet of code that use another relcause but with same concept (taken as is and pasted into the dialplan) but doesn't work as the 408 is given after 183.<br><font class="Apple-style-span" color="#0064c3"><br></font><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                </span></span><span class="Apple-style-span" style="font-family: Courier; "> <extension name="AllDestinations_Inbound"></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <condition field="destination_number" expression="^"></span><font class="Apple-style-span" face="Courier"><br></font><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="set" data="hangup_after_bridge=true"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="set" data="continue_on_fail=19"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="bridge" data="sofia/gateway/remote_outbound_peer/${destination_number}"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="transfer" data="408to503"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> </condition></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                </span></span><span class="Apple-style-span" style="font-family: Courier; "> </extension></span><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                                </span></span><span class="Apple-style-span" style="font-family: Courier; "> </span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                </span></span><span class="Apple-style-span" style="font-family: Courier; "> <!--ISDN CAU 34 --></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                </span></span><span class="Apple-style-span" style="font-family: Courier; "> <extension name="408to503"></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <condition field="${proto_specific_hangup_cause}" expression="<a href="</span><span class="Apple-style-span" style="font-family: Courier; "><a href="sip:408">sip:408</a></span><span class="Apple-style-span" style="font-family: Courier; ">">sip:408"></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="set" data="sip_ignore_remote_cause=true"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="respond" data="503"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> <action application="hangup" data="NORMAL_CIRCUIT_CONGESTION"/></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Courier; "> </condition></span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">                </span></span><span class="Apple-style-span" style="font-family: Courier; "> </extension> </span><br><span class="Apple-style-span" style="font-family: Courier; "><span class="Apple-tab-span" style="white-space:pre">        </span></span><br><font class="Apple-style-span" color="#0064c3"><br><br><br></font>How to correctly remap causes? The wiki talk about the fact that is not possible to remap causes after a 180 or 183, is this true?</div><div>If there is no way to change normal behaviour, do you think could be possible also to change the source code and recompile FS accordly?<br><font class="Apple-style-span" color="#0064c3"><br><br></font>Thank yo so much and sorry for this long post<br>I hope someone could help<br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Max</div></div></div><br></body></html>