It sounds like the patch got applied wrong or against another version of
Manager.pm...

Try getting this instead:  http://fredrik.liljegren.org/Manager.pm

I tried manager-test.pl and I just get a connection refused on
duff:5038, but my own program works well with my changed Manager.pm and
I use it on our production server...

I use it to monitor QueueMemberPaused event, and if that is an
auto-pause from a queue-call, I check if the member got paused due to
not picking up or if the interface is in use (since autopause acts even
on busy, for some strange reason...).  If the interface was in use, I
turn of pause again.  If it was a lazy queue member, I pause him on all
queues and turn on the paused-lamp on his phone with a custom devstate.

You can see the main source here:
http://fredrik.liljegren.org/telephony_manager.pl  ..but it requires a
config and contains a lot of debugging output.  It's still rough, but
works well.  Started with an argument, it sends debug-output to STDOUT
and skips some action (to let me try things with the stable version
still running)...

/F


Alejandro Mejía Evertsz wrote:
> Fredrik:
> I applied the patch you sent, but now I'm unable to run manager-test.pl
> It complaints like this:
>
> # ./manager-test.pl
> Odd number of elements in hash assignment at
> ../lib/Asterisk/Manager.pm line 292, <GEN0> line 5.
> Use of uninitialized value in string eq at ../lib/Asterisk/Manager.pm
> line 296, <GEN0> line 5.
> Odd number of elements in hash assignment at
> ../lib/Asterisk/Manager.pm line 309, <GEN0> line 9.
> Use of uninitialized value in string ne at ../lib/Asterisk/Manager.pm
> line 316, <GEN0> line 9.
> Use of uninitialized value in string ne at ../lib/Asterisk/Manager.pm
> line 316, <GEN0> line 9.
> Authentication failed for user xxxxxxx
>
> Am I doing something wrong?

Reply via email to