Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] get channel status

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
saigop at gmail.com
Guest





PostPosted: Mon Sep 29, 2008 5:14 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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,
Back to top
carthick84 at gmail.com
Guest





PostPosted: Mon Sep 29, 2008 1:12 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

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.
Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,


Back to top
saigop at gmail.com
Guest





PostPosted: Tue Sep 30, 2008 3:48 am    Post subject: [Freeswitch-users] get channel status Reply with quote

Hi,

Without the info itself I am able to get the Answer state and lots of varialbles, is it possible that I can get some variables via api?

On Mon, Sep 29, 2008 at 11:38 PM, B Karthik <carthick84@gmail.com (carthick84@gmail.com)> wrote:
Quote:
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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
yudha2008 at gmail.com
Guest





PostPosted: Tue Sep 30, 2008 8:56 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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@gmail.com (carthick84@gmail.com)> wrote:
Quote:
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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Warm Regards,
N.Baskar
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Sep 30, 2008 9:16 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
saigop at gmail.com
Guest





PostPosted: Thu Oct 02, 2008 8:40 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 02, 2008 9:48 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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 (saigop@gmail.com)> wrote:
Quote:
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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
saigop at gmail.com
Guest





PostPosted: Fri Oct 03, 2008 2:17 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (saigop@gmail.com)> wrote:
Quote:
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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Oct 03, 2008 8:25 am    Post subject: [Freeswitch-users] get channel status Reply with quote

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 Wink


On Fri, Oct 3, 2008 at 2:15 AM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (saigop@gmail.com)> wrote:
Quote:
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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
saigop at gmail.com
Guest





PostPosted: Fri Oct 03, 2008 12:13 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 Wink



On Fri, Oct 3, 2008 at 2:15 AM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (saigop@gmail.com)> wrote:
Quote:
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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
saigop at gmail.com
Guest





PostPosted: Fri Oct 03, 2008 12:15 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

File attached

On Fri, Oct 3, 2008 at 10:36 PM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 Wink



On Fri, Oct 3, 2008 at 2:15 AM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (saigop@gmail.com)> wrote:
Quote:
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 (anthony.minessale@gmail.com)> wrote:
Quote:
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 (yudha2008@gmail.com)> wrote:
Quote:
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@gmail.com (carthick84@gmail.com)> wrote:

Quote:

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.

Quote:
---------- Forwarded message ----------
From: "Gopal krishnan" <saigop@gmail.com (saigop@gmail.com)>
To: freeswitch-users@lists.freeswitch.org (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,










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Warm Regards,
N.Baskar



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,








--
Thank you with regards,
Gopal,
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Oct 03, 2008 12:25 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

Yes if you parse the event using something like perl, ruby, php and get it...

/b

On Oct 3, 2008, at 12:10 PM, Gopal krishnan wrote:
Quote:
File attached

On Fri, Oct 3, 2008 at 10:36 PM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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?




Back to top
saigop at gmail.com
Guest





PostPosted: Fri Oct 03, 2008 12:41 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

Hi,

I am trying to get thru a PHP file but i get the output as ,


authMessage sent, got response:
Content-Type: command/reply Reply-Text: +OK accepted
command is api originate sofia/default/9894929942@172.20.176.254 (9894929942@172.20.176.254) 1001 command sent, got response:
Content-Type: api/response Content-Length: 41
command sent, got response:
+OK c5df1f4c-02ae-4353-b709-ad791ca332a1
command is bgapi originate sofia/default/1001@172.20.176.254 (1001@172.20.176.254) 1001 &park command sent, got response:
Content-Type: command/reply Reply-Text: +OK Job-UUID: d5270c3d-872e-46b6-b556-74bc373b1fe4 Job-UUID: d5270c3d-872e-46b6-b556-74bc373b1fe4
command is event channel_answer command sent, got response:
Content-Type: command/reply Reply-Text: +OK event listener enabled plain


So I need to run the event channel_answer as a separate program with autorefreshing?

On Fri, Oct 3, 2008 at 10:49 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Yes if you parse the event using something like perl, ruby, php and get it...

/b

On Oct 3, 2008, at 12:10 PM, Gopal krishnan wrote:

Quote:
File attached

On Fri, Oct 3, 2008 at 10:36 PM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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?











_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Fri Oct 03, 2008 12:58 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

To add to Brian’s thought…

The “answer event” that you receive does have lots of information. You are interested in only one piece of that information, no? You’ll need to parse the reply and grab only the line that contains “Answer-State: xxxxx”

Did you say that you are using PHP for this? I’m 99.9% sure that PHP can easily parse something like this. You could probably even use a regex sledgehammer parse by doing something like this (Perl5 regex syntax):

m/Answer-State: (\w+)/m ç The ‘m’ modifier is needed because of embedded newline chars in CHANNEL_ANSWER event

$1 will contain ‘answered’ or whatever the answer state value is.

Hope this helps.
-MC


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, October 03, 2008 10:20 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] get channel status


Yes if you parse the event using something like perl, ruby, php and get it...


/b


On Oct 3, 2008, at 12:10 PM, Gopal krishnan wrote:




File attached
On Fri, Oct 3, 2008 at 10:36 PM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
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?
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Fri Oct 03, 2008 1:11 pm    Post subject: [Freeswitch-users] get channel status Reply with quote

You need to handle each response from the server, no? Can you post your PHP code here?
In Perl I would do something like this.

# $data contains CHANNEL_ANSWER event stuff
if ( $data =~ m/Answered-State: (\w+)/m ) {
my $state = $1;
print “Channel state is $state\n”;
if ( $state eq ‘answered’ ) {
# do whatever U need to do on an answer event
}
}

-MC
P.S. – I tested the regex with the data file you posted and it worked perfectly for me in Perl 5. Since PHP is a Perl derivative I think you should be able to do this without too much hassle as long as you have a means of reading the socket data reliably and acting accordingly.


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Gopal krishnan
Sent: Friday, October 03, 2008 10:33 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] get channel status


Hi,


I am trying to get thru a PHP file but i get the output as ,



authMessage sent, got response:

Content-Type: command/reply Reply-Text: +OK accepted

command is api originate sofia/default/9894929942@172.20.176.254 (9894929942@172.20.176.254) 1001 command sent, got response:

Content-Type: api/response Content-Length: 41

command sent, got response:

+OK c5df1f4c-02ae-4353-b709-ad791ca332a1

command is bgapi originate sofia/default/1001@172.20.176.254 (1001@172.20.176.254) 1001 &park command sent, got response:

Content-Type: command/reply Reply-Text: +OK Job-UUID: d5270c3d-872e-46b6-b556-74bc373b1fe4 Job-UUID: d5270c3d-872e-46b6-b556-74bc373b1fe4

command is event channel_answer command sent, got response:

Content-Type: command/reply Reply-Text: +OK event listener enabled plain



So I need to run the event channel_answer as a separate program with autorefreshing?


On Fri, Oct 3, 2008 at 10:49 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Yes if you parse the event using something like perl, ruby, php and get it...


/b


On Oct 3, 2008, at 12:10 PM, Gopal krishnan wrote:




File attached
On Fri, Oct 3, 2008 at 10:36 PM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
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?











_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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,
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services