<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Caros Amigos<br>
<br>
Analisando o LOG abaixo, qual e a Variavel que Captura o nº de
entrada ==> '8494322145'<br>
<br>
Já tentei estas abaixo, porém como podem ver na Inserção MySQL o
origem sempre é vazio, ele não traz o nº que aparece na 1º linha,
porém o DID (4641) ele eu já peguei com ${EXTEN})<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${CALLERANI}<br>
${CALLERID(ani)})</span><br style="color: rgb(0, 0, 0);
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); ">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${CALLERID}<br>
${CALLERID(all)})</span><br style="color: rgb(0, 0, 0);
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); ">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${CALLERIDNAME}<br>
${CALLERID(name)})</span><br style="color: rgb(0, 0, 0);
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); ">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${CALLERIDNUM}<br>
${CALLERID(num)})</span><br>
<br>
<br>
[May 15 20:34:05] VERBOSE[2977] sig_pri.c: -- Accepting call
from '8494322145' to '4641' on channel 0/1, span 1<br>
[May 15 20:34:05] VERBOSE[5535] pbx.c: -- Executing
[4641@from-pstn:1] Set("DAHDI/i1/-2475", "__FROM_DID=4641") in new
stack<br>
[May 15 20:34:05] VERBOSE[5535] pbx.c: -- Executing
[4641@from-pstn:2] MYSQL("DAHDI/i1/-2475", "Connect connid localhost
asterisk 123456 controlechamadas") in new stack<br>
[May 15 20:34:05] VERBOSE[5535] pbx.c: -- Executing
[4641@from-pstn:3] MYSQL("DAHDI/i1/-2475", "Query resultid 1 INSERT
INTO teste SET origem = "" <>, data = NOW(), tronco = 4641")
in new stack<br>
<br>
</body>
</html>