switch_channel_wait_for_state_timeout(channel, CS_REPORTING, 5000);
in "switch_ivr_originate.c"
is correct?
What I mean is that:
CS_REPORTING >= CS_HANGUP
then the "switch_channel_wait_for_state_timeout" doesn't wait for CS_REPORTING state: I'm wrong?
Stephen