Conference Background Event

General discussions about Asterisk.

Moderators: Moderator, Support

Conference Background Event

Postby tgwaste » Mon Jan 25, 2016 10:37 pm

Hello,
While a user is in a conference I would like something to happen in the background on their channel every few seconds. A way to interrupt their conference. Is this possible? If so can someone point me in the right direction?

Many Thanks!
-tgwaste
tgwaste
Newsterisk
 
Posts: 26
Joined: Sat May 12, 2012 1:32 am

Re: Conference Background Event

Postby ambiorixg12 » Mon Jan 25, 2016 11:34 pm

What exactly do you mean with
A way to interrupt their conference
, dont know if you just want to kick users from a conference take a look to the command " confbridge kick " or AMI action
https://wiki.asterisk.org/wiki/display/ ... bridgeKick
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic

Re: Conference Background Event

Postby tgwaste » Mon Jan 25, 2016 11:45 pm

I want the user to be able to update certain status related things every so often. Its hard to explain. While they're within my AGI script this is easy to do but once they are in a conference I lose a lot of control.

IE: The user has some timer set. Every 5 seconds (or so) I want to check that timer and even break them from the conference if needed.
-tgwaste
tgwaste
Newsterisk
 
Posts: 26
Joined: Sat May 12, 2012 1:32 am

Re: Conference Background Event

Postby ambiorixg12 » Tue Jan 26, 2016 12:23 am

This seems to be something more related to a custom AGI that an Asterisk feature. You will need some kind of script running on background permanently and counting the user's time in the conference and after the desired time is reached do a logical decision based on your needs.
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic

Re: Conference Background Event

Postby tgwaste » Tue Jan 26, 2016 11:33 am

Thats the problem. Running a timer in the background is easy and works but when the channel is on the conference the script has no affect. I am not able to do any $AGI -> calls.
-tgwaste
tgwaste
Newsterisk
 
Posts: 26
Joined: Sat May 12, 2012 1:32 am

Re: Conference Background Event

Postby tgwaste » Tue Jan 26, 2016 12:57 pm

I think I've come up with a solution which is to use cli to set global and other such things.

I wish -q did was it was supposed to do :/

asterisk -qx "dial plan set global var value"

still shows output.
-tgwaste
tgwaste
Newsterisk
 
Posts: 26
Joined: Sat May 12, 2012 1:32 am


Return to Asterisk General

Who is online

Users browsing this forum: Google [Bot] and 9 guests