Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] hangup hook after intercept doesn't get triggered...


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Mailings at kh-dev.de
Guest





PostPosted: Fri Jun 26, 2009 2:51 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

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
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 3:09 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

Depends what side of the call was the hangup hook on?

/b

On Jun 26, 2009, at 2:48 PM, Klaus Hochlehnert wrote:
Quote:
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

______________
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 3:29 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

well in your case I suspect your intercepting the leg of the call without the hook on it.

/b

On Jun 26, 2009, at 3:22 PM, Klaus Hochlehnert wrote:
Quote:
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 4:00 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

Can you paste in your script so we can see what is going on?
-MC

On Fri, Jun 26, 2009 at 1:39 PM, Klaus Hochlehnert <Mailings@kh-dev.de (Mailings@kh-dev.de)> wrote:
Quote:

Ok, and how can I ask the hook to come with me?
 
If I understand this right...
When a call comes in the hook is set on the a-leg and it rings on the b-leg.
When I do an intercept I kill the ringing b-leg and the interceptor is now the “new” b-leg, right?
I would assume that the “old” a-leg still has the hook on it or this wrong.
 
Thanks, Klaus
 
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: Friday, June 26, 2009 10:28 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] hangup hook after intercept doesn't get triggered...



 
well in your case I suspect your intercepting the leg of the call without the hook on it.

 

/b

 
On Jun 26, 2009, at 3:22 PM, Klaus Hochlehnert wrote:




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


 





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 6:28 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

Please open the jira and attach all this and the xml dialplan to execute it .. also the schema for the db would be helpful also.

Thanks,
/b

On Jun 26, 2009, at 6:16 PM, Klaus Hochlehnert wrote:
Quote:
Brian told me to open a jira, what I did now.

Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 26, 2009 6:41 pm    Post subject: [Freeswitch-users] hangup hook after intercept doesn't get t Reply with quote

Its more FSCORE but i'll move it into the right place Wink

/b

On Jun 26, 2009, at 6:36 PM, Klaus Hochlehnert wrote:
Quote:
I used the Project „FS Scripts“. Hope that’s ok.

From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: Saturday, June 27, 2009 1:28 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] hangup hook after intercept doesn't get triggered...



Please open the jira and attach all this and the xml dialplan to execute it .. also the schema for the db would be helpful also.


Thanks,

/b


On Jun 26, 2009, at 6:16 PM, Klaus Hochlehnert wrote:




Brian told me to open a jira, what I did now.







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services