I have an issue with Asterisk 11 and Asterisk 13, with extension status from AMI.
I configured manager.conf with the data needed for external app to manage some data on asterisk server, and I am trying to connect an app from http://asterswitchboard.com , after installing it which is used as a CTI Panel for Asterisk, the connection with asterisk server is OK, but when the app is trying to show the status of the asterisk peers even they are reachable and OK on asterisk … the App-AMI connection shows this log = UNKNOWN
Meaning it is not showing the correct status of the peers because it is telling unknown while the peer is OK… why is that do we need any special configuration on sip.conf or it’s enough this one, does anybody has experience on this ?
gjak_emerg192*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
8500/8500 10.30.150.29 D No No A 5060 OK (10 ms)
8501/8501 10.30.150.55 D No No A 5060 OK (5 ms)
8502/8502 10.30.150.49 D No No A 5060 OK (4 ms)
ExtensionStatus gets the state of an extension, not a device directly. What is the dialplan for the context you are trying (inside)? If there is no hint for the extension telling it that ‘8501’ is SIP/8501 then it wouldn’t know. You can also use “core show hints” on the CLI to see.
3 hints registered
gjak_emerg192CLI>
gjak_emerg192CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
8500/8500 10.30.150.29 D No No A 5060 OK (10 ms)
8501/8501 10.30.150.55 D No No A 5060 OK (7 ms)
8502/8502 10.30.150.49 D No No A 5060 OK (4 ms)
8503/8503 192.168.1.222 D No No A 5060 OK (9 ms)
Dialplan on extensions.conf is:
exten => 8500,1,Macro(stduser,SIP/8500,60)
same => n,Hangup()
exten => 8501,1,Macro(stduser,SIP/8501,60)
same => n,Hangup()
exten => 8502,1,Macro(stduser,SIP/8502,60)
same => n,Hangup()
Ok, so when i configure the hints on extensions.conf like this for example :
[inside]
exten = 8500,hint,SIP/Alice&SIP/Alice-mobile
exten = 8501,hint,SIP/Bob
exten = 8502,hint,SIP/Charlie&DAHDI/3
exten = 8503,hint,SIP/Diane,CustomPresence:Diane
is it going to show also the state like Available ? or need something else to configure?
*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
example:
8500@internal : SIP/Charlie&DAHDI/3 State:Unavailable Watchers 0