<!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">Hi,<br>
<br>
If you need to get it in variable you can read it from
dialstatus after dial and channel-state while ringing.<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></span></small></small></small></small></small></small></small></small><br>
</p>
</div>
On 7/26/2010 4:14 PM, Zarko Zivanovic wrote:
<blockquote cite="mid:01a501cb2cb3$aacb2800$00617800$@com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<title>Signatures <a class="moz-txt-link-abbreviated" href="mailto:faisal@vopium.com">faisal@vopium.com</a></title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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">
<div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hi
Faisal,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Isn’t
it possible to be done via
asterisk variables?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I
would need it to be done that
way – i am sure there’s a variable capturing who answered.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Zarko<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;">From:</span></b><span style="font-size:
10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] <b>On
Behalf Of </b>Faisal
Hanif<br>
<b>Sent:</b> Monday, July 26, 2010 12:57 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
<b>Subject:</b> Re: [asterisk-users] URgent - capturing
'answered'<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span
style="font-size: 10pt; font-family:
"Verdana","sans-serif";">You need to do
it by manager interface</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style=""><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";">Regards,</span><span
style="font-family:
"Verdana","sans-serif";"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span
style="font-size: 10pt; font-family:
"Verdana","sans-serif";">Faisal Hanif</span><span
style="font-family:
"Verdana","sans-serif";"><o:p></o:p></span></p>
</div>
<p class="MsoNormal">On 7/26/2010 3:41 PM, Zarko Zivanovic
wrote: <span style="font-family: "Times New
Roman","serif";"><o:p></o:p></span></p>
<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>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif";"><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><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif";"><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><o:p></o:p></span></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>