<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">You need to do it by manager
interface<br>
<br>
</font></font>
<div class="moz-signature">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Signatures <a class="moz-txt-link-abbreviated" href="mailto:faisal@vopium.com">faisal@vopium.com</a></title>
<p style="font-family: Verdana;" class="MsoNormal"><small><small><small><small><small><small><small><small><span
style="font-size: 10pt;">Regards,<o:p></o:p></span></small></small></small></small></small></small></small></small></p>
<p style="font-family: Verdana;" class="MsoNormal"><small><small><small><small><small><small><small><small><span
style="font-size: 10pt;"><o:p></o:p>Faisal
Hanif<br>
</span></small></small></small></small></small></small></small></small><br>
</p>
</div>
On 7/26/2010 3:41 PM, Zarko Zivanovic wrote:
<blockquote cite="mid:019401cb2caf$0de065e0$29a131a0$@com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello everyone.<o:p></o:p></p>
<p class="MsoNormal">I need a quick help on how to capture who
answered the call
with agi.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is an example:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> -- Zap/32-1 is ringing<o:p></o:p></p>
<p class="MsoNormal"> -- Zap/33-1 is ringing<o:p></o:p></p>
<p class="MsoNormal"> -- Zap/34-1 is ringing<o:p></o:p></p>
<p class="MsoNormal"> -- Zap/35-1 is ringing<o:p></o:p></p>
<p class="MsoNormal"> -- SIP/operator1-e77f answered
Zap/23-1 <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So how can I capture this value and write
it to mysql?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I already have this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">
$my.query("UPDATE
call_log SET endtime = NOW() WHERE id = #{call_log_id}")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> And i needed to do something like:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">
$my.query("UPDATE
call_log SET endtime = NOW(),answeredby=
#{$agi.WHOANSWEREDTHEPHONE} WHERE id =
#{call_log_id}")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And in above example it would write
SIP/operator1-e77f into
answeredby.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is greatly appreciated!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5313 (20100726) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a moz-do-not-send="true" href="http://www.eset.com">http://www.eset.com</a><br>
</blockquote>
</body>
</html>