Is it possible to set a variable for a channel that follows the life of the call? I am doing a SetVar(TRANSFER_CONTEXT=from-sip) when a call comes out of the queue, but if the agent tries to transfer the call, that variable is empty. Do I have to set the var before it goes into the queue? Doing a show channel Sip/Ext does not show the variable, but I am not sure if it should show them either... -- respectfully, Joseph ==============---------------------= ********** =
On Tue, 2004-11-16 at 16:12, Joseph wrote:> Is it possible to set a variable for a channel that follows the life of > the call? > > I am doing a SetVar(TRANSFER_CONTEXT=from-sip) when a call comes out of > the queue, but if the agent tries to transfer the call, that variable is > empty. > > Do I have to set the var before it goes into the queue? > > Doing a show channel Sip/Ext does not show the variable, but I am not > sure if it should show them either...Problem solved. For whatever it is worth, SetVar does not work in the dialplan if the call attempt is being made by the Queue. The answer to this problem was to do the SetVar *before* the call was placed in the queue. Example: [que] exten => que,1,NoOp(Queue Called by ${CALLERIDNUM}) exten => que,2,SetVar(TRANSFER_CONTEXT=context_to_use_when_agent_transfers_calls) exten => que,3,Playback(CallMayBeMonitored) exten => que,4,Queue(que,t) exten => que,5,Voicemail(u100) exten => que,105,Voicemail(u100) I had to have one context to send the call to the agents, but if an agent wants to transfer the call to a normal user, I had to have the above context. Thoughts ideas... -- respectfully, Joseph ==============---------------------= ********** =
I have a call screening system setup, caller calls in runs a macro and sets a far to track the recording that was taken of the callers name... then the callee runs a macro also that plays him that recording (pulled from that var that was set).... This works fine until i use a queue in the middle of it all... it appears that with queues that the file name stored in a var called SCREEN_FILE is lost once the caller is taken out of the queue.. Is their a uniq ID or somthing thats set to each call that i can use as the file name so i can always play back that file that was recorded or is their a way to to not loose the value of SCREEN_FILE once the caller is put into the queue? I though about setting SCREEN_FILE as global but i think that will cause problems with multiple calls and SCREEN_FILE being overwritten by other callers and the screening macro running... If each call had a uniq session id i could easily just use that.... -- ~Shaun
Shaun wrote:> I have a call screening system setup, caller calls in runs a macro and sets > a far to track the recording that was taken of the callers name... then the > callee runs a macro also that plays him that recording (pulled from that var > that was set).... This works fine until i use a queue in the middle of it > all... it appears that with queues that the file name stored in a var called > SCREEN_FILE is lost once the caller is taken out of the queue.. Is their a > uniq ID or somthing thats set to each call that i can use as the file name > so i can always play back that file that was recorded or is their a way to > to not loose the value of SCREEN_FILE once the caller is put into the queue? > I though about setting SCREEN_FILE as global but i think that will cause > problems with multiple calls and SCREEN_FILE being overwritten by other > callers and the screening macro running... > > If each call had a uniq session id i could easily just use that.... > >http://www.voip-info.org/wiki/view/Asterisk+variables See section about variable inheritance. Regards Jon -- Jon Farmer Telford, Shropshire
Each call has a unique callid - I used that for a dialplan a short while ago, to do a very similar job to what you are doing... Paul Hales Technical Manager AsteriskIT ----- Original Message ----- From: "Shaun" <mailinglists@unix-scripts.com> To: <asterisk-users@lists.digium.com> Sent: Sunday, April 16, 2006 5:06 PM Subject: [Asterisk-Users] Variables> I have a call screening system setup, caller calls in runs a macro andsets> a far to track the recording that was taken of the callers name... thenthe> callee runs a macro also that plays him that recording (pulled from thatvar> that was set).... This works fine until i use a queue in the middle of it > all... it appears that with queues that the file name stored in a varcalled> SCREEN_FILE is lost once the caller is taken out of the queue.. Is theira> uniq ID or somthing thats set to each call that i can use as the file name > so i can always play back that file that was recorded or is their a way to > to not loose the value of SCREEN_FILE once the caller is put into thequeue?> I though about setting SCREEN_FILE as global but i think that will cause > problems with multiple calls and SCREEN_FILE being overwritten by other > callers and the screening macro running... > > If each call had a uniq session id i could easily just use that.... > > > -- > > ~Shaun > > > > _______________________________________________ > --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 >
How can i get this uniq call session id? -- ~Shaun <pdhales@optusnet.com.au> wrote in message news:018601c66277$667c4bd0$6401a8c0@adairs.com.au...> Each call has a unique callid - I used that for a dialplan a short while > ago, to do a very similar job to what you are doing... > > Paul Hales > Technical Manager > AsteriskIT > > ----- Original Message ----- > From: "Shaun" <mailinglists@unix-scripts.com> > To: <asterisk-users@lists.digium.com> > Sent: Sunday, April 16, 2006 5:06 PM > Subject: [Asterisk-Users] Variables > > >> I have a call screening system setup, caller calls in runs a macro and > sets >> a far to track the recording that was taken of the callers name... then > the >> callee runs a macro also that plays him that recording (pulled from that > var >> that was set).... This works fine until i use a queue in the middle of it >> all... it appears that with queues that the file name stored in a var > called >> SCREEN_FILE is lost once the caller is taken out of the queue.. Is their > a >> uniq ID or somthing thats set to each call that i can use as the file >> name >> so i can always play back that file that was recorded or is their a way >> to >> to not loose the value of SCREEN_FILE once the caller is put into the > queue? >> I though about setting SCREEN_FILE as global but i think that will cause >> problems with multiple calls and SCREEN_FILE being overwritten by other >> callers and the screening macro running... >> >> If each call had a uniq session id i could easily just use that.... >> >> >> -- >> >> ~Shaun >> >> >> >> _______________________________________________ >> --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 >
*${UNIQUEID}*: Current call unique identifier - From the Asterisk Variables webpage (http://www.voip-info.org/wiki/view/Asterisk+variables) regards, Paul Hales -- Paul Hales Technical Manager Asterisk IT mob: 0434 225 491 Shaun wrote:>How can i get this uniq call session id? > > >
Err, you know i looked through that page before i posted, not sure how i missed that one, thanks -- ~Shaun "Paul Hales" <pdhales@optusnet.com.au> wrote in message news:44459902.5050009@optusnet.com.au...> > *${UNIQUEID}*: Current call unique identifier > - From the Asterisk Variables webpage > (http://www.voip-info.org/wiki/view/Asterisk+variables) > > regards, > > Paul Hales > > > -- > Paul Hales > Technical Manager > Asterisk IT > mob: 0434 225 491 > > > > > Shaun wrote: > >>How can i get this uniq call session id? >> >> > > _______________________________________________ > --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 >
Bahh, uniq id wont work for my situation because the id for the caller and the id for the callee are diffrent. Makes sense, they are too diffrent calls that are going to be bridged.... -- ~Shaun "Shaun" <mailinglists@unix-scripts.com> wrote in message news:e24p9q$i6e$1@sea.gmane.org...> Err, you know i looked through that page before i posted, not sure how i > missed that one, thanks > > -- > > ~Shaun > > "Paul Hales" <pdhales@optusnet.com.au> wrote in message > news:44459902.5050009@optusnet.com.au... >> >> *${UNIQUEID}*: Current call unique identifier >> - From the Asterisk Variables webpage >> (http://www.voip-info.org/wiki/view/Asterisk+variables) >> >> regards, >> >> Paul Hales >> >> >> -- >> Paul Hales >> Technical Manager >> Asterisk IT >> mob: 0434 225 491 >> >> >> >> >> Shaun wrote: >> >>>How can i get this uniq call session id? >>> >>> >> >> _______________________________________________ >> --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 >
Inheritance solved the problem.. two understores infront of the var... set(__SCREEN_FILE=/blah) thanks. -- ~Shaun "Shaun" <mailinglists@unix-scripts.com> wrote in message news:e24pk0$j69$1@sea.gmane.org...> Bahh, uniq id wont work for my situation because the id for the caller and > the id for the callee are diffrent. Makes sense, they are too diffrent > calls that are going to be bridged.... > > -- > > ~Shaun > "Shaun" <mailinglists@unix-scripts.com> wrote in message > news:e24p9q$i6e$1@sea.gmane.org... >> Err, you know i looked through that page before i posted, not sure how i >> missed that one, thanks >> >> -- >> >> ~Shaun >> >> "Paul Hales" <pdhales@optusnet.com.au> wrote in message >> news:44459902.5050009@optusnet.com.au... >>> >>> *${UNIQUEID}*: Current call unique identifier >>> - From the Asterisk Variables webpage >>> (http://www.voip-info.org/wiki/view/Asterisk+variables) >>> >>> regards, >>> >>> Paul Hales >>> >>> >>> -- >>> Paul Hales >>> Technical Manager >>> Asterisk IT >>> mob: 0434 225 491 >>> >>> >>> >>> >>> Shaun wrote: >>> >>>>How can i get this uniq call session id? >>>> >>>> >>> >>> _______________________________________________ >>> --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 >> > > > > _______________________________________________ > --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 >