Asterisk

Setup Presence on Asterisk 1.4 & Later. Ploycom 301,501,601 and higer

Posted by sysadmin on July 12, 2011
Asterisk / Comments Off on Setup Presence on Asterisk 1.4 & Later. Ploycom 301,501,601 and higer

Well if you are like me you search all over the Internet. And found the same information but it not working. Here what I did and it work for me.

I am running 1.6 and have polycom 301 through 601

First thing we need to do is enable presence in sip.cfg. So I ssh in my asterisk box and my config are under /home/PlcmSpIp/ using vim, nano or what ever open it up and search for this string ‘presence’ and we will did to turn the feature on so change

feature.1.enabled=””

to

feature.1.enabled=”1″

Save the file.

—————————————————————-

Next we add some options to sip.conf in /ect/asterisk/

So lets go back to our editor and open that file.

under the ‘ [general] ‘ we need to add

limitonpeer=yes
notifyringing=yes
notifyhold=yes
allowsubscribe=yes

This tells Asterisk to allow sip subscriptions and to tell presence to change on ring and hold.

Next we need to tell the phone where to look to see what the device is doing so back in the editor open file

/etc/asterisk/extensions.conf

So we can add this context.

[device-hints]

In this context you will need to add the ext hints and they look this.

exten={ext},hint,SIP/{EXT}

If Bob is ext- 100 and Mary is ext – 101

It would look like this

[device-hints]

exten=100,hint,SIP/100

exten=101,hint,SIP/101

Save the file reload asterisk and the phones. Once everything is booted up.

Look in asterisk CLI and type ‘sip show subscriptions’

You should see something like this:

5xdata*CLI> sip show subscriptions
Peer User Call ID Extension Last state Type Mailbox Expiry
192.168.X.X 100 940ea202-d73bab 101@device-hint Idle xpidf+xml <none> 003600
192.168.X.X 101 b71ec17e-7c9baf 100@device-hint Idle xpidf+xml <none> 003600

Asterisk CLI and type ‘core show hints’

5xdata*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
100@device-hints : SIP/100 State:Idle Watchers 1
101@device-hints : SIP/101 State:Idle Watchers 1

If you do not see this make sure you have buddy watch turn on the contact in the phone.

See this link http://lists.digium.com/pipermail/asterisk-users/2006-October/168135.html