[Freeswitch-users] FreeSwitch state machines for CHANNEL_STATE and CHANNEL_CALLSTATE
João Mesquita
jmesquita at freeswitch.org
Tue Feb 7 19:47:32 MSK 2012
The documentation of this state machine is something that I would love to have documented somewhere. Unfortunately, very few people really know how it works and most of them are busy actually coding the core of freeswitch.
I wonder if someday someone will accept this challenge and document it, it would help a lot of other not-so-core developers to understand how things work inside FS.
Regards,
--
João Mesquita
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Tuesday, February 7, 2012 at 6:05 AM, David Artuñedo Guillén wrote:
>
> 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
>
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120207/b6c09a3a/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list