<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=ES link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>I&#8217;m new in the list, and I have a problem upgrading
from asterisk 1.2 to asterisk 1.4:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'>There is a diference from asterisk1.2 to asterisk1.4
in AMI events.<br>
<br>
When I do a call to a queue (with the same extensions.conf dial plan) with
ast1.2 and ast1.4, in ast1.2 apper 3 newcallerid event in ast1.4 apper only 2.<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'>It is normal? anyone knows it? what is the reason?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'>I paste my dial plan and the the AMI events:<br>
<br>
[b]1.2 dialplan[/b]<br>
exten =&gt; _4XX,1,dial(SIP/${EXTEN})<br>
exten =&gt; 140,1,Answer()<br>
exten =&gt; 140,n,Set(CALLERID(name)=140:${CALLERID(name)})<br>
exten =&gt; 140,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMESTAMP}${UNIQUEID})<br>
exten =&gt; 140,n,Queue(140|t||)<br>
exten =&gt; 140,n,Hangup()<br>
<br>
<br>
[b]1.2 AMI events[/b] (newcallerid event is maked with bold font)<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Asterisk Call Manager/1.0<br>
Action: Login<br>
UserName: admin<br>
Secret: xxxxxx<br>
ActionID: 1<br>
<br>
Response: Success<br>
ActionID: 1<br>
Message: Authentication accepted<br>
<br>
Event: QueueMemberPaused<br>
Privilege: agent,all<br>
Queue: 140<br>
Location:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
Paused: 1<br>
<br>
Event: QueueMemberPaused<br>
Privilege: agent,all<br>
Queue: 140<br>
Location:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
Paused: 0<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
State: Ring<br>
CallerID: 401<br>
CallerIDName: JOSEP<br>
Uniqueid: 1196854142.4<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Context: default<br>
Extension: 140<br>
Priority: 1<br>
Application: Answer<br>
AppData: <br>
Uniqueid: 1196854142.4<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: JOSEP<br>
Uniqueid: 1196854142.4<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Context: default<br>
Extension: 140<br>
Priority: 2<br>
Application: Set<br>
AppData: CALLERID(name)=140:JOSEP<br>
Uniqueid: 1196854142.4<br>
<br>
Event: Newcallerid<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: 1196854142.4<br>
CID-CallingPres: 0 (Presentation Allowed, Not Screened)<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Context: default<br>
Extension: 140<br>
Priority: 3<br>
Application: Set<br>
AppData:
MONITOR_FILENAME=/var/spool/asterisk/monitor/q140-20071205-122902-1196854142.4<br>
Uniqueid: 1196854142.4<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Context: default<br>
Extension: 140<br>
Priority: 4<br>
Application: Queue<br>
AppData: 140|t||<br>
Uniqueid: 1196854142.4<br>
<br>
Event: Join<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Queue: 140<br>
Position: 1<br>
Count: 1<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
State: Ring<br>
CallerID: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: 1196854142.6<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,1<br>
State: Down<br>
CallerID: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: 1196854142.5<br>
<br>
[b]Event: Newcallerid<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: 1196854142.6<br>
CID-CallingPres: 0 (Presentation Allowed, Not Screened)[/b]<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
Context: default<br>
Extension: 402<br>
Priority: 1<br>
Application: Dial<br>
AppData: SIP/402<br>
Uniqueid: 1196854142.6<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel: SIP/402-0819e6c8<br>
State: Down<br>
CallerID: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: 1196854142.7<br>
<br>
Event: Dial<br>
Privilege: call,all<br>
Source:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
Destination: SIP/402-0819e6c8<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
SrcUniqueID: 1196854142.6<br>
DestUniqueID: 1196854142.7<br>
<br>
Event: Newcallerid<br>
Privilege: call,all<br>
Channel: SIP/402-0819e6c8<br>
CallerID: 402<br>
CallerIDName: &lt;Unknown&gt;<br>
Uniqueid: 1196854142.7<br>
CID-CallingPres: 0 (Presentation Allowed, Not Screened)<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/402-0819e6c8<br>
State: Ringing<br>
CallerID: 402<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: 1196854142.7<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/402-0819e6c8<br>
State: Up<br>
CallerID: 402<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: 1196854142.7<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: 1196854142.6<br>
<br>
Event: Link<br>
Privilege: call,all<br>
Channel1:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
Channel2: SIP/402-0819e6c8<br>
Uniqueid1: 1196854142.6<br>
Uniqueid2: 1196854142.7<br>
CallerID1: 401<br>
CallerID2: 402<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,1<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: 1196854142.5<br>
<br>
Event: Leave<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Queue: 140<br>
Count: 0<br>
<br>
Event: Link<br>
Privilege: call,all<br>
Channel1: SIP/401-08197170<br>
Channel2:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,1<br>
Uniqueid1: 1196854142.4<br>
Uniqueid2: 1196854142.5<br>
CallerID1: 401<br>
CallerID2: 401<br>
<br>
Event: Unlink<br>
Privilege: call,all<br>
Channel1:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
Channel2: SIP/402-0819e6c8<br>
Uniqueid1: 1196854142.6<br>
Uniqueid2: 1196854142.7<br>
CallerID1: 401<br>
CallerID2: 402<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel: SIP/402-0819e6c8<br>
Uniqueid: 1196854142.7<br>
Cause: 16<br>
Cause-txt: Normal Clearing<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,2<br>
Uniqueid: 1196854142.6<br>
Cause: 16<br>
Cause-txt: Normal Clearing<br>
<br>
Event: Unlink<br>
Privilege: call,all<br>
Channel1: SIP/401-08197170<br>
Channel2:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,1<br>
Uniqueid1: 1196854142.4<br>
Uniqueid2: 1196854142.5<br>
CallerID1: 401<br>
CallerID2: 401<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-4efa"> Local/402@default-4efa</a>,1<br>
Uniqueid: 1196854142.5<br>
Cause: 0<br>
Cause-txt: Unknown<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel: SIP/401-08197170<br>
Uniqueid: 1196854142.4<br>
Cause: 0<br>
Cause-txt: Unknown<br>
<br>
<br>
[b]1.4 dialplan[/b]<br>
exten =&gt; _4XX,1,dial(SIP/${EXTEN})<br>
exten =&gt; 140,1,Answer()<br>
exten =&gt; 140,n,Set(CALLERID(name)=140:${CALLERID(name)})<br>
exten =&gt;
140,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMESTAMP}${UNIQUEID})<br>
exten =&gt; 140,n,Queue(140|t||)<br>
exten =&gt; 140,n,Hangup()<br>
<br>
[b]1.4 AMI events[/b] (here isn't the newcallerid event)<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Asterisk Call Manager/1.0<br>
Action: Login<br>
UserName: admin<br>
Secret: xxxxxx<br>
ActionID: 1<br>
<br>
Response: Success<br>
ActionID: 1<br>
Message: Authentication accepted<br>
<br>
Event: QueueMemberPaused<br>
Privilege: agent,all<br>
Queue: 140<br>
Location:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
MemberName:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
Paused: 1<br>
<br>
Event: QueueMemberPaused<br>
Privilege: agent,all<br>
Queue: 140<br>
Location:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
MemberName:<a href="mailto:%20Local/402@default/n"> Local/402@default/n</a><br>
Paused: 0<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
State: Down<br>
CallerIDNum: 401<br>
CallerIDName: JOSEP<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
State: Ring<br>
CallerID: 401<br>
CallerIDName: JOSEP<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Context: default<br>
Extension: 140<br>
Priority: 1<br>
Application: Answer<br>
AppData: <br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: JOSEP<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Context: default<br>
Extension: 140<br>
Priority: 2<br>
Application: Set<br>
AppData: CALLERID(name)=140:JOSEP<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newcallerid<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: asterisk-4059-1196846962.11<br>
CID-CallingPres: 0 (Presentation Allowed, Not Screened)<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Context: default<br>
Extension: 140<br>
Priority: 3<br>
Application: Set<br>
AppData:
MONITOR_FILENAME=/var/spool/asterisk/monitor/q140--asterisk-4059-1196846962.11<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Context: default<br>
Extension: 140<br>
Priority: 4<br>
Application: Queue<br>
AppData: 140|t||<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Join<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Queue: 140<br>
Position: 1<br>
Count: 1<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,1<br>
State: Down<br>
CallerIDNum: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.12<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
State: Ring<br>
CallerIDNum: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.13<br>
<br>
Event: Newexten<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
Context: default<br>
Extension: 402<br>
Priority: 1<br>
Application: Dial<br>
AppData: SIP/402<br>
Uniqueid: asterisk-4059-1196846962.13<br>
<br>
Event: Newchannel<br>
Privilege: call,all<br>
Channel: SIP/402-081db998<br>
State: Down<br>
CallerIDNum: &lt;unknown&gt;<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.14<br>
<br>
Event: Dial<br>
Privilege: call,all<br>
Source:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
Destination: SIP/402-081db998<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
SrcUniqueID: asterisk-4059-1196846962.13<br>
DestUniqueID: asterisk-4059-1196846962.14<br>
<br>
Event: Newcallerid<br>
Privilege: call,all<br>
Channel: SIP/402-081db998<br>
CallerID: 402<br>
CallerIDName: &lt;Unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.14<br>
CID-CallingPres: 0 (Presentation Allowed, Not Screened)<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/402-081db998<br>
State: Ringing<br>
CallerID: 402<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.14<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel: SIP/402-081db998<br>
State: Up<br>
CallerID: 402<br>
CallerIDName: &lt;unknown&gt;<br>
Uniqueid: asterisk-4059-1196846962.14<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: asterisk-4059-1196846962.13<br>
<br>
Event: Link<br>
Privilege: call,all<br>
Channel1:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
Channel2: SIP/402-081db998<br>
Uniqueid1: asterisk-4059-1196846962.13<br>
Uniqueid2: asterisk-4059-1196846962.14<br>
CallerID1: 401<br>
CallerID2: 402<br>
<br>
Event: Newstate<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,1<br>
State: Up<br>
CallerID: 401<br>
CallerIDName: 140:JOSEP<br>
Uniqueid: asterisk-4059-1196846962.12<br>
<br>
Event: Leave<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Queue: 140<br>
Count: 0<br>
Uniqueid: asterisk-4059-1196846962.11<br>
<br>
Event: Link<br>
Privilege: call,all<br>
Channel1: SIP/401-081d5c20<br>
Channel2:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,1<br>
Uniqueid1: asterisk-4059-1196846962.11<br>
Uniqueid2: asterisk-4059-1196846962.12<br>
CallerID1: 401<br>
CallerID2: 401<br>
<br>
Event: Unlink<br>
Privilege: call,all<br>
Channel1:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
Channel2: SIP/402-081db998<br>
Uniqueid1: asterisk-4059-1196846962.13<br>
Uniqueid2: asterisk-4059-1196846962.14<br>
CallerID1: 401<br>
CallerID2: 402<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel: SIP/402-081db998<br>
Uniqueid: asterisk-4059-1196846962.14<br>
Cause: 16<br>
Cause-txt: Normal Clearing<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,2<br>
Uniqueid: asterisk-4059-1196846962.13<br>
Cause: 16<br>
Cause-txt: Normal Clearing<br>
<br>
Event: Unlink<br>
Privilege: call,all<br>
Channel1: SIP/401-081d5c20<br>
Channel2:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,1<br>
Uniqueid1: asterisk-4059-1196846962.11<br>
Uniqueid2: asterisk-4059-1196846962.12<br>
CallerID1: 401<br>
CallerID2: 401<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel:<a href="mailto:%20Local/402@default-6486"> Local/402@default-6486</a>,1<br>
Uniqueid: asterisk-4059-1196846962.12<br>
Cause: 0<br>
Cause-txt: Unknown<br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel: SIP/401-081d5c20<br>
Uniqueid: asterisk-4059-1196846962.11<br>
Cause: 0<br>
Cause-txt: Unknown</span></font><font size=2 face=Arial><span lang=CA
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>