I didn't think of Benny's solution. That would be the way to go as it is a core asterisk command.<br><br><div class="gmail_quote">On Tue, Sep 29, 2009 at 6:47 PM, Vieri <span dir="ltr"><<a href="mailto:rentorbuy@yahoo.com">rentorbuy@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
--- On Tue, 9/29/09, Matthew Edmondson <<a href="mailto:maxnode@gmail.com">maxnode@gmail.com</a>> wrote:<br>
<br>
> If you redirect the channel, the<br>
> person they're talking to is likely<br>
> to be dropped.<br>
<br>
</div>Thanks for pointing that out. So it sounds like RedirectChannel() is similar to Transfer().<br>
<div class="im"><br>
> The only way I know of doing this is with a conference<br>
> bridge like<br>
> meetme. You would have to have both parties in the<br>
> conference and then<br>
> call the 3rd party (your msg) into it.<br>
<br>
</div>This may be trivial but how can I "force" both parties to enter a conference (eg. meetme)?<br>
<br>
Also, once they're in the conference and I've "called" a third party playing a sound file, how can I "force" them to exit the conference and revert to their bridged call as before the conference? Or, if I have to keep them within the conference/meetme, then I'd have to make sure that the "3rd party" can :<br>
1- play a msg such as "on the phone too long; consider hanging up"<br>
2- wait N minutes<br>
3- play "you have Z minutes of conversation left. Call will be hung up automatically"<br>
4- hang up both parties in conference<br>
<br>
Does this make sense?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Vieri<br>
</font><div><div></div><div class="h5"><br>
> On Tue, Sep 29, 2009 at 6:05 PM, Vieri <<a href="mailto:rentorbuy@yahoo.com">rentorbuy@yahoo.com</a>><br>
> wrote:<br>
> > Hi,<br>
> ><br>
> > I'm wondering if someone can share their thoughts on<br>
> how to implement a system that periodically checks active<br>
> channels which have been up for more than X minutes and<br>
> plays/injects a sound file. The idea is to simply warn users<br>
> that they've been on the phone for quite a while and maybe<br>
> they should consider hanging up. If the call stays up for<br>
> more than Y minutes, it is dropped automatically<br>
> (softhangup).<br>
> ><br>
> > What's the simplest approach to playing a sound file<br>
> within an active channel?<br>
> ><br>
> > I thought of writing a cron agi script that scans<br>
> active channels, retrieves their duration and if it's > X<br>
> minutes then "RedirectChannel" to a context which executes a<br>
> Playback(file); if it's > Y minutes then<br>
> "RedirectChannel" to a context which executes both a<br>
> Playback("forcing hang up now...") and HangUp.<br>
> ><br>
> > Any thoughts?<br>
> ><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>