Fix problem where outgoing calls would be in the active state (IAXC_CALL_STATE_ACTIVE) prior to the other end even ACCEPTing the call. This potentially allowed TEXT, DTMF, and other frames to go out prior to the call being ACCEPTed by the other end. Recent versions of asterisk (1.4.19+) have security fixes in-place that don't take to kindly to this kind of bogus protocol. - The fix is to only put the call into the active state after we have received   an ACCEPT frame from the other end.
Fix problem where outgoing calls would be in the active state
(IAXC_CALL_STATE_ACTIVE) prior to the other end even ACCEPTing the call.
This potentially allowed TEXT, DTMF, and other frames to go out prior
to the call being ACCEPTed by the other end. Recent versions of asterisk
(1.4.19+) have security fixes in-place that don't take to kindly to this
kind of bogus protocol.
- The fix is to only put the call into the active state after we have received
  an ACCEPT frame from the other end.


git-svn-id: 9ed0004971709408f906b8bdafa7f98a7bcab630@1439 f854266a-e20d-0410-a9be-8852184c940f

zlargon/iaxclient,zlargon/iaxclient,zlargon/iaxclient,zlargon/iaxclient,zlargon/iaxclient