[Freeswitch-users] get channel status
Gopal krishnan
saigop at gmail.com
Fri Oct 3 10:06:23 PDT 2008
Hi,
By giving event channel_answer in telnet console I get lots of variables,
I am attaching it as a text file with this email. And my query is for
example If I want to pickup only Answer state from that output, is that
possible?
On Fri, Oct 3, 2008 at 6:53 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> like i said, do events all
> then watch them all on telnet for a sample call and decide for yourself
> which ones you need.
> there is a CHANNEL_ANSWER for instance that you might find interesting ;)
>
>
>
> On Fri, Oct 3, 2008 at 2:15 AM, Gopal krishnan <saigop at gmail.com> wrote:
>
>> Hi,
>>
>> I tried as per your information, from telnet I do get the following
>> events,
>>
>> <etc>
>>
>> Channel-State: CS_CONSUME_MEDIA
>> Channel-State-Number: 7
>> Channel-Name: sofia/internal/9841799874%40172.20.176.254
>> Unique-ID: 347243a6-ae10-4e8a-b7b2-8af2005fb925
>> Call-Direction: outbound
>> Answer-State: ringing
>> Event-Name: CHANNEL_STATE
>> Core-UUID: ab0ba8d1-1aa4-4f12-b3c0-7d43acb87a8c
>> FreeSWITCH-Hostname: dialer.optimus.co.in
>> FreeSWITCH-IPv4: 172.20.176.31
>> FreeSWITCH-IPv6: %3A%3A1
>> Event-Date-Local: 2008-10-03%2012%3A34%3A21
>> Event-Date-GMT: Fri,%2003%20Oct%202008%2007%3A04%3A21%20GMT
>> Event-Date-timestamp: 1223017461633513
>> Event-Calling-File: switch_channel.c
>> Event-Calling-Function: switch_channel_perform_set_running_state
>> Event-Calling-Line-Number: 827
>>
>> <etc>
>>
>> but I am trying from a php program to get the answer state, when I try to
>> give the command events channel_state I get the message as
>>
>> events channel_state
>>
>> Content-Type: command/reply
>> Reply-Text: +OK event listener enabled plain
>>
>> after I dialed I get the same message.
>>
>> I need to get only the answering state, is there any parameter that I need
>> to specify to get the answering state alone in the PHP screen?
>>
>> thanks
>>
>>
>> On Thu, Oct 2, 2008 at 8:02 PM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>>> no, you want to subscribe to the events
>>>
>>> telnet to event socket manually and type
>>>
>>> events all<cr><cr>
>>>
>>> then make a call and look at all the events and decide which ones you
>>> want so you can be more
>>> specific.
>>>
>>> events channel_state channel_destroy <etc>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Oct 2, 2008 at 8:38 AM, Gopal krishnan <saigop at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to execute sendevent channel_state in a php program via
>>>> socket, but I didn't get any output in the GUI.
>>>>
>>>> On Tue, Sep 30, 2008 at 7:32 PM, Anthony Minessale <
>>>> anthony.minessale at gmail.com> wrote:
>>>>
>>>>> if you are using event_socket you can subscribe to the channel_state
>>>>> event and it will tell you
>>>>> every time the channel changes states.
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Sep 30, 2008 at 1:29 AM, Baskar <yudha2008 at gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I don't understand.could you please tell me in brief? . I want to
>>>>>> check my channel status whether it is ringing or answer or hangup.
>>>>>>
>>>>>> On Mon, Sep 29, 2008 at 11:38 PM, B Karthik <carthick84 at gmail.com>wrote:
>>>>>>
>>>>>>> Set hangup_after_bridge variable to false and run the info command
>>>>>>> after bridge, you will see a lot of variables with the channel's current
>>>>>>> status. You could later reference those variables directly in your xml /
>>>>>>> script dialplan.
>>>>>>>
>>>>>>>
>>>>>>> ---------- Forwarded message ----------
>>>>>>>> From: "Gopal krishnan" <saigop at gmail.com>
>>>>>>>> To: freeswitch-users at lists.freeswitch.org
>>>>>>>> Date: Mon, 29 Sep 2008 15:40:59 +0530
>>>>>>>> Subject: [Freeswitch-users] get channel status
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Is there any possibilities that I can check my channel status
>>>>>>>> whether it is ringing or answer or hangup. I am trying to fetch thru uuid
>>>>>>>> but couldn't able to do that.
>>>>>>>>
>>>>>>>> any suggestion would be helpful. thanks
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thank you with regards,
>>>>>>>> Gopal,
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Warm Regards,
>>>>>> N.Baskar
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Anthony Minessale II
>>>>>
>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>> ClueCon http://www.cluecon.com/
>>>>>
>>>>> AIM: anthm
>>>>> MSN:anthony_minessale at hotmail.com<MSN%3Aanthony_minessale at hotmail.com>
>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>>>>> IRC: irc.freenode.net #freeswitch
>>>>>
>>>>> FreeSWITCH Developer Conference
>>>>> sip:888 at conference.freeswitch.org<sip%3A888 at conference.freeswitch.org>
>>>>> iax:guest at conference.freeswitch.org/888
>>>>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>>>>> pstn:213-799-1400
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thank you with regards,
>>>> Gopal,
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Anthony Minessale II
>>>
>>> FreeSWITCH http://www.freeswitch.org/
>>> ClueCon http://www.cluecon.com/
>>>
>>> AIM: anthm
>>> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
>>> iax:guest at conference.freeswitch.org/888
>>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>>> pstn:213-799-1400
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> Thank you with regards,
>> Gopal,
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
>
> _______________________________________________
> 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
>
>
--
Thank you with regards,
Gopal,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081003/6543af30/attachment-0002.html
More information about the FreeSWITCH-users
mailing list