[asterisk-users] diferents events between ast1.2 & ast1.4 ??
Josep Bort Sancho
jbort at icr.es
Mon Dec 10 11:24:09 CST 2007
Hi all,
I'm new in the list, and I have a problem upgrading from asterisk 1.2 to
asterisk 1.4:
There is a diference from asterisk1.2 to asterisk1.4 in AMI events.
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.
It is normal? anyone knows it? what is the reason?
I paste my dial plan and the the AMI events:
[b]1.2 dialplan[/b]
exten => _4XX,1,dial(SIP/${EXTEN})
exten => 140,1,Answer()
exten => 140,n,Set(CALLERID(name)=140:${CALLERID(name)})
exten =>
140,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMES
TAMP}${UNIQUEID})
exten => 140,n,Queue(140|t||)
exten => 140,n,Hangup()
[b]1.2 AMI events[/b] (newcallerid event is maked with bold font)
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.0
Action: Login
UserName: admin
Secret: xxxxxx
ActionID: 1
Response: Success
ActionID: 1
Message: Authentication accepted
Event: QueueMemberPaused
Privilege: agent,all
Queue: 140
Location: Local/402 at default/n <mailto:%20Local/402 at default/n>
Paused: 1
Event: QueueMemberPaused
Privilege: agent,all
Queue: 140
Location: Local/402 at default/n <mailto:%20Local/402 at default/n>
Paused: 0
Event: Newchannel
Privilege: call,all
Channel: SIP/401-08197170
State: Ring
CallerID: 401
CallerIDName: JOSEP
Uniqueid: 1196854142.4
Event: Newexten
Privilege: call,all
Channel: SIP/401-08197170
Context: default
Extension: 140
Priority: 1
Application: Answer
AppData:
Uniqueid: 1196854142.4
Event: Newstate
Privilege: call,all
Channel: SIP/401-08197170
State: Up
CallerID: 401
CallerIDName: JOSEP
Uniqueid: 1196854142.4
Event: Newexten
Privilege: call,all
Channel: SIP/401-08197170
Context: default
Extension: 140
Priority: 2
Application: Set
AppData: CALLERID(name)=140:JOSEP
Uniqueid: 1196854142.4
Event: Newcallerid
Privilege: call,all
Channel: SIP/401-08197170
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: 1196854142.4
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newexten
Privilege: call,all
Channel: SIP/401-08197170
Context: default
Extension: 140
Priority: 3
Application: Set
AppData:
MONITOR_FILENAME=/var/spool/asterisk/monitor/q140-20071205-122902-119685
4142.4
Uniqueid: 1196854142.4
Event: Newexten
Privilege: call,all
Channel: SIP/401-08197170
Context: default
Extension: 140
Priority: 4
Application: Queue
AppData: 140|t||
Uniqueid: 1196854142.4
Event: Join
Privilege: call,all
Channel: SIP/401-08197170
CallerID: 401
CallerIDName: 140:JOSEP
Queue: 140
Position: 1
Count: 1
Event: Newchannel
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
State: Ring
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1196854142.6
Event: Newchannel
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,1
State: Down
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1196854142.5
[b]Event: Newcallerid
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: 1196854142.6
CID-CallingPres: 0 (Presentation Allowed, Not Screened)[/b]
Event: Newexten
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
Context: default
Extension: 402
Priority: 1
Application: Dial
AppData: SIP/402
Uniqueid: 1196854142.6
Event: Newchannel
Privilege: call,all
Channel: SIP/402-0819e6c8
State: Down
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1196854142.7
Event: Dial
Privilege: call,all
Source: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
Destination: SIP/402-0819e6c8
CallerID: 401
CallerIDName: 140:JOSEP
SrcUniqueID: 1196854142.6
DestUniqueID: 1196854142.7
Event: Newcallerid
Privilege: call,all
Channel: SIP/402-0819e6c8
CallerID: 402
CallerIDName: <Unknown>
Uniqueid: 1196854142.7
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/402-0819e6c8
State: Ringing
CallerID: 402
CallerIDName: <unknown>
Uniqueid: 1196854142.7
Event: Newstate
Privilege: call,all
Channel: SIP/402-0819e6c8
State: Up
CallerID: 402
CallerIDName: <unknown>
Uniqueid: 1196854142.7
Event: Newstate
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
State: Up
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: 1196854142.6
Event: Link
Privilege: call,all
Channel1: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
Channel2: SIP/402-0819e6c8
Uniqueid1: 1196854142.6
Uniqueid2: 1196854142.7
CallerID1: 401
CallerID2: 402
Event: Newstate
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,1
State: Up
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: 1196854142.5
Event: Leave
Privilege: call,all
Channel: SIP/401-08197170
Queue: 140
Count: 0
Event: Link
Privilege: call,all
Channel1: SIP/401-08197170
Channel2: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,1
Uniqueid1: 1196854142.4
Uniqueid2: 1196854142.5
CallerID1: 401
CallerID2: 401
Event: Unlink
Privilege: call,all
Channel1: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
Channel2: SIP/402-0819e6c8
Uniqueid1: 1196854142.6
Uniqueid2: 1196854142.7
CallerID1: 401
CallerID2: 402
Event: Hangup
Privilege: call,all
Channel: SIP/402-0819e6c8
Uniqueid: 1196854142.7
Cause: 16
Cause-txt: Normal Clearing
Event: Hangup
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,2
Uniqueid: 1196854142.6
Cause: 16
Cause-txt: Normal Clearing
Event: Unlink
Privilege: call,all
Channel1: SIP/401-08197170
Channel2: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,1
Uniqueid1: 1196854142.4
Uniqueid2: 1196854142.5
CallerID1: 401
CallerID2: 401
Event: Hangup
Privilege: call,all
Channel: Local/402 at default-4efa <mailto:%20Local/402 at default-4efa> ,1
Uniqueid: 1196854142.5
Cause: 0
Cause-txt: Unknown
Event: Hangup
Privilege: call,all
Channel: SIP/401-08197170
Uniqueid: 1196854142.4
Cause: 0
Cause-txt: Unknown
[b]1.4 dialplan[/b]
exten => _4XX,1,dial(SIP/${EXTEN})
exten => 140,1,Answer()
exten => 140,n,Set(CALLERID(name)=140:${CALLERID(name)})
exten =>
140,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMES
TAMP}${UNIQUEID})
exten => 140,n,Queue(140|t||)
exten => 140,n,Hangup()
[b]1.4 AMI events[/b] (here isn't the newcallerid event)
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.0
Action: Login
UserName: admin
Secret: xxxxxx
ActionID: 1
Response: Success
ActionID: 1
Message: Authentication accepted
Event: QueueMemberPaused
Privilege: agent,all
Queue: 140
Location: Local/402 at default/n <mailto:%20Local/402 at default/n>
MemberName: Local/402 at default/n <mailto:%20Local/402 at default/n>
Paused: 1
Event: QueueMemberPaused
Privilege: agent,all
Queue: 140
Location: Local/402 at default/n <mailto:%20Local/402 at default/n>
MemberName: Local/402 at default/n <mailto:%20Local/402 at default/n>
Paused: 0
Event: Newchannel
Privilege: call,all
Channel: SIP/401-081d5c20
State: Down
CallerIDNum: 401
CallerIDName: JOSEP
Uniqueid: asterisk-4059-1196846962.11
Event: Newstate
Privilege: call,all
Channel: SIP/401-081d5c20
State: Ring
CallerID: 401
CallerIDName: JOSEP
Uniqueid: asterisk-4059-1196846962.11
Event: Newexten
Privilege: call,all
Channel: SIP/401-081d5c20
Context: default
Extension: 140
Priority: 1
Application: Answer
AppData:
Uniqueid: asterisk-4059-1196846962.11
Event: Newstate
Privilege: call,all
Channel: SIP/401-081d5c20
State: Up
CallerID: 401
CallerIDName: JOSEP
Uniqueid: asterisk-4059-1196846962.11
Event: Newexten
Privilege: call,all
Channel: SIP/401-081d5c20
Context: default
Extension: 140
Priority: 2
Application: Set
AppData: CALLERID(name)=140:JOSEP
Uniqueid: asterisk-4059-1196846962.11
Event: Newcallerid
Privilege: call,all
Channel: SIP/401-081d5c20
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: asterisk-4059-1196846962.11
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newexten
Privilege: call,all
Channel: SIP/401-081d5c20
Context: default
Extension: 140
Priority: 3
Application: Set
AppData:
MONITOR_FILENAME=/var/spool/asterisk/monitor/q140--asterisk-4059-1196846
962.11
Uniqueid: asterisk-4059-1196846962.11
Event: Newexten
Privilege: call,all
Channel: SIP/401-081d5c20
Context: default
Extension: 140
Priority: 4
Application: Queue
AppData: 140|t||
Uniqueid: asterisk-4059-1196846962.11
Event: Join
Privilege: call,all
Channel: SIP/401-081d5c20
CallerID: 401
CallerIDName: 140:JOSEP
Queue: 140
Position: 1
Count: 1
Uniqueid: asterisk-4059-1196846962.11
Event: Newchannel
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,1
State: Down
CallerIDNum: <unknown>
CallerIDName: <unknown>
Uniqueid: asterisk-4059-1196846962.12
Event: Newchannel
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
State: Ring
CallerIDNum: <unknown>
CallerIDName: <unknown>
Uniqueid: asterisk-4059-1196846962.13
Event: Newexten
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
Context: default
Extension: 402
Priority: 1
Application: Dial
AppData: SIP/402
Uniqueid: asterisk-4059-1196846962.13
Event: Newchannel
Privilege: call,all
Channel: SIP/402-081db998
State: Down
CallerIDNum: <unknown>
CallerIDName: <unknown>
Uniqueid: asterisk-4059-1196846962.14
Event: Dial
Privilege: call,all
Source: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
Destination: SIP/402-081db998
CallerID: 401
CallerIDName: 140:JOSEP
SrcUniqueID: asterisk-4059-1196846962.13
DestUniqueID: asterisk-4059-1196846962.14
Event: Newcallerid
Privilege: call,all
Channel: SIP/402-081db998
CallerID: 402
CallerIDName: <Unknown>
Uniqueid: asterisk-4059-1196846962.14
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/402-081db998
State: Ringing
CallerID: 402
CallerIDName: <unknown>
Uniqueid: asterisk-4059-1196846962.14
Event: Newstate
Privilege: call,all
Channel: SIP/402-081db998
State: Up
CallerID: 402
CallerIDName: <unknown>
Uniqueid: asterisk-4059-1196846962.14
Event: Newstate
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
State: Up
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: asterisk-4059-1196846962.13
Event: Link
Privilege: call,all
Channel1: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
Channel2: SIP/402-081db998
Uniqueid1: asterisk-4059-1196846962.13
Uniqueid2: asterisk-4059-1196846962.14
CallerID1: 401
CallerID2: 402
Event: Newstate
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,1
State: Up
CallerID: 401
CallerIDName: 140:JOSEP
Uniqueid: asterisk-4059-1196846962.12
Event: Leave
Privilege: call,all
Channel: SIP/401-081d5c20
Queue: 140
Count: 0
Uniqueid: asterisk-4059-1196846962.11
Event: Link
Privilege: call,all
Channel1: SIP/401-081d5c20
Channel2: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,1
Uniqueid1: asterisk-4059-1196846962.11
Uniqueid2: asterisk-4059-1196846962.12
CallerID1: 401
CallerID2: 401
Event: Unlink
Privilege: call,all
Channel1: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
Channel2: SIP/402-081db998
Uniqueid1: asterisk-4059-1196846962.13
Uniqueid2: asterisk-4059-1196846962.14
CallerID1: 401
CallerID2: 402
Event: Hangup
Privilege: call,all
Channel: SIP/402-081db998
Uniqueid: asterisk-4059-1196846962.14
Cause: 16
Cause-txt: Normal Clearing
Event: Hangup
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,2
Uniqueid: asterisk-4059-1196846962.13
Cause: 16
Cause-txt: Normal Clearing
Event: Unlink
Privilege: call,all
Channel1: SIP/401-081d5c20
Channel2: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,1
Uniqueid1: asterisk-4059-1196846962.11
Uniqueid2: asterisk-4059-1196846962.12
CallerID1: 401
CallerID2: 401
Event: Hangup
Privilege: call,all
Channel: Local/402 at default-6486 <mailto:%20Local/402 at default-6486> ,1
Uniqueid: asterisk-4059-1196846962.12
Cause: 0
Cause-txt: Unknown
Event: Hangup
Privilege: call,all
Channel: SIP/401-081d5c20
Uniqueid: asterisk-4059-1196846962.11
Cause: 0
Cause-txt: Unknown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071210/8d9d725b/attachment.htm
More information about the asterisk-users
mailing list