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.31FreeSWITCH-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@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@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@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@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.
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@gmail.com>
To: freeswitch-users@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,
--
Warm Regards,
N.Baskar
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@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@hotmail.comGTALK/JABBER/
PAYPAL:anthony.minessale@gmail.com
IRC:
irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.orgpstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@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@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@hotmail.comGTALK/JABBER/
PAYPAL:anthony.minessale@gmail.com
IRC:
irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.orgpstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@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,