[asterisk-bugs] [Asterisk 0016623]: [patch] ExtensionState should resolve dynamic hints
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jan 19 15:54:38 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16623
======================================================================
Reported By: tilghman
Assigned To: lmadsen
======================================================================
Project: Asterisk
Issue ID: 16623
Category: Core/PBX
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1
SVN Revision (number only!): 240628
Request Review:
======================================================================
Date Submitted: 2010-01-16 23:21 CST
Last Modified: 2010-01-19 15:54 CST
======================================================================
Summary: [patch] ExtensionState should resolve dynamic hints
Description:
As reported on the asterisk-users list, it would be expected behavior that
ExtensionState should create a static hint from a dynamic hint, when
queried.
======================================================================
----------------------------------------------------------------------
(0116949) lmadsen (administrator) - 2010-01-19 15:54
https://issues.asterisk.org/view.php?id=16623#c116949
----------------------------------------------------------------------
Looks good! Did a bunch of testing, and it all seems to work as expected.
Used:
exten => _[0][0][0][4][f][2][0][4]!,hint,SIP/${EXTEN}
Then did some testing while there was an active call:
action: extensionstate
exten: 0004f2040001
Response: Success
Message: Extension Status
Exten: 0004f2040001
Context: default
Hint: SIP/0004f2040001
Status: 1
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/0004f2040002
PeerStatus: Registered
Address: 192.168.128.138
Port: 5060
Response: Error
Message: Missing action in request
Response: Error
Message: Missing action in request
action: extensionstate
exten: 0004f2040001
Response: Success
Message: Extension Status
Exten: 0004f2040001
Context: default
Hint: SIP/0004f2040001
Status: 1
action: extensionstate
exten: 0004f2040002
Response: Success
Message: Extension Status
Exten: 0004f2040002
Context: default
Hint: SIP/0004f2040002
Status: 1
action: extensionstate
exten: 0004f2040003
Response: Success
Message: Extension Status
Exten: 0004f2040003
Context: default
Hint: SIP/0004f2040003
Status: 4
action: extensionstate
exten: 400
Response: Success
Message: Extension Status
Exten: 400
Context: default
Hint:
Status: -1
action: logoff
Did another test while phone was active, then tested right after hangup,
and values all look good!
action: extensionstate
exten: 0004f2040001
Response: Success
Message: Extension Status
Exten: 0004f2040001
Context: default
Hint: SIP/0004f2040001
Status: 1
Event: Unlink
Privilege: call,all
Channel1: SIP/0004f2040001-00000000
Channel2: SIP/0004f2040002-00000001
Uniqueid1: 1263937824.0
Uniqueid2: 1263937824.1
CallerID1: 0004f2040001
CallerID2: 102
Event: Hangup
Privilege: call,all
Channel: SIP/0004f2040002-00000001
Uniqueid: 1263937824.1
CallerIDNum: 102
CallerIDName: <unknown>
Cause: 16
Cause-txt: Normal Clearing
Event: Dial
Privilege: call,all
SubEvent: End
Channel: SIP/0004f2040001-00000000
UniqueID: 1263937824.0
DialStatus: ANSWER
Event: Hangup
Privilege: call,all
Channel: SIP/0004f2040001-00000000
Uniqueid: 1263937824.0
CallerIDNum: 0004f2040001
CallerIDName: Steve Smooth
Cause: 16
Cause-txt: Normal Clearing
Event: ExtensionStatus
Privilege: call,all
Exten: 0004f2040002
Context: default
Hint: SIP/0004f2040002
Status: 0
Event: ExtensionStatus
Privilege: call,all
Exten: 0004f2040001
Context: default
Hint: SIP/0004f2040001
Status: 0
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/0004f2040001
PeerStatus: Registered
Address: 192.168.128.145
Port: 5060
action: extensionstate
exten: 0004f2040001
Response: Success
Message: Extension Status
Exten: 0004f2040001
Context: default
Hint: SIP/0004f2040001
Status: 0
Issue History
Date Modified Username Field Change
======================================================================
2010-01-19 15:54 lmadsen Note Added: 0116949
======================================================================
More information about the asterisk-bugs
mailing list