<div dir="ltr">You can have it return to the dialplan on failure and (conditionally?) hangup with a 41 from there. </div><div class="gmail_extra"><br><div class="gmail_quote">On 2 December 2014 at 04:54, jay binks <span dir="ltr">&lt;<a href="mailto:jaybinks@gmail.com" target="_blank">jaybinks@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>So im doing some integration testing, I am sending a call to sofia profile A , and its routed out profile B.</div><div><br></div><div>if I take profile B down,  I can see freeswitch logs &quot;mod_sofia.c:4417 Invalid Profile&quot;, which is fine..  the profile is stopped.</div><div><br></div><div>but what I did not expect is that Freeswitch responds ( on profile A )</div><div>with :</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><p>SIP/2.0 502 Bad Gateway<br>Reason: SIP;<span style="background-color:rgb(255,255,0)">cause=611</span>;text=&quot;INVALID_PROFILE&quot;</p></div></blockquote><div><br></div><div>which isnt even listed in  <a href="https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table</a> as a valid hangup cause !! </div><div><br></div><div>What I want to know is,  how can I make freeswitch send a Q850 cause 41 in this case ??</div><div>( without patching mod_sofia :P )</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>Sincerely<br><br>Jay</div>
</font></span></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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>