|
|
lee
Registration Date: 01.01.1970
Posts:
|
|
Call an URL on Phone Event |
|
Hi!
I'm in the process of planning out my home automation system, and within this is a "one screen overview" of the whole house such as electricity usage, security status, server health, internet connectivity, etc. etc. etc.
What I'd love is also to be able to see is a list of incoming/outgoing/missed calls, voicemails waiting and so on.
Would it be a possible option that when 'an event' happens within PBXes, e.g. an incoming call occurs, or an internal call is made, or an outbound call is made, or a call is missed, or a voicemail or a trunk drops out/comes back, PBXes calls an URL (GET/POST) and provides the details? I can then store this in an SQL database for local use.
This has other uses, but that's my idea. Would this be possible to do?? I'm sure commercial users would appreciate it for monitoring purposes and so on as well?
Or is there some other way of doing this already?
This post has been edited 1 time(s), it was last edited by lee on 27.03.2010 at 21:37.
|
|
27.03.2010 21:35 |
|
Dia
Premium Account
Registration Date: 03.03.2006
Posts: 1443
|
|
|
29.03.2010 00:09 |
|
lee
Registration Date: 01.01.1970
Posts:
|
|
RE: Call an URL on Phone Event |
|
Zitat: |
Originally posted by Diafora
So you are basically looking for a live export of your Call Monitor entries to your own SQL database. Quite an interesting idea. |
|
That's essentially it, in a nutshell. I was mulling over ways of this being done, and concluded the least resource-intensive method (for both you and the other parties who might want to do this) would be on a 'push' basis from PBXes itself, rather than a 'pull' from me, possibly getting the same data over and over again. It seemed a far more sensible option for PBXes just to call an URL when something worthwhile happened instead.
It need not be overly complicated either. I'm not sure how the backend functions your side, but given the data recorded in the Monitor, it all appears to be 'there', it's just a case of throwing it out in an http request.
Perhaps something along the lines of:
http://my.homeserver/voip.php?type=inbound&callerid=$caller_id&trunk=$trunk_name&destination=$destination
(and the other call monitor variables as available tacked on).
type could be 'internal', 'inbound', 'outbound', 'voicemail' and any of the other types of events that happen within.
If the call goes to voicemail and results in a message being left, perhaps another event can be fired off, detailing that fact.
If this is something you'd be willing to implement, I'd be more than happy to share my code to handle this information, if others would find it useful. It'd help me out no end.
|
|
29.03.2010 01:41 |
|
dor
Registration Date: 01.01.1970
Posts:
|
|
|
26.04.2010 23:01 |
|
lee
Registration Date: 01.01.1970
Posts:
|
|
|
28.04.2010 22:31 |
|
dnw
Registration Date: 01.01.1970
Posts:
|
|
|
29.04.2010 02:05 |
|
i-p
Super Moderator
Registration Date: 14.01.2006
Posts: 4775
|
|
|
17.08.2010 21:28 |
|
lee
Registration Date: 01.01.1970
Posts:
|
|
|
16.09.2010 02:01 |
|
|
|
|
|
|
|