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:
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> 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?