Can you paste in your script so we can see what is going on?<br>-MC<br><br><div class="gmail_quote">On Fri, Jun 26, 2009 at 1:39 PM, Klaus Hochlehnert <span dir="ltr"><<a href="mailto:Mailings@kh-dev.de">Mailings@kh-dev.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" style="" lang="DE">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Ok, and how can I ask the hook to come with me?</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">If I understand this right...</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">When a call comes in the hook is set on the a-leg and it rings
on the b-leg.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">When I do an intercept I kill the ringing b-leg and the
interceptor is now the “new” b-leg, right?</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I would assume that the “old” a-leg still has the
hook on it or this wrong.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks, Klaus</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Brian
West<br>
<b>Sent:</b> Friday, June 26, 2009 10:28 PM<div class="im"><br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] hangup hook after intercept doesn't get
triggered...</div></span></p>
</div>
</div>
<p> </p>
<p>well in your case I suspect your intercepting the leg of the
call without the hook on it.</p><div><div></div><div class="h5">
<div>
<p> </p>
</div>
<div>
<p>/b</p>
</div>
<div>
<p> </p>
<div>
<div>
<p>On Jun 26, 2009, at 3:22 PM, Klaus Hochlehnert wrote:</p>
</div>
<p><br>
<br>
</p>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Actually one of my first actions in the script is</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> $session->setHangupHook('on_hangup');</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">When a call comes in the hook is set and working.</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">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.</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">That’s what I’ve currently done.</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">How can I set up the hook for the “new” bridge?</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Or is there a possibility to set a global hook?</span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="color: black;"></span></p>
</div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks, Klaus</span><span style="color: black;"></span></p>
</div>
</div>
<p> </p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>