[Asterisk-Users] automatic callback when busy

Tamás Bondár tamas.bondar at freemail.hu
Mon Mar 27 11:01:12 MST 2006


OK, if I see well, this is the key idea here:

  exten => 9,1,DBPut(CallBack/${${UNIQUEID}}=${CALLERIDNUM})

that is, putting the caller and callee number into AstDB under the CallBack 
family.

Can you confirm that Asterisk takes care of the rest? If there is a record 
like this in the database will it dial both extensions and connect them? 
(Sorry, I've never heard such a feature.)

Thanks,
-Tamás


On Monday 27 March 2006 15.51, Mimmus wrote:
> I'm postponing this activity indefinitely but I collected some ideas.
> Try something similar to this recipe:
>
> First of all store dialed extension number as
>
> 	exten => _[2-8]XX,102,SetVar(${UNIQUEID}=${EXTEN})
> 	exten => _[2-8]XX,103,Goto(busyphone,s,1)
>
> then you can use 3 options as	press 3 for voice mail 6 for loop until free
> and 9 for registering for automatic call back:
>
> 	[busyphone]
>
> 	;busy message voicemail and queue
> 	exten => s,1,Answer()
> 	exten => s,2,Wait(2)
> 	exten => s,3,DigitTimeout(2)
> 	exten => s,4,ResponseTimeout(2)
> 	exten => s,5,Background(/etc/asterisk/voice/pabx/mtl-busy)
> 	exten => 3,1,VoiceMail(b${${UNIQUEID}})
> 	exten => 6,1,Dial(SIP/${${UNIQUEID}},20,trS(1080))
> 	exten => 6,2,Playback(/etc/asterisk/voice/pabx/mtl-unavailable)
> 	exten => 6,3,Goto(outside,s,1)
> 	exten => 6,102,Wait(5)
> 	exten => 6,103,Goto(6,1)
> 	exten => 9,1,DBPut(CallBack/${${UNIQUEID}}=${CALLERIDNUM})
> 	exten => 9,2,Hangup
> 	exten => i,1,Goto(outside,s,1)
> 	exten => t,1,Goto(outside,s,1)
> 	exten => T,1,Goto(outside,s,1)
>
> Don't blam eme if there is some error.
> --
> Mimmus
>
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> > Tamás Bondár
> > Sent: Monday, March 27, 2006 2:46 PM
> > To: asterisk-users at lists.digium.com
> > Subject: [Asterisk-Users] automatic callback when busy
> >
> > I'm trying to set up the following application:
> >
> > When a SIP extensions calls another one which is busy, the
> > caller would be able to ask for an automatic callback: when
> > the callee becomes available again, asterisk would ring both
> > the caller's and the callee's phones and connect them when
> > both parties answer.
> >
> > Has anybody done this before? (I tried to search the archs
> > but couldn't find this yet.) Any suggestions for the best solution?
> >
> > Thanks a lot in advance!
> >
> > Regards,
> > -Tamás
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list