Here my solutions for last two bugs I found

I have a doubt that this is correct way for removing obligatory rule for "gateways" attribute in the "number" object, may be will be better to make a special attribute for cases when you want call to somebody through RTMP session.