[Asterisk-Users] Call Queue Question

Brian S. Adelson brian at voicenet.com
Wed Jan 12 08:59:51 MST 2005


Have you been able to get either app_valetparking.c or
app_supervaletparking.c running against the lastest CVS release?

-Brian

On Sun, 02 Jan 2005 at 21:48 Glenn Dalgliesh (asterisk at techhat.com) wrote:

> When I first started looking at a similar problem started out on the same
> path with app_queue but even having access to a friend of mine who actually
> help write some of the Queue code we decided it wasn't the right tool for
> the job. We approached this a little differently using valetparking and agi.
> This may not be exactly what you are looking for since my thoughts were
> around trying only 1 number with a required response to bridge but most
> likely it could be adapted.
> 
> app_valetparking: Alternative method for call parking (by bkw)
> 
> *-*-*-*-*-*-* "/etc/asterisk/extensions.conf" *-*-*-*-*-*-*-*-*-*
> [forwardnum]
> Exten => s,1,Read(ext|extension|4)
> Exten => s,2,Authenticate(/etc/asterisk/passwd${ext}.conf)
> Exten => s,3,Read(IAFORWARDNUM|telephone-number|10)
> Exten => s,4,SayDigits(${IAFORWARDNUM})
> Exten => s,5,Background(if-correct-press)
> Exten => s,6,Background(digits/1)
> Exten => s,7,Background(to-enter-a-diff-number)
> Exten => s,8,Background(press-2)
> Exten => 1,1,Playback(auth-thankyou)
> Exten => 1,2,DBput(iaforward/${ext}num=${IAFORWARDNUM})
> Exten => 1,3,Hangup
> Exten => 2,1,Goto(forwardnum|s|3)
> 
> [macro-iaforward]
> Exten => s,1,Wait(1)
> Exten => s,2,Playback(pls-hold-while-try)
> Exten => s,3,AGI(outconnect.agi|${ARG1})
> Exten => s,4,ValetParkCall(${PARKID}|mylot|35|iaforward|5|default)
> Exten => s,5,Voicemail(u${ARG1})                                ; If
> unavailable, send to voicemail w/ unavail announce
> Exten => s,6,Hangup
> 
> [acceptout]
> Exten => s,1,Wait(1)
> Exten => s,2,Answer
> Exten => s,3,DigitTimeout,5
> Exten => s,4,ResponseTimeout,10
> Exten => s,5,BackGround(doyouaccept)
> Exten => 1,1,ValetUnParkCall(${PARKID}|mylot)
> Exten => 2,1,Hangup
> Exten => i,1,Hangup
> Exten => t,1,Hangup
> 
> [default]
> Exten => 4107358515,1,SetVar(exten=5001)
> Exten => 4107358515,2,Macro(iaforward|${exten})
> 
> 
> *-*-*-*-*-*-* "/var/lib/asterisk/agi-bin/outconnect.agi" *-*-*-*-*-*-*-*-*-*
> #!/usr/bin/perl
> 
> use Asterisk::AGI;
> $AGI = new Asterisk::AGI;
> my %input = $AGI->ReadParse();
> 
> my $exten = $ARGV[0];
> my $calldir = "/var/spool/asterisk/outgoing";
> my $calldir1 = "/tmp";
> $extnum = $exten."num";
> $iaforwardnum = $AGI->database_get('iaforward',$extnum);
> $parkid = $AGI->database_get('VALETPARK','SEQ');
> $parkid = ($parkid > 9998) ? 1 : $parkid+1;
> $AGI->database_put('VALETPARK','SEQ', $parkid);
> 
> $AGI->set_variable("PARKID", $parkid);
> $callerid = $input{'callerid'};
> 
> open (CALL, ">$calldir/call.$$");
> 
>    print CALL qq{
> Channel: SIP/$iaforwardnum\@voxbox1
> MaxRetries: 0
> Callerid: 999$callerid
> 
> Context: acceptout
> Extension: s
> Priority: 1
> SetVar: PARKID=$parkid
> };
> close();
> 
> exit(0);
> 
> ----- Original Message ----- 
> From: "Michael Wareman" <mwareman at gmail.com>
> To: <asterisk-users at lists.digium.com>
> Sent: Sunday, January 02, 2005 9:30 PM
> Subject: [Asterisk-Users] Call Queue Question
> 
> 
> > Hi,
> >
> > I've been fussing with this for a while now - and cannot seem to get
> > it to work correctly - or rather as I desire it..
> >
> > I'm trying to implement a 'find-me' feature in my voicemail.
> > Basically - pressing 1 at the voicemail puts the caller into a queue.
> > The members of the queue are my cell phone and my work DID..  I need
> > the queue to call both numbers at the same time and wait for a #
> > confirmation before bridging the call. This will be repeated with 1..
> > 2 etc for different family members....
> >
> > If I use AddQueueMember to add the members to the queue - or define
> > the members directly in queues.conf (like member =>
> > IAX2/username at NuFone/12125551212) - I do not get the ability to use #
> > to confirm before the call is bridged. Every other feature works
> > perfectly though. It seems the only way I can get the # is to use
> > AgentCallbackLogin.
> >
> > Problem is - I don't want anyone to have to do anything to log in. The
> > agents should always be on...  Can anyone offer any ideas on keeping
> > an agent logged in thru AgentCallbackLogin without the user having to
> > do anything - that is survivable thru reloads etc.. or any other
> > workarounds..
> >
> > Many thanks,
> >
> > Michael.
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list