<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Does anybody know where can I find this info?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>EG, when setting up some call through FS these are the events I am getting with the uuids associated:<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_INIT<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_CALLSTATE RINGING<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_ROUTING<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_CONSUME_MEDIA<o:p></o:p></p><p class=MsoNormal>9a66eaf9-e11e-4f9c-9623-19deac73fc2e CHANNEL_CALLSTATE ACTIVE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_CALLSTATE EARLY<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_CALLSTATE ACTIVE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_EXECUTE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_HIBERNATE<o:p></o:p></p><p class=MsoNormal>9a66eaf9-e11e-4f9c-9623-19deac73fc2e CHANNEL_STATE CS_HIBERNATE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_RESET<o:p></o:p></p><p class=MsoNormal>9a66eaf9-e11e-4f9c-9623-19deac73fc2e CHANNEL_STATE CS_RESET<o:p></o:p></p><p class=MsoNormal>9a66eaf9-e11e-4f9c-9623-19deac73fc2e CHANNEL_STATE CS_SOFT_EXECUTE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_SOFT_EXECUTE<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_CONSUME_MEDIA<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_EXCHANGE_MEDIA<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_CALLSTATE HANGUP<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_HANGUP<o:p></o:p></p><p class=MsoNormal>9a66eaf9-e11e-4f9c-9623-19deac73fc2e CHANNEL_STATE CS_PARK<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_REPORTING<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_CALLSTATE DOWN<o:p></o:p></p><p class=MsoNormal>bbac39e0-9025-4969-a6ba-b49c89b12237 CHANNEL_STATE CS_DESTROY<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>David<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>