* You are viewing Posts Tagged ‘presence’

Call Presence For Offhook/Onhook Only

We have a customer with a dozen phones and they want nearly all of them to ring. Unfortunately this causes a firestorm of call presence notifications that overwhelm something on their network. Any existing calls get gappy audio for a few milliseconds when a new call comes in and when someone picks it up due to all the state changes between ringing and not ringing. They have a T-1 dedicated to voice so it isn’t a bandwidth issue per se. We’ve been through a handful of routers and QOS settings but nothing has worked. Turning off the busy lamps fixes the problem but of course that isn’t really a long term solution.

Really I don’t think anyone cares about the busy lamps for ringing. They just want to know when someone is on the phone.

Is there any way short of hacking code that we can make notifications ignore changes involving ringing and just report inuse/notinuse?

We are using 1.8.x if that matters.

Chris

Flowroute: Howto Set Outbound Callerid (ast 1.4)?

The flowroute website mentions that they set callerid on outbound calls based on the presence of (in order of preference):
“P-Asserted-Identity”, “Remote-Party-ID” or “From:”.

I’ve been trying to make outbound callerid work via flowroute to no avail. Does anyone have an extensions.conf / sip.conf snippet howto make this work? This is for Asterisk 1.4.44.

Hints And Server-Side DND (do not disturb)

Currently I’m using hints to determine SIP presence. As I understand it, a SIP extension can be labeled as busy, ringing, etc, based on a channel status. So a channel MUST be present. If it isn’t then the extension is considered to be “available”.

If my statement is correct then is there a way to set the extension as “busy” even if there’s no channel associated with this extension?
eg. when an extension sets server-side DND (Do Not Disturb), it actually sets a boolean value in astdb. Whenever asterisk tries to route a call to this extension, it first checks this value. Obviously, there’s no way I can use hints in this scenario, or is there? Is it possible to somehow create a “dummy” channel whenever an extension sets “server-side DND” (custom context) and delete it whenever it unsets it?

Thanks,
Vieri

trying to build 1.8.6.0 on CentOS 6, problems with ptlib

I’m having annoying errors trying to get configure working.

tar xvzf /usr/local/src/asterisk-1.8.6.0.tar.gz
cd asterisk-1.8.6.0
./configure

I get complaints related to pwlib / ptlib…

checking for openr2_chan_new in -lopenr2… no
checking /root/pwlib/include/ptlib.h usability… no
checking /root/pwlib/include/ptlib.h presence… no
checking for /root/pwlib/include/ptlib.h… no
checking /usr/local/include/ptlib.h usability… no
checking /usr/local/include/ptlib.h presence… no
checking for /usr/local/include/ptlib.h… no
checking /usr/include/ptlib.h usability… yes
checking /usr/include/ptlib.h presence… yes
checking for /usr/include/ptlib.h… yes
checking for ptlib-config… /usr/bin/ptlib-config
./configure: line 24978: 2*10000+6*100+5 /usr/lib64/ /usr/lib/:
division by 0 (error token is “/lib64/ /usr/lib/”)

There seems to also be a problem with CentOS 6 in general that I have
not found a package that actually provides /usr/bin/ptlib-config. I
copied that binary over from a CentOS 5 install to see if I could get
my original error to clear.

Here’s THAT error…

checking for openr2_chan_new in -lopenr2… no
checking /root/pwlib/include/ptlib.h usability… no
checking /root/pwlib/include/ptlib.h presence… no
checking for /root/pwlib/include/ptlib.h… no
checking /usr/local/include/ptlib.h usability… no
checking /usr/local/include/ptlib.h presence… no
checking for /usr/local/include/ptlib.h… no
checking /usr/include/ptlib.h usability… yes
checking /usr/include/ptlib.h presence… yes
checking for /usr/include/ptlib.h… yes
checking for ptlib-config… no
./configure: line 24906: –ldflags: command not found
Cannot find ptlib-config – please install and try again

And then I searched around the config trying to figure out how not to
use ptlib at all, and ultimately I tried just doing…

rpm -e ptlib ptlib-devel (and the other packages)

And this got my asterisk configure to complete.

But really, I’m wondering if other people have run into the same
problem, or if there is a nifty configure argument that would keep me
from needing to uninstall the library.

Distributed device state / presence info??

Hi all,

Last couple of days i’ve arguing with my colleges about presence-info.

>From the asterisk-bible and the wiki’s i learned that it is possible to
let asterisk do some of the presense-info by means of the jabber.conf
file and a seperate xmpp-server.

On the other hand, most soft-phones are capable of “doing something”
with presence, allthough most of them use SIMPLE-protocol, instead of
XMPP.

So if when should one use the presence info from asterisk and when use
the presence info from the softphones.
It looks to me like doing the same job twice.

What i assume (please correct me if i am wrong) is that when a client
registers/deregisters, asterisk will update the presence info towards
the XMPP-server. Correct?

But otoh, what people would like to see is who is “on line”.
And not only on the asterisk-server that they are connected to, but also
from other possible asterisk servers.
And furthermore, each registered user might want to set their
presencse-status to either free/busy/away/what-ever.

So if the changing/reading is to be done on a softphone, what is the
point of having asterisk doing someting with the device-status???

While writing, i’ve got a distinct feeling i’m understanding less by the
minute…. ;(

Anyway, what i’m building is a central server and a number of
asterisk-boxes that act as proxy/six-iax-converter.
All of the registered users should be able to see the presence of all
the users on either proxy.

Hans

How to get presence using AMI

Hi

Using AMI how can I get the presence feature.Below are the requirement.