Instead of crash on bad stanza, at least log it
Fallback to direct initiate when no Jingle Message Initation support
Check for a message initiation supporting resource, if none then send to the
most available resource.
TODO: Should only send to most available resource that supports jingle rtp audio.
Support inbound SIP MESSAGE
Log bad calls for fail2ban to find, fix default extensions
Use SIP From instead of raw SIPURI
Error payload is often last
Asterisk seems to care about the payload being <error/> and not just the
type="error", which is probably a bug in asterisk, but this whole thing is a
workaround for missing asterisk stuff so here we are.
This code is garbage and will have to be rewritten.
When paired with the Asterisk setup, inbound calls to sip:email@example.com
end up as working Jingle calls (tested only with Conversations) to the target
Declining the call, hanging up, and errors from calling bad JIDs all are handled.