You can have it return to the dialplan on failure and (conditionally?) hangup with a 41 from there. 

On 2 December 2014 at 04:54, jay binks <jaybinks@gmail.com> wrote:
So im doing some integration testing, I am sending a call to sofia profile A , and its routed out profile B.

if I take profile B down,  I can see freeswitch logs "mod_sofia.c:4417 Invalid Profile", which is fine..  the profile is stopped.

but what I did not expect is that Freeswitch responds ( on profile A )
with :

SIP/2.0 502 Bad Gateway
Reason: SIP;cause=611;text="INVALID_PROFILE"


which isnt even listed in  https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table as a valid hangup cause !! 

What I want to know is,  how can I make freeswitch send a Q850 cause 41 in this case ??
( without patching mod_sofia :P )

--
Sincerely

Jay

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org