Actually one of my first actions in the script is
$session->setHangupHook('on_hangup');
When a call comes in the hook is set and working.
The second time the script is called when I try to intercept. As
it’s the same script there’s also the function setHangupHook called.
That’s what I’ve currently done.
How can I set up the hook for the “new” bridge?
Or is there a possibility to set a global hook?
Thanks, Klaus
From:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian
West
Sent: Friday, June 26, 2009 10:07 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] hangup hook after intercept doesn't get
triggered...
Depends what side of the call was the hangup hook on?
/b
On Jun 26, 2009, at 2:48 PM, Klaus Hochlehnert wrote:
Hi all,
I’m just writing a perl script as dialplan to learn how to
handle freeswitch.
Now I have the issue that my hangup hook won’t be triggered
after I intercepted a call.
A “normal” hangup triggers the function.
Does anybody have a hint how to get the hangup hook triggered?
Thanks, Klaus
______________