<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All!<div>This is my first question...and what question...</div><div>I'm a skilled developer and I'm almost familiar with telephony in general since it's 15 years experience in telco companies.&nbsp;However I'm still facing a problem I couldn't find any solution yet and i hope someone could help in finding a solution</div><div><br></div><div><br></div><div>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> &nbsp;and <b>1 outgoing peer</b>, quite easy.</div><div><br></div><div>On some calls I'm getting "408&nbsp;Request Timeout" and FS is giving me a&nbsp;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").</div><div>Is this possible?</div><div><br></div><div><br></div><div>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.</div><div><br></div><div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp;&lt;extension name="AllDestinations_Inbound"&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &lt;condition field="destination_number" expression="^"&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &lt;condition field="network_addr" expression="^154\.48\.198\.190$"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="set" data="hangup_after_bridge=true"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="set" data="continue_on_fail=19"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="bridge" data="sofia/gateway/remote_outbound_peer/${destination_number}"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="transfer" data="408to503"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &lt;/condition&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &lt;/extension&gt;<span class="Apple-tab-span" style="white-space:pre">                                </span> &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &lt;!--ISDN CAU 34 --&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &lt;extension name="408to503"&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &lt;condition field="${proto_specific_hangup_cause}" expression="&lt;a href="<a href="sip:408">sip:408</a>"&gt;sip:408"&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="set" data="sip_ignore_remote_cause=true"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="respond" data="503"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp; &lt;action application="hangup" data="NORMAL_CIRCUIT_CONGESTION"/&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                        </span> &lt;/condition&gt;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &lt;/extension&gt; &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span></font></div></div><div><br></div><div><br></div><div><br></div><div><div>How to correctly remap causes?</div></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?</div><div><br></div><div><br></div><div>Thank yo so much and sorry for this long post</div><div>I hope someone could help</div><div>Max</div></body></html>