<div>Please, </div> <div> </div> <div>i think it is the right list i post this question.</div> <div> </div> <div>I wrote an AGI programme that dials extensions and after i read variables like "<STRONG>ANSWEREDTIME" "DIALSTATUS"</STRONG></div> <div>my problem is : if the callee hangup, i can capture the variables but if the caller hangup, it is impossible to get the variables. this is my code in perl</div> <div> </div><FONT size=1> <div>$callstart=localdate(time);</div> <div> </div></FONT> <div><FONT size=1>$AGI->set_callerid("$trunk{'cliname'}<$trunk{'cliname'}>");</FONT></div> <div><FONT size=1></FONT> </div> <div><FONT size=1>$dialstr = $trunk{'strcon'}.$phoneno.'@'.$trunk{'outboundname'}.'|30|L('.($maxmins * 60 * 1000) . ":60000)";</FONT></div> <div><FONT size=1></FONT> </div> <div><FONT size=1>$res = $AGI->exec("DIAL $dialstr");</FONT></div> <div><FONT size=1></FONT> </div> <div><FONT
size=1>$answeredtime = $AGI->get_variable("ANSWEREDTIME");</FONT></div> <div><FONT size=1></FONT> </div> <div><FONT size=1>$dialstatus = $AGI->get_variable("DIALSTATUS");</FONT></div> <div><FONT size=1></FONT> </div> <div><FONT size=1>Please, tell me what wrong</FONT></div> <div><FONT size=1>Thanks in advance!</FONT></div><p> 
<hr size="1">
Ne gardez plus qu'une seule adresse mail ! <a href="http://fr.rd.yahoo.com/mail/mail_taglines/trueswitch/*http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail