I'm looking for some information about how best to monitor presence events within kamailio? Ideally I'd be writing a python application that will monitor specific endpoints within kamailio and once there state changes I do my thing.
I know tapping into the database is an option, but figure I see if there is another method. EG: Opening a websocket to stream events?
OF course you could just SUBSCRIBE to get NOTIFYs. But then you would need to subscribe to all users (e.g. subscribe a user whenever there is a new registration).
I think a cool feature would be a 'wildcard' subscription, e.g.: SUBSCRIBE sip:*@mydomain.com to receive all events of mydomain.com, or SUBSCRIBE *@*.
regards Klaus
On 21.10.2013 21:56, Paul Belanger wrote:
I'm looking for some information about how best to monitor presence events within kamailio? Ideally I'd be writing a python application that will monitor specific endpoints within kamailio and once there state changes I do my thing.
I know tapping into the database is an option, but figure I see if there is another method. EG: Opening a websocket to stream events?
On 22.10.2013 08:59, Juha Heinanen wrote:
Klaus Darilion writes:
I think a cool feature would be a 'wildcard' subscription, e.g.: SUBSCRIBE sip:*@mydomain.com to receive all events of mydomain.com, or SUBSCRIBE *@*.
yes, cool feature for nsa.
:-)
They don't need this, as still most people use SIP over UDP instead TLS.
Klaus
On 13-10-22 03:14 AM, Klaus Darilion wrote:
OF course you could just SUBSCRIBE to get NOTIFYs. But then you would need to subscribe to all users (e.g. subscribe a user whenever there is a new registration).
I think a cool feature would be a 'wildcard' subscription, e.g.: SUBSCRIBE sip:*@mydomain.com to receive all events of mydomain.com, or SUBSCRIBE *@*.
Right, I was trying to avoid doing something like that, only because of the overhead it creates. However, if that is the best solution I would consider it.
The wildcard subscribe is a cool concept, however.
On 13-10-22 01:36 PM, Paul Belanger wrote:
On 13-10-22 03:14 AM, Klaus Darilion wrote:
OF course you could just SUBSCRIBE to get NOTIFYs. But then you would need to subscribe to all users (e.g. subscribe a user whenever there is a new registration).
I think a cool feature would be a 'wildcard' subscription, e.g.: SUBSCRIBE sip:*@mydomain.com to receive all events of mydomain.com, or SUBSCRIBE *@*.
Right, I was trying to avoid doing something like that, only because of the overhead it creates. However, if that is the best solution I would consider it.
The wildcard subscribe is a cool concept, however.
So, the more I think about it, I think I'm going to go down this path. I'll see if I can get the python bindings for pjproject working first.
Thanks again