[asterisk-users] "automatic call bridging when destination is available" feature

Vieri rentorbuy at yahoo.com
Sat Mar 14 10:06:26 CDT 2009



--- On Sat, 3/14/09, Olivier <oza-4h07 at myamail.com> wrote:

> > If I understand correctly, you're suggesting to
> implement the h priority
> > instructions (or a "hangup macro") to:
> >
> > 1) run a deadagi or a system() script to see if
> someone has left a request
> > (eg. in astdb) to call-back-when-avail
> >
> > 2) create a call file with, say:
> > Channel: SIP/102
> > and
> > Context: internal
> > Extension: 101
> > Priority: 1
> >
> > Is that what you would do, more or less?
> 
> 
> yes, that's exactly what I meant.
> As I'm not too fluent in AEL scripting, I'm afraid
> I can't easily be more
> helpful but you eactly got what I suggested.
> 
> What would think of that ?
> Would it fit for you ?

Thanks for the feedback but there are some things that would not work right:

1) when 102 hangs up, the call file would try to reach 101 but if 101 is busy, it may retry later (MaxRetries in call file) and finally reach it and send 101 to the context where it would then Dial(SIP/102). However, inthe meantime, 102 could have received or made another call and be busy again (and that would "irritate" the 101 user).

2) 102 may not necessarily be "on the phone" when 101 first tries to contact. The 102 extension could simply be off-line/Unavailable/unregistered, so the 102 user would never "hang up" (thus the hangup macro would never be executed).

Anyway, I was hoping Asterisk already had a trick up its sleeve for this ;-) but I guess I'll have to implement a custom event listener and try to bridge extensions.

Thanks,

Vieri



      



More information about the asterisk-users mailing list