[Freeswitch-users] Get the Session State

Michael Collins msc at freeswitch.org
Thu Aug 27 09:25:46 PDT 2009


When you say call state, do you mean something like "ringing" or "answered"?
-MC

On Thu, Aug 27, 2009 at 3:23 AM, delianSPAM <delianspam at gmail.com> wrote:

>  Hello Everybody!
>
>
>
> How do you get the call state in Python?
>
>
>
> I have tried:
>
>>
> session.answer()
>
> state_result=str(session.getVariable("state"))
>
> console_log("debug",state_result)
>
>>
>
>
> But it returns: “None”
>
>
>
> Thank you!
>
>
>
> Best Regards, Delian Tashev
>
> _______________________________________________
> FreeSWITCH-users mailing list
> 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/20090827/af346617/attachment-0002.html 


More information about the FreeSWITCH-users mailing list