When using transfer_on_hangup, check if the channel is in the right state, before trying transfer (i.e. not Congestion / Busy / Invalid)

git-svn-id: https://svn.code.sf.net/p/chan-sccp-b/code/trunk@5564 43c1dc8c-776e-4df2-8ef1-6e829299be21