Hi Alex
First of all, thanks for your awesome work. I'm being trying to use
the ESL with PHP but found several incompatibilities... Then tried the
Event Socket direct with a PHP socket. But the raw messages where
driving me crazy. So I found liverpie! =)
Well, my first impression was really surprised. The entire
communication layer problem was solved, but now, a few days using, I
found some problems.
Could you help me fixing of find a solution to them? The first 1 is
solved...
1) In some situations, i had to wait for 2 commands. For instance,
"conference". I wanted to know when the user entered the conference
and them, when the user finished the conference. So, CHANNEL_EXECUTE
and CHANNEL_EXECUTE_COMPLETED are the possible responses.
For this scenario, i found a simple solution. Lines changed:
65: if (@params[@expected_key] == @expected_value) or
(@params[@expected_key] == @expected_value2)
71: @expected_key, @expected_value, @expected_value2 =
yaml['expected_key'], yaml['expected_value'], yaml['expected_value2']
2) When user API functions, like, get the number of users in some
conference room (), the answer is not standardized like others. See
below:
"Content-Type: api/response
Content-Length: 119
5;sofia/internal/
10...@192.168.56.102;efc0e468-9e35-11e1-
a8fd-7d13150cac9e;1000;1000;hear|speak|talking|floor;0;0;0;300
"
The finish of the command is not \n\n, so liverpie receive the content-
length and keep waiting for the next command. When it receives, the
response gives error.
3) For some scenarios like the previous one, liverpie just dies. For a
telephony server, this is unaceptable. How to proper implement some
try-catch on the software?
Thanks in advance and congratulations for this great software.