Hi,

 

I’m new to FreeSwitch world. I’m looking at using the mod_event_socket interface to write some simple call control app. The Events I’m interested at are CHANNEL_STATE and CHANNEL_CALLSTATE to recognize the status of the calls and how they progress. I have not found any docs describing the state machines for channels and Calls. I look up in the Source code as well and couldn’t find the place where the state machine is implemented.

 

Does anybody know where can I find this info?

 

EG, when setting up some call through FS these are the events I am getting with the uuids associated:

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_INIT

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_CALLSTATE       RINGING

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_ROUTING

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_CONSUME_MEDIA

9a66eaf9-e11e-4f9c-9623-19deac73fc2e    CHANNEL_CALLSTATE       ACTIVE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_CALLSTATE       EARLY

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_CALLSTATE       ACTIVE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_EXECUTE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_HIBERNATE

9a66eaf9-e11e-4f9c-9623-19deac73fc2e    CHANNEL_STATE   CS_HIBERNATE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_RESET

9a66eaf9-e11e-4f9c-9623-19deac73fc2e    CHANNEL_STATE   CS_RESET

9a66eaf9-e11e-4f9c-9623-19deac73fc2e    CHANNEL_STATE   CS_SOFT_EXECUTE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_SOFT_EXECUTE

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_CONSUME_MEDIA

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_EXCHANGE_MEDIA

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_CALLSTATE       HANGUP

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_HANGUP

9a66eaf9-e11e-4f9c-9623-19deac73fc2e    CHANNEL_STATE   CS_PARK

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_REPORTING

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_CALLSTATE       DOWN

bbac39e0-9025-4969-a6ba-b49c89b12237    CHANNEL_STATE   CS_DESTROY

 

Thanks in advance.

 

David