<div>What exactly are tyou trying to achieve?<br></div><div>l.</div><div></div><div><br></div><div class="gmail_quote">2009/5/20 Kurian Thayil <span dir="ltr"><<a href="mailto:kurianmthayil@gmail.com">kurianmthayil@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span>Hi All,
<br>
<br>
I am trying to implement ACD using Asterisk 1.2.18 and I've chosen
AgentCallbackLogin for login purpose. One AGI is written which will
actually get executed when agent dials '1001' (say) from his SIP phone
and enters into the queue. Second AGI gets executed when the Dial
operation is performed. I see the agi_uniqueid obtained from both AGI
instances are different and I can't really find a way to relate the
pair. I need to perform some DB operations for agentlogin instance and
dial instance. Is there a variable that is common for both instance or
is there a way that I can pass variables across. My context and AGI's
are given below.
<br><br></span>[specqueuestat]
<br>
exten => _10XX,1,AGI(agi_agentlogin.sh|${EXTEN})
<br>
exten => _10XX,2,AgentCallbackLogin(${agentno}||${sip_id}@specqueuestat)
<br>
exten => _8XXX,1,AGI(agi_qdial.sh|${EXTEN}|${CALLERIDNUM})<br><br>--agi_agentlogin.sh<br><i>declare -a array
<br>
while read -e ARG && [ "$ARG" ] ; do
<br>
array=(` echo $ARG | sed -e 's/://'`)
<br>
echo ${array[0]} = ${array[1]} >>$LOG_FILE
<br>
export ${array[0]}=${array[1]}
<br>
done
<br>
echo "SET VARIABLE agentno $agentid"
<br>
echo "SET VARIABLE sip_id $sipid"<br><br></i><span>
Here $sipid and $agentid is obtained from the DB and that segment is not shown above.
<br><br>agi_qdial.sh<br></span><i>declare -a array
<br>
while read -e ARG && [ "$ARG" ] ; do
<br>
array=(` echo $ARG | sed -e 's/://'`)
<br>
echo ${array[0]} = ${array[1]} >>$LOG_FILE
<br>
export ${array[0]}=${array[1]}
<br>
done
<br>
echo "EXEC Dial SIP/$agi_extension 20 tTo"        <span>
<br><br></span></i><span>Any hint on this??
<br>
<br>
Regards,
<br>
<br>
Kurian Thayil.</span><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>
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></blockquote></div><br><div><br clear="all"></div><div><br></div><div>-- <br>
</div><div>Loway - home of QueueMetrics - <a href="http://queuemetrics.com">http://queuemetrics.com</a><br><br></div>